1sf/bird-sql-train-with-schema huggingface dataset:
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Please list the zip_codes of all the residential areas in Huntingdon county with over 30 employees.
Evidence: over 30 employees refers to employee > 30; 'HUNTINGDON' is the county
SQL: SELECT DISTINCT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'HUNTINGDON' AND T1.employees > 30
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Please list the Asian populations of all the residential areas with the bad alias "URB San Joaquin".
Evidence: "URB San Joaquin" is the bad_alias
SQL: SELECT SUM(T1.asian_population) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'URB San Joaquin'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Among the residential areas with the bad alias "Internal Revenue Service", how many of them are in the Eastern time zone?
Evidence: "Internal Revenue Service" is the bad_alias; in Eastern time zone refers to time_zone = 'Eastern'
SQL: SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T2.bad_alias = 'Internal Revenue Service' AND T1.time_zone = 'Eastern'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the bad alias of the residential area with the highest average house value?
Evidence: highest average house value refers to Max(avg_house_value)
SQL: SELECT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.avg_house_value = ( SELECT MAX(avg_house_value) FROM zip_data ) LIMIT 1
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: Please list the bad alias of all the residential areas with a median female age of over 32.
Evidence: median female age of over 32 refers to median_female_age > 32
SQL: SELECT DISTINCT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_code = T2.zip_code WHERE T1.female_median_age > 32
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the highest gender ratio of the residential areas in Arecibo county?
Evidence: "ARECIBO" is the county; highest gender ration refers to Max(Divide (male_population, female_population))
SQL: SELECT CAST(T1.male_population AS REAL) / T1.female_population FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' AND T1.female_population <> 0 ORDER BY 1 DESC LIMIT 1
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the average median female age of all the residential areas in the Arecibo county?
Evidence: "ARECIBO" is the county; average median female age = Divide (Sum(median_female_age), Count(country))
SQL: SELECT SUM(T1.female_median_age) / COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the area code of the city with the female median age over 32 years old?
SQL: SELECT T1.area_code FROM area_code AS T1 INNER JOIN ZIP_Data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.female_median_age > 32 GROUP BY T1.area_code
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: What is the alias of the city called Hartford?
Evidence: "Hartford" is the city
SQL: SELECT DISTINCT T2.alias FROM zip_data AS T1 INNER JOIN alias AS T2 ON T1.zip_code = T2.zip_code WHERE T1.city = 'Hartford'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: How many counties are there in Alabama?
Evidence: "Alabama" is the name
SQL: SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Alabama'
Database: address
Tables: CBSA, state, congress, zip_data, alias, area_code, avoid, country, zip_congress
Columns (table index, column name): -1, *, 0, CBSA, 0, CBSA_name, 0, CBSA_type, 1, abbreviation, 1, name, 2, cognress_rep_id, 2, first_name, 2, last_name, 2, CID, 2, party, 2, state, 2, abbreviation, 2, House, 2, District, 2, land_area, 3, zip_code, 3, city, 3, state, 3, multi_county, 3, type, 3, organization, 3, time_zone, 3, daylight_savings, 3, latitude, 3, longitude, 3, elevation, 3, state_fips, 3, county_fips, 3, region, 3, division, 3, population_2020, 3, population_2010, 3, households, 3, avg_house_value, 3, avg_income_per_household, 3, persons_per_household, 3, white_population, 3, black_population, 3, hispanic_population, 3, asian_population, 3, american_indian_population, 3, hawaiian_population, 3, other_population, 3, male_population, 3, female_population, 3, median_age, 3, male_median_age, 3, female_median_age, 3, residential_mailboxes, 3, business_mailboxes, 3, total_delivery_receptacles, 3, businesses, 3, 1st_quarter_payroll, 3, annual_payroll, 3, employees, 3, water_area, 3, land_area, 3, single_family_delivery_units, 3, multi_family_delivery_units, 3, total_beneficiaries, 3, retired_workers, 3, disabled_workers, 3, parents_and_widowed, 3, spouses, 3, children, 3, over_65, 3, monthly_benefits_all, 3, monthly_benefits_retired_workers, 3, monthly_benefits_widowed, 3, CBSA, 4, zip_code, 4, alias, 5, zip_code, 5, area_code, 6, zip_code, 6, bad_alias, 7, zip_code, 7, county, 7, state, 8, zip_code, 8, district
Question: How many post offices are there in New York?
Evidence: "New York" refers to state = 'NY' and name = 'New York'; 'Post Office' is the type
SQL: SELECT COUNT(DISTINCT T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.abbreviation = 'NY' AND T2.type = 'Post Office'
Database: olympics
Tables: city, games, games_city, medal, noc_region, person, games_competitor, person_region, sport, event, competitor_event
Columns (table index, column name): -1, *, 0, id, 0, city_name, 1, id, 1, games_year, 1, games_name, 1, season, 2, games_id, 2, city_id, 3, id, 3, medal_name, 4, id, 4, noc, 4, region_name, 5, id, 5, full_name, 5, gender, 5, height, 5, weight, 6, id, 6, games_id, 6, person_id, 6, age, 7, person_id, 7, region_id, 8, id, 8, sport_name, 9, id, 9, sport_id, 9, event_name, 10, event_id, 10, competitor_id, 10, medal_id
Question: State the name of sport id 19.
Evidence: name of sport refers to sport_name
SQL: SELECT sport_name FROM sport WHERE id = 19
Database: olympics
Tables: city, games, games_city, medal, noc_region, person, games_competitor, person_region, sport, event, competitor_event
Columns (table index, column name): -1, *, 0, id, 0, city_name, 1, id, 1, games_year, 1, games_name, 1, season, 2, games_id, 2, city_id, 3, id, 3, medal_name, 4, id, 4, noc, 4, region_name, 5, id, 5, full_name, 5, gender, 5, height, 5, weight, 6, id, 6, games_id, 6, person_id, 6, age, 7, person_id, 7, region_id, 8, id, 8, sport_name, 9, id, 9, sport_id, 9, event_name, 10, event_id, 10, competitor_id, 10, medal_id
Question: Give the id of the event "Shooting Mixed Skeet".
Evidence: "Shooting Mixed Skeet" refers to event_name = 'Shooting Mixed Skeet';
SQL: SELECT id FROM event WHERE event_name = 'Shooting Mixed Skeet'
Database: olympics
Tables: city, games, games_city, medal, noc_region, person, games_competitor, person_region, sport, event, competitor_event
Columns (table index, column name): -1, *, 0, id, 0, city_name, 1, id, 1, games_year, 1, games_name, 1, season, 2, games_id, 2, city_id, 3, id, 3, medal_name, 4, id, 4, noc, 4, region_name, 5, id, 5, full_name, 5, gender, 5, height, 5, weight, 6, id, 6, games_id, 6, person_id, 6, age, 7, person_id, 7, region_id, 8, id, 8, sport_name, 9, id, 9, sport_id, 9, event_name, 10, event_id, 10, competitor_id, 10, medal_id
Question: Provide hockey's sport id.
Evidence: hockey's sport refers to sport_name = 'hockey';
SQL: SELECT id FROM sport WHERE sport_name = 'Hockey'
Database: olympics
Tables: city, games, games_city, medal, noc_region, person, games_competitor, person_region, sport, event, competitor_event
Columns (table index, column name): -1, *, 0, id, 0, city_name, 1, id, 1, games_year, 1, games_name, 1, season, 2, games_id, 2, city_id, 3, id, 3, medal_name, 4, id, 4, noc, 4, region_name, 5, id, 5, full_name, 5, gender, 5, height, 5, weight, 6, id, 6, games_id, 6, person_id, 6, age, 7, person_id, 7, region_id, 8, id, 8, sport_name, 9, id, 9, sport_id, 9, event_name, 10, event_id, 10, competitor_id, 10, medal_id
Question: Tell the weight of Dagfinn Sverre Aarskog.
SQL: SELECT weight FROM person WHERE full_name = 'Dagfinn Sverre Aarskog'
Database: olympics
Tables: city, games, games_city, medal, noc_region, person, games_competitor, person_region, sport, event, competitor_event
Columns (table index, column name): -1, *, 0, id, 0, city_name, 1, id, 1, games_year, 1, games_name, 1, season, 2, games_id, 2, city_id, 3, id, 3, medal_name, 4, id, 4, noc, 4, region_name, 5, id, 5, full_name, 5, gender, 5, height, 5, weight, 6, id, 6, games_id, 6, person_id, 6, age, 7, person_id, 7, region_id, 8, id, 8, sport_name, 9, id, 9, sport_id, 9, event_name, 10, event_id, 10, competitor_id, 10, medal_id
Question: What is the id of Rio de Janeiro?
Evidence: Rio de Janeiro refers to city_name = 'Rio de Janeiro';
SQL: SELECT id FROM city WHERE city_name = 'Rio de Janeiro'