question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What category has showest award for the category awards? | CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
); | SELECT "category" FROM "awards_and_nominations" WHERE "award"='showest award'; | 2-1430940-3 |
What category has a year after 2004? | CREATE TABLE "awards_and_nominations" (
"year" real,
"award" text,
"nominated_work" text,
"category" text,
"result" text
); | SELECT "category" FROM "awards_and_nominations" WHERE "year">2004; | 2-1430940-3 |
Which Opponent had a Score of 6-3, 6-2? | CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "opponent" FROM "singles_5_2_3" WHERE "score"='6-3, 6-2'; | 2-15096003-2 |
Which Score had an Opponent of chris evert-lloyd? | CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "score" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd'; | 2-15096003-2 |
Which Surface had an Opponent of chris evert-lloyd? | CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "surface" FROM "singles_5_2_3" WHERE "opponent"='chris evert-lloyd'; | 2-15096003-2 |
Which Surface had a Date of june 13, 1983? | CREATE TABLE "singles_5_2_3" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"opponent" text,
"score" text
); | SELECT "surface" FROM "singles_5_2_3" WHERE "date"='june 13, 1983'; | 2-15096003-2 |
What was the highest attendance for a game where Geelong was the home team? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
); | SELECT MAX("crowd") FROM "round_21" WHERE "home_team"='geelong'; | 2-14312471-6 |
What was the away team score when the home team was the Brisbane Lions? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
); | SELECT "away_team_score" FROM "round_21" WHERE "home_team"='brisbane lions'; | 2-14312471-6 |
When did the home team score 23.13 (151)? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
); | SELECT "date" FROM "round_21" WHERE "home_team_score"='23.13 (151)'; | 2-14312471-6 |
What was the largest attendance at the Telstra Dome, when the home team was the Western Bulldogs? | CREATE TABLE "round_21" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"ground" text,
"crowd" real,
"date" text,
"report" text
); | SELECT MAX("crowd") FROM "round_21" WHERE "ground"='telstra dome' AND "home_team"='western bulldogs'; | 2-14312471-6 |
What is the full amount of Total Cargo (in Metric Tonnes) where the Code (IATA/ICAO) is pvg/zspd, and the rank is less than 3? | CREATE TABLE "2010_final_statistics" (
"rank" real,
"airport" text,
"code_iata_icao" text,
"total_cargo_metric_tonnes" real,
"pct_change" text
); | SELECT SUM("total_cargo_metric_tonnes") FROM "2010_final_statistics" WHERE "code_iata_icao"='pvg/zspd' AND "rank"<3; | 2-1451581-3 |
What is the Date at memorial stadium • minneapolis, mn with an Attendance of 20,000, and a Result of w52-0? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "site"='memorial stadium • minneapolis, mn' AND "attendance"='20,000' AND "result"='w52-0'; | 2-14721214-4 |
What is the Opponent name at memorial stadium • minneapolis, mn on 10/20/1928? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "opponentnum" FROM "schedule" WHERE "site"='memorial stadium • minneapolis, mn' AND "date"='10/20/1928'; | 2-14721214-4 |
What is the Attendance number when the Opponent was purdue? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "opponentnum"='purdue'; | 2-14721214-4 |
What is the Site when the Result was w52-0? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "site" FROM "schedule" WHERE "result"='w52-0'; | 2-14721214-4 |
What is the Attendance on 11/10/1928? | CREATE TABLE "schedule" (
"date" text,
"opponentnum" text,
"site" text,
"result" text,
"attendance" text
); | SELECT "attendance" FROM "schedule" WHERE "date"='11/10/1928'; | 2-14721214-4 |
Who was the Winner at Campbelltown Sports Stadium? | CREATE TABLE "results" (
"winner" text,
"score" text,
"date" text,
"venue" text,
"crowd" real
); | SELECT "winner" FROM "results" WHERE "venue"='campbelltown sports stadium'; | 2-14997211-2 |
When Sydney Roosters won with a Crown of more than 7,426, what was the Venue? | CREATE TABLE "results" (
"winner" text,
"score" text,
"date" text,
"venue" text,
"crowd" real
); | SELECT "venue" FROM "results" WHERE "winner"='sydney roosters' AND "crowd">'7,426'; | 2-14997211-2 |
What was the second leg score from the group stage on matchday 5? | CREATE TABLE "round_and_draw_dates" (
"phase" text,
"round" text,
"draw_date" text,
"first_leg" text,
"second_leg" text
); | SELECT "second_leg" FROM "round_and_draw_dates" WHERE "phase"='group stage' AND "round"='matchday 5'; | 2-14174175-6 |
What was the draw date from the qualifying phase and a round of first qualifying round? | CREATE TABLE "round_and_draw_dates" (
"phase" text,
"round" text,
"draw_date" text,
"first_leg" text,
"second_leg" text
); | SELECT "draw_date" FROM "round_and_draw_dates" WHERE "phase"='qualifying' AND "round"='first qualifying round'; | 2-14174175-6 |
what year did enrique alciati make a statue | CREATE TABLE "see_also" (
"statue" text,
"liberator" text,
"country" text,
"year_erected" text,
"artist" text
); | SELECT "year_erected" FROM "see_also" WHERE "artist"='enrique alciati'; | 2-13846706-1 |
what artist cam from uruguay | CREATE TABLE "see_also" (
"statue" text,
"liberator" text,
"country" text,
"year_erected" text,
"artist" text
); | SELECT "artist" FROM "see_also" WHERE "country"='uruguay'; | 2-13846706-1 |
When 1990-1995 > 0.37, 2000-2005 of 1.37, what's the highest for 1995-2000? | CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" real,
"1990_1995" real,
"1995_2000" real,
"2000_2005" real
); | SELECT MAX("1995_2000") FROM "urban_population_growth_pct" WHERE "1990_1995">0.37 AND "2000_2005"=1.37; | 2-13630888-1 |
When 2000-2005 is smaller than 2.52, and 1990-1995 is less than 0.37, what's the total of 1995-2000? | CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" real,
"1990_1995" real,
"1995_2000" real,
"2000_2005" real
); | SELECT SUM("1995_2000") FROM "urban_population_growth_pct" WHERE "2000_2005"<2.52 AND "1990_1995"<0.37; | 2-13630888-1 |
What's China's highest 1985-1990 assuming a 2000-2005 larger than 3.08? | CREATE TABLE "urban_population_growth_pct" (
"region_country" text,
"1985_1990" real,
"1990_1995" real,
"1995_2000" real,
"2000_2005" real
); | SELECT MAX("1985_1990") FROM "urban_population_growth_pct" WHERE "region_country"='china' AND "2000_2005">3.08; | 2-13630888-1 |
What is the women's singles before 1965 with kaj lindfors ann-louise von essen being mixed doubles? | CREATE TABLE "past_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 "past_winners" WHERE "year"<1965 AND "mixed_doubles"='kaj lindfors ann-louise von essen'; | 2-13857700-1 |
When did mika heinonen susanna dahlberg win mixed doubles? | CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT AVG("year") FROM "past_winners" WHERE "mixed_doubles"='mika heinonen susanna dahlberg'; | 2-13857700-1 |
How many years did pia pajunen nina sundberg win women's doubles? | CREATE TABLE "past_winners" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT COUNT("year") FROM "past_winners" WHERE "women_s_doubles"='pia pajunen nina sundberg'; | 2-13857700-1 |
Who won women's singles in 1961? | CREATE TABLE "past_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 "past_winners" WHERE "year"=1961; | 2-13857700-1 |
Score of 0–3 (11–21, 14–21) had what outcome? | CREATE TABLE "marc_zwiebler" (
"outcome" text,
"year" text,
"venue" text,
"last_opponent" text,
"score" text
); | SELECT "outcome" FROM "marc_zwiebler" WHERE "score"='0–3 (11–21, 14–21)'; | 2-14228070-4 |
Venue of thessaloniki (without participation) had what score? | CREATE TABLE "marc_zwiebler" (
"outcome" text,
"year" text,
"venue" text,
"last_opponent" text,
"score" text
); | SELECT "score" FROM "marc_zwiebler" WHERE "venue"='thessaloniki (without participation)'; | 2-14228070-4 |
Outcome of 13, and a Year of 2007 happened in what venue? | CREATE TABLE "marc_zwiebler" (
"outcome" text,
"year" text,
"venue" text,
"last_opponent" text,
"score" text
); | SELECT "venue" FROM "marc_zwiebler" WHERE "outcome"='13' AND "year"='2007'; | 2-14228070-4 |
Which Eruptions have a Location of pacific ring of fire, and a Volcanic Explosivity Index of 6, and a Country of peru? | CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
"eruptions" text,
"country" text,
"location" text,
"year" real,
"volcanic_explosivity_index" text,
"fatalities" text
); | SELECT "eruptions" FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "volcanic_explosivity_index"='6' AND "country"='peru'; | 2-152994-1 |
How many fatalities does Italy have? | CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
"eruptions" text,
"country" text,
"location" text,
"year" real,
"volcanic_explosivity_index" text,
"fatalities" text
); | SELECT "fatalities" FROM "table_i_comparison_of_selected_volcanic_" WHERE "country"='italy'; | 2-152994-1 |
How many years have a Location of pacific ring of fire, and Eruptions of pinatubo? | CREATE TABLE "table_i_comparison_of_selected_volcanic_" (
"eruptions" text,
"country" text,
"location" text,
"year" real,
"volcanic_explosivity_index" text,
"fatalities" text
); | SELECT SUM("year") FROM "table_i_comparison_of_selected_volcanic_" WHERE "location"='pacific ring of fire' AND "eruptions"='pinatubo'; | 2-152994-1 |
What is the Standings of Eintracht Braunschweig? | CREATE TABLE "3_liga" (
"season" text,
"champions" text,
"runners_up" text,
"promotion_playoff" text,
"standings" text
); | SELECT "standings" FROM "3_liga" WHERE "champions"='eintracht braunschweig'; | 2-14242137-14 |
Year larger than 2001 has what average points? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT AVG("points") FROM "grand_prix_career_statistics" WHERE "year">2001; | 2-14891113-4 |
Team of Honda and a point total of 238 is what highest year? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT MAX("year") FROM "grand_prix_career_statistics" WHERE "team"='honda' AND "points"=238; | 2-14891113-4 |
Wins of 0 involves what team? | CREATE TABLE "grand_prix_career_statistics" (
"year" real,
"class" text,
"team" text,
"machine" text,
"points" real,
"rank" text,
"wins" real
); | SELECT "team" FROM "grand_prix_career_statistics" WHERE "wins"=0; | 2-14891113-4 |
what player has a pick of 5 | CREATE TABLE "round_1" (
"pick" real,
"player" text,
"country_of_origin" text,
"pba_team" text,
"college" text
); | SELECT "player" FROM "round_1" WHERE "pick"=5; | 2-13533299-2 |
Which District has a First elected of 1858, and a Result of retired republican gain, and an Incumbent of william millward? | CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
); | SELECT "district" FROM "united_states_house_of_representatives_e" WHERE "first_elected"=1858 AND "result"='retired republican gain' AND "incumbent"='william millward'; | 2-1434986-13 |
Which Result has a District of pennsylvania 13? | CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
); | SELECT "result" FROM "united_states_house_of_representatives_e" WHERE "district"='pennsylvania 13'; | 2-1434986-13 |
Which First elected is the lowest one that has an Incumbent of william stewart? | CREATE TABLE "united_states_house_of_representatives_e" (
"district" text,
"incumbent" text,
"party" text,
"first_elected" real,
"result" text
); | SELECT MIN("first_elected") FROM "united_states_house_of_representatives_e" WHERE "incumbent"='william stewart'; | 2-1434986-13 |
Who was the Player when College/Junior/Club Team (League) was regina pats (whl)? | CREATE TABLE "draft_picks" (
"round" real,
"player" text,
"position" text,
"nationality" text,
"college_junior_club_team_league" text
); | SELECT "player" FROM "draft_picks" WHERE "college_junior_club_team_league"='regina pats (whl)'; | 2-13912864-11 |
What is the date of the game with an attendance larger than 62,491? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "date" FROM "schedule" WHERE "attendance">'62,491'; | 2-14951643-1 |
What is the attendance of the game on week 4? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "attendance" FROM "schedule" WHERE "week"=4; | 2-14951643-1 |
How many extra points are there that Herrnstein had with less than 2 touchdowns and less than 0 field goals? | CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT AVG("extra_points") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"<2 AND "player"='herrnstein' AND "field_goals"<0; | 2-14342210-12 |
How many touchdowns are there that has field goals less than 0 and 0 extra points? | CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT SUM("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "extra_points"=0 AND "field_goals"<0; | 2-14342210-12 |
How many field goals are there that have 8 touchdowns and more than 49 points? | CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT SUM("field_goals") FROM "rose_bowl_michigan_49_stanford_0" WHERE "touchdowns"=8 AND "points">49; | 2-14342210-12 |
What's the number of touchdowns that Snow made that had 0 field goals, more than 5 points, and more than 0 extra points? | CREATE TABLE "rose_bowl_michigan_49_stanford_0" (
"player" text,
"touchdowns" real,
"extra_points" real,
"field_goals" real,
"points" real
); | SELECT MIN("touchdowns") FROM "rose_bowl_michigan_49_stanford_0" WHERE "points">5 AND "field_goals"=0 AND "player"='snow' AND "extra_points">0; | 2-14342210-12 |
For an IATA of MLE, what is the ICAO? | CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "icao" FROM "destinations" WHERE "iata"='mle'; | 2-14553504-2 |
For an ICAO of VCCT, what is the IATA? | CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "iata" FROM "destinations" WHERE "icao"='vcct'; | 2-14553504-2 |
Which city has an ICAO of VCCJ? | CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "city" FROM "destinations" WHERE "icao"='vccj'; | 2-14553504-2 |
Which ICAO is found in Vavuniya? | CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "icao" FROM "destinations" WHERE "city"='vavuniya'; | 2-14553504-2 |
Which country has Weerawila Airport? | CREATE TABLE "destinations" (
"city" text,
"country" text,
"iata" text,
"icao" text,
"airport" text
); | SELECT "country" FROM "destinations" WHERE "airport"='weerawila airport'; | 2-14553504-2 |
Which opponent has april 1 as the date? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "date"='april 1'; | 2-14026681-3 |
What opponent has tomko (1-1) as a loss? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='tomko (1-1)'; | 2-14026681-3 |
What opponent has 8-10 as the record? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "record"='8-10'; | 2-14026681-3 |
Whcih was the Class AAA in school year 2006-07? | CREATE TABLE "individual_chemistry" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text
); | SELECT "class_aaa" FROM "individual_chemistry" WHERE "school_year"='2006-07'; | 2-14603212-3 |
What team was class AA in years 1994-95? | CREATE TABLE "individual_chemistry" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text
); | SELECT "class_aa" FROM "individual_chemistry" WHERE "school_year"='1994-95'; | 2-14603212-3 |
Who was Class AA in School Year 1994-95? | CREATE TABLE "individual_chemistry" (
"school_year" text,
"class_a" text,
"class_aa" text,
"class_aaa" text,
"class_aaaa" text
); | SELECT "class_aa" FROM "individual_chemistry" WHERE "school_year"='1994-95'; | 2-14603212-3 |
What's the date of the game that has the Bulls as a visiting team? | CREATE TABLE "march" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"record" text
); | SELECT "date" FROM "march" WHERE "visitor"='bulls'; | 2-13667936-8 |
What is the average game number that took place after February 13 against the Toronto Maple Leafs and more than 47 points were scored? | CREATE TABLE "regular_season" (
"game" real,
"february" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT AVG("game") FROM "regular_season" WHERE "february">13 AND "opponent"='toronto maple leafs' AND "points">47; | 2-14293527-6 |
Who was the opponent at the game at Sullivan Stadium before week 11? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"record" text,
"game_site" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "week"<11 AND "game_site"='sullivan stadium'; | 2-14940519-1 |
What is the years coached by the person with a win percentage of 0.667 and 380 losses? | CREATE TABLE "head_coaches_and_all_time_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
); | SELECT "years" FROM "head_coaches_and_all_time_results" WHERE "pct"=0.667 AND "lost"=380; | 2-14043640-1 |
What is the average percent for the coach from 1905 and more than 7 losses? | CREATE TABLE "head_coaches_and_all_time_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
); | SELECT AVG("pct") FROM "head_coaches_and_all_time_results" WHERE "years"='1905' AND "lost">7; | 2-14043640-1 |
How many percentages have 20 losses and more than 1 season? | CREATE TABLE "head_coaches_and_all_time_results" (
"name" text,
"years" text,
"seasons" real,
"lost" real,
"pct" real
); | SELECT COUNT("pct") FROM "head_coaches_and_all_time_results" WHERE "lost"=20 AND "seasons">1; | 2-14043640-1 |
What home has February 10 as the date? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" text,
"record" text
); | SELECT "home" FROM "regular_season" WHERE "date"='february 10'; | 2-14159731-7 |
What date has ny islanders as the visitor? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" text,
"record" text
); | SELECT "date" FROM "regular_season" WHERE "visitor"='ny islanders'; | 2-14159731-7 |
What score has February 10 as the date? | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" text,
"record" text
); | SELECT "score" FROM "regular_season" WHERE "date"='february 10'; | 2-14159731-7 |
Name the course for 24 july | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "course" FROM "stage_results" WHERE "date"='24 july'; | 2-14395920-1 |
Name the course for team time trial | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "course" FROM "stage_results" WHERE "type"='team time trial'; | 2-14395920-1 |
Name the winner for rest day for 13 july | CREATE TABLE "stage_results" (
"date" text,
"course" text,
"distance" text,
"type" text,
"winner" text
); | SELECT "winner" FROM "stage_results" WHERE "course"='rest day' AND "date"='13 july'; | 2-14395920-1 |
Shawn Michaels entered the elimination chamber in what position? | CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"elimination_no" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
); | SELECT SUM("entered") FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='shawn michaels'; | 2-14656943-2 |
Who Eliminated Kurt Angle? | CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"elimination_no" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
); | SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='kurt angle'; | 2-14656943-2 |
Who Eliminated Kane? | CREATE TABLE "elimination_chamber_entrances_and_elimin" (
"elimination_no" text,
"wrestler" text,
"entered" real,
"eliminated_by" text,
"time" text
); | SELECT "eliminated_by" FROM "elimination_chamber_entrances_and_elimin" WHERE "wrestler"='kane'; | 2-14656943-2 |
What is the sum of all gold medals for Algeria when total medals is less than 3? | CREATE TABLE "medal_table" (
"rank" text,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT SUM("gold") FROM "medal_table" WHERE "nation"='algeria' AND "total"<3; | 2-15250079-3 |
what is the population of Valencia, Spain? | CREATE TABLE "major_urban_areas" (
"urban_area" text,
"country" text,
"region" text,
"population" real,
"globalization_index" text
); | SELECT AVG("population") FROM "major_urban_areas" WHERE "country"='spain' AND "urban_area"='valencia'; | 2-14883-2 |
which year holds rank 2? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_feet_m" text,
"floors" real,
"year" real
); | SELECT MAX("year") FROM "tallest_buildings" WHERE "rank"='2'; | 2-13784358-1 |
with name meridian condominiums what is number of floors? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_feet_m" text,
"floors" real,
"year" real
); | SELECT AVG("floors") FROM "tallest_buildings" WHERE "name"='meridian condominiums'; | 2-13784358-1 |
with rank of 31 what is the year? | CREATE TABLE "tallest_buildings" (
"rank" text,
"name" text,
"height_feet_m" text,
"floors" real,
"year" real
); | SELECT COUNT("year") FROM "tallest_buildings" WHERE "rank"='31'; | 2-13784358-1 |
What was the date of the match against the visiting team, Toronto? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "date" FROM "january" WHERE "visitor"='toronto'; | 2-13535187-4 |
Who played the home team during the game on January 6? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "home" FROM "january" WHERE "date"='january 6'; | 2-13535187-4 |
What was the cougars record during the game where Boston were the visitors? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"record" text
); | SELECT "record" FROM "january" WHERE "visitor"='boston'; | 2-13535187-4 |
What's the lowest Drawn that has a Lost that's less than 0? | CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT MIN("drawn") FROM "group_2" WHERE "lost"<0; | 2-13771649-14 |
What's the total Lost with Games that's less than 4? | CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT SUM("lost") FROM "group_2" WHERE "games"<4; | 2-13771649-14 |
What's the total of Games with a Lost that's larger than 2, and has Points that's smaller than 0? | CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT SUM("games") FROM "group_2" WHERE "lost">2 AND "points"<0; | 2-13771649-14 |
What's the Lost average that has a Drawn less than 0? | CREATE TABLE "group_2" (
"games" real,
"drawn" real,
"lost" real,
"points_difference" text,
"points" real
); | SELECT AVG("lost") FROM "group_2" WHERE "drawn"<0; | 2-13771649-14 |
What record has @ ottawa senators as the opponent? | CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "record" FROM "regular_season" WHERE "opponent"='@ ottawa senators'; | 2-14346882-5 |
What game has 28 points, and tampa bay lightning as the opponent? | CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "game" FROM "regular_season" WHERE "points"=28 AND "opponent"='tampa bay lightning'; | 2-14346882-5 |
What is the average points that have a December less than 6, with a game greater than 26? | CREATE TABLE "regular_season" (
"game" real,
"december" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT AVG("points") FROM "regular_season" WHERE "december"<6 AND "game">26; | 2-14346882-5 |
Who was the opponent at the game with a loss of Sele (0-1)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"series" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='sele (0-1)'; | 2-13955746-10 |
Record of 42–16–8, and a March larger than 5 has what average points? | CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT AVG("points") FROM "regular_season" WHERE "record"='42–16–8' AND "march">5; | 2-14318917-7 |
Points smaller than 96, and a Record of 43–16–8 belongs to what game? | CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "game" FROM "regular_season" WHERE "points"<96 AND "record"='43–16–8'; | 2-14318917-7 |
Game smaller than 70, and a Record of 43–16–8 is what opponent? | CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "opponent" FROM "regular_season" WHERE "game"<70 AND "record"='43–16–8'; | 2-14318917-7 |
Record of 44–18–8 involves which score? | CREATE TABLE "regular_season" (
"game" real,
"march" real,
"opponent" text,
"score" text,
"record" text,
"points" real
); | SELECT "score" FROM "regular_season" WHERE "record"='44–18–8'; | 2-14318917-7 |
Which college is Kellen Davis from? | CREATE TABLE "nfl_draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"college" text
); | SELECT "college" FROM "nfl_draft" WHERE "player"='kellen davis'; | 2-15185487-1 |
Which round's position is according to official website? | CREATE TABLE "nfl_draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"college" text
); | SELECT "round" FROM "nfl_draft" WHERE "position"='according to official website'; | 2-15185487-1 |
Which position's round was 3 when pick was 70? | CREATE TABLE "nfl_draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"college" text
); | SELECT "position" FROM "nfl_draft" WHERE "round"='3' AND "pick"='70'; | 2-15185487-1 |
Which pick's round was 5 when Kellen Davis was a player? | CREATE TABLE "nfl_draft" (
"round" text,
"pick" text,
"player" text,
"position" text,
"college" text
); | SELECT "pick" FROM "nfl_draft" WHERE "round"='5' AND "player"='kellen davis'; | 2-15185487-1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.