Dataset Viewer
Auto-converted to Parquet Duplicate
set
dict
{ "query": "How many zip codes are under Barre, VT?", "pos": [ "SELECT COUNT(T2.zip_code) FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Barre, VT'" ], "neg": [ "SELECT t.state, T1.first_name, T1.last_name FROM zip_data AS T INNER JOIN congress AS T1 ON t.state = T1...
{ "query": "What is the country and state of the city named Dalton?", "pos": [ "SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T3.city = 'Dalton' GROUP BY T2.county" ], "neg": [ "SELECT T1.alias FROM a...
{ "query": "Which state has the most bad aliases?", "pos": [ "SELECT T2.state FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T2.state ORDER BY COUNT(T1.bad_alias) DESC LIMIT 1" ], "neg": [ "SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T...
{ "query": "What is the CBSA name and type in York, ME?", "pos": [ "SELECT T1.CBSA_name, T1.CBSA_type FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'York' AND T2.state = 'ME'" ], "neg": [ "SELECT COUNT(T2.zip_code) FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T...
{ "query": "Among the residential areas with the bad alias \"Internal Revenue Service\", how many of them are in the Eastern time zone?", "pos": [ "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 =...
{ "query": "Please list the Asian populations of all the residential areas with the bad alias \"URB San Joaquin\".", "pos": [ "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'" ], "neg": [ "SELECT T3.first_name...
{ "query": "State the male population for all zip code which were under the Berlin, NH CBSA.", "pos": [ "SELECT T2.male_population FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Berlin, NH' GROUP BY T2.male_population" ], "neg": [ "SELECT CAST(COUNT(CASE WHEN state ...
{ "query": "List 10 cities with a median age over 40. Include their zip codes and area codes.", "pos": [ "SELECT T2.city, T2.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.median_age >= 40 LIMIT 10" ], "neg": [ "SELECT DISTINCT T2.zip_code FRO...
{ "query": "Among all the residential areas in Delaware, how many of them implement daylight saving?", "pos": [ "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'" ], "neg": [ "SELECT DISTINCT ...
{ "query": "What is the average household income in the city known as \"Danzig\"?", "pos": [ "SELECT T2.avg_income_per_household FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Danzig'" ], "neg": [ "SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ...
{ "query": "Among the cities belonging to the country named Arroyo, calculate the percentage of increase in the population in these cities from 2010 to 2020.", "pos": [ "SELECT CAST((SUM(T2.population_2020) - SUM(T2.population_2010)) AS REAL) * 100 / SUM(T2.population_2010) FROM country AS T1 INNER JOIN zip_dat...
{ "query": "What are the top 3 states with the highest Asian population? List the full names of all the representatives in the said states.", "pos": [ "SELECT t.state, T1.first_name, T1.last_name FROM zip_data AS T INNER JOIN congress AS T1 ON t.state = T1.abbreviation GROUP BY t.state ORDER BY SUM(t.asian_popu...
{ "query": "Provide the zip code, city, and congress representative's full names of the area which has highest population in 2020.", "pos": [ "SELECT T1.zip_code, T1.city, T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.d...
{ "query": "Compare the numbers of postal points under Smith Adrian and Heck Joe.", "pos": [ "SELECT CASE WHEN COUNT(CASE WHEN T1.first_name = 'Smith' AND T1.last_name = 'Adrian' THEN T2.zip_code ELSE NULL END) > COUNT(CASE WHEN T1.first_name = 'Heck' AND T1.last_name = 'Joe' THEN T2.zip_code ELSE NULL END) THE...
{ "query": "Calculate the percentage of congress representatives from the Democrat party. Among them, how many postal points are in the Hawaii state?", "pos": [ "SELECT CAST(SUM(CASE WHEN T1.party = 'Democrat' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(*), SUM(CASE WHEN T1.state = 'Hawaii' THEN 1 ELSE 0 END) FRO...
{ "query": "Among the cities with area code 608, how many cities implement daylight savings?", "pos": [ "SELECT COUNT(T2.city) FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.area_code = 608 AND T2.daylight_savings = 'Yes'" ], "neg": [ "SELECT DISTINCT T2.name FROM c...
{ "query": "List down the area code and country of the city named Savoy.", "pos": [ "SELECT T1.area_code, T2.county FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN zip_data AS T3 ON T1.zip_code = T3.zip_code WHERE T3.city = 'Savoy'" ], "neg": [ "SELECT COUNT(T2.coun...
{ "query": "Provide the zip codes and coordinates of the postal points under Allentown-Bethlehem-Easton, PA-NJ.", "pos": [ "SELECT T2.zip_code, T2.latitude, T2.longitude FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Allentown-Bethlehem-Easton, PA-NJ'" ], "neg": [ "...
{ "query": "In the state where Lisa Murkowski is the representative, how many cities have zero employees?", "pos": [ "SELECT COUNT(T3.city) FROM congress AS T1 INNER JOIN state AS T2 ON T1.abbreviation = T2.abbreviation INNER JOIN zip_data AS T3 ON T2.abbreviation = T3.state WHERE T1.first_name = 'Murkowski' AN...
{ "query": "Please list the zip_codes of all the residential areas in Huntingdon county with over 30 employees.", "pos": [ "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" ], "neg": [ "SELECT T1.z...
{ "query": "Name 10 cities with their states that are under the Lexington-Fayette, KY office of the Canada Border Services Agency.", "pos": [ "SELECT DISTINCT T2.city, T2.state FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'Lexington-Fayette, KY' LIMIT 10" ], "neg": [ ...
{ "query": "Tell the name of the county which is represented by Hartzler Vicky.", "pos": [ "SELECT T1.county FROM country AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T3.first_name = 'Hartzler' AND T3.last_name = 'Vicky' GRO...
{ "query": "Which city and state has the bad alias of Lawrenceville?", "pos": [ "SELECT T2.city, T2.state FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.bad_alias = 'Lawrenceville' GROUP BY T2.city, T2.state" ], "neg": [ "SELECT T1.zip_code FROM zip_data AS T1 INNER JOI...
{ "query": "What is the area code of Bishopville, SC?", "pos": [ "SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Bishopville' AND T2.state = 'SC'" ], "neg": [ "SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation ...
{ "query": "Which city has the most bad aliases?", "pos": [ "SELECT T2.city FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code GROUP BY T1.bad_alias ORDER BY COUNT(T1.zip_code) DESC LIMIT 1" ], "neg": [ "SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code =...
{ "query": "Give at least five alias of cities with a postal point of post office.", "pos": [ "SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.type = 'Post Office' LIMIT 5" ], "neg": [ "SELECT T1.area_code, T2.county FROM area_code AS T1 INNER JOIN countr...
{ "query": "What percentage of households are in \"Coroyell\" out of its state?", "pos": [ "SELECT CAST(SUM(CASE WHEN T1.county = 'CORYELL' THEN T2.households ELSE 0 END) AS REAL) * 100 / SUM(T2.households) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code" ], "neg": [ "SELECT T2...
{ "query": "Provide the congress representatives' IDs of the postal points in East Springfield.", "pos": [ "SELECT T2.district FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code WHERE T1.city = 'East Springfield'" ], "neg": [ "SELECT CAST(T1.male_population AS REAL) / T1.fema...
{ "query": "Provide the zip codes and area codes of the postal points with the community post office type at the elevation above 6000.", "pos": [ "SELECT T1.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.type = 'Community Post Office ' AND T2.elevatio...
{ "query": "In which county is the residential area with the highest average income per household located?", "pos": [ "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" ],...
{ "query": "Please list the bad alias of all the residential areas with a median female age of over 32.", "pos": [ "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" ], "neg": [ "SELECT T2.male_population FROM CBSA AS T1...
{ "query": "Which district has the largest land area in Wisconsin? Write the full name of the congress representative and include the postal codes.", "pos": [ "SELECT T2.zip_code, T1.first_name, T1.last_name FROM congress AS T1 INNER JOIN zip_congress AS T2 ON T1.cognress_rep_id = T2.district WHERE T1.state = '...
{ "query": "How many counties are there in Alabama?", "pos": [ "SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Alabama'" ], "neg": [ "SELECT DISTINCT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHER...
{ "query": "Calculate the average number of beneficiaries per postal point in Guam.", "pos": [ "SELECT CAST(SUM(T2.total_beneficiaries) AS REAL) / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Guam'" ], "neg": [ "SELECT T1.zip_code FROM coun...
{ "query": "Which zip code in Massachusetts that have more than 1 area code?", "pos": [ "SELECT T1.zip_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'MA' GROUP BY T1.zip_code HAVING COUNT(T1.area_code) > 1" ], "neg": [ "SELECT AVG(T2.elevation) FROM al...
{ "query": "Provide the zip codes and the alias of Greeneville.", "pos": [ "SELECT T2.zip_code, T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.city = 'Greeneville'" ], "neg": [ "SELECT DISTINCT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T2 ON T1.zip_c...
{ "query": "Calculate the average male median age of all the residential areas in Windham county.", "pos": [ "SELECT SUM(T2.male_median_age) / COUNT(T2.median_age) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'WINDHAM'" ], "neg": [ "SELECT T4.county FROM zi...
{ "query": "What is the average median female age of all the residential areas in the Arecibo county?", "pos": [ "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'" ], "neg": [ "SELECT T1.alias FROM...
{ "query": "Indicate the name of the country with a population greater than 10000 in 2010.", "pos": [ "SELECT DISTINCT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2010 > 10000" ], "neg": [ "SELECT T4.county FROM zip_data AS T3 INNER JOIN countr...
{ "query": "How many states are in the central time zone? Write their full names.", "pos": [ "SELECT SUM(CASE WHEN T1.time_zone = 'Central' THEN 1 ELSE 0 END) AS count FROM zip_data AS T1 INNER JOIN state AS T2 ON T2.abbreviation = T1.state WHERE T1.time_zone = 'Central'" ], "neg": [ "SELECT SUM(T1.hous...
{ "query": "Among the zip code under Saint Croix county, which zip code has the biggest land area?", "pos": [ "SELECT T1.zip_code FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'SAINT CROIX' ORDER BY T2.land_area DESC LIMIT 1" ], "neg": [ "SELECT t.state, T1....
{ "query": "List all the bad alias for zip codes in Puerto Rico.", "pos": [ "SELECT T1.bad_alias FROM avoid AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.state = 'PR'" ], "neg": [ "SELECT SUM(T2.population_2020) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip...
{ "query": "Provide the average elevation of the cities with alias Amherst.", "pos": [ "SELECT AVG(T2.elevation) FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.alias = 'Amherst'" ], "neg": [ "SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_c...
{ "query": "Provide the zip codes and the congress representatives' names of the postal points which are affiliated with Readers Digest.", "pos": [ "SELECT T1.zip_code, T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.dist...
{ "query": "Calculate the ratio between the number of representatives in Alabama and the number of representatives in Illinois.", "pos": [ "SELECT CAST(COUNT(CASE WHEN state = 'Alabama' THEN cognress_rep_id ELSE NULL END) AS REAL) / COUNT(CASE WHEN state = 'Illinois' THEN cognress_rep_id ELSE NULL END) FROM con...
{ "query": "How many males are there in New Haven County's residential areas?", "pos": [ "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 = 'NEW HAVEN'" ], "neg": [ "SELECT DISTINCT T2.state FROM state AS T1 INNER JOIN zip_data AS ...
{ "query": "What is the area code of Phillips county in Montana?", "pos": [ "SELECT DISTINCT T1.area_code FROM area_code AS T1 INNER JOIN country AS T2 ON T1.zip_code = T2.zip_code INNER JOIN state AS T3 ON T2.state = T3.abbreviation WHERE T2.county = 'PHILLIPS' AND T3.name = 'Montana'" ], "neg": [ "SEL...
{ "query": "Which state is Outagamie County in? Give the full name of the state.", "pos": [ "SELECT DISTINCT T2.name FROM country AS T1 INNER JOIN state AS T2 ON T1.state = T2.abbreviation WHERE T1.county = 'OUTAGAMIE'" ], "neg": [ "SELECT T1.zip_code, T1.city, T3.first_name, T3.last_name FROM zip_data ...
{ "query": "What is the elevation of the city belonging to Hampden, Massachusetts?", "pos": [ "SELECT T3.elevation FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state INNER JOIN zip_data AS T3 ON T2.zip_code = T3.zip_code WHERE T1.name = 'Massachusetts' AND T2.county = 'HAMPDEN' GROUP BY T3....
{ "query": "Show the alias for the county at coordinate (18.090875, -66.867756).", "pos": [ "SELECT T2.alias FROM zip_data AS T1 INNER JOIN alias AS T2 ON T1.zip_code = T2.zip_code WHERE T1.latitude = 18.090875 AND T1.longitude = -66.867756" ], "neg": [ "SELECT DISTINCT T2.zip_code FROM state AS T1 INNE...
{ "query": "What are the states with an above-average female population?", "pos": [ "SELECT DISTINCT T2.state FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T2.female_population > ( SELECT AVG(female_population) FROM zip_data )" ], "neg": [ "SELECT T1.CBSA_name, T1.CBSA_t...
{ "query": "What is the difference in the number of cities with P.O. box only and cities with Post Office among the cities with area code 787?", "pos": [ "SELECT COUNT(CASE WHEN T2.type = 'P.O. Box Only' THEN 1 ELSE NULL END) - COUNT(CASE WHEN T2.type = 'Post Office' THEN 1 ELSE NULL END) AS DIFFERENCE FROM are...
{ "query": "Give the location coordinates of the city with area code 636.", "pos": [ "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 = 636" ], "neg": [ "SELECT DISTINCT T2.bad_alias FROM zip_data AS T1 INNER JOIN avoid AS T...
{ "query": "How many postal points with unique post office types are there in Ohio?", "pos": [ "SELECT COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Ohio' AND T2.type = 'Unique Post Office'" ], "neg": [ "SELECT T2.county FROM state AS T1 INN...
{ "query": "Give the alias of the cities with an Asian population of 7.", "pos": [ "SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.asian_population = 7" ], "neg": [ "SELECT SUM(T1.male_population) FROM zip_data AS T1 INNER JOIN country AS T2 ON T1.zip_co...
{ "query": "Among all the residential areas in Arecibo county, what is the zip_code of the one with the highest white population?", "pos": [ "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" ], ...
{ "query": "Indicate the name of the congressman represent in Guanica.", "pos": [ "SELECT T3.first_name, T3.last_name FROM zip_data AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id WHERE T1.city = 'Guanica'" ], "neg": [ "SELEC...
{ "query": "List down the country of the cities with a population greater than 97% of the average population of all countries in 2020.", "pos": [ "SELECT T1.county FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2020 > 0.97 * ( SELECT AVG(population_2020) FROM zip_d...
{ "query": "Count the number of postal points under New York-Newark-Jersey City, NY-NJ-PA.", "pos": [ "SELECT COUNT(T2.zip_code) FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T1.CBSA_name = 'New York-Newark-Jersey City, NY-NJ-PA'" ], "neg": [ "SELECT DISTINCT T1.area_code FROM are...
{ "query": "Provide the zip codes and CBSA officers of the postal point in Oxford.", "pos": [ "SELECT T2.zip_code, T1.CBSA_name FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'Oxford'" ], "neg": [ "SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE ...
{ "query": "Among the postal points in California, calculate the percentage of them in post office types.", "pos": [ "SELECT CAST(COUNT(CASE WHEN T2.type = 'Post Office' THEN T2.zip_code ELSE NULL END) AS REAL) * 100 / COUNT(T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state W...
{ "query": "Provide the population of Arecibo in 2020.", "pos": [ "SELECT SUM(T2.population_2020) FROM country AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T1.county = 'ARECIBO'" ], "neg": [ "SELECT CAST(SUM(T2.total_beneficiaries) AS REAL) / COUNT(T2.zip_code) FROM state AS T1 INN...
{ "query": "Among the listed cities, provide the area code of the city with the largest water area.", "pos": [ "SELECT T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.water_area = ( SELECT MAX(water_area) FROM zip_data )" ], "neg": [ "SELECT COUNT(DISTIN...
{ "query": "What is the highest gender ratio of the residential areas in Arecibo county?", "pos": [ "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 ...
{ "query": "Among the postal points in Texas, provide the zip codes and cities of postal points which have total beneficiaries of above 10000.", "pos": [ "SELECT T2.zip_code, T2.city FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Texas' AND T2.total_beneficiaries > 100...
{ "query": "What is the total number of households in Arecibo county?", "pos": [ "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'" ], "neg": [ "SELECT T2.zip_code, T2.latitude, T2.longitude FROM CBSA AS T1 INNER JOIN zip_dat...
{ "query": "What are the precise locations of the cities with an area code of 787?", "pos": [ "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" ], "neg": [ "SELECT T2.latitude, T2.l...
{ "query": "How many counties are there in Virginia State?", "pos": [ "SELECT COUNT(T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Virginia'" ], "neg": [ "SELECT COUNT(DISTINCT T2.zip_code) FROM state AS T1 INNER JOIN zip_data AS T2 ON T1.abbreviation...
{ "query": "In which county can you find the city with the highest number of females?", "pos": [ "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" ], "neg": [ "SELECT T2.avg_income_per_household FROM...
{ "query": "List all the zip codes in the county of New Castle in Delaware.", "pos": [ "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'" ], "neg": [ "SELECT T1.county FROM country AS T1 INNER JOIN...
{ "query": "What is the name and the position of the CBSA officer in the city of Cabo Rojo?", "pos": [ "SELECT T1.CBSA_name, T1.CBSA_type FROM CBSA AS T1 INNER JOIN zip_data AS T2 ON T1.CBSA = T2.CBSA WHERE T2.city = 'Cabo Rojo' GROUP BY T1.CBSA_name, T1.CBSA_type" ], "neg": [ "SELECT T2.zip_code, T2.la...
{ "query": "What is the bad alias of the residential area with the highest average house value?", "pos": [ "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" ], "neg": [ "SELECT T1...
{ "query": "In California, how many delivery receptacles are there in the community post office that has the highest number of delivery receptacles?", "pos": [ "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...
{ "query": "Describe the number of postal points and the countries in West Virginia.", "pos": [ "SELECT COUNT(DISTINCT T2.zip_code), COUNT(DISTINCT T2.county) FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'West Virginia'" ], "neg": [ "SELECT T1.zip_code FROM cou...
{ "query": "Provide the alias of the city with the highest population in year 2020.", "pos": [ "SELECT T1.alias FROM alias AS T1 INNER JOIN zip_data AS T2 ON T1.zip_code = T2.zip_code WHERE T2.population_2020 = ( SELECT MAX(population_2020) FROM zip_data )" ], "neg": [ "SELECT DISTINCT T1.county FROM co...
{ "query": "List all the counties in Georgia.", "pos": [ "SELECT T2.county FROM state AS T1 INNER JOIN country AS T2 ON T1.abbreviation = T2.state WHERE T1.name = 'Georgia' GROUP BY T2.county" ], "neg": [ "SELECT T2.city, T2.zip_code, T1.area_code FROM area_code AS T1 INNER JOIN zip_data AS T2 ON T1.zip...
{ "query": "How many post offices are there in New York?", "pos": [ "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'" ], "neg": [ "SELECT T3.elevation FROM state AS T1 INNER JOIN country ...
{ "query": "For the county where DeSantis Ron is from, what is the average female median age?", "pos": [ "SELECT SUM(T4.female_median_age) / COUNT(T1.county) FROM country AS T1 INNER JOIN zip_congress AS T2 ON T1.zip_code = T2.zip_code INNER JOIN congress AS T3 ON T2.district = T3.cognress_rep_id INNER JOIN zip...
{ "query": "For the flight on 2018/8/1 that was delayed for the longest time, which was the destination airport of this flight?", "pos": [ "SELECT T1.Description FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/1' ORDER BY T2.DEP_DELAY DESC LIMIT 1" ], "neg": [ ...
{ "query": "Which airline operated more flights on 2018/8/1, American Airlines Inc. or Endeavor Air Inc.?", "pos": [ "SELECT CASE WHEN COUNT(CASE WHEN T3.Description = 'American Airlines Inc.: AA' THEN 1 ELSE NULL END) > COUNT(CASE WHEN T3.Description = 'Endeavor Air Inc.: 9E' THEN 1 ELSE NULL END) THEN 'Americ...
{ "query": "For the flight with the tail number 'N702SK', which air carrier does it belong to?", "pos": [ "SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.TAIL_NUM = 'N702SK' GROUP BY T2.Description" ], "neg": [ "SELECT CAST(SUM(CA...
{ "query": "What is the actual departure time of JetBlue Airways with the plane's tail number N903JB to Fort Lauderdale-Hollywood International Airport on the 20th of August 2018?", "pos": [ "SELECT T1.DEP_TIME FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code INNER JOIN ...
{ "query": "List the air carrier description and code of the flight with the shortest arrival time.", "pos": [ "SELECT T1.Description, T1.Code FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID ORDER BY T2.ARR_TIME ASC LIMIT 1" ], "neg": [ "SELECT T3.Description FR...
{ "query": "What is the only flight destination for flights from Albany?", "pos": [ "SELECT DEST FROM Airlines WHERE ORIGIN = 'ABY' GROUP BY DEST" ], "neg": [ "SELECT CAST( SUM(CASE WHEN T2.FL_DATE LIKE '2018/8%' THEN 1 ELSE 0 END) AS REAL) / 31 FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code =...
{ "query": "Provide the number of airplanes that landed on Oakland Airport on 2018/8/7.", "pos": [ "SELECT SUM(CASE WHEN T1.Description LIKE '%Oakland%' THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.DEST WHERE T2.FL_DATE = '2018/8/7'" ], "neg": [ "SELECT T2.DE...
{ "query": "What is the name of the airline with the highest number of non-cancelled flights?", "pos": [ "SELECT T2.Description FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.CANCELLED = 0 GROUP BY T2.Description ORDER BY COUNT(T1.CANCELLED) DESC LIMIT 1" ],...
{ "query": "How many flights of air carrier called JetBlue Airways: B6 have 0 new arrival delay?", "pos": [ "SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%JetBlue Airways: B6%' AND T2.ARR_DELAY_NEW = 0" ], "neg": [ "...
{ "query": "Provide the origin of the flight that has the shortest actual elapsed time.", "pos": [ "SELECT ORIGIN FROM Airlines ORDER BY ACTUAL_ELAPSED_TIME ASC LIMIT 1" ], "neg": [ "SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T1.ORIGIN = T2.Code WHERE T1.ORIGIN = 'CLT' AND T1.DEST ...
{ "query": "Which airport did Republic Airline fly the most from?", "pos": [ "SELECT T2.DEST FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description = 'Republic Airline: YX' GROUP BY T2.DEST ORDER BY COUNT(T2.DEST) DESC LIMIT 1" ], "neg": [ "SELECT ...
{ "query": "What is the average departure delay time of flights operated by American Airlines Inc.?", "pos": [ "SELECT AVG(T1.DEP_DELAY) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T2.Code = T1.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T1.OP_CARRIER_AIRLINE_ID = T3.Code WHERE T3.Description = 'American Air...
{ "query": "What is the total number of flights that flew on August 2, 2018 with air carrier described as Horizon Air?", "pos": [ "SELECT COUNT(*) FROM `Air Carriers` AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.OP_CARRIER_AIRLINE_ID WHERE T1.Description LIKE '%Horizon Air%' AND T2.FL_DATE = '2018/8/2'" ],...
{ "query": "How many planes of Spirit Air Lines took off on 2018/8/7?", "pos": [ "SELECT COUNT(T2.Code) FROM Airlines AS T1 INNER JOIN `Air Carriers` AS T2 ON T1.OP_CARRIER_AIRLINE_ID = T2.Code WHERE T1.FL_DATE = '2018/8/7' AND T2.Description = 'Spirit Air Lines: NK'" ], "neg": [ "SELECT SUM(CASE WHEN T...
{ "query": "How many flights from Charlotte Douglas International Airport to Austin - Bergstrom International Airport experienced serious reasons that cause flight cancellation?", "pos": [ "SELECT COUNT(*) FROM Airlines AS T1 INNER JOIN Airports AS T2 ON T1.ORIGIN = T2.Code WHERE T1.ORIGIN = 'CLT' AND T1.DEST =...
{ "query": "What is the percentage of flights from Los Angeles International airport that were cancelled due to a type C cancellation code?", "pos": [ "SELECT CAST(SUM(CASE WHEN T2.CANCELLATION_CODE = 'C' THEN 1.0 ELSE 0 END) AS REAL) * 100 / COUNT(*) FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T...
{ "query": "How many flights operated by American Airlines Inc. on 2018/8/1 were faster than scheduled?", "pos": [ "SELECT SUM(CASE WHEN T2.ACTUAL_ELAPSED_TIME < CRS_ELAPSED_TIME THEN 1 ELSE 0 END) AS count FROM Airports AS T1 INNER JOIN Airlines AS T2 ON T1.Code = T2.ORIGIN INNER JOIN `Air Carriers` AS T3 ON T...
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
7