Added `Client.query` to query endpoints