To execute SOQL you can simply select the text and run the command SFDX: Execute SOQL Query with Currently Selected Text . You can choose to execute your query against the REST or Tooling APIs. After the query is executed the results display in the output pane.