Working with query language