Integrate date handling into basic queries

It would be great if basic queries could do the following

(a) Find tasks which are scheduled / have deadlines.
(b) Allow the former to be combined with links / tags
(b) Have the option to sort by date of scheduled task

NB I can find scheduled tasks just by searching for “scheduled”. However, I can’t seem to identify scheduled tasks for particular tags, e.g. {{query (and scheduled [[tag]])}}. I think this is because “scheduled” is identified as free text, and the search syntax cannot combine free-text and tags. Also scheduled events are not sortable.