simplifying query api