built out query listing endpoints