question
stringlengths 12
244
| create_table_statement
stringlengths 97
895
| sql_query
stringlengths 27
479
| wiki_sql_table_id
stringlengths 8
14
|
---|---|---|---|
What is the first year of the European Championships competition? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT MIN("year") FROM "achievements" WHERE "competition"='european championships'; | 2-12583435-1 |
Which position has a venue of Helsinki, Finland? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "position" FROM "achievements" WHERE "venue"='helsinki, finland'; | 2-12583435-1 |
What is the date that a hell ship sunk in the East China Sea? | CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
); | SELECT "date" FROM "world_war_ii" WHERE "where_sunk"='east china sea' AND "ship_type"='hell ship'; | 2-13046272-3 |
Which nation had a battlecruiser with an estimate of 513? | CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
); | SELECT "nat" FROM "world_war_ii" WHERE "ship_type"='battlecruiser' AND "estimate"='513'; | 2-13046272-3 |
What is the date that a ship sank in the South Atlantic? | CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
); | SELECT "date" FROM "world_war_ii" WHERE "where_sunk"='south atlantic'; | 2-13046272-3 |
What type of ship was the Shinano? | CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
); | SELECT "ship_type" FROM "world_war_ii" WHERE "name"='shinano'; | 2-13046272-3 |
What nation had a ship named Roma? | CREATE TABLE "world_war_ii" (
"estimate" text,
"name" text,
"nat" text,
"ship_type" text,
"where_sunk" text,
"date" text
); | SELECT "nat" FROM "world_war_ii" WHERE "name"='roma'; | 2-13046272-3 |
What was score of the Blue Jays' game versus the Indians when their record was 21-19? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "score" FROM "game_log" WHERE "opponent"='indians' AND "record"='21-19'; | 2-12206243-6 |
What city has a team in south division with a home arena with a greater capacity than 6,900 and named cloetta center? | CREATE TABLE "list" (
"division" text,
"team" text,
"city" text,
"home_arena" text,
"capacity" real,
"joined_nt_et" text
); | SELECT "city" FROM "list" WHERE "capacity">'6,900' AND "division"='south' AND "home_arena"='cloetta center'; | 2-13033092-1 |
During what years did the tallest building, located at 211 Union Street, have less than 31 floors? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors"<31 AND "street_address"='211 union street'; | 2-12169960-3 |
What is the average number of floors at 170 Fourth Avenue North? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT AVG("floors") FROM "timeline_of_tallest_buildings" WHERE "street_address"='170 fourth avenue north'; | 2-12169960-3 |
What is the address of the Life & Casualty Tower? | CREATE TABLE "timeline_of_tallest_buildings" (
"name" text,
"street_address" text,
"years_as_tallest" text,
"height_ft_m" text,
"floors" real
); | SELECT "street_address" FROM "timeline_of_tallest_buildings" WHERE "name"='life & casualty tower'; | 2-12169960-3 |
What is listed as the Tie no for Home team of Gillingham? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "tie_no" FROM "southern_section" WHERE "home_team"='gillingham'; | 2-12962079-4 |
What is the Tie no listed for the Away team of Barnet? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "tie_no" FROM "southern_section" WHERE "away_team"='barnet'; | 2-12962079-4 |
What is listed for the Attendance that has a Tie no of 5? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "attendance" FROM "southern_section" WHERE "tie_no"='5'; | 2-12962079-4 |
Which Away team has a Tie no of 4? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "away_team" FROM "southern_section" WHERE "tie_no"='4'; | 2-12962079-4 |
Which Home Team has an Attendance of 1,859? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "home_team" FROM "southern_section" WHERE "attendance"='1,859'; | 2-12962079-4 |
What is listed as the Away team for the Home team of the Bristol Rovers? | CREATE TABLE "southern_section" (
"tie_no" text,
"home_team" text,
"score" text,
"away_team" text,
"attendance" text
); | SELECT "away_team" FROM "southern_section" WHERE "home_team"='bristol rovers'; | 2-12962079-4 |
What is the total of the first season in Segunda División that has a City of cañete? | CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"field" text,
"top_division_titles" real,
"last_top_division_title" text
); | SELECT SUM("first_season_of_current_spell_in_segunda_divisi_n") FROM "clubs" WHERE "city"='cañete'; | 2-12335018-1 |
Which team has Top division titles larger than 0, a Founded larger than 1927, and a Stadium of miguel grau? | CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"field" text,
"top_division_titles" real,
"last_top_division_title" text
); | SELECT "team" FROM "clubs" WHERE "top_division_titles">0 AND "founded">1927 AND "stadium"='miguel grau'; | 2-12335018-1 |
Which city has a First season of current spell in Segunda División smaller than 2013? | CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"field" text,
"top_division_titles" real,
"last_top_division_title" text
); | SELECT "city" FROM "clubs" WHERE "first_season_of_current_spell_in_segunda_divisi_n"<2013; | 2-12335018-1 |
What is the smallest capacity for a First season in Segunda División of 2013, and Top division titles larger than 0? | CREATE TABLE "clubs" (
"team" text,
"city" text,
"founded" real,
"first_season_in_segunda_divisi_n" real,
"first_season_of_current_spell_in_segunda_divisi_n" real,
"stadium" text,
"capacity" real,
"field" text,
"top_division_titles" real,
"last_top_division_title" text
); | SELECT MIN("capacity") FROM "clubs" WHERE "first_season_in_segunda_divisi_n"=2013 AND "top_division_titles">0; | 2-12335018-1 |
What's the total enrollment ofr Mcgill University that has a capacity less than 25,012? | CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" text,
"capacity" real
); | SELECT COUNT("enrollment") FROM "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" WHERE "institution"='mcgill university' AND "capacity"<'25,012'; | 2-12896884-3 |
What's the smallest season for Montreal that's greater than 5,100 for capacity? | CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" text,
"capacity" real
); | SELECT MIN("first_season") FROM "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" WHERE "city"='montreal' AND "capacity">'5,100'; | 2-12896884-3 |
What's the name of the city whose first season was in 1996? | CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" text,
"capacity" real
); | SELECT "city" FROM "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" WHERE "first_season"=1996; | 2-12896884-3 |
What's the name of the school that had an enrollment greater than 37,591 with the concordia stadium? | CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" text,
"capacity" real
); | SELECT "institution" FROM "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" WHERE "enrollment">'37,591' AND "football_stadium"='concordia stadium'; | 2-12896884-3 |
What's the name of the carabins stadium? | CREATE TABLE "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" (
"institution" text,
"team" text,
"city" text,
"province" text,
"first_season" real,
"head_coach" text,
"enrollment" real,
"football_stadium" text,
"capacity" real
); | SELECT "football_stadium" FROM "r_seau_du_sport_tudiant_du_qu_bec_dunsmo" WHERE "team"='carabins'; | 2-12896884-3 |
what team has the qual 2 of 1:44.050? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "best" FROM "qualifying_results" WHERE "qual_2"='1:44.050'; | 2-12719328-1 |
what name goes along with the team of forsythe racing, and a Qual 2 of 1:47.132? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "name" FROM "qualifying_results" WHERE "team"='forsythe racing' AND "qual_2"='1:47.132'; | 2-12719328-1 |
what team had the 1:44.027 qual 2? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "team" FROM "qualifying_results" WHERE "qual_2"='1:44.027'; | 2-12719328-1 |
what is the qual 1 for alex tagliani? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "qual_1" FROM "qualifying_results" WHERE "name"='alex tagliani'; | 2-12719328-1 |
what is the team with the best of 1:43.134? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" text,
"best" text
); | SELECT "team" FROM "qualifying_results" WHERE "best"='1:43.134'; | 2-12719328-1 |
What Women's Doubles team played after 2004 and where Line Isberg played Women's Singles? | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "women_s_doubles" FROM "winners" WHERE "year">2004 AND "women_s_singles"='line isberg'; | 2-12209832-1 |
After 1999, who played Men's Doubles when Kasper Ipsen played Men's Singles? | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "men_s_doubles" FROM "winners" WHERE "year">1999 AND "men_s_singles"='kasper ipsen'; | 2-12209832-1 |
In 2010, who was the Women's Singles player? | CREATE TABLE "winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "women_s_singles" FROM "winners" WHERE "year"=2010; | 2-12209832-1 |
Who was the visiting team at the matchup at the RCA Dome? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "visiting_team" FROM "1994" WHERE "stadium"='rca dome'; | 2-13193466-9 |
What was the final score in the game in which the Detroit Lions were the home team? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "final_score" FROM "1994" WHERE "host_team"='detroit lions'; | 2-13193466-9 |
Which stadium hosted the November 20 game? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "stadium" FROM "1994" WHERE "date"='november 20'; | 2-13193466-9 |
Who was the visiting team against the Minnesota Vikings? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "visiting_team" FROM "1994" WHERE "host_team"='minnesota vikings'; | 2-13193466-9 |
Who was the host team at Candlestick Park? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "host_team" FROM "1994" WHERE "stadium"='candlestick park'; | 2-13193466-9 |
Which date had a final score of 20-27? | CREATE TABLE "1994" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "date" FROM "1994" WHERE "final_score"='20-27'; | 2-13193466-9 |
How many years have had the position of 2nd? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT COUNT("year") FROM "achievements" WHERE "position"='2nd'; | 2-12955561-1 |
What position had notes of 20km and a year earlier than 2002? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "position" FROM "achievements" WHERE "notes"='20km' AND "year"<2002; | 2-12955561-1 |
What was the venue before 2006, with the position of 10th? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "venue" FROM "achievements" WHERE "year"<2006 AND "position"='10th'; | 2-12955561-1 |
What were the notes when the Venue was Turin, Italy? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"notes" text
); | SELECT "notes" FROM "achievements" WHERE "venue"='turin, italy'; | 2-12955561-1 |
What is Gareth Morgan's Secondary Military Specialty? | CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text,
"equipment" text
); | SELECT "secondary_military_speciality" FROM "characters" WHERE "real_name"='gareth morgan'; | 2-12339816-1 |
What is the Code Name of the figure born in Hawaii? | CREATE TABLE "characters" (
"code_name" text,
"function_figure" text,
"real_name" text,
"birthplace" text,
"serial_number" text,
"primary_military_speciality" text,
"secondary_military_speciality" text,
"equipment" text
); | SELECT "code_name" FROM "characters" WHERE "birthplace"='hawaii'; | 2-12339816-1 |
Name the last title for greater buenos aires and first season of 1920 | CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
); | SELECT "last_title" FROM "current_teams" WHERE "area_province"='greater buenos aires' AND "first_season"='1920'; | 2-1211728-1 |
Name the area for District of córdoba | CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
); | SELECT "area_province" FROM "current_teams" WHERE "district"='córdoba'; | 2-1211728-1 |
Name the last title for club of quilmes | CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
); | SELECT "last_title" FROM "current_teams" WHERE "club"='quilmes'; | 2-1211728-1 |
Name the last time for club of newell's old boys | CREATE TABLE "current_teams" (
"club" text,
"district" text,
"area_province" text,
"stadium" text,
"first_season" text,
"last_title" text
); | SELECT "last_title" FROM "current_teams" WHERE "club"='newell''s old boys'; | 2-1211728-1 |
Name the averag scored for 2011 long teng cup and 2 october 2011 | CREATE TABLE "international_career" (
"date" text,
"venue" text,
"result" text,
"scored" real,
"competition" text
); | SELECT AVG("scored") FROM "international_career" WHERE "competition"='2011 long teng cup' AND "date"='2 october 2011'; | 2-13035867-2 |
Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? | CREATE TABLE "le_series_models" (
"colt_model_no" text,
"stock" text,
"fire_control" text,
"rear_sight" text,
"forward_assist" text,
"barrel_length" text,
"barrel_profile" text,
"barrel_twist" text,
"hand_guards" text,
"bayonet_lug" text,
"muzzle_device" text
); | SELECT "barrel_twist" FROM "le_series_models" WHERE "barrel_length"='11.5 in.'; | 2-12834315-5 |
What is the region total before 1986 with a Waggamba of 2,732, and a Goondiwindi less than 3,576? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT SUM("region_total") FROM "population" WHERE "year"<1986 AND "waggamba"='2,732' AND "goondiwindi"<'3,576'; | 2-12591228-1 |
What is the average year that had a value less than 2,575 in Inglewood? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT AVG("year") FROM "population" WHERE "inglewood"<'2,575'; | 2-12591228-1 |
What is the highest value in Waggamba were Inglewwod had 2,771, but Goondiwindi had less than 4,374? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT MAX("waggamba") FROM "population" WHERE "inglewood"='2,771' AND "goondiwindi"<'4,374'; | 2-12591228-1 |
What is the lost amount in Goondiwindi after 2001, and Inglewood had more than 2,586? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT MIN("goondiwindi") FROM "population" WHERE "inglewood">'2,586' AND "year">2001; | 2-12591228-1 |
In 1996, what was the value for Inglewood when Goondiwindi had more than 4,374, and there is a region total higher than 9,114? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT AVG("inglewood") FROM "population" WHERE "region_total">'9,114' AND "year"=1996 AND "goondiwindi">'4,374'; | 2-12591228-1 |
What is the region total after 2001 when Goondiwindi had more than 4,103 and Inglewood was at 2,613? | CREATE TABLE "population" (
"year" real,
"region_total" real,
"goondiwindi" real,
"waggamba" real,
"inglewood" real
); | SELECT COUNT("region_total") FROM "population" WHERE "goondiwindi">'4,103' AND "inglewood"='2,613' AND "year">2001; | 2-12591228-1 |
What is the nature of the incident in Kabul on 2004-01-28? | CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "nature_of_incident" FROM "2004" WHERE "location"='kabul' AND "date"='2004-01-28'; | 2-12378453-3 |
What is the nature of the incident that's a bomb attack? | CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "nature_of_incident" FROM "2004" WHERE "circumstances"='bomb attack'; | 2-12378453-3 |
What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? | CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "nature_of_incident" FROM "2004" WHERE "casualties"='3 wia' AND "circumstances"='ied'; | 2-12378453-3 |
Which Casualties have a Location of kunduz, and Circumstances of suicide? | CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "casualties" FROM "2004" WHERE "location"='kunduz' AND "circumstances"='suicide'; | 2-12378453-3 |
Which Casualties have a hostile Nature of incident and Circumstances of mortar attack? | CREATE TABLE "2004" (
"date" text,
"location" text,
"nature_of_incident" text,
"circumstances" text,
"casualties" text
); | SELECT "casualties" FROM "2004" WHERE "nature_of_incident"='hostile' AND "circumstances"='mortar attack'; | 2-12378453-3 |
When was the delegate who has previous experience as a commissioner of health born? | CREATE TABLE "delegates" (
"district" text,
"party" text,
"religion" text,
"former_experience" text,
"assumed_office" real,
"born_in" real
); | SELECT "born_in" FROM "delegates" WHERE "former_experience"='commissioner of health'; | 2-12498224-7 |
What is the name of the airport in the city of Kota Kinabalu? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "airport" FROM "see_also" WHERE "city"='kota kinabalu'; | 2-1281247-2 |
What is the IATA for the city of Amsterdam? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "iata" FROM "see_also" WHERE "city"='amsterdam'; | 2-1281247-2 |
Which country has an IATA of JFK? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "country" FROM "see_also" WHERE "iata"='jfk'; | 2-1281247-2 |
Which city has an IATA of AUH? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "city" FROM "see_also" WHERE "iata"='auh'; | 2-1281247-2 |
Which airport has an IATA of AMS? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "airport" FROM "see_also" WHERE "iata"='ams'; | 2-1281247-2 |
Which city has an ICAO of Kiah? | CREATE TABLE "see_also" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "city" FROM "see_also" WHERE "icao"='kiah'; | 2-1281247-2 |
What Genre did Sándor Simó direct? | CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
); | SELECT "genre" FROM "actor" WHERE "directed_by"='sándor simó'; | 2-12971476-3 |
What is the Genre for Malina (ger.-aus.-fr.), an Original Title? | CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
); | SELECT "genre" FROM "actor" WHERE "original_title"='malina (ger.-aus.-fr.)'; | 2-12971476-3 |
The Last Metro refers to which Original Title? | CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
); | SELECT "original_title" FROM "actor" WHERE "title_in_english"='the last metro'; | 2-12971476-3 |
What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? | CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
); | SELECT "genre" FROM "actor" WHERE "role"='episode actor' AND "original_title"='franciska vasárnapjai (hungarian)'; | 2-12971476-3 |
What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? | CREATE TABLE "actor" (
"original_title" text,
"title_in_english" text,
"genre" text,
"role" text,
"directed_by" text
); | SELECT "original_title" FROM "actor" WHERE "role"='episode actor' AND "directed_by"='géza bereményi'; | 2-12971476-3 |
What is the round for bob randall? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT AVG("round") FROM "june_draft" WHERE "name"='bob randall'; | 2-12937301-11 |
what is the position when signed is yes, round is less than 24 and name is charlie hough? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT "position" FROM "june_draft" WHERE "signed"='yes' AND "round"<24 AND "name"='charlie hough'; | 2-12937301-11 |
what is the school when signed is no and round is 50? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT "school" FROM "june_draft" WHERE "signed"='no' AND "round"=50; | 2-12937301-11 |
what is the school for round 8? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT "school" FROM "june_draft" WHERE "round"=8; | 2-12937301-11 |
what is the position for robert johnson? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT "position" FROM "june_draft" WHERE "name"='robert johnson'; | 2-12937301-11 |
Was position ss from carson city high school signed? | CREATE TABLE "june_draft" (
"round" real,
"name" text,
"position" text,
"school" text,
"signed" text
); | SELECT "signed" FROM "june_draft" WHERE "position"='ss' AND "school"='carson city high school'; | 2-12937301-11 |
What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ | CREATE TABLE "statistics" (
"year" text,
"class" text,
"games" real,
"starts" real,
"comp" real,
"yards" real
); | SELECT AVG("yards") FROM "statistics" WHERE "starts">12; | 2-12241207-1 |
What was the average number of starts Michael Henig had in a year when he had more than 1201 yards? | CREATE TABLE "statistics" (
"year" text,
"class" text,
"games" real,
"starts" real,
"comp" real,
"yards" real
); | SELECT AVG("starts") FROM "statistics" WHERE "yards">1201; | 2-12241207-1 |
Name the airport with IATA of cxb | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "airport" FROM "list" WHERE "iata"='cxb'; | 2-13060397-2 |
Name the airport with IATA of dmk | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "airport" FROM "list" WHERE "iata"='dmk'; | 2-13060397-2 |
Name the city that has singapore changi airport | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "city" FROM "list" WHERE "airport"='singapore changi airport'; | 2-13060397-2 |
Name the ICAO for when IATA is zyl | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "icao" FROM "list" WHERE "iata"='zyl'; | 2-13060397-2 |
Name the ICAO for IATA of rgn | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "icao" FROM "list" WHERE "iata"='rgn'; | 2-13060397-2 |
Name the ICAO for IATA of ccu | CREATE TABLE "list" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "icao" FROM "list" WHERE "iata"='ccu'; | 2-13060397-2 |
What is the largest gold with a Total larger than 16? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("gold") FROM "medal_table" WHERE "total">16; | 2-12364518-1 |
What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "medal_table" WHERE "total"<2 AND "bronze"<1 AND "nation"='yugoslavia'; | 2-12364518-1 |
What is the smallest bronze with a Nation of west germany, and a Gold larger than 0? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='west germany' AND "gold">0; | 2-12364518-1 |
What was the record on July 2? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='july 2'; | 2-12206431-4 |
What is the largest silver with less than 0 gold? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("silver") FROM "medal_table" WHERE "gold"<0; | 2-12289296-5 |
What's the average total viewers that has 17.6% Share? | CREATE TABLE "series_1" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" text
); | SELECT AVG("total_viewers") FROM "series_1" WHERE "share"='17.6%'; | 2-12890652-1 |
What's the share of Episode 1? | CREATE TABLE "series_1" (
"episode_no" real,
"airdate" text,
"total_viewers" real,
"share" text,
"bbc_one_weekly_ranking" text
); | SELECT "share" FROM "series_1" WHERE "episode_no"=1; | 2-12890652-1 |
How many locomotives were made that were withdrawn in 1913? | CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
); | SELECT "quantity_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "withdrawn"='1913'; | 2-1290024-21 |
What is the date of creation for the locomotive having a type of 0-4-2 | CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
); | SELECT "date_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "type"='0-4-2'; | 2-1290024-21 |
What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? | CREATE TABLE "dublin_and_south_eastern_railway_1854_19" (
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"date_made" text,
"gsr_class" text,
"gsr_nos" text,
"withdrawn" text
); | SELECT "date_made" FROM "dublin_and_south_eastern_railway_1854_19" WHERE "type"='0-6-0' AND "gsr_class"='441'; | 2-1290024-21 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.