add `query` to adapter (better deps)