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 number of ranking when the nationalits is England with more than 53 goals? | CREATE TABLE "all_time_top_scorers" (
"ranking" real,
"nationality" text,
"name" text,
"years" text,
"goals" real
); | SELECT SUM("ranking") FROM "all_time_top_scorers" WHERE "nationality"='england' AND "goals">53; | 2-1234607-2 |
What is the lowest ranking for Paul Mctiernan? | CREATE TABLE "all_time_top_scorers" (
"ranking" real,
"nationality" text,
"name" text,
"years" text,
"goals" real
); | SELECT MIN("ranking") FROM "all_time_top_scorers" WHERE "name"='paul mctiernan'; | 2-1234607-2 |
What are the years when the ranking is less than 8 with less than 66 goals and name is Paul McGee? | CREATE TABLE "all_time_top_scorers" (
"ranking" real,
"nationality" text,
"name" text,
"years" text,
"goals" real
); | SELECT "years" FROM "all_time_top_scorers" WHERE "ranking"<8 AND "goals"<66 AND "name"='paul mcgee'; | 2-1234607-2 |
Which entrant has a year after 1999? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1999; | 2-1226492-2 |
Round 1 of beat lee janzen 3&2, and a Year smaller than 1998 has what total number of place? | CREATE TABLE "performance_at_the_pga_grand_slam_of_gol" (
"year" real,
"round_1" text,
"round_2" text,
"place" real,
"money" real
); | SELECT COUNT("place") FROM "performance_at_the_pga_grand_slam_of_gol" WHERE "round_1"='beat lee janzen 3&2' AND "year"<1998; | 2-13298049-3 |
Round 1 of 71 has how many highest money? | CREATE TABLE "performance_at_the_pga_grand_slam_of_gol" (
"year" real,
"round_1" text,
"round_2" text,
"place" real,
"money" real
); | SELECT MAX("money") FROM "performance_at_the_pga_grand_slam_of_gol" WHERE "round_1"='71'; | 2-13298049-3 |
Round 1 of 66, and a Money ($) larger than 400,000 has what sum of year? | CREATE TABLE "performance_at_the_pga_grand_slam_of_gol" (
"year" real,
"round_1" text,
"round_2" text,
"place" real,
"money" real
); | SELECT SUM("year") FROM "performance_at_the_pga_grand_slam_of_gol" WHERE "round_1"='66' AND "money">'400,000'; | 2-13298049-3 |
Round 1 of 70, and a Money ($) larger than 500,000 has the highest year? | CREATE TABLE "performance_at_the_pga_grand_slam_of_gol" (
"year" real,
"round_1" text,
"round_2" text,
"place" real,
"money" real
); | SELECT MAX("year") FROM "performance_at_the_pga_grand_slam_of_gol" WHERE "round_1"='70' AND "money">'500,000'; | 2-13298049-3 |
When was the latest debut in Europe for Henrik Larsson, with less than 108 games? | CREATE TABLE "top_scorers_in_uefa_club_competitions" (
"rank" real,
"player" text,
"goals" real,
"games" real,
"debut_in_europe" real
); | SELECT MAX("debut_in_europe") FROM "top_scorers_in_uefa_club_competitions" WHERE "player"='henrik larsson' AND "games"<108; | 2-12307135-7 |
What were the lowest goals with a debut before 1961 in Europe? | CREATE TABLE "top_scorers_in_uefa_club_competitions" (
"rank" real,
"player" text,
"goals" real,
"games" real,
"debut_in_europe" real
); | SELECT MIN("goals") FROM "top_scorers_in_uefa_club_competitions" WHERE "debut_in_europe"<1961; | 2-12307135-7 |
What was Thierry Henry's average goal when his rank was higher than 7? | CREATE TABLE "top_scorers_in_uefa_club_competitions" (
"rank" real,
"player" text,
"goals" real,
"games" real,
"debut_in_europe" real
); | SELECT AVG("goals") FROM "top_scorers_in_uefa_club_competitions" WHERE "player"='thierry henry' AND "rank">7; | 2-12307135-7 |
Name the surface for february 25, 1996 | CREATE TABLE "doubles_9_5_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "surface" FROM "doubles_9_5_4" WHERE "date"='february 25, 1996'; | 2-12556787-5 |
Name the tournament for may 18, 1997 | CREATE TABLE "doubles_9_5_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "tournament" FROM "doubles_9_5_4" WHERE "date"='may 18, 1997'; | 2-12556787-5 |
Name the partner for may 2, 1993 | CREATE TABLE "doubles_9_5_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "partner" FROM "doubles_9_5_4" WHERE "date"='may 2, 1993'; | 2-12556787-5 |
Name the opponents for may 18, 1997 | CREATE TABLE "doubles_9_5_4" (
"outcome" text,
"date" text,
"tournament" text,
"surface" text,
"partner" text,
"opponents" text,
"score" text
); | SELECT "opponents" FROM "doubles_9_5_4" WHERE "date"='may 18, 1997'; | 2-12556787-5 |
When the call sign is wpib, what is lowest ERP W? | CREATE TABLE "full_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT MIN("erp_w") FROM "full_power_translators" WHERE "call_sign"='wpib'; | 2-12840409-1 |
Which class's call sign is wokg? | CREATE TABLE "full_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "class" FROM "full_power_translators" WHERE "call_sign"='wokg'; | 2-12840409-1 |
The frequency 89.3 belongs to what class? | CREATE TABLE "full_power_translators" (
"call_sign" text,
"frequency_m_hz" real,
"city_of_license" text,
"erp_w" real,
"class" text,
"fcc_info" text
); | SELECT "class" FROM "full_power_translators" WHERE "frequency_m_hz"=89.3; | 2-12840409-1 |
With a type of mass suicide located in France and a low estimate greater than 16, the sum of the high estimate numbers listed is what number? | CREATE TABLE "human_sacrifice_and_mass_suicide" (
"low_estimate" real,
"high_estimate" real,
"type" text,
"location" text,
"date" text
); | SELECT SUM("high_estimate") FROM "human_sacrifice_and_mass_suicide" WHERE "type"='mass suicide' AND "location"='france' AND "low_estimate">16; | 2-13046272-6 |
What is the sum of low estimate(s) that is listed for the date of 1978? | CREATE TABLE "human_sacrifice_and_mass_suicide" (
"low_estimate" real,
"high_estimate" real,
"type" text,
"location" text,
"date" text
); | SELECT SUM("low_estimate") FROM "human_sacrifice_and_mass_suicide" WHERE "date"='1978'; | 2-13046272-6 |
What is the highest total number of finals a club with more than 2 runners-up and fewer than 1 winner went to? | CREATE TABLE "winners_by_club" (
"clubs" text,
"winners" real,
"runners_up" real,
"total_finals" real,
"winnig_years" text
); | SELECT MAX("total_finals") FROM "winners_by_club" WHERE "runners_up">2 AND "winners"<1; | 2-12965873-1 |
How many receptions were smaller than 161 receiving yards but also had less than 14 rushing TDs? | CREATE TABLE "college_career" (
"year" text,
"games" real,
"rushes" real,
"rushing_yards" real,
"rushing_t_ds" real,
"receptions" real,
"receiving_yards" real,
"receiving_t_ds" real
); | SELECT COUNT("receptions") FROM "college_career" WHERE "receiving_yards"<161 AND "rushing_t_ds"<14; | 2-12816301-1 |
What was the greatest number of rushing yards for a runner who had 283 rushes and less than 10 rushing TDs? | CREATE TABLE "college_career" (
"year" text,
"games" real,
"rushes" real,
"rushing_yards" real,
"rushing_t_ds" real,
"receptions" real,
"receiving_yards" real,
"receiving_t_ds" real
); | SELECT MAX("rushing_yards") FROM "college_career" WHERE "rushes"=283 AND "rushing_t_ds"<10; | 2-12816301-1 |
What was the Agg., when Team 1 was VSADC? | CREATE TABLE "first_round" (
"team_1" text,
"agg" text,
"team_2" text,
"1st_leg" text,
"2nd_leg" text
); | SELECT "agg" FROM "first_round" WHERE "team_1"='vsadc'; | 2-12284669-8 |
How many goals were scored by the team that played less than 38 games, and had points of 47+9? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT MAX("goals_for") FROM "final_table" WHERE "points"='47+9' AND "played"<38; | 2-12149856-2 |
What is the average wins of the team with more than 13 draws, a goal difference of -14, and losses less than 14? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT AVG("wins") FROM "final_table" WHERE "draws">13 AND "goal_difference"=-14 AND "losses"<14; | 2-12149856-2 |
In the club of Real Oviedo, what were the points of the competitor with a goal difference less than 38, and 12 wins? | CREATE TABLE "final_table" (
"position" real,
"club" text,
"played" real,
"points" text,
"wins" real,
"draws" real,
"losses" real,
"goals_for" real,
"goals_against" real,
"goal_difference" real
); | SELECT "points" FROM "final_table" WHERE "goal_difference"<38 AND "wins"=12 AND "club"='real oviedo'; | 2-12149856-2 |
Name the visitor with attendance more than 14,646 and home of los angeles | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "visitor" FROM "regular_season" WHERE "attendance">'14,646' AND "home"='los angeles'; | 2-13244501-6 |
Name the record for february 25 | CREATE TABLE "regular_season" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "regular_season" WHERE "date"='february 25'; | 2-13244501-6 |
What nationality has 116 appearances? | CREATE TABLE "list_of_players" (
"nationality" text,
"position_a" text,
"milan_career" text,
"captaincy" text,
"appearances" real,
"goals" real
); | SELECT "nationality" FROM "list_of_players" WHERE "appearances"=116; | 2-12875241-2 |
What is the captaincy for Defender that has less than 212 appearances and 12 goals? | CREATE TABLE "list_of_players" (
"nationality" text,
"position_a" text,
"milan_career" text,
"captaincy" text,
"appearances" real,
"goals" real
); | SELECT "captaincy" FROM "list_of_players" WHERE "appearances"<212 AND "goals"=12 AND "position_a"='defender'; | 2-12875241-2 |
Attendance larger than 55,189 is which average game? | CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
); | SELECT AVG("game") FROM "summary" WHERE "attendance">'55,189'; | 2-1332360-1 |
Game larger than 4, and a Time of 2:26 resulted in what score? | CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
); | SELECT "score" FROM "summary" WHERE "game">4 AND "time"='2:26'; | 2-1332360-1 |
What record does the event of dream 9 with a round of 2 hold? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "record" FROM "mixed_martial_arts_record" WHERE "round"=2 AND "event"='dream 9'; | 2-12454533-2 |
What time was Opponent Fredson Paixão beaten in? | CREATE TABLE "mixed_martial_arts_record" (
"res" text,
"record" text,
"opponent" text,
"method" text,
"event" text,
"round" real,
"time" text,
"location" text
); | SELECT "time" FROM "mixed_martial_arts_record" WHERE "opponent"='fredson paixão'; | 2-12454533-2 |
What league is entering this round with 24 clubs remaining? | CREATE TABLE "format" (
"phase" text,
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
); | SELECT "leagues_entering_at_this_round" FROM "format" WHERE "clubs_remaining"=24; | 2-1281200-1 |
How many new entries are there for a second phase that has 4 winners from previous rounds? | CREATE TABLE "format" (
"phase" text,
"round" text,
"clubs_remaining" real,
"clubs_involved" real,
"winners_from_previous_round" text,
"new_entries_this_round" text,
"leagues_entering_at_this_round" text
); | SELECT "new_entries_this_round" FROM "format" WHERE "phase"='second phase' AND "winners_from_previous_round"='4'; | 2-1281200-1 |
What is the highest number of laps with a 21 start? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT MAX("laps") FROM "indy_500_results" WHERE "start"='21'; | 2-1252130-1 |
What is the qual for rank 20? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "qual" FROM "indy_500_results" WHERE "rank"='20'; | 2-1252130-1 |
What is the average number of laps in 1949? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT AVG("laps") FROM "indy_500_results" WHERE "year"='1949'; | 2-1252130-1 |
What is the total number of laps with a 128.260 qual? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT COUNT("laps") FROM "indy_500_results" WHERE "qual"='128.260'; | 2-1252130-1 |
What is the start number for a rank 11 race with less than 200 laps? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "start" FROM "indy_500_results" WHERE "laps"<200 AND "rank"='11'; | 2-1252130-1 |
Name the staes on the ballot for jack herer | CREATE TABLE "results_in_presidential_elections" (
"year" real,
"candidate" text,
"state_s_on_the_ballot" text,
"popular_votes" real,
"percentage" text
); | SELECT "state_s_on_the_ballot" FROM "results_in_presidential_elections" WHERE "candidate"='jack herer'; | 2-1238577-3 |
Name the loss with record of 45-59 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='45-59'; | 2-12206056-6 |
Name the loss with record of 38-53 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "record"='38-53'; | 2-12206056-6 |
Name the score for record 33-47 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "score" FROM "game_log" WHERE "record"='33-47'; | 2-12206056-6 |
Name the attendance with record of 34-51 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "attendance" FROM "game_log" WHERE "record"='34-51'; | 2-12206056-6 |
Name the opponent with attendance of 31,777 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "attendance"='31,777'; | 2-12206056-6 |
How many points drew 2 with a losing bonus of 5? | CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points_for" FROM "2010_2011_table" WHERE "drawn"='2' AND "losing_bonus"='5'; | 2-12792876-2 |
What is the number of tries for that has 30 tries against? | CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "tries_for" FROM "2010_2011_table" WHERE "tries_against"='30'; | 2-12792876-2 |
How many points did the Bridgend Athletic RFC have? | CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points" FROM "2010_2011_table" WHERE "club"='bridgend athletic rfc'; | 2-12792876-2 |
How many points were scored against the club that drew 3 and scored 50 points? | CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "points_against" FROM "2010_2011_table" WHERE "drawn"='3' AND "points"='50'; | 2-12792876-2 |
What try bonus drew 0 and scored 427 points for? | CREATE TABLE "2010_2011_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text,
"losing_bonus" text,
"points" text
); | SELECT "try_bonus" FROM "2010_2011_table" WHERE "drawn"='0' AND "points_for"='427'; | 2-12792876-2 |
What was the qualifying time of Jim Rathmann in 1959? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "qual" FROM "indy_500_results" WHERE "year"='1959'; | 2-1252109-1 |
What is the most recent championship for FISA? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='fisa'; | 2-1228416-1 |
What is the average points earned for entrants with ATS V8 engines? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT AVG("points") FROM "complete_formula_one_world_championship_" WHERE "engine"='ats v8'; | 2-1228416-1 |
What was the outcome from the 2009 match in the final against Chong Wei Feng? | CREATE TABLE "career_finals_9_titles_2_runner_ups" (
"outcome" real,
"year" real,
"tournament" text,
"opponent_in_final" text,
"score" text
); | SELECT "outcome" FROM "career_finals_9_titles_2_runner_ups" WHERE "year"=2009 AND "opponent_in_final"='chong wei feng'; | 2-12978997-1 |
What was the try bonus for the team with 25 tries for? | CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
); | SELECT "try_bonus" FROM "2007_2008_table" WHERE "tries_for"='25'; | 2-12792876-5 |
How many points for did Bridgend Athletic RFC score? | CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
); | SELECT "points_for" FROM "2007_2008_table" WHERE "club"='bridgend athletic rfc'; | 2-12792876-5 |
How many tries for did the team with a try bonus of 5 score? | CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
); | SELECT "tries_for" FROM "2007_2008_table" WHERE "try_bonus"='5'; | 2-12792876-5 |
How many points against did the team that allowed 42 tries against allow? | CREATE TABLE "2007_2008_table" (
"club" text,
"played" text,
"drawn" text,
"lost" text,
"points_for" text,
"points_against" text,
"tries_for" text,
"tries_against" text,
"try_bonus" text
); | SELECT "points_against" FROM "2007_2008_table" WHERE "tries_against"='42'; | 2-12792876-5 |
What is the average number of bronze medals associated with 0 silver, 1 total, and ranks over 16? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("bronze") FROM "medal_table" WHERE "total"=1 AND "silver"=0 AND "rank">16; | 2-13015362-3 |
What is the highest total number of medals associated with 1 gold, more than 0 silver, and 2 bronze? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MAX("total") FROM "medal_table" WHERE "bronze"=2 AND "gold"=1 AND "silver">0; | 2-13015362-3 |
What is the total number of Total values associated with mroe than 3 silvers, more than 2 bronze, and a rank of 3? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("total") FROM "medal_table" WHERE "silver">3 AND "rank"=3 AND "bronze">2; | 2-13015362-3 |
What is the smallest Silver value associated with teams having more than 0 gold, 0 bronze, and a rank of 14? | CREATE TABLE "medal_table" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT MIN("silver") FROM "medal_table" WHERE "bronze"=0 AND "rank"=14 AND "gold">0; | 2-13015362-3 |
What is the qual 1 for conquest racing? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" real,
"best" real
); | SELECT "qual_1" FROM "qualifying_results" WHERE "team"='conquest racing'; | 2-12126919-1 |
Graham rahal for n/h/l racing has a qual 2 greater than 59.384 and how much lowest best? | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" real,
"best" real
); | SELECT MIN("best") FROM "qualifying_results" WHERE "team"='n/h/l racing' AND "name"='graham rahal' AND "qual_2">59.384; | 2-12126919-1 |
What is the total best for Bruno junqueira | CREATE TABLE "qualifying_results" (
"name" text,
"team" text,
"qual_1" text,
"qual_2" real,
"best" real
); | SELECT SUM("best") FROM "qualifying_results" WHERE "name"='bruno junqueira'; | 2-12126919-1 |
What is the Mascot of Brook? | CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"year_joined" real,
"year_left" real,
"conference_joined" text
); | SELECT "mascot" FROM "former_members" WHERE "location"='brook'; | 2-12393831-2 |
When was the first year when Fowler joined? | CREATE TABLE "former_members" (
"school" text,
"location" text,
"mascot" text,
"num_county" text,
"year_joined" real,
"year_left" real,
"conference_joined" text
); | SELECT MIN("year_left") FROM "former_members" WHERE "location"='fowler'; | 2-12393831-2 |
What is the molecular target of bacterium? | CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
"compound_name" text,
"trademark" text,
"marine_organism" text,
"chemical_class" text,
"molecular_target" text,
"clinical_trials" text,
"disease_area" text
); | SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "marine_organism"='bacterium'; | 2-12715053-1 |
What is the organism that has a disease area of cancer and has 4/4 clinical trial b? | CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
"compound_name" text,
"trademark" text,
"marine_organism" text,
"chemical_class" text,
"molecular_target" text,
"clinical_trials" text,
"disease_area" text
); | SELECT "marine_organism" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "disease_area"='cancer' AND "clinical_trials"='4/4'; | 2-12715053-1 |
What is the molecular target of the organism that has a disease area of antiviral? | CREATE TABLE "clinical_pipeline_of_marine_pharmacology" (
"clinical_status" text,
"compound_name" text,
"trademark" text,
"marine_organism" text,
"chemical_class" text,
"molecular_target" text,
"clinical_trials" text,
"disease_area" text
); | SELECT "molecular_target" FROM "clinical_pipeline_of_marine_pharmacology" WHERE "disease_area"='antiviral'; | 2-12715053-1 |
On what date was the record 62–84? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "date" FROM "game_log" WHERE "record"='62–84'; | 2-12207900-7 |
What was the record on September 4? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='september 4'; | 2-12207900-7 |
What was the record on September 26? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='september 26'; | 2-12207900-7 |
Who was the opponent with a Loss of Leal (1–4)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "loss"='leal (1–4)'; | 2-12207900-7 |
In the Class T, what is the total of the 1958 UTA? | CREATE TABLE "great_northern_railway" (
"class" text,
"type" text,
"fleet_numbers" text,
"quantity_made" real,
"manufacturer" text,
"date_made" text,
"1958_ci" real,
"1958_uta" real,
"date_withdrawn" text
); | SELECT COUNT("1958_uta") FROM "great_northern_railway" WHERE "class"='t'; | 2-1290024-9 |
What was the result of the match played on 13 October 1993? | CREATE TABLE "jo_o_pinto_international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "result" FROM "jo_o_pinto_international_goals" WHERE "date"='13 october 1993'; | 2-1254376-2 |
When did the team score 21 goals? | CREATE TABLE "jo_o_pinto_international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "date" FROM "jo_o_pinto_international_goals" WHERE "goal"=21; | 2-1254376-2 |
What was the score of the match played on 14 October 1998, resulting in more than 10 goals? | CREATE TABLE "jo_o_pinto_international_goals" (
"goal" real,
"date" text,
"score" text,
"result" text,
"competition" text
); | SELECT "score" FROM "jo_o_pinto_international_goals" WHERE "date"='14 october 1998' AND "goal">10; | 2-1254376-2 |
What is the total number of years that Scuderia Guastalla was an entrant? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='scuderia guastalla'; | 2-1235883-1 |
What was the earliest year that Scuderia Ferrari was an entrant with 0 points? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT MIN("year") FROM "complete_formula_one_world_championship_" WHERE "points"='0' AND "entrant"='scuderia ferrari'; | 2-1235883-1 |
What is the total number of years that has a chassis of Ferrari 625 and 2 points? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT COUNT("year") FROM "complete_formula_one_world_championship_" WHERE "chassis"='ferrari 625' AND "points"='2'; | 2-1235883-1 |
What players played mixed doubles when zhang xi played mixed singles? | CREATE TABLE "21st_century" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "mixed_doubles" FROM "21st_century" WHERE "women_s_singles"='zhang xi'; | 2-12121208-1 |
What player played women's singles when marcus ellis heather olver played mixed doubles? | CREATE TABLE "21st_century" (
"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 "21st_century" WHERE "mixed_doubles"='marcus ellis heather olver'; | 2-12121208-1 |
What player played women's doubles when lee jae-jin lee eun-woo played mixed doubles? | CREATE TABLE "21st_century" (
"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 "21st_century" WHERE "mixed_doubles"='lee jae-jin lee eun-woo'; | 2-12121208-1 |
What year did helle nielsen marie røpke play womens' doubles? | CREATE TABLE "21st_century" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT "year" FROM "21st_century" WHERE "women_s_doubles"='helle nielsen marie røpke'; | 2-12121208-1 |
What is the latest year that chou tien-chen played men's singles? | CREATE TABLE "21st_century" (
"year" real,
"men_s_singles" text,
"women_s_singles" text,
"men_s_doubles" text,
"women_s_doubles" text,
"mixed_doubles" text
); | SELECT MAX("year") FROM "21st_century" WHERE "men_s_singles"='chou tien-chen'; | 2-12121208-1 |
Which 2006 Cobra Starship song has work done of guest vocals? | CREATE TABLE "guest_appearances" (
"year" real,
"song" text,
"work_done" text,
"artist_s" text,
"album" text
); | SELECT "song" FROM "guest_appearances" WHERE "work_done"='guest vocals' AND "year"=2006 AND "artist_s"='cobra starship'; | 2-12476242-1 |
What is the decile sum with a roll smaller than 25, and franz josef area? | CREATE TABLE "westland_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT SUM("decile") FROM "westland_district" WHERE "roll"<25 AND "area"='franz josef'; | 2-12300697-3 |
What is the area with decile of 8, and a 25 roll? | CREATE TABLE "westland_district" (
"name" text,
"years" text,
"area" text,
"authority" text,
"decile" real,
"roll" real
); | SELECT "area" FROM "westland_district" WHERE "decile"=8 AND "roll"=25; | 2-12300697-3 |
What is the overall pick average with the pick # lower than 15? | CREATE TABLE "indianapolis_colts_draft_history" (
"round" real,
"pick_num" real,
"overall" real,
"name" text,
"position" text,
"college" text
); | SELECT AVG("overall") FROM "indianapolis_colts_draft_history" WHERE "pick_num"<15; | 2-13312898-37 |
What is the lowest rank for Spain when more than 10 medals were won, 3 of which were bronze? | CREATE TABLE "winter_paralmypics" (
"games" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real,
"rank" real
); | SELECT MIN("rank") FROM "winter_paralmypics" WHERE "bronze"=3 AND "total">10; | 2-12771081-2 |
What is the Qual listed on the Year of 1954? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "qual" FROM "indy_500_results" WHERE "year"='1954'; | 2-1252112-1 |
Which Year has a Qual of 144.683 and Lap larger than 27? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "year" FROM "indy_500_results" WHERE "laps">27 AND "qual"='144.683'; | 2-1252112-1 |
What's the Qual listed with a Rank of 27? | CREATE TABLE "indy_500_results" (
"year" text,
"start" text,
"qual" text,
"rank" text,
"finish" text,
"laps" real
); | SELECT "qual" FROM "indy_500_results" WHERE "rank"='27'; | 2-1252112-1 |
Which Team has a Year of 1978? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "team" FROM "complete_formula_one_world_championship_" WHERE "year"=1978; | 2-1219630-1 |
Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"team" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT "engine" FROM "complete_formula_one_world_championship_" WHERE "team"='chesterfield racing' AND "chassis"='march 761'; | 2-1219630-1 |
What is the smallest year with a Mintage smaller than 10,000? | CREATE TABLE "first_strikes" (
"year" real,
"sport" text,
"artist" text,
"mintage" real,
"issue_price" text,
"release_date" text
); | SELECT MIN("year") FROM "first_strikes" WHERE "mintage"<'10,000'; | 2-1237029-9 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.