Question: how to run oql in mat?
Answer: Click the Open Object Query Language Studio to execute statements button ( ) in the toolbar.
Type your query in the OQL editor pane. ... 
Press F5 or Ctrl+Enter to run the query, or select the Execute Query button ( ) from the toolbar.