queries are represented as implementation of View