how to do a soql query?
Enter a SOQL query or SOSL search in the Query Editor panel. If you want to query tooling entities instead of data entities, select Use Tooling API. Click Execute. If the query generates errors, they are displayed at the bottom of the Query Editor panel.