org-sparse-tree is an interactive compiled Lisp function in `org.el'.

(org-sparse-tree &optional ARG TYPE)

Create a sparse tree, prompt for the details.
This command can create sparse trees. You first need to select the type
of match used to create the tree:

t Show all TODO entries.
T Show entries with a specific TODO keyword.
m Show entries selected by a tags/property match.
p Enter a property name and its value (both with completion on existing
names/values) and show entries with that property.
r Show entries matching a regular expression (`/' can be used as well).
b Show deadlines and scheduled items before a date.
a Show deadlines and scheduled items after a date.
d Show deadlines due within `org-deadline-warning-days'.
D Show deadlines and scheduled items between a date range.