feat(Query): implement Query API