Question: how to test soql query in salesforce?
Answer: 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. ...  Warning If you rerun a query, unsaved changes in the Query Results grid are lost.