Queries are powerful things that can be used to help you define segments, data for export, discover, connect, combine, and refine data sources for your analysis needs.
Navigate to Data Workbench > Queries.
Select New Query.
Select or verify that the correct database is selected.

- Start typing your query. You can select from the list of keywords.

- Optionally, copy the table name from which you want to query so that you can add it to your query statement.

Select Run to run and test the query.
Save the query, giving it a name and description.