Exploring a BigQuery Public Dataset

Task 1. Query a public dataset

Load the USA Names dataset

[Big Query] > [ADD DATA] > [Public Datasets]

Query the USA Names dataset

[query editor]

SELECT
name, gender,
SUM(number) AS total
FROM
`bigquery-public-data.usa_names.usa_1910_2013`
GROUP BY
name, gender
ORDER BY
total DESC
LIMIT
10

Task 2. Create a custom table

Task 3. Create a dataset

Task 4. Load the data into a new table

Task 5. Query the table

[Compose new query]

SELECT
name, count
FROM
`babynames.names_2014`
WHERE
gender = 'M'
ORDER BY count DESC LIMIT 5

reference links