question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
Which year has a total of 0 points and a chassis of Toleman tg181? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT AVG("year") FROM "complete_formula_one_results" WHERE "points"=0 AND "chassis"='toleman tg181'; | 2-1158017-1 |
What is the latest year that has more than 5 points and a renault ef15 1.5 v6 t engine? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT MAX("year") FROM "complete_formula_one_results" WHERE "engine"='renault ef15 1.5 v6 t' AND "points">5; | 2-1158017-1 |
Which year had a toleman tg183 chassis? | CREATE TABLE "complete_formula_one_results" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" real
); | SELECT COUNT("year") FROM "complete_formula_one_results" WHERE "chassis"='toleman tg183'; | 2-1158017-1 |
What is the time for tony myres? | CREATE TABLE "junior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "time" FROM "junior_classic_race" WHERE "rider"='tony myres'; | 2-11972799-5 |
Name the speed for andy reynolds | CREATE TABLE "junior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "speed" FROM "junior_classic_race" WHERE "rider"='andy reynolds'; | 2-11972799-5 |
Name the total number of rank for 348cc petty manx | CREATE TABLE "junior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT COUNT("rank") FROM "junior_classic_race" WHERE "team"='348cc petty manx'; | 2-11972799-5 |
Name the speed for 1:36.46.93 | CREATE TABLE "junior_classic_race" (
"rank" real,
"rider" text,
"team" text,
"speed" text,
"time" text
); | SELECT "speed" FROM "junior_classic_race" WHERE "time"='1:36.46.93'; | 2-11972799-5 |
What is the away team score of Melbourne? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_6" WHERE "away_team"='melbourne'; | 2-10809351-6 |
What is the away team score for South Melbourne? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team_score" FROM "round_6" WHERE "away_team"='south melbourne'; | 2-10809351-6 |
What away team has a score of 12.10 (82)? | CREATE TABLE "round_6" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_6" WHERE "away_team_score"='12.10 (82)'; | 2-10809351-6 |
What is Prime Mover of Model FM CFA-16-4? | CREATE TABLE "c_liners" (
"model" text,
"build_year" text,
"total_produced" real,
"wheel_arrangement" text,
"prime_mover" text,
"power_output" text
); | SELECT "prime_mover" FROM "c_liners" WHERE "model"='fm cfa-16-4'; | 2-1111600-2 |
with a 1st prize larger than 315,000 what was the score? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT "score" FROM "tournament_results" WHERE "1st_prize">'315,000'; | 2-11621747-1 |
what was the purse ($) in illinois? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT MAX("purse") FROM "tournament_results" WHERE "location"='illinois'; | 2-11621747-1 |
who won with a score of 199 (-14) on oct 31? | CREATE TABLE "tournament_results" (
"date" text,
"tournament" text,
"location" text,
"purse" real,
"winner" text,
"score" text,
"1st_prize" real
); | SELECT "winner" FROM "tournament_results" WHERE "score"='199 (-14)' AND "date"='oct 31'; | 2-11621747-1 |
How many years did he play in santiago de compostela? | CREATE TABLE "spanish_national_championship" (
"city" text,
"position" real,
"event" text,
"year" real,
"score" text
); | SELECT SUM("year") FROM "spanish_national_championship" WHERE "city"='santiago de compostela'; | 2-10930476-1 |
What is the Total Finale of 女人唔易做? | CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT SUM("finale") FROM "highest_rating_drama_series_of_2006" WHERE "chinese_title"='女人唔易做'; | 2-10942714-1 |
What is the lowest Premiere peaking at more than 35 with a Rank of 10 and Finale greater than 33? | CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT MIN("premiere") FROM "highest_rating_drama_series_of_2006" WHERE "peak">35 AND "rank"=10 AND "finale">33; | 2-10942714-1 |
What is the Chinese Title Premiering 32 with 2.07 million HK viewers? | CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT "chinese_title" FROM "highest_rating_drama_series_of_2006" WHERE "hk_viewers"='2.07 million' AND "premiere"=32; | 2-10942714-1 |
What is the Average of Men in Pain with a Finale of less than 33? | CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT AVG("average") FROM "highest_rating_drama_series_of_2006" WHERE "english_title"='men in pain' AND "finale"<33; | 2-10942714-1 |
What Chinese Title Ranking #7 has an Average of 32 and Peak less than 38? | CREATE TABLE "highest_rating_drama_series_of_2006" (
"rank" real,
"english_title" text,
"chinese_title" text,
"average" real,
"peak" real,
"premiere" real,
"finale" real,
"hk_viewers" text
); | SELECT "chinese_title" FROM "highest_rating_drama_series_of_2006" WHERE "average"=32 AND "peak"<38 AND "rank"=7; | 2-10942714-1 |
Which away team has a score of 17.4 (106)? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "away_team" FROM "round_1" WHERE "away_team_score"='17.4 (106)'; | 2-10790804-1 |
What is the average crowd size for corio oval? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_1" WHERE "venue"='corio oval'; | 2-10790804-1 |
What is the average crowd size for Brunswick street oval? | CREATE TABLE "round_1" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT AVG("crowd") FROM "round_1" WHERE "venue"='brunswick street oval'; | 2-10790804-1 |
What day did the team play in murcia with a score of 0-3 after 1992? | CREATE TABLE "1990_1999" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "date" FROM "1990_1999" WHERE "year">1992 AND "location"='murcia' AND "score"='0-3'; | 2-11280842-3 |
What location did the team win before 1998 in the europe/africa zone, group i, round robin? | CREATE TABLE "1990_1999" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "location" FROM "1990_1999" WHERE "competition"='europe/africa zone, group i, round robin' AND "result"='win' AND "year"<1998; | 2-11280842-3 |
What day did they record a score of 1-2 in 1994? | CREATE TABLE "1990_1999" (
"year" real,
"competition" text,
"date" text,
"location" text,
"score" text,
"result" text
); | SELECT "date" FROM "1990_1999" WHERE "score"='1-2' AND "year"=1994; | 2-11280842-3 |
Who was the opponent on November 5, 1944 with more than 24,123 people to watch? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" real
); | SELECT "opponent" FROM "schedule" WHERE "attendance">'24,123' AND "date"='november 5, 1944'; | 2-11173081-1 |
When the country is austria germany and the rank is kept under 5, what's the average number of matches played? | CREATE TABLE "all_matches" (
"rank" real,
"name" text,
"country" text,
"years" text,
"matches" real,
"goals" real
); | SELECT AVG("matches") FROM "all_matches" WHERE "country"='austria germany' AND "rank"<5; | 2-11336844-1 |
Which country does the player pele belong to? | CREATE TABLE "all_matches" (
"rank" real,
"name" text,
"country" text,
"years" text,
"matches" real,
"goals" real
); | SELECT "country" FROM "all_matches" WHERE "name"='pele'; | 2-11336844-1 |
What is the earliest game that had 42,707 attending? | CREATE TABLE "summary" (
"game" real,
"date" text,
"score" text,
"location" text,
"time" text,
"attendance" real
); | SELECT MIN("game") FROM "summary" WHERE "attendance"='42,707'; | 2-1103715-1 |
What is the sum of the figure skating scores whose total is less than 117.78? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"placings" text,
"figures" real,
"free" real,
"total" real
); | SELECT SUM("figures") FROM "ladies" WHERE "total"<117.78; | 2-11343995-2 |
What is the lowest total score among skaters from West Germany with a rank of 20 and a figure skating score less than 74.85? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"placings" text,
"figures" real,
"free" real,
"total" real
); | SELECT MIN("total") FROM "ladies" WHERE "nation"='west germany' AND "rank"=20 AND "figures"<74.85; | 2-11343995-2 |
How many placings did Jacqueline du Bief earn where her total score is greater than 131.26? | CREATE TABLE "ladies" (
"rank" real,
"name" text,
"nation" text,
"placings" text,
"figures" real,
"free" real,
"total" real
); | SELECT "placings" FROM "ladies" WHERE "total">131.26 AND "name"='jacqueline du bief'; | 2-11343995-2 |
Can you tell me the Placings that hasthe Free smaller than 524.3, and the Total smaller than 1170.1, and the Name of per cock-clausen? | CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"placings" real,
"figures" real,
"free" real,
"total" real
); | SELECT "placings" FROM "men" WHERE "free"<524.3 AND "total"<1170.1 AND "name"='per cock-clausen'; | 2-11124874-1 |
Can you tell me the average Figures that has the Placings of 34, and the Total larger than 1247.51? | CREATE TABLE "men" (
"rank" real,
"name" text,
"nation" text,
"placings" real,
"figures" real,
"free" real,
"total" real
); | SELECT AVG("figures") FROM "men" WHERE "placings"=34 AND "total">1247.51; | 2-11124874-1 |
What is the result where the opponent is Columbus Destroyers? | CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"home_away_game" text,
"result" text
); | SELECT "result" FROM "regular_season_schedule" WHERE "opponent"='columbus destroyers'; | 2-11974088-1 |
What is the date of the away game in week 8? | CREATE TABLE "regular_season_schedule" (
"week" real,
"date" text,
"opponent" text,
"home_away_game" text,
"result" text
); | SELECT "date" FROM "regular_season_schedule" WHERE "home_away_game"='away' AND "week"=8; | 2-11974088-1 |
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position? | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "grand_prix" FROM "grands_prix" WHERE "fastest_lap"='gerhard berger' AND "pole_position"='jacques villeneuve'; | 2-1137695-3 |
Which council has a notional control of noc and a 2007 result of no overall control (snp + ld)? | CREATE TABLE "councils" (
"council" text,
"2003_result" text,
"notional_control_based_on_2003_results" text,
"2007_result" text,
"details" text
); | SELECT "council" FROM "councils" WHERE "notional_control_based_on_2003_results"='noc' AND "2007_result"='no overall control (snp + ld)'; | 2-10964257-2 |
What's the 2007 result when the notional control is noc? | CREATE TABLE "councils" (
"council" text,
"2003_result" text,
"notional_control_based_on_2003_results" text,
"2007_result" text,
"details" text
); | SELECT "2007_result" FROM "councils" WHERE "notional_control_based_on_2003_results"='noc'; | 2-10964257-2 |
What's the 2003 result for the falkirk council? | CREATE TABLE "councils" (
"council" text,
"2003_result" text,
"notional_control_based_on_2003_results" text,
"2007_result" text,
"details" text
); | SELECT "2003_result" FROM "councils" WHERE "council"='falkirk'; | 2-10964257-2 |
What council has a 2007 result of no overall control (ind + snp)? | CREATE TABLE "councils" (
"council" text,
"2003_result" text,
"notional_control_based_on_2003_results" text,
"2007_result" text,
"details" text
); | SELECT "council" FROM "councils" WHERE "2007_result"='no overall control (ind + snp)'; | 2-10964257-2 |
What's the 2007 result when the notional control is noc and the 2003 result is snp? | CREATE TABLE "councils" (
"council" text,
"2003_result" text,
"notional_control_based_on_2003_results" text,
"2007_result" text,
"details" text
); | SELECT "2007_result" FROM "councils" WHERE "notional_control_based_on_2003_results"='noc' AND "2003_result"='snp'; | 2-10964257-2 |
On which date was the manager fired and replaced by Albert Cartier? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='fired' AND "replaced_by"='albert cartier'; | 2-11713303-2 |
What was the manner of departure for the team Anderlecht? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "manner_of_departure" FROM "managerial_changes" WHERE "team"='anderlecht'; | 2-11713303-2 |
What was the manner of depature when the date of appointment was 27 December 2007? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='27 december 2007'; | 2-11713303-2 |
Who was the replacement for the Brussels team with a date of vacancy of 22 December 2007? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "replaced_by" FROM "managerial_changes" WHERE "team"='brussels' AND "date_of_vacancy"='22 december 2007'; | 2-11713303-2 |
What was the date of vacancy where the replacement was Albert Cartier and the manager was fired? | CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
"date_of_vacancy" text,
"replaced_by" text,
"date_of_appointment" text
); | SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='fired' AND "replaced_by"='albert cartier'; | 2-11713303-2 |
What is the Tallangatta DFL losses greater than 2 and an against greater than 1013 | CREATE TABLE "2009_ladder" (
"tallangatta_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT "tallangatta_dfl" FROM "2009_ladder" WHERE "against">1013 AND "losses">2; | 2-11338646-9 |
What are the average byes that are greater than 1479, wins greater than 5 and 0 draws? | CREATE TABLE "2009_ladder" (
"tallangatta_dfl" text,
"wins" real,
"byes" real,
"losses" real,
"draws" real,
"against" real
); | SELECT AVG("byes") FROM "2009_ladder" WHERE "against">1479 AND "wins">5 AND "draws"<0; | 2-11338646-9 |
Tell me the average year for rank more than 3 and 28 floors | CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
); | SELECT AVG("year") FROM "tallest_buildings" WHERE "rank">3 AND "floors"=28; | 2-11111275-1 |
I want the name for rank less than 6 and year more than 1974 | CREATE TABLE "tallest_buildings" (
"rank" real,
"name" text,
"height_m_ft" text,
"floors" real,
"year" real
); | SELECT "name" FROM "tallest_buildings" WHERE "rank"<6 AND "year">1974; | 2-11111275-1 |
What is the average rank of Great Britain when their total is over 4? | CREATE TABLE "nations" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT AVG("rank") FROM "nations" WHERE "total">4 AND "nation"='great britain'; | 2-10982957-7 |
What is the total number of Silvers held by France when their rank was over 14? | CREATE TABLE "nations" (
"rank" real,
"nation" text,
"gold" real,
"silver" real,
"bronze" real,
"total" real
); | SELECT COUNT("silver") FROM "nations" WHERE "nation"='france' AND "rank">14; | 2-10982957-7 |
Who was the home team at the game held at Princes Park? | CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_20" WHERE "venue"='princes park'; | 2-10808933-20 |
Who was the home team when the away team scored 18.18 (126)? | CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_20" WHERE "away_team_score"='18.18 (126)'; | 2-10808933-20 |
Who was the home team when Hawthorn was the away team? | CREATE TABLE "round_20" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team" FROM "round_20" WHERE "away_team"='hawthorn'; | 2-10808933-20 |
What was the Rockies record at their game that had a loss of Hernandez (3–5)? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"record" text
); | SELECT "record" FROM "game_log" WHERE "loss"='hernandez (3–5)'; | 2-11512165-9 |
What engine has g tyres and is driven by elio de angelis? | CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "drivers_and_constructors" WHERE "tyres"='g' AND "driver"='elio de angelis'; | 2-1140080-1 |
What rounds does elio de angelis drive? | CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "rounds" FROM "drivers_and_constructors" WHERE "driver"='elio de angelis'; | 2-1140080-1 |
Who is the constructor for driver alan jones using a chassis of fw06 fw07? | CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='fw06 fw07' AND "driver"='alan jones'; | 2-1140080-1 |
What engine does driver james hunt have? | CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "drivers_and_constructors" WHERE "driver"='james hunt'; | 2-1140080-1 |
What's the engine used for rounds 5-6? | CREATE TABLE "drivers_and_constructors" (
"constructor" text,
"chassis" text,
"engine" text,
"tyres" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "drivers_and_constructors" WHERE "rounds"='5-6'; | 2-1140080-1 |
Who was the home team at Princes Park? | CREATE TABLE "round_4" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_4" WHERE "venue"='princes park'; | 2-10808346-4 |
Tell me the city/state for the holden racing team with winner of mark skaife todd kelly | CREATE TABLE "race_calendar" (
"date" text,
"series" text,
"circuit" text,
"city_state" text,
"winner" text,
"team" text
); | SELECT "city_state" FROM "race_calendar" WHERE "team"='holden racing team' AND "winner"='mark skaife todd kelly'; | 2-11581984-1 |
What is the engine configuration of the 1.2 mpi engine? | CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_configuration" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
); | SELECT "engine_configuration" FROM "engine_specifications" WHERE "engine_name"='1.2 mpi'; | 2-1176162-6 |
What is the max torque of the 1.2 mpi engine? | CREATE TABLE "engine_specifications" (
"engine_name" text,
"engine_configuration" text,
"displacement" text,
"max_power_at_rpm" text,
"max_torque_at_rpm" text
); | SELECT "max_torque_at_rpm" FROM "engine_specifications" WHERE "engine_name"='1.2 mpi'; | 2-1176162-6 |
Tell me the long for TD's of 4 | CREATE TABLE "rushing" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
); | SELECT "long" FROM "rushing" WHERE "td_s"=4; | 2-11784911-4 |
Tell me the long for charles frederick | CREATE TABLE "rushing" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
); | SELECT "long" FROM "rushing" WHERE "player"='charles frederick'; | 2-11784911-4 |
Tell me the average for 1 yards | CREATE TABLE "rushing" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
); | SELECT "avg" FROM "rushing" WHERE "yards"='1'; | 2-11784911-4 |
Tell me the sum of TD's for 4 avg. | CREATE TABLE "rushing" (
"player" text,
"car" real,
"yards" text,
"avg" text,
"td_s" real,
"long" text
); | SELECT SUM("td_s") FROM "rushing" WHERE "avg"='4'; | 2-11784911-4 |
Which time/retired had 75 laps and Pedro de la Rosa as a driver? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "race" WHERE "laps"=75 AND "driver"='pedro de la rosa'; | 2-1123476-2 |
What is the total number in the season for the #30 Robert Berlinger series? | CREATE TABLE "season_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
); | SELECT COUNT("no_in_season") FROM "season_2" WHERE "directed_by"='robert berlinger' AND "no_in_series"=30; | 2-11154187-2 |
When did Julie gets Validated originally air? | CREATE TABLE "season_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
); | SELECT "original_air_date" FROM "season_2" WHERE "title"='julie gets validated'; | 2-11154187-2 |
Who was the number 24 series written by? | CREATE TABLE "season_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
); | SELECT "written_by" FROM "season_2" WHERE "no_in_series"=24; | 2-11154187-2 |
When did Boyd Hale's Julie gets Validated originally air? | CREATE TABLE "season_2" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_air_date" text
); | SELECT "original_air_date" FROM "season_2" WHERE "written_by"='boyd hale' AND "title"='julie gets validated'; | 2-11154187-2 |
What was the Queens number when Brooklyn was 201,866? | CREATE TABLE "1973" (
"1973_democratic_run_off_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
); | SELECT "queens" FROM "1973" WHERE "brooklyn"='201,866'; | 2-1108394-25 |
Which Queens number in the 1973 Democratic run-off primary involved Herman Badillo and where the Bronx's percentage was 47%? | CREATE TABLE "1973" (
"1973_democratic_run_off_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
); | SELECT "queens" FROM "1973" WHERE "1973_democratic_run_off_primary"='herman badillo' AND "the_bronx"='47%'; | 2-1108394-25 |
Which Manhattan number appeared when Richmond (Staten Island) was 78%? | CREATE TABLE "1973" (
"1973_democratic_run_off_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
); | SELECT "manhattan" FROM "1973" WHERE "richmond_staten_is"='78%'; | 2-1108394-25 |
Which Manhattan number was there when the Total was bigger than 354,581 and The Bronx's number was 97,415? | CREATE TABLE "1973" (
"1973_democratic_run_off_primary" text,
"manhattan" text,
"the_bronx" text,
"brooklyn" text,
"queens" text,
"richmond_staten_is" text,
"total" real
); | SELECT "manhattan" FROM "1973" WHERE "total">'354,581' AND "the_bronx"='97,415'; | 2-1108394-25 |
What did the home team score against Fitzroy? | CREATE TABLE "round_5" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "home_team_score" FROM "round_5" WHERE "away_team"='fitzroy'; | 2-10807673-5 |
Who is the listed opponent in Week 2? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "opponent" FROM "schedule" WHERE "week"=2; | 2-11003171-1 |
What date has attendance listed as 45,024? | CREATE TABLE "schedule" (
"week" real,
"date" text,
"opponent" text,
"result" text,
"attendance" text
); | SELECT "date" FROM "schedule" WHERE "attendance"='45,024'; | 2-11003171-1 |
What numbered pick was mattias ohlund, with over 52 PL GP, and also a round under 11? | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT SUM("pick_num") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"<11 AND "player"='mattias ohlund' AND "pl_gp">52; | 2-11636955-26 |
How many reg GP for mattias ohlund? | CREATE TABLE "list_of_vancouver_canucks_draft_picks" (
"rd_num" real,
"pick_num" real,
"player" text,
"team_league" text,
"reg_gp" real,
"pl_gp" real
); | SELECT COUNT("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "player"='mattias ohlund'; | 2-11636955-26 |
What is the average attendance against the expos? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT AVG("attendance") FROM "game_log" WHERE "opponent"='expos'; | 2-11512776-2 |
What is the team's record on april 12? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='april 12'; | 2-11512776-2 |
Who did the team play on april 19? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "date"='april 19'; | 2-11512776-2 |
What is the Aspect of Channel 26.5? | CREATE TABLE "channel_lineup" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
); | SELECT "aspect" FROM "channel_lineup" WHERE "channel"=26.5; | 2-1097268-1 |
Which Programming is on Channel 26.5? | CREATE TABLE "channel_lineup" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
); | SELECT "programming" FROM "channel_lineup" WHERE "channel"=26.5; | 2-1097268-1 |
Which Programming is on a channel less than 26.5, has a Video of 480i and a PSIP Short Name of jtv? | CREATE TABLE "channel_lineup" (
"channel" real,
"video" text,
"aspect" text,
"psip_short_name" text,
"programming" text
); | SELECT "programming" FROM "channel_lineup" WHERE "channel"<26.5 AND "video"='480i' AND "psip_short_name"='jtv'; | 2-1097268-1 |
What number of laps were done by driver Ronnie Peterson? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "laps" FROM "classification" WHERE "driver"='ronnie peterson'; | 2-1122637-1 |
Which driver had a time/retired of fuel system? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "time_retired"='fuel system'; | 2-1122637-1 |
What is the sum of grids with an engine in Time/Retired with less than 45 laps for Giancarlo Baghetti? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT SUM("grid") FROM "classification" WHERE "time_retired"='engine' AND "laps"<45 AND "driver"='giancarlo baghetti'; | 2-1122342-1 |
I want the Grid for Laps of 35 | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "grid" FROM "race" WHERE "laps"=35; | 2-1122044-2 |
What is Jonty Rhodes's batting style? | CREATE TABLE "south_africa" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "batting_style" FROM "south_africa" WHERE "player"='jonty rhodes'; | 2-11950720-6 |
What bowling style does First Class Team, Griqualand West have? | CREATE TABLE "south_africa" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "bowling_style" FROM "south_africa" WHERE "first_class_team"='griqualand west'; | 2-11950720-6 |
What is the batting style of Makhaya Ntini? | CREATE TABLE "south_africa" (
"player" text,
"date_of_birth" text,
"batting_style" text,
"bowling_style" text,
"first_class_team" text
); | SELECT "batting_style" FROM "south_africa" WHERE "player"='makhaya ntini'; | 2-11950720-6 |
What region is the host university of southern california located? | CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
); | SELECT "region" FROM "first_and_second_rounds" WHERE "host"='university of southern california'; | 2-11115240-4 |
In which state is the city of knoxville? | CREATE TABLE "first_and_second_rounds" (
"region" text,
"host" text,
"venue" text,
"city" text,
"state" text
); | SELECT "state" FROM "first_and_second_rounds" WHERE "city"='knoxville'; | 2-11115240-4 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.