Chinastark/bird_dataset huggingface dataset:
Database: olympics
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
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
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
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
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
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
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
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
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
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
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: olympics
Question: Which sport did John Aalberg participate in?
Evidence: sport refers to sport_name;
SQL: SELECT DISTINCT T1.sport_name FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id INNER JOIN competitor_event AS T3 ON T2.id = T3.event_id INNER JOIN games_competitor AS T4 ON T3.competitor_id = T4.id INNER JOIN person AS T5 ON T4.person_id = T5.id WHERE T5.full_name = 'John Aalberg'
Database: olympics
Question: How many Belgian men have competed in an Olympic Games?
Evidence: Belgian men refer to gender = 'M' where region_name = 'Belgium';
SQL: SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Belgium' AND T3.gender = 'M'
Database: olympics
Question: How many athletes took part in the Olympic games held in Barcelona?
Evidence: Barcelona refers to city_name = 'Barcelona';
SQL: SELECT COUNT(T1.person_id) FROM games_competitor AS T1 INNER JOIN games_city AS T2 ON T1.games_id = T2.games_id INNER JOIN city AS T3 ON T2.city_id = T3.id WHERE T3.city_name = 'Barcelona'
Database: olympics
Question: How many different football events are there?
Evidence: events refer to event_name; football refers to sport_name = 'Football';
SQL: SELECT COUNT(T2.event_name) FROM sport AS T1 INNER JOIN event AS T2 ON T1.id = T2.sport_id WHERE T1.sport_name = 'Football'
Database: olympics
Question: What were the cities in which John Aalberg competed?
Evidence: cities refer to city_name;
SQL: SELECT T4.city_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T1.full_name = 'John Aalberg'
Database: olympics
Question: In Barcelona, how many Olympic games were held?
Evidence: Barcelona refers to city_name = 'Barcelona';
SQL: SELECT COUNT(T1.games_id) FROM games_city AS T1 INNER JOIN city AS T2 ON T1.city_id = T2.id WHERE T2.city_name = 'Barcelona'
Database: olympics
Question: How many competitors over the age of 30 participated in the 1992 Winter Olympics?
Evidence: competitors over the age of 30 refer to person_id where age > 30; the 1992 Winter Olympics refers to games_name = '1992 Winter';
SQL: SELECT COUNT(T2.person_id) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1992 Winter' AND T2.age > 30
Database: olympics
Question: What is the name of the Olympic game with the most competitors held in Barcelona?
Evidence: Barcelona refers to city_name = 'Barcelona'; the most competitors refer to MAX(COUNT(games_name)); name of game refers to games_name;
SQL: SELECT T1.games_name FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN games_city AS T3 ON T2.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id WHERE T4.city_name = 'Barcelona' GROUP BY T1.id ORDER BY COUNT(T2.person_id) DESC LIMIT 1
Database: olympics
Question: List the name of competitors from Argentina.
Evidence: name refers to full_name; Argentina refers to region_name = 'Argentina';
SQL: SELECT T3.full_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Argentina'
Database: olympics
Question: What is the average age of Argentina's athletes who participated in the Summer Olympics in 2012?
Evidence: AVG(age) where games_name = '2012 Summer' and region_name = 'Argentina';
SQL: SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id INNER JOIN person_region AS T3 ON T2.person_id = T3.person_id INNER JOIN noc_region AS T4 ON T3.region_id = T4.id WHERE T1.games_name = '2012 Summer' AND T4.region_name = 'Argentina'
Database: olympics
Question: Calculate the percentage of bronze medals won by men's basketball players.
Evidence: DIVIDE(COUNT(competitor_id where medal_name = 'Bronze'), COUNT(competitor_id)) as percentage where event_name = 'Basketball Men''s Basketball';
SQL: SELECT CAST(COUNT(CASE WHEN T4.medal_name = 'Bronze' THEN 1 ELSE NULL END) AS REAL) * 100 / COUNT(T2.person_id) FROM competitor_event AS T1 INNER JOIN games_competitor AS T2 ON T1.competitor_id = T2.id INNER JOIN event AS T3 ON T1.event_id = T3.id INNER JOIN medal AS T4 ON T1.medal_id = T4.id WHERE T3.event_name LIKE 'Basketball Men%s Basketball'
Database: olympics
Question: List the name of the games that Georgios Abaris participated.
Evidence: name of games refers to games_name;
SQL: SELECT T1.games_name 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 T3.full_name = 'Georgios Abaris'
Database: olympics
Question: Provide the name of competitors from Greece.
Evidence: name refers to full_name; Greece refers to region_name = 'Greece';
SQL: SELECT T3.full_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Greece'
Database: olympics
Question: Calculate the average age of the competitors who participated in the 1924 Winter.
Evidence: AVG(age) where games_name = '1924 Winter';
SQL: SELECT AVG(T2.age) FROM games AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.games_id WHERE T1.games_name = '1924 Winter'
Database: olympics
Question: What is the NOC code of the region of the competitors weighted 77 kg?
Evidence: NOC code refers to noc; competitors weighted 77 kg refer to person_id where weight = 77;
SQL: SELECT T1.noc FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.weight = 77
Database: olympics
Question: List the names of the games held in Paris.
Evidence: Paris refers to city_name = 'Paris'; names of games refers to games_name;
SQL: SELECT T3.games_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 T2.city_name = 'Paris'
Database: olympics
Question: Provide the competitors' names who joined the 2000 Summer.
Evidence: the competitors' names refer to full_name; the 2000 Summer refers to games_name = '2000 Summer';
SQL: SELECT T3.full_name 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 = '2000 Summer'
Database: olympics
Question: In which city was the game held where the oldest competitor participated?
Evidence: in which city refers to city_name; the oldest refers to MAX(age);
SQL: SELECT T4.city_name FROM games_competitor AS T1 INNER JOIN games AS T2 ON T1.games_id = T2.id INNER JOIN games_city AS T3 ON T1.games_id = T3.games_id INNER JOIN city AS T4 ON T3.city_id = T4.id ORDER BY T1.age DESC LIMIT 1
Database: olympics
Question: What is the name of the youngest competitor?
Evidence: name refers to full_name; the youngest refers to MIN(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 LIMIT 1
Database: olympics
Question: List down the games ID of games held in Tokyo.
Evidence: Tokyo refers to city_name = 'Tokyo';
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 = 'Tokyo'
Database: olympics
Question: Give the NOC code and region name of the heaviest competitor.
Evidence: NOC code refers to noc; the heaviest refers to MAX(weight);
SQL: SELECT T1.noc, T1.region_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id ORDER BY T3.weight DESC LIMIT 1
Database: olympics
Question: In what year and season did Sohail Abbas compete?
Evidence: year refers to games_year;
SQL: SELECT T1.games_year, T1.season 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 T3.full_name = 'Sohail Abbas'
Database: olympics
Question: What is the average weight of the competitors who won a silver medal?
Evidence: AVG(weight) where medal_name = 'Silver';
SQL: SELECT AVG(T1.weight) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T4.medal_name = 'Silver'
Database: olympics
Question: In which city the 2004 Summer was held?
Evidence: in which city refers to city_name; the 2004 Summer refers to games_name = '2004 Summer';
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_name = '2004 Summer'
Database: olympics
Question: What is the season of the game where a competitor who weighted 73 kg and 180 cm tall, participated?
Evidence: competitor who weighted 73 kg and 180 cm tall refers to person_id where height = 180 and weight = 73;
SQL: SELECT DISTINCT T1.season 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 T3.height = 180 AND T3.weight = 73
Database: olympics
Question: Provide the names of competitors who received a gold medal.
Evidence: names of competitors refer to full_name; gold medal refers to medal_name = 'Gold';
SQL: SELECT DISTINCT T1.full_name FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id INNER JOIN competitor_event AS T3 ON T2.id = T3.competitor_id INNER JOIN medal AS T4 ON T3.medal_id = T4.id WHERE T4.medal_name = 'Gold'
Database: olympics
Question: Compute the average height of competitors whose age ranges from 22 to 28.
Evidence: AVG(height) where age BETWEEN 22 AND 28;
SQL: SELECT AVG(T1.height) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.age BETWEEN 22 AND 28
Database: olympics
Question: How many female competitors were from Iran?
Evidence: female competitors refer to person_id where gender = 'F'; from Iran refers to region_name = 'Iran';
SQL: SELECT COUNT(T2.person_id) FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T1.region_name = 'Iran' AND T3.gender = 'F'
Database: olympics
Question: Provide the age of the tallest competitor.
Evidence: the tallest refers to MAX(height);
SQL: SELECT T2.age FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id ORDER BY T1.height DESC LIMIT 1
Database: olympics
Question: Among the competitors with age ranges 24 and below, calculate the difference between the number of competitors who weighed greater than 70 kg and competitors who weighted less than 70 kg.
Evidence: SUBTRACT(COUNT(weight > 70), COUNT(weight < 70)) where age < 24;
SQL: SELECT COUNT(CASE WHEN T1.weight > 70 THEN 1 ELSE NULL END) - COUNT(CASE WHEN T1.weight < 70 THEN 1 ELSE NULL END) FROM person AS T1 INNER JOIN games_competitor AS T2 ON T1.id = T2.person_id WHERE T2.age < 24
Database: olympics
Question: In the 2014 Winter game, what is the percentage of competitors who age 28 years old?
Evidence: DIVIDE(COUNT(age = 28), COUNT(id)) as percentage where games_name = '2014 Winter';
SQL: SELECT CAST(COUNT(CASE WHEN T2.age = 28 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 WHERE T1.games_name = '2014 Winter'
Database: olympics
Question: Among the males, list the region name of people with height greater than 87% of the average height of all people listed.
Evidence: males refer to gender = 'M'; height greater than 87% of the average height refers to height > MULTIPLY(AVG(height), 0.87);
SQL: SELECT DISTINCT T1.region_name FROM noc_region AS T1 INNER JOIN person_region AS T2 ON T1.id = T2.region_id INNER JOIN person AS T3 ON T2.person_id = T3.id WHERE T3.gender = 'M' AND T3.height * 100 > ( SELECT AVG(height) FROM person WHERE gender = 'M' ) * 87
Database: address
Question: What is the total number of households in Arecibo county?
Evidence: "ARECIBO" is the county; total number of households refer to sum(households)
SQL: SELECT SUM(T1.households) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO'
Database: address
Question: Which residential area in Arecibo county has the highest average house value? Please give its zip_code.
Evidence: "ARECIBO" is the county; highest average house value refers to Max(avg_house_value)
SQL: SELECT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' ORDER BY T1.avg_house_value DESC LIMIT 1
Database: address
Question: Please list the numbers of males in all the residential areas in Arecibo county.
Evidence: "ARECIBO" is the county; number of males refers to Sum(male_population)
SQL: SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO'
Database: address
Question: Among all the residential areas in Delaware, how many of them implement daylight saving?
Evidence: "Delaware" is a county; implement daylight savings refers to daylight_saving = 'Yes'
SQL: SELECT COUNT(T1.zip_code) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'DELAWARE' AND T1.daylight_savings = 'Yes'
Database: address
Question: Among all the residential areas in Arecibo county, what is the zip_code of the one with the highest white population?
Evidence: "ARECIBO" is the county; highest white population refers to Max(white_population)
SQL: SELECT T1.zip_code FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' ORDER BY T1.white_population DESC LIMIT 1
Database: address
Question: In which county is the residential area with the highest average income per household located?
Evidence: highest average income per household refers to Max(avg_income_per_household)
SQL: SELECT T2.county FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T2.county = 'ARECIBO' GROUP BY T2.county ORDER BY T1.avg_income_per_household DESC LIMIT 1
Database: address
Question: Please list the names of all the counties with at least one residential area that implements daylight saving.
Evidence: implements daylight savings refers to daylight_savings = 'Yes'
SQL: SELECT DISTINCT T2.county FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code WHERE T1.daylight_savings = 'Yes'
Database: address
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
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
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
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
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
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
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
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
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
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
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: address
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
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
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
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
Database: address
Question: What is the difference in the most populated city of Allentown-Bethlehem-Easton, PA-NJ in 2020 against its population in 2010?
Evidence: "Allentown-Bethlehem-Easton, PA-NJ" is the CBSA_name; most populated city refers to Max(population_2020); difference = Subtract (population_2020, population_2011)
SQL: SELECT T1.population_2020 - T1.population_2010 AS result_data FROM zip_data AS T1 INNER JOIN CBSA AS T2 ON T1.CBSA = T2.CBSA WHERE T2.CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ' ORDER BY T1.population_2020 DESC LIMIT 1
Database: address
Question: List all the zip codes in the county of New Castle in Delaware.
Evidence: "NEW CASTLE" is the county; 'Delaware' is the name of state
SQL: SELECT DISTINCT T2.zip_code FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T2.county = 'NEW CASTLE' AND T1.name = 'Delaware'
Database: address
Question: How many representatives are there in the state with the highest monthly benefit payments for retired workers?
Evidence: state with highest monthly benefits payment for retired workers refers to Max(monthly_benefits_retired_workers)
SQL: SELECT COUNT(T3.cognress_rep_id) FROM zip_data AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation INNER JOIN congress AS T3 ON T2.abbreviation = T3.abbreviation ORDER BY T1.monthly_benefits_retired_workers DESC LIMIT 1