Queries working with cli