When you run a query, use this call to check the status of the query to make sure that the query has SUCCEEDED before you review the results.
SUCCEEDED