question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Tell me the average Laps for grid larger than 22 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("laps") FROM "race" WHERE "grid">22; | 2-10120476-2 |
Tell me the constructor for grid of 17 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "grid"=17; | 2-10120476-2 |
What years had a manager who lost more than 1 and drawn more than 11? | CREATE TABLE "ukraine_managers" (
"manager" text,
"ukraine_career" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" real
); | SELECT "ukraine_career" FROM "ukraine_managers" WHERE "lost">1 AND "drawn">11; | 2-1008682-7 |
what is the total win % of manager viktor prokopenko, when he lost fewer than 2? | CREATE TABLE "ukraine_managers" (
"manager" text,
"ukraine_career" text,
"played" real,
"drawn" real,
"lost" real,
"win_pct" real
); | SELECT COUNT("win_pct") FROM "ukraine_managers" WHERE "manager"='viktor prokopenko' AND "lost"<2; | 2-1008682-7 |
When 4 clubs are involved, what is the average number of fixtures? | CREATE TABLE "format_and_schedule" (
"round" text,
"date_s" text,
"clubs_from_the_previous_round" text,
"clubs_involved" real,
"fixtures" real
); | SELECT AVG("fixtures") FROM "format_and_schedule" WHERE "clubs_involved"=4; | 2-10287593-1 |
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved? | CREATE TABLE "format_and_schedule" (
"round" text,
"date_s" text,
"clubs_from_the_previous_round" text,
"clubs_involved" real,
"fixtures" real
); | SELECT SUM("fixtures") FROM "format_and_schedule" WHERE "round"='sixth round' AND "clubs_involved">15; | 2-10287593-1 |
Tell me the league for year of 1915/16 | CREATE TABLE "year_by_year" (
"year" text,
"division" text,
"league" text,
"reg_season" text,
"playoffs" text,
"challenge_cup" text
); | SELECT "league" FROM "year_by_year" WHERE "year"='1915/16'; | 2-1035855-1 |
What is the make of the car that drove 54 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "laps"=54; | 2-10158277-2 |
Who has a 59 cap? | CREATE TABLE "highest_capped" (
"name" text,
"career" text,
"caps" real,
"goals" real,
"first_cap" text,
"recent_cap" text
); | SELECT "name" FROM "highest_capped" WHERE "caps"=59; | 2-1023035-2 |
Tell me the sum of frequency for ERP W less than 1 | CREATE TABLE "translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT SUM("frequency_m_hz") FROM "translators" WHERE "erp_w"<1; | 2-10317840-1 |
Tell me the lowest ties played with a debut of 1936 | CREATE TABLE "players" (
"player" text,
"total_w_l" text,
"singles_w_l" text,
"doubles_w_l" text,
"ties_played" real,
"debut" real,
"years_played" real
); | SELECT MIN("ties_played") FROM "players" WHERE "debut"=1936; | 2-10294071-1 |
Where did the Paris Marathon occur? | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "venue" FROM "achievements" WHERE "competition"='paris marathon'; | 2-10298974-1 |
Tell me the capacity for city park stadium | CREATE TABLE "current_usl_soccer_specific_stadiums" (
"stadium" text,
"club_s" text,
"division" text,
"city" text,
"capacity" real,
"opened" text
); | SELECT "capacity" FROM "current_usl_soccer_specific_stadiums" WHERE "stadium"='city park stadium'; | 2-1034291-6 |
Tell me the tournament for opponents of andrei pavel rogier wassen | CREATE TABLE "titles_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "tournament" FROM "titles_6" WHERE "opponents_in_the_final"='andrei pavel rogier wassen'; | 2-10322964-3 |
Tell me the tournament for score in the final of 1–6, 3–6 | CREATE TABLE "titles_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "tournament" FROM "titles_6" WHERE "score_in_the_final"='1–6, 3–6'; | 2-10322964-3 |
Tell me the opponents for score in the final of 1–6, 2–6 | CREATE TABLE "titles_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "opponents_in_the_final" FROM "titles_6" WHERE "score_in_the_final"='1–6, 2–6'; | 2-10322964-3 |
Tell me the surface for 16 april 2007 | CREATE TABLE "titles_6" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents_in_the_final" text,
"score_in_the_final" text
); | SELECT "surface" FROM "titles_6" WHERE "date"='16 april 2007'; | 2-10322964-3 |
I want the average pages for ISBN of 978-0-9766580-5-4 | CREATE TABLE "publications" (
"title" text,
"year" real,
"isbn" text,
"volume" text,
"strips" text,
"pages" real,
"colors" text
); | SELECT AVG("pages") FROM "publications" WHERE "isbn"='978-0-9766580-5-4'; | 2-1015819-1 |
Tell me the sum of year for 244 pages | CREATE TABLE "publications" (
"title" text,
"year" real,
"isbn" text,
"volume" text,
"strips" text,
"pages" real,
"colors" text
); | SELECT SUM("year") FROM "publications" WHERE "pages"=244; | 2-1015819-1 |
Tell me the title for pages of 96 | CREATE TABLE "publications" (
"title" text,
"year" real,
"isbn" text,
"volume" text,
"strips" text,
"pages" real,
"colors" text
); | SELECT "title" FROM "publications" WHERE "pages"=96; | 2-1015819-1 |
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865? | CREATE TABLE "historical" (
"begin_date" text,
"representative" text,
"date_of_birth" text,
"house_term" text,
"state_served" text,
"party" text,
"age_years_days" text
); | SELECT "date_of_birth" FROM "historical" WHERE "party"='republican' AND "house_term"='1863-1865'; | 2-10284385-1 |
What was the age of the member of the United States House of Representatives that began their term on May 7, 1886? | CREATE TABLE "historical" (
"begin_date" text,
"representative" text,
"date_of_birth" text,
"house_term" text,
"state_served" text,
"party" text,
"age_years_days" text
); | SELECT "age_years_days" FROM "historical" WHERE "begin_date"='may 7, 1886'; | 2-10284385-1 |
What was the date of birth of the member of the United States House of Representatives that began their term on April 24, 1902? | CREATE TABLE "historical" (
"begin_date" text,
"representative" text,
"date_of_birth" text,
"house_term" text,
"state_served" text,
"party" text,
"age_years_days" text
); | SELECT "date_of_birth" FROM "historical" WHERE "begin_date"='april 24, 1902'; | 2-10284385-1 |
Which member of the United States House of Representatives began their term on January 4, 1997? | CREATE TABLE "historical" (
"begin_date" text,
"representative" text,
"date_of_birth" text,
"house_term" text,
"state_served" text,
"party" text,
"age_years_days" text
); | SELECT "representative" FROM "historical" WHERE "begin_date"='january 4, 1997'; | 2-10284385-1 |
Which state did Samuel Thatcher of the Federalist party represent? | CREATE TABLE "historical" (
"begin_date" text,
"representative" text,
"date_of_birth" text,
"house_term" text,
"state_served" text,
"party" text,
"age_years_days" text
); | SELECT "state_served" FROM "historical" WHERE "party"='federalist' AND "representative"='samuel thatcher'; | 2-10284385-1 |
What position does Hedo Türkoğlu play? | CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
); | SELECT "position" FROM "t" WHERE "player"='hedo türkoğlu'; | 2-10015132-18 |
How long has Sebastian Telfair played for Toronto? | CREATE TABLE "t" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
); | SELECT "years_in_toronto" FROM "t" WHERE "player"='sebastian telfair'; | 2-10015132-18 |
Tell me the title for japan august 23, 2012 | CREATE TABLE "games_developed" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "title" FROM "games_developed" WHERE "japan"='august 23, 2012'; | 2-1037251-1 |
Tell me the title for japan august 23, 2012 | CREATE TABLE "games_developed" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "title" FROM "games_developed" WHERE "japan"='august 23, 2012'; | 2-1037251-1 |
Tell me the Australia march 17, 2005 | CREATE TABLE "games_developed" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "australia" FROM "games_developed" WHERE "japan"='march 17, 2005'; | 2-1037251-1 |
Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman | CREATE TABLE "games_developed" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "europe" FROM "games_developed" WHERE "title"='z.h.p. unlosing ranger vs darkdeath evilman'; | 2-1037251-1 |
Name the total losses for 4 place and ties less than 0 | CREATE TABLE "group_a" (
"place" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"points" text
); | SELECT COUNT("losses") FROM "group_a" WHERE "place"=4 AND "ties"<0; | 2-1004902-3 |
Name the average place for ties less than 1 and losess more than 3 with points of 6 qc | CREATE TABLE "group_a" (
"place" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"points" text
); | SELECT AVG("place") FROM "group_a" WHERE "ties"<1 AND "points"='6 qc' AND "losses">3; | 2-1004902-3 |
Name the most wins for losses more than 2 and points of two with place larger than 7 | CREATE TABLE "group_a" (
"place" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"points" text
); | SELECT MAX("wins") FROM "group_a" WHERE "losses">2 AND "points"='2' AND "place">7; | 2-1004902-3 |
Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2 | CREATE TABLE "group_a" (
"place" real,
"team" text,
"wins" real,
"ties" real,
"losses" real,
"points" text
); | SELECT SUM("place") FROM "group_a" WHERE "ties">0 AND "points"='7 qc' AND "losses">2; | 2-1004902-3 |
Tell me the number range for 4vip | CREATE TABLE "fleet_details" (
"class" text,
"type" text,
"no_converted" real,
"year_converted" text,
"no_range" text,
"operator" text,
"withdrawn" text
); | SELECT "no_range" FROM "fleet_details" WHERE "type"='4vip'; | 2-1035366-6 |
Name the heat rank for senegal | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" text
); | SELECT "heat_rank" FROM "heats" WHERE "country"='senegal'; | 2-10289926-8 |
What is the value for 2010 when the 2012 value is Q2? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2010" FROM "singles_performance_timeline" WHERE "2012"='q2'; | 2-10173807-1 |
What is the value for 2010 when the value for 2006 is A and the value for 2009 is 1R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2010" FROM "singles_performance_timeline" WHERE "2006"='a' AND "2009"='1r'; | 2-10173807-1 |
What is the value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2012" FROM "singles_performance_timeline" WHERE "2009"='1r' AND "2007"='2r'; | 2-10173807-1 |
What is the value for 2008 for the US Open Tournament? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2008" FROM "singles_performance_timeline" WHERE "tournament"='us open'; | 2-10173807-1 |
What is the value for 2009 when the value for 2011 is 138? | CREATE TABLE "singles_performance_timeline" (
"tournament" text,
"2006" text,
"2007" text,
"2008" text,
"2009" text,
"2010" text,
"2011" text,
"2012" text
); | SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='138'; | 2-10173807-1 |
Tell me the highest series # for september 22, 1976 | CREATE TABLE "season_4_1976_1977" (
"series_num" real,
"season_num" real,
"title" text,
"original_air_date" text,
"tape_date" text
); | SELECT MAX("series_num") FROM "season_4_1976_1977" WHERE "original_air_date"='september 22, 1976'; | 2-10126563-4 |
What is the screen size and pixel value when the lens aperture is 26–678mm (26×) f /2.8–5? | CREATE TABLE "performance_series" (
"model" text,
"release_date" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
); | SELECT "screen_size_pixels" FROM "performance_series" WHERE "lens_35mmequiv_zoom_aperture"='26–678mm (26×) f /2.8–5'; | 2-1017391-7 |
What is the screen size and pixel value when the dimensions are 115.5×83.7×102.5? | CREATE TABLE "performance_series" (
"model" text,
"release_date" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
); | SELECT "screen_size_pixels" FROM "performance_series" WHERE "dimensions_w_h_d_mm"='115.5×83.7×102.5'; | 2-1017391-7 |
What is the screen size and pixel amount of model p5000 when the dimensions are 98×64.5×41? | CREATE TABLE "performance_series" (
"model" text,
"release_date" text,
"sensor_res_size" text,
"lens_35mmequiv_zoom_aperture" text,
"screen_size_pixels" text,
"dimensions_w_h_d_mm" text,
"weight" text
); | SELECT "screen_size_pixels" FROM "performance_series" WHERE "dimensions_w_h_d_mm"='98×64.5×41' AND "model"='p5000'; | 2-1017391-7 |
What is the lowest number for all children when the child labour percentage is greater than 15.5 and the number of children in hazardous work is 170,500 while the number of economically active children is more than 351,700? | CREATE TABLE "number_of_children_involved_in_ilo_categ" (
"all_children_000s" real,
"economically_active_children_000s" real,
"economically_active_children_pct" real,
"child_labour_000s" real,
"child_labour_pct" real,
"children_in_hazardous_work_000s" real,
"children_in_hazardous_work_pct" real
); | SELECT MIN("all_children_000s") FROM "number_of_children_involved_in_ilo_categ" WHERE "child_labour_pct">15.5 AND "children_in_hazardous_work_000s"='170,500' AND "economically_active_children_000s">'351,700'; | 2-101942-2 |
What is the lowest total number of children when there are more than 15.2% in child labour, less than 23.4% economically active, and the number economically active is 210,800? | CREATE TABLE "number_of_children_involved_in_ilo_categ" (
"all_children_000s" real,
"economically_active_children_000s" real,
"economically_active_children_pct" real,
"child_labour_000s" real,
"child_labour_pct" real,
"children_in_hazardous_work_000s" real,
"children_in_hazardous_work_pct" real
); | SELECT MIN("all_children_000s") FROM "number_of_children_involved_in_ilo_categ" WHERE "child_labour_pct">15.2 AND "economically_active_children_pct"<23.4 AND "economically_active_children_000s"='210,800'; | 2-101942-2 |
Tell me the championship game for big eight | CREATE TABLE "record_by_conference" (
"conference" text,
"num_of_bids" real,
"record" text,
"win_pct" text,
"round_of_32" text,
"elite_eight" text,
"final_four" text,
"championship_game" text
); | SELECT "championship_game" FROM "record_by_conference" WHERE "conference"='big eight'; | 2-10349289-6 |
Name the lowest total for rank of 13 with bronze less than 1 | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("total") FROM "medal_table" WHERE "rank"=13 AND "bronze"<1; | 2-10260670-3 |
Tell me the sum of original week for september 16, 1982 | CREATE TABLE "schedule" (
"original_week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text
); | SELECT SUM("original_week") FROM "schedule" WHERE "date"='september 16, 1982'; | 2-10361912-2 |
Tell me the average original week for soldier field | CREATE TABLE "schedule" (
"original_week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text
); | SELECT AVG("original_week") FROM "schedule" WHERE "venue"='soldier field'; | 2-10361912-2 |
Tell me the date for original week less than 16 and result of l 23–22 | CREATE TABLE "schedule" (
"original_week" real,
"date" text,
"opponent" text,
"result" text,
"venue" text
); | SELECT "date" FROM "schedule" WHERE "original_week"<16 AND "result"='l 23–22'; | 2-10361912-2 |
Tell me the call sign for frequency of 0 97.3 fm | CREATE TABLE "fm_stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"owner" text,
"format" text
); | SELECT "call_sign" FROM "fm_stations" WHERE "frequency"='0 97.3 fm'; | 2-1030221-4 |
Tell me the owner for classical | CREATE TABLE "fm_stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"owner" text,
"format" text
); | SELECT "owner" FROM "fm_stations" WHERE "format"='classical'; | 2-1030221-4 |
Tell me the city of license for 0 106.9 fm | CREATE TABLE "fm_stations" (
"call_sign" text,
"frequency" text,
"city_of_license" text,
"owner" text,
"format" text
); | SELECT "city_of_license" FROM "fm_stations" WHERE "frequency"='0 106.9 fm'; | 2-1030221-4 |
What year(s) did Hakeem Olajuwon play Center for Toronto? | CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
); | SELECT "years_in_toronto" FROM "o" WHERE "player"='hakeem olajuwon'; | 2-10015132-14 |
What position did Jimmy Oliver of the United States play? | CREATE TABLE "o" (
"player" text,
"nationality" text,
"position" text,
"years_in_toronto" text,
"school_club_team" text
); | SELECT "position" FROM "o" WHERE "nationality"='united states' AND "player"='jimmy oliver'; | 2-10015132-14 |
Tell me the total number of crest length for year construction larger than 1957 for mattmark | CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
); | SELECT COUNT("crest_length_meters") FROM "see_also" WHERE "year_of_construction">1957 AND "name"='mattmark'; | 2-10020178-1 |
Tell me the name of lake for crest length of 430 | CREATE TABLE "see_also" (
"name" text,
"canton" text,
"height_meters" real,
"crest_length_meters" real,
"type" text,
"year_of_construction" real,
"name_of_the_lake" text
); | SELECT "name_of_the_lake" FROM "see_also" WHERE "crest_length_meters"=430; | 2-10020178-1 |
Tell me the % of wt 2nd for bp 3rd comp of 98.4 | CREATE TABLE "ternary_azeotropes" (
"2nd_component" text,
"b_p_2nd_comp_c" real,
"3rd_component" text,
"b_p_3rd_comp_c" text,
"b_p_azeo_c" text,
"pct_wt_1st" text,
"pct_wt_2nd" text,
"pct_wt_3rd" text
); | SELECT "pct_wt_2nd" FROM "ternary_azeotropes" WHERE "b_p_3rd_comp_c"='98.4'; | 2-10181793-8 |
Tell me the 3rd component for bp azeo of 62.1 | CREATE TABLE "ternary_azeotropes" (
"2nd_component" text,
"b_p_2nd_comp_c" real,
"3rd_component" text,
"b_p_3rd_comp_c" text,
"b_p_azeo_c" text,
"pct_wt_1st" text,
"pct_wt_2nd" text,
"pct_wt_3rd" text
); | SELECT "3rd_component" FROM "ternary_azeotropes" WHERE "b_p_azeo_c"='62.1'; | 2-10181793-8 |
Tell me the name with sør-trøndelag | CREATE TABLE "see_also" (
"rank" real,
"county" text,
"name" text,
"type" text,
"elevation" text
); | SELECT "name" FROM "see_also" WHERE "county"='sør-trøndelag'; | 2-10145566-1 |
Tell me the elevation for oslo | CREATE TABLE "see_also" (
"rank" real,
"county" text,
"name" text,
"type" text,
"elevation" text
); | SELECT "elevation" FROM "see_also" WHERE "county"='oslo'; | 2-10145566-1 |
What was the result of the match against Pat Lawlor? | CREATE TABLE "professional_boxing_record" (
"result" text,
"opponent" text,
"type" text,
"rd_time" text,
"date" text
); | SELECT "result" FROM "professional_boxing_record" WHERE "opponent"='pat lawlor'; | 2-10263245-1 |
Tell me the sum of cars per set for operator of london midland | CREATE TABLE "fleet" (
"class" text,
"operator" text,
"no_built" real,
"year_built" text,
"cars_per_set" real
); | SELECT SUM("cars_per_set") FROM "fleet" WHERE "operator"='london midland'; | 2-1017883-1 |
Tell me the title of japan january 31, 2008 | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "title" FROM "game_releases_in_japan" WHERE "japan"='january 31, 2008'; | 2-1037251-2 |
Tell me japan for jigsaw land: japan graffiti | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "japan" FROM "game_releases_in_japan" WHERE "title"='jigsaw land: japan graffiti'; | 2-1037251-2 |
Tell me north america for january 23, 2013 | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "north_america" FROM "game_releases_in_japan" WHERE "japan"='january 23, 2013'; | 2-1037251-2 |
Tell me the north america for september 18, 2009 | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "north_america" FROM "game_releases_in_japan" WHERE "europe"='september 18, 2009'; | 2-1037251-2 |
Tell me europe for japan of january 28, 2010 | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "europe" FROM "game_releases_in_japan" WHERE "japan"='january 28, 2010'; | 2-1037251-2 |
Tell me the north america for phantom brave | CREATE TABLE "game_releases_in_japan" (
"title" text,
"japan" text,
"north_america" text,
"europe" text,
"australia" text
); | SELECT "north_america" FROM "game_releases_in_japan" WHERE "title"='phantom brave'; | 2-1037251-2 |
What is the average played value in Belgrade with attendance greater than 26,222? | CREATE TABLE "home_stadiums" (
"venue" text,
"city" text,
"first_international" text,
"last_international" text,
"played" real,
"draw" real,
"lost" real,
"average_attendance" real
); | SELECT AVG("played") FROM "home_stadiums" WHERE "city"='belgrade' AND "average_attendance">'26,222'; | 2-1011001-10 |
Tell me the role of festival theatre | CREATE TABLE "theater_credits" (
"year" real,
"play" text,
"role" text,
"theatre" text,
"location" text
); | SELECT "role" FROM "theater_credits" WHERE "theatre"='festival theatre'; | 2-10040473-3 |
Tell me the lowest year for shubert theatre | CREATE TABLE "theater_credits" (
"year" real,
"play" text,
"role" text,
"theatre" text,
"location" text
); | SELECT MIN("year") FROM "theater_credits" WHERE "theatre"='shubert theatre'; | 2-10040473-3 |
Tell me the total number of years for lady cecily waynflete and opera house, kennedy center | CREATE TABLE "theater_credits" (
"year" real,
"play" text,
"role" text,
"theatre" text,
"location" text
); | SELECT COUNT("year") FROM "theater_credits" WHERE "role"='lady cecily waynflete' AND "theatre"='opera house, kennedy center'; | 2-10040473-3 |
Tell me the role for tea and sympathy | CREATE TABLE "theater_credits" (
"year" real,
"play" text,
"role" text,
"theatre" text,
"location" text
); | SELECT "role" FROM "theater_credits" WHERE "play"='tea and sympathy'; | 2-10040473-3 |
When was the first beatification in Korea that was canonised before 1984? | CREATE TABLE "saints" (
"name" text,
"martyred" real,
"place" text,
"beatified" real,
"canonised" real
); | SELECT MIN("beatified") FROM "saints" WHERE "place"='korea' AND "canonised"<1984; | 2-10215546-2 |
When was Laurent-Marie-Joseph Imbert / St. Imbert, who was beatified after 1909 and canonised after 1984, martyred? | CREATE TABLE "saints" (
"name" text,
"martyred" real,
"place" text,
"beatified" real,
"canonised" real
); | SELECT MAX("martyred") FROM "saints" WHERE "beatified">1909 AND "name"='laurent-marie-joseph imbert / st. imbert' AND "canonised">1984; | 2-10215546-2 |
When was the person(s) who were canonised before 1988 beatified? | CREATE TABLE "saints" (
"name" text,
"martyred" real,
"place" text,
"beatified" real,
"canonised" real
); | SELECT "beatified" FROM "saints" WHERE "canonised"<1988; | 2-10215546-2 |
When was John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred? | CREATE TABLE "saints" (
"name" text,
"martyred" real,
"place" text,
"beatified" real,
"canonised" real
); | SELECT MAX("martyred") FROM "saints" WHERE "beatified"=1909 AND "name"='john hoan trinh doan / st. john hoan' AND "canonised">1988; | 2-10215546-2 |
What is the sum of year with the local host Sai? | CREATE TABLE "references" (
"year" real,
"conference" text,
"city" text,
"country" text,
"local_host_s" text
); | SELECT SUM("year") FROM "references" WHERE "local_host_s"='sai'; | 2-10223592-1 |
Who are the local hosts for the United States in years earlier than 2007? | CREATE TABLE "references" (
"year" real,
"conference" text,
"city" text,
"country" text,
"local_host_s" text
); | SELECT "local_host_s" FROM "references" WHERE "country"='united states' AND "year"<2007; | 2-10223592-1 |
Which city has a conference of LCC2 and a year earlier than 2009? | CREATE TABLE "references" (
"year" real,
"conference" text,
"city" text,
"country" text,
"local_host_s" text
); | SELECT "city" FROM "references" WHERE "year"<2009 AND "conference"='lcc2'; | 2-10223592-1 |
Tell me the class with rank of 89th | CREATE TABLE "grand_am_rolex_sports_car_series_results" (
"year" real,
"team" text,
"make" text,
"engine" text,
"class" text,
"rank" text,
"points" real
); | SELECT "class" FROM "grand_am_rolex_sports_car_series_results" WHERE "rank"='89th'; | 2-1019053-15 |
Tell me the most year for 3 points | CREATE TABLE "grand_am_rolex_sports_car_series_results" (
"year" real,
"team" text,
"make" text,
"engine" text,
"class" text,
"rank" text,
"points" real
); | SELECT MAX("year") FROM "grand_am_rolex_sports_car_series_results" WHERE "points"=3; | 2-1019053-15 |
Which lane is Goksu Bicer in? | CREATE TABLE "heats" (
"heat_rank" real,
"lane" real,
"swimmer" text,
"country" text,
"time" real,
"overall_rank" real
); | SELECT "lane" FROM "heats" WHERE "swimmer"='goksu bicer'; | 2-10289926-15 |
Which Driver that has a Grid less than 9 and a Time/Retired of 2:06:26.358? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "grid"<9 AND "time_retired"='2:06:26.358'; | 2-10129219-2 |
Which driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "race" WHERE "constructor"='ferrari' AND "grid"<3; | 2-10129219-2 |
Name the location of ufc 98 | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='ufc 98'; | 2-10161166-2 |
What is the smallest number of wins for the Totals Tournament with a Top-25 value greater than 3? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MIN("wins") FROM "summary" WHERE "tournament"='totals' AND "top_25">3; | 2-10167122-1 |
What is the sum of Top-5 values with events values less than 2? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("top_5") FROM "summary" WHERE "events"<2; | 2-10167122-1 |
What is the smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT MIN("wins") FROM "summary" WHERE "cuts_made">4 AND "top_5"<1; | 2-10167122-1 |
Tell me the competition for 2nd position with year more than 2005 | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "competition" FROM "achievements" WHERE "position"='2nd' AND "year">2005; | 2-10264859-1 |
Name the sum of year for 2nd position for junior race | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT SUM("year") FROM "achievements" WHERE "position"='2nd' AND "event"='junior race'; | 2-10264859-1 |
Name the venue for 2nd position of year before 2008 | CREATE TABLE "achievements" (
"year" real,
"competition" text,
"venue" text,
"position" text,
"event" text
); | SELECT "venue" FROM "achievements" WHERE "year"<2008 AND "position"='2nd'; | 2-10264859-1 |
Which circuit did Raymond Mays win? | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "circuit" FROM "non_championship_grands_prix" WHERE "winning_driver"='raymond mays'; | 2-10290943-2 |
Which Circuit did Johnny Wakefield win? | CREATE TABLE "non_championship_grands_prix" (
"name" text,
"circuit" text,
"date" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "circuit" FROM "non_championship_grands_prix" WHERE "winning_driver"='johnny wakefield'; | 2-10290943-2 |
Tell me the lowest bronze for panama and total larger than 8 | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("bronze") FROM "medal_table" WHERE "nation"='panama' AND "total">8; | 2-10093722-2 |
Tell me the average total for guatemala and bronze less than 2 | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("total") FROM "medal_table" WHERE "nation"='guatemala' AND "bronze"<2; | 2-10093722-2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.