1sf/bird-sql-train-with-schema huggingface dataset:
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 average age of competitors who participated in 1988 Winter?
Evidence: AVG(age) where games_name = '1988 Winter';
SQL: SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_name = '1988 Winter'
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 percentage of female competitors whose heights are over 170 that participated in the game in 1988?
Evidence: DIVIDE(COUNT(person_id where gender = 'F' and height > 170), COUNT(person_id)) as percentage where games_year = 1988;
SQL: SELECT CAST(COUNT(CASE WHEN T3.gender = 'F' AND T3.height > 170 THEN 1 END) AS REAL) * 100 / COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.games_year = 1988
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 sport name of "Cross Country Skiing Men's 10/15 kilometres Pursuit" event?
Evidence: "Cross Country Skiing Men's 10/15 kilometres Pursuit" refers to event_name = 'Cross Country Skiing Men''s 10/15 kilometres Pursuit';
SQL: SELECT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T2.event_name LIKE 'Cross Country Skiing Men%s 10/15 kilometres Pursuit'
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 percentage of people whose age greater than 24 and participate in winter season?
Evidence: DIVIDE(COUNT(season = 'Winter' and age > 24), COUNT(person_id)) as percentage;
SQL: SELECT CAST(COUNT(CASE WHEN T2.age > 24 AND T1.season = 'Winter' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.games_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id
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 region id of Christine Jacoba Aaftink?
SQL: SELECT T1.region_id FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T2.full_name = 'Christine Jacoba Aaftink'
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: Mention the height of people who belong to region id 7.
SQL: SELECT T2.height FROM person_region AS T1 INNER JOIN person AS T2 ON T1.person_id = T2.id WHERE T1.region_id = 7
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 the city that held game id 3.
Evidence: name of city refers to city_name
SQL: SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T1.games_id = 3
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 are the id of the games held in London?
Evidence: London refers to city_name = 'London';
SQL: SELECT T1.games_id FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'London'
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: How many people who are below 30 and participated in the summer season?
Evidence: people who are below 30 refer to person_id where age < 30; the summer season refers to season = 'Summer';
SQL: SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer' AND T2.age < 30
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: List out the name of the game that the people participated in games id 13.
Evidence: name of games refers to games_name;
SQL: SELECT DISTINCT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T2.games_id = 13
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 average age of the people who participated in the winter season?
Evidence: AVG(age) where season = 'Winter';
SQL: SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Winter'
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 percentage of the people who are under 35 and participated in the summer season?
Evidence: DIVIDE(COUNT(age < 35) / COUNT(person_id)) as percentage where season = 'Summer';
SQL: SELECT CAST(COUNT(CASE WHEN T2.age < 35 THEN 1 END) AS REAL) * 100 / COUNT(T2.games_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.season = 'Summer'
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 event name of Basketball.
Evidence: basketball refers to sport_name = 'Basketball';
SQL: SELECT T2.event_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Basketball'
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 name of medal that competitor id 9 obtained?
Evidence: name of medal refers to medal_name;
SQL: SELECT DISTINCT T1.medal_name FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id WHERE T2.competitor_id = 9
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: List out the id of event that achieve the gold medal.
Evidence: the gold medal refers to medal_name = 'Gold';
SQL: SELECT T2.event_id FROM medal AS T1 INNER JOIN competitor_event AS T2 ON T1.id = T2.medal_id WHERE T1.medal_name = 'Gold'
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: Who is the heaviest athlete?
Evidence: Who refers to full_name; the heaviest refers to MAX(weight);
SQL: SELECT full_name FROM person ORDER BY weight DESC LIMIT 1
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: Which city were the Olympic games held in 1992?
Evidence: city refers to city_name; in 1992 refers to games_year = 1992;
SQL: SELECT T2.city_name FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id INNER JOIN games AS T3 ON T1.games_id = T3.id WHERE T3.games_year = 1992
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: Which region is the majority of the athletes from?
Evidence: region refers to region_name; the majority of the athletes from refer to MAX(COUNT(region_name));
SQL: SELECT T2.region_name FROM person_region AS T1 INNER JOIN noc_region AS T2 ON T1.region_id = T2.id GROUP BY T2.region_name ORDER BY COUNT(T1.person_id) DESC LIMIT 1
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 name of the oldest competitor?
Evidence: name refers to full_name; the oldest refers to MAX(age);
SQL: SELECT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T2.age 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 are the precise locations of the cities with an area code of 787?
Evidence: precise location refers to latitude, longitude
SQL: SELECT T2.latitude, T2.longitude FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = '787' GROUP BY T2.latitude, T2.longitude
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: In California, how many delivery receptacles are there in the community post office that has the highest number of delivery receptacles?
Evidence: in California refers to name = 'California' and state = 'CA'; 'Community Post Office' is the Type
SQL: SELECT COUNT(*) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.abbreviation = 'CA' AND T2.type LIKE '%Community Post Office%' AND T1.name = 'California' AND T2.state = 'CA'
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: In which county can you find the city with the highest number of females?
Evidence: highest number of females refers to Max(female_population)
SQL: SELECT T4.county FROM zip_data AS T3 INNER JOIN country AS T4 ON T3.zip_code = T4.zip_code GROUP BY T4.county ORDER BY T3.female_population 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 are the names of the states whose postal point is not affiliated with any organization?
Evidence: postal point is not affiliated with any organization refers to division is null
SQL: SELECT DISTINCT T2.name FROM zip_data AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.division IS NULL