query api works like a baws !