explanation of queries for forest, pregnant, teb, and tab examples are provided