question stringlengths 12 244 | create_table_statement stringlengths 97 895 | sql_query stringlengths 27 479 | wiki_sql_table_id stringlengths 8 14 |
|---|---|---|---|
What was Collingwood's score when they played against North Melbourne at home? | CREATE TABLE "round_8" (
"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_8" WHERE "away_team"='north melbourne'; | 2-10789881-8 |
What was the home team score at Melbourne's away match? | CREATE TABLE "round_8" (
"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_8" WHERE "away_team"='melbourne'; | 2-10789881-8 |
How many people were in attendance at Hawthorn's home match? | CREATE TABLE "round_8" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MIN("crowd") FROM "round_8" WHERE "home_team"='hawthorn'; | 2-10789881-8 |
what is the capital with the Voivodeship Separate city of białostockie? | CREATE TABLE "polish_voivodeships_1919_1939" (
"car_plates_since_1937" text,
"voivodeship_separate_city" text,
"capital" text,
"area_in_1000km_1930" text,
"population_in_1000_1931" text
); | SELECT "capital" FROM "polish_voivodeships_1919_1939" WHERE "voivodeship_separate_city"='białostockie'; | 2-11654169-1 |
between car plates of 80-84 what is the population in 1000 in year 1931? | CREATE TABLE "polish_voivodeships_1919_1939" (
"car_plates_since_1937" text,
"voivodeship_separate_city" text,
"capital" text,
"area_in_1000km_1930" text,
"population_in_1000_1931" text
); | SELECT "population_in_1000_1931" FROM "polish_voivodeships_1919_1939" WHERE "car_plates_since_1937"='80-84'; | 2-11654169-1 |
tell me the population in 1000(1931) that has car plates since 1937 of 35-39. | CREATE TABLE "polish_voivodeships_1919_1939" (
"car_plates_since_1937" text,
"voivodeship_separate_city" text,
"capital" text,
"area_in_1000km_1930" text,
"population_in_1000_1931" text
); | SELECT "population_in_1000_1931" FROM "polish_voivodeships_1919_1939" WHERE "car_plates_since_1937"='35-39'; | 2-11654169-1 |
tell me the name of the capital with an area of 20,4. | CREATE TABLE "polish_voivodeships_1919_1939" (
"car_plates_since_1937" text,
"voivodeship_separate_city" text,
"capital" text,
"area_in_1000km_1930" text,
"population_in_1000_1931" text
); | SELECT "capital" FROM "polish_voivodeships_1919_1939" WHERE "area_in_1000km_1930"='20,4'; | 2-11654169-1 |
When did they play against Wales? | CREATE TABLE "international_tries" (
"date" text,
"venue" text,
"opponent" text,
"result" text,
"competition" text
); | SELECT "date" FROM "international_tries" WHERE "opponent"='wales'; | 2-11470402-1 |
What was the result on 29/09/07? | CREATE TABLE "international_tries" (
"date" text,
"venue" text,
"opponent" text,
"result" text,
"competition" text
); | SELECT "result" FROM "international_tries" WHERE "date"='29/09/07'; | 2-11470402-1 |
What was the competition on 25/08/07? | CREATE TABLE "international_tries" (
"date" text,
"venue" text,
"opponent" text,
"result" text,
"competition" text
); | SELECT "competition" FROM "international_tries" WHERE "date"='25/08/07'; | 2-11470402-1 |
What position is associated with a Time of 20:39.171? | CREATE TABLE "race_2" (
"pos" real,
"driver" text,
"time" text,
"best_time" text,
"points" real
); | SELECT AVG("pos") FROM "race_2" WHERE "time"='20:39.171'; | 2-11903712-3 |
How many points associated with a Best time of 01:46.367? | CREATE TABLE "race_2" (
"pos" real,
"driver" text,
"time" text,
"best_time" text,
"points" real
); | SELECT AVG("points") FROM "race_2" WHERE "best_time"='01:46.367'; | 2-11903712-3 |
What is the total reg gp of Ilya Krikunov, who has a round of 7 and a pick number larger than 223? | 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 "rd_num"=7 AND "player"='ilya krikunov' AND "pick_num">223; | 2-11636955-34 |
What is the total PI GP of the player with a pick number 49 and a reg gp less than 0? | 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("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "pick_num"=49 AND "reg_gp"<0; | 2-11636955-34 |
What is the pick # of the player with a PI GP less than 0? | 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 "pl_gp"<0; | 2-11636955-34 |
What is the reg gp of the player with a round number less than 2? | 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("reg_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"<2; | 2-11636955-34 |
What is the average PI GP of the player from round 5 with a pick # larger than 151? | 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 AVG("pl_gp") FROM "list_of_vancouver_canucks_draft_picks" WHERE "rd_num"=5 AND "pick_num">151; | 2-11636955-34 |
What constellation has a Declination ( J2000 ) of °32′39″? | CREATE TABLE "5801_5900" (
"ngc_number" real,
"object_type" text,
"constellation" text,
"right_ascension_j2000" text,
"declination_j2000" text
); | SELECT "constellation" FROM "5801_5900" WHERE "declination_j2000"='°32′39″'; | 2-11051845-9 |
What is the lowest pick from Elitserien (Sweden)? | CREATE TABLE "round_five" (
"pick_num" real,
"player" text,
"nationality" text,
"position" text,
"team_from" text,
"league_from" text
); | SELECT MIN("pick_num") FROM "round_five" WHERE "league_from"='elitserien (sweden)'; | 2-10897046-7 |
Where was the game played when the home team scored 10.12 (72)? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "venue" FROM "round_7" WHERE "home_team_score"='10.12 (72)'; | 2-10809271-7 |
How many spectators were at the game where Richmond was the away team? | CREATE TABLE "round_7" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT SUM("crowd") FROM "round_7" WHERE "away_team"='richmond'; | 2-10809271-7 |
What is the location of the kanyakumari government medical college? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='kanyakumari government medical college'; | 2-11184686-1 |
Where is the coimbatore affilation that was established in 1982? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "affiliation" FROM "tamil_nadu_government_allopathic_western" WHERE "estd"='1982' AND "location"='coimbatore'; | 2-11184686-1 |
What is the location of the salem district? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "district"='salem district'; | 2-11184686-1 |
What is the location of the tiruchirappalli district? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "district"='tiruchirappalli district'; | 2-11184686-1 |
What is the district where the thanjavur medical college is located? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "district" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='thanjavur medical college'; | 2-11184686-1 |
Where is the location of the coimbatore medical college? | CREATE TABLE "tamil_nadu_government_allopathic_western" (
"college_name" text,
"location" text,
"district" text,
"affiliation" text,
"estd" text
); | SELECT "location" FROM "tamil_nadu_government_allopathic_western" WHERE "college_name"='coimbatore medical college'; | 2-11184686-1 |
What is the Time/Retired when the grid is larger than 9 and Rolf Stommelen is the driver? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "time_retired" FROM "classification" WHERE "grid">9 AND "driver"='rolf stommelen'; | 2-1122554-1 |
What is the highest number of laps when the Time/Retired is differential? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "classification" WHERE "time_retired"='differential'; | 2-1122554-1 |
Who is the driver when the laps are smaller than 14, the grid is smaller than 16, and the Time/retired is not classified? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "driver" FROM "classification" WHERE "laps"<14 AND "grid"<16 AND "time_retired"='not classified'; | 2-1122554-1 |
What is the average grid when the laps are smaller than 14 and Reine Wisell is the driver? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "classification" WHERE "laps"<14 AND "driver"='reine wisell'; | 2-1122554-1 |
Who is the entrant with a driver Damon Hill and a Renault RS8 3.0 V10 engine? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "entrant" FROM "teams_and_drivers" WHERE "engine"='renault rs8 3.0 v10' AND "driver"='damon hill'; | 2-1137696-1 |
Who is the constructor of the car with a Peugeot A12 EV5 3.0 V10 engine that competed in all rounds? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "teams_and_drivers" WHERE "rounds"='all' AND "engine"='peugeot a12 ev5 3.0 v10'; | 2-1137696-1 |
What kind of engine is in the car for Scuderia Ferrari that went all rounds? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "engine" FROM "teams_and_drivers" WHERE "rounds"='all' AND "entrant"='scuderia ferrari'; | 2-1137696-1 |
Who is the constructor of the 196 chassis? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "constructor" FROM "teams_and_drivers" WHERE "chassis"='196'; | 2-1137696-1 |
Name the home with visitor of kings | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT "home" FROM "december" WHERE "visitor"='kings'; | 2-11962021-6 |
Name the total number of attendance when the cavaliers visited | CREATE TABLE "december" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scorer" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "december" WHERE "visitor"='cavaliers'; | 2-11962021-6 |
Which women's doubles had the accompanying Men's singles player Ville Lång? | 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 "men_s_singles"='ville lång'; | 2-12104319-1 |
Which mixed doubles was featured in 2006? | 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 "year"=2006; | 2-12104319-1 |
Which women's doubles had the men's singles player Kenichi Tago? | 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 "men_s_singles"='kenichi tago'; | 2-12104319-1 |
In the games at corio oval, what was the highest crowd? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT MAX("crowd") FROM "round_17" WHERE "venue"='corio oval'; | 2-10789881-17 |
In the match as corio oval, who was the away team? | CREATE TABLE "round_17" (
"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_17" WHERE "venue"='corio oval'; | 2-10789881-17 |
How many communes associated with over 10 cantons and an area (Square km) of 1,589? | CREATE TABLE "complete_list" (
"dep" text,
"chief_town" text,
"arrondissement" text,
"population_1999" text,
"area_square_km" real,
"pop_density" real,
"cantons" real,
"communes" real
); | SELECT AVG("communes") FROM "complete_list" WHERE "cantons">10 AND "area_square_km"='1,589'; | 2-1175233-1 |
Which team won the game on January 12? | CREATE TABLE "january" (
"date" text,
"visitor" text,
"score" text,
"home" text,
"decision" text,
"attendance" real,
"record" text
); | SELECT "decision" FROM "january" WHERE "date"='january 12'; | 2-11902176-6 |
Who was the home team against Geelong? | CREATE TABLE "round_13" (
"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_13" WHERE "away_team"='geelong'; | 2-10790397-13 |
What was the attendance when the VFL played MCG? | CREATE TABLE "round_13" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT COUNT("crowd") FROM "round_13" WHERE "venue"='mcg'; | 2-10790397-13 |
Name the security forces with civilians of 67 | CREATE TABLE "casualties" (
"year" text,
"security_forces" text,
"insurgents" text,
"civilians" text,
"total" text
); | SELECT "security_forces" FROM "casualties" WHERE "civilians"='67'; | 2-11663850-1 |
Name the insurgents for civilians being 49 | CREATE TABLE "casualties" (
"year" text,
"security_forces" text,
"insurgents" text,
"civilians" text,
"total" text
); | SELECT "insurgents" FROM "casualties" WHERE "civilians"='49'; | 2-11663850-1 |
Name the security forces with civilians being 67 | CREATE TABLE "casualties" (
"year" text,
"security_forces" text,
"insurgents" text,
"civilians" text,
"total" text
); | SELECT "security_forces" FROM "casualties" WHERE "civilians"='67'; | 2-11663850-1 |
Name the security forces for 2009 | CREATE TABLE "casualties" (
"year" text,
"security_forces" text,
"insurgents" text,
"civilians" text,
"total" text
); | SELECT "security_forces" FROM "casualties" WHERE "year"='2009'; | 2-11663850-1 |
Tell me the security forces for 849 total | CREATE TABLE "casualties" (
"year" text,
"security_forces" text,
"insurgents" text,
"civilians" text,
"total" text
); | SELECT "security_forces" FROM "casualties" WHERE "total"='849'; | 2-11663850-1 |
What tyre has a chassis of p57 p61? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"engine" text,
"tyre" text,
"driver" text,
"rounds" text
); | SELECT "tyre" FROM "teams_and_drivers" WHERE "chassis"='p57 p61'; | 2-1140103-2 |
what is the highest laps when the grid is 1? | CREATE TABLE "classification" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT MAX("laps") FROM "classification" WHERE "grid"=1; | 2-1122635-1 |
How many athletes had a Swimming Time (pts) of 2:20.93 (1232)? | CREATE TABLE "results" (
"athlete" text,
"shooting_score_pts" text,
"fencing_victories_pts" text,
"swimming_time_pts" text,
"riding_penalties_pts" text,
"running_time_pts" text,
"total" real
); | SELECT COUNT("total") FROM "results" WHERE "swimming_time_pts"='2:20.93 (1232)'; | 2-1108327-2 |
What is the riding penaltie (pts) for the athlete that has a Swimming Time (pts) of 2:18.16 (1264)? | CREATE TABLE "results" (
"athlete" text,
"shooting_score_pts" text,
"fencing_victories_pts" text,
"swimming_time_pts" text,
"riding_penalties_pts" text,
"running_time_pts" text,
"total" real
); | SELECT "riding_penalties_pts" FROM "results" WHERE "swimming_time_pts"='2:18.16 (1264)'; | 2-1108327-2 |
Which owner has a description of Mark 1 pos and is dated 1956? | CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" real
); | SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"=1956 AND "description"='mark 1 pos'; | 2-11913905-7 |
Which owner has a description of Mark 1 CK and is dated 1953? | CREATE TABLE "list_of_great_central_railway_locomotive" (
"number_name" text,
"description" text,
"livery" text,
"owner_s" text,
"date" real
); | SELECT "owner_s" FROM "list_of_great_central_railway_locomotive" WHERE "date"=1953 AND "description"='mark 1 ck'; | 2-11913905-7 |
Who was the athlete who had SEMI of 1:43.79? | CREATE TABLE "final_classification" (
"name_athlete" text,
"final" text,
"lane" real,
"semi" text,
"heat" text
); | SELECT "name_athlete" FROM "final_classification" WHERE "semi"='1:43.79'; | 2-10854609-3 |
What were the final time for the swimmer on lane 4? | CREATE TABLE "final_classification" (
"name_athlete" text,
"final" text,
"lane" real,
"semi" text,
"heat" text
); | SELECT "final" FROM "final_classification" WHERE "lane"=4; | 2-10854609-3 |
What is the final score of the game at lambeau field? | CREATE TABLE "2007" (
"date" text,
"visiting_team" text,
"final_score" text,
"host_team" text,
"stadium" text
); | SELECT "final_score" FROM "2007" WHERE "stadium"='lambeau field'; | 2-10944289-3 |
What rank is aliyya qadi with less than 1421 votes? | CREATE TABLE "unsuccessful_candidates" (
"rank" real,
"list" text,
"candidate_name" text,
"gender" text,
"religion" text,
"votes" real
); | SELECT MIN("rank") FROM "unsuccessful_candidates" WHERE "candidate_name"='aliyya qadi' AND "votes"<1421; | 2-11091294-2 |
Which candidate has more than 279 votes, rank less than 50, is ♀ and al-ahd? | CREATE TABLE "unsuccessful_candidates" (
"rank" real,
"list" text,
"candidate_name" text,
"gender" text,
"religion" text,
"votes" real
); | SELECT "candidate_name" FROM "unsuccessful_candidates" WHERE "votes">279 AND "rank"<50 AND "gender"='♀' AND "list"='al-ahd'; | 2-11091294-2 |
What is the first year that the Favorite Male Replacement category had Ben Vereen as a nominee? | CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
); | SELECT MIN("year") FROM "original_broadway_production" WHERE "category"='favorite male replacement' AND "nominee"='ben vereen'; | 2-10908664-1 |
What year was Kristin Chenoweth nominated in the category of outstanding actress in a musical? | CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
); | SELECT "award_ceremony" FROM "original_broadway_production" WHERE "category"='outstanding actress in a musical' AND "nominee"='kristin chenoweth'; | 2-10908664-1 |
What year was Aaron Tveit nominated in the Favorite Male Replacement category? | CREATE TABLE "original_broadway_production" (
"year" real,
"award_ceremony" text,
"category" text,
"nominee" text,
"result" text
); | SELECT AVG("year") FROM "original_broadway_production" WHERE "result"='nominated' AND "category"='favorite male replacement' AND "nominee"='aaron tveit'; | 2-10908664-1 |
What is the date an away ream scored 6.16 (52)? | CREATE TABLE "round_17" (
"home_team" text,
"home_team_score" text,
"away_team" text,
"away_team_score" text,
"venue" text,
"crowd" real,
"date" text
); | SELECT "date" FROM "round_17" WHERE "away_team_score"='6.16 (52)'; | 2-10807253-17 |
What is the away team that played when the home team scored 10.17 (77)? | CREATE TABLE "round_17" (
"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_17" WHERE "home_team_score"='10.17 (77)'; | 2-10807253-17 |
Tell me the sum of rank for placings of 58 | CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT SUM("rank") FROM "pairs" WHERE "placings"=58; | 2-11178110-5 |
Tell me the lowest placings for United Kingdom and rank less than 13 | CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT MIN("placings") FROM "pairs" WHERE "nation"='united kingdom' AND "rank"<13; | 2-11178110-5 |
I want to know the highest rank with placings more than 123 and points greater than 88.06 | CREATE TABLE "pairs" (
"rank" real,
"name" text,
"nation" text,
"points" real,
"placings" real
); | SELECT MAX("rank") FROM "pairs" WHERE "placings">123 AND "points">88.06; | 2-11178110-5 |
Who is the drive for an Entrant of Scuderia Ambrosiana? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "teams_and_drivers" WHERE "entrant"='scuderia ambrosiana'; | 2-1140119-2 |
Which of the Rounds has an Entrant of automobiles Talbot-Darracq, and Pierre Levegh as the driver? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "rounds" FROM "teams_and_drivers" WHERE "entrant"='automobiles talbot-darracq' AND "driver"='pierre levegh'; | 2-1140119-2 |
Who is the driver for the Entract of Enrico Platé? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "teams_and_drivers" WHERE "entrant"='enrico platé'; | 2-1140119-2 |
Which of the entrants had Luigi Fagioli as a driver? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "entrant" FROM "teams_and_drivers" WHERE "driver"='luigi fagioli'; | 2-1140119-2 |
Who is the driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "driver" FROM "teams_and_drivers" WHERE "constructor"='era' AND "entrant"='t.a.s.o. mathieson'; | 2-1140119-2 |
Which chassis had Rounds of 7, and an Entrant of Ecurie Rosier? | CREATE TABLE "teams_and_drivers" (
"entrant" text,
"constructor" text,
"chassis" text,
"driver" text,
"rounds" text
); | SELECT "chassis" FROM "teams_and_drivers" WHERE "rounds"='7' AND "entrant"='ecurie rosier'; | 2-1140119-2 |
Who is the winner constructor with driver riccardo patrese? | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "winning_constructor" FROM "grands_prix" WHERE "winning_driver"='riccardo patrese'; | 2-1137704-2 |
What is the highest round on 5 april? | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT MAX("round") FROM "grands_prix" WHERE "date"='5 april'; | 2-1137704-2 |
Which date was hermanos rodríguez the location? | CREATE TABLE "grands_prix" (
"round" real,
"grand_prix" text,
"date" text,
"location" text,
"pole_position" text,
"fastest_lap" text,
"winning_driver" text,
"winning_constructor" text,
"report" text
); | SELECT "date" FROM "grands_prix" WHERE "location"='hermanos rodríguez'; | 2-1137704-2 |
Name the record for may 3 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='may 3'; | 2-11785072-3 |
Name the total number in attendance for may 1 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT COUNT("attendance") FROM "game_log" WHERE "date"='may 1'; | 2-11785072-3 |
Name the loss on may 29 | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "loss" FROM "game_log" WHERE "date"='may 29'; | 2-11785072-3 |
How many cuts were made when there weren't any wins but had a top-5 of 1 and a top 10 larger than 4? | CREATE TABLE "summary" (
"tournament" text,
"wins" real,
"top_5" real,
"top_10" real,
"top_25" real,
"events" real,
"cuts_made" real
); | SELECT SUM("cuts_made") FROM "summary" WHERE "wins"<1 AND "top_5"=1 AND "top_10">4; | 2-1110732-7 |
Which college has a Player of shabazz muhammad? | CREATE TABLE "2012_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "college" FROM "2012_boys_team" WHERE "player"='shabazz muhammad'; | 2-11677760-32 |
How tall is nerlens noel? | CREATE TABLE "2012_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "height" FROM "2012_boys_team" WHERE "player"='nerlens noel'; | 2-11677760-32 |
Who is from flower mound, tx? | CREATE TABLE "2012_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "player" FROM "2012_boys_team" WHERE "hometown"='flower mound, tx'; | 2-11677760-32 |
Where is shabazz muhammad from? | CREATE TABLE "2012_boys_team" (
"player" text,
"height" text,
"school" text,
"hometown" text,
"college" text
); | SELECT "hometown" FROM "2012_boys_team" WHERE "player"='shabazz muhammad'; | 2-11677760-32 |
What was the opponent for july 21? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "opponent" FROM "game_log" WHERE "date"='july 21'; | 2-11514020-4 |
What was the record on july 24? | CREATE TABLE "game_log" (
"date" text,
"opponent" text,
"score" text,
"loss" text,
"attendance" real,
"record" text
); | SELECT "record" FROM "game_log" WHERE "date"='july 24'; | 2-11514020-4 |
Who constructed the car with a grid under 15, 77 laps, and a Time/Retired of + 0.771? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT "constructor" FROM "race" WHERE "grid"<15 AND "laps"=77 AND "time_retired"='+ 0.771'; | 2-1123282-2 |
What is the average grid for damon hill with over 74 laps? | CREATE TABLE "race" (
"driver" text,
"constructor" text,
"laps" real,
"time_retired" text,
"grid" real
); | SELECT AVG("grid") FROM "race" WHERE "laps">74 AND "driver"='damon hill'; | 2-1123282-2 |
Which position has a School/club team of jacksonville? | CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"pos" text,
"nationality" text,
"team" text,
"school_club_team" text
); | SELECT "pos" FROM "draft" WHERE "school_club_team"='jacksonville'; | 2-1159770-3 |
How many rounds have a Pick of 13? | CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"pos" text,
"nationality" text,
"team" text,
"school_club_team" text
); | SELECT SUM("round") FROM "draft" WHERE "pick"=13; | 2-1159770-3 |
How many rounds have School/club team of pan american? | CREATE TABLE "draft" (
"round" real,
"pick" real,
"player" text,
"pos" text,
"nationality" text,
"team" text,
"school_club_team" text
); | SELECT SUM("round") FROM "draft" WHERE "school_club_team"='pan american'; | 2-1159770-3 |
What is the earliest year a chassis of ferrari 312t and results of 31 points occurred? | 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 "chassis"='ferrari 312t' AND "points"='31'; | 2-1172362-1 |
What is the chassis when there is 25 points? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points"='25'; | 2-1172362-1 |
How many points were there before 1979 with a ferrari 312b2 chassis? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT "points" FROM "complete_formula_one_world_championship_" WHERE "year"<1979 AND "chassis"='ferrari 312b2'; | 2-1172362-1 |
What year were there 29 (32) points? | CREATE TABLE "complete_formula_one_world_championship_" (
"year" real,
"entrant" text,
"chassis" text,
"engine" text,
"points" text
); | SELECT "year" FROM "complete_formula_one_world_championship_" WHERE "points"='29 (32)'; | 2-1172362-1 |
What result occurs when the round is 4 leg 2? | CREATE TABLE "2004_05_middlesbrough_f_c_season" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "2004_05_middlesbrough_f_c_season" WHERE "round"='4 leg 2'; | 2-11645756-3 |
What was the result for the round of 4 leg 2 when the attendance was less than 20,371? | CREATE TABLE "2004_05_middlesbrough_f_c_season" (
"round" text,
"date" text,
"opponent" text,
"venue" text,
"result" text,
"attendance" real
); | SELECT "result" FROM "2004_05_middlesbrough_f_c_season" WHERE "attendance">'20,371' AND "round"='4 leg 2'; | 2-11645756-3 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.