find pages and queries