SOQL

Use the Salesforce Object Query Language (SOQL) to construct query strings used in Salesforce APIs.
SOQL query filtering with the new USING SCOPE clause
The new USING SCOPE clause lets you limit results by filterScope. For example:
SELECT Id FROM Account USING SCOPE Mine