Google BigQuery: Dataset was not found in location error is raised

When you try to run a SQL query against Google BigQuery, you might get an error something like this.

Not found: Dataset sample was not found in location US [notFound]

If you get this error, make sure you select the correct project and dataset.

You can check the data location for your datasets from Google Cloud Console.