Writing a Search Query

How to write a search query using the Console's query language.