question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled?
CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "area" FROM "dunedin_city" WHERE "authority"='state' AND "decile">6 AND "gender"='coed' AND "roll"=26;
2-12303251-4
What is the average roll for Fairfield school?
CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT AVG("roll") FROM "dunedin_city" WHERE "name"='fairfield school';
2-12303251-4
Which school has a roll larger than 26 and is located in Fairfield?
CREATE TABLE "dunedin_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "name" FROM "dunedin_city" WHERE "roll">26 AND "area"='fairfield';
2-12303251-4
how many points are there for a Chassis of porsche 718, and a Year smaller than 1964?
CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT COUNT("points") FROM "world_championship_results" WHERE "chassis"='porsche 718' AND "year"<1964;
2-1219705-1
what is the engine that saw 0 points, and a Chassis of porsche 718, in 1961?
CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "engine" FROM "world_championship_results" WHERE "points"=0 AND "chassis"='porsche 718' AND "year"=1961;
2-1219705-1
what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964?
CREATE TABLE "world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "engine" FROM "world_championship_results" WHERE "chassis"='porsche 718' AND "points"=0 AND "year"<1964;
2-1219705-1
Which bronze has a Nation of poland?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "bronze" FROM "medal_table" WHERE "nation"='poland';
2-12143367-1
Which gold has 3 silver and a Total of 5?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "gold" FROM "medal_table" WHERE "silver"='3' AND "total"='5';
2-12143367-1
Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "gold" FROM "medal_table" WHERE "bronze"='1' AND "rank"='47' AND "nation"='spain';
2-12143367-1
Which nation has a Silver of 1, a Gold of 0, and a Total of 1?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "nation" FROM "medal_table" WHERE "silver"='1' AND "gold"='0' AND "total"='1';
2-12143367-1
Which bronze has a Rank of 37?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "bronze" FROM "medal_table" WHERE "rank"='37';
2-12143367-1
Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" text, "silver" text, "bronze" text, "total" text );
SELECT "silver" FROM "medal_table" WHERE "bronze"='1' AND "total"='4' AND "nation"='slovakia';
2-12143367-1
What is the Issue Date(s) of Volume:Issue of 32:18-19?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text );
SELECT "issue_date_s" FROM "notes" WHERE "volume_issue"='32:18-19';
2-13283553-1
Volume:Issue of 32:26-33:5 was how many Weeks on Top?
CREATE TABLE "notes" ( "volume_issue" text, "issue_date_s" text, "weeks_on_top" real, "song" text, "artist" text );
SELECT "weeks_on_top" FROM "notes" WHERE "volume_issue"='32:26-33:5';
2-13283553-1
What car had the fewest laps with a qual of 138.750?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT MIN("laps") FROM "indy_500_results" WHERE "qual"='138.750';
2-1236260-1
How many laps were there for the car with a qual of 138.750?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "laps" FROM "indy_500_results" WHERE "qual"='138.750';
2-1236260-1
For the car with a qual of 134.288, what was the rank?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "rank" FROM "indy_500_results" WHERE "qual"='134.288';
2-1236260-1
What was the finishing place for 1953?
CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real );
SELECT "finish" FROM "indy_500_results" WHERE "year"='1953';
2-1236260-1
Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939
CREATE TABLE "class" ( "name" text, "pennant" text, "builder" text, "laid_down" text, "launched" text, "commissioned" text );
SELECT "name" FROM "class" WHERE "laid_down"='22 september 1939' AND "commissioned"='30 august 1941';
2-1220125-1
What is the score when there was a Loss of birkbeck (0–3)?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "score" FROM "game_log" WHERE "loss"='birkbeck (0–3)';
2-12383208-3
Which GPU has the cushaw application?
CREATE TABLE "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text );
SELECT "gpu" FROM "bioinformatics" WHERE "application"='cushaw';
2-1268939-1
What is the expected speed up of the gpu-hmmer application?
CREATE TABLE "bioinformatics" ( "application" text, "expected_speed_up" text, "gpu" text, "multi_gpu_support" text, "release_status" text );
SELECT "expected_speed_up" FROM "bioinformatics" WHERE "application"='gpu-hmmer';
2-1268939-1
Who was the host team at the game at the Cleveland Browns Stadium?
CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "host_team" FROM "1999" WHERE "stadium"='cleveland browns stadium';
2-13193466-14
What was the final score when the Buffalo Bills were the visiting team?
CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "1999" WHERE "visiting_team"='buffalo bills';
2-13193466-14
What was the final score when the Denver Broncos were the visiting team?
CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "final_score" FROM "1999" WHERE "visiting_team"='denver broncos';
2-13193466-14
What is the date that a game at the Alltel Stadium had a final score of 6-20?
CREATE TABLE "1999" ( "date" text, "visiting_team" text, "final_score" text, "host_team" text, "stadium" text );
SELECT "date" FROM "1999" WHERE "stadium"='alltel stadium' AND "final_score"='6-20';
2-13193466-14
what is the average season when results is less than 2 times in 2nd and more than 6 times in 3rd?
CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );
SELECT AVG("season") FROM "by_season" WHERE "2nd_pl"<2 AND "3rd_pl">6;
2-13196576-2
How many times was the motorcycle ducati 916 2nd place when wins is less than 7?
CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );
SELECT SUM("2nd_pl") FROM "by_season" WHERE "motorcycle"='ducati 916' AND "wins"<7;
2-13196576-2
Who is the champion when the motorcycle is ducati 916 and 2nd place is less than 5?
CREATE TABLE "by_season" ( "season" real, "champion" text, "motorcycle" text, "wins" real, "2nd_pl" real, "3rd_pl" real, "team" text );
SELECT "champion" FROM "by_season" WHERE "motorcycle"='ducati 916' AND "2nd_pl"<5;
2-13196576-2
What Catalog has a label of Alfa records and a date of November 21, 1980?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "catalog" FROM "release_history" WHERE "label"='alfa records' AND "date"='november 21, 1980';
2-12702977-3
What catalog has a format of ED remaster CD and a date of December 19, 2001?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "catalog" FROM "release_history" WHERE "format"='ed remaster cd' AND "date"='december 19, 2001';
2-12702977-3
What Date has a label of alfa records?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "label"='alfa records';
2-12702977-3
What region has the label of alfa records and the date of January 23, 1987?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "region" FROM "release_history" WHERE "label"='alfa records' AND "date"='january 23, 1987';
2-12702977-3
What date has the format of CD and catalog of alca-274?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "format"='cd' AND "catalog"='alca-274';
2-12702977-3
What date has the format of cd?
CREATE TABLE "release_history" ( "region" text, "date" text, "label" text, "format" text, "catalog" text );
SELECT "date" FROM "release_history" WHERE "format"='cd';
2-12702977-3
What is the Decile number for St Mary's Catholic School?
CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "decile" FROM "otorohanga_district" WHERE "name"='st mary''s catholic school';
2-12146269-8
Which Authority is set for Hauturu School?
CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "authority" FROM "otorohanga_district" WHERE "name"='hauturu school';
2-12146269-8
What School is in the kio kio area?
CREATE TABLE "otorohanga_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real );
SELECT "name" FROM "otorohanga_district" WHERE "area"='kio kio';
2-12146269-8
What race is in the 5th position?
CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );
SELECT "race" FROM "2012_tt_results" WHERE "position"='5th';
2-13063768-4
What Replica has a race of supersport race 1?
CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );
SELECT "replica" FROM "2012_tt_results" WHERE "race"='supersport race 1';
2-13063768-4
What replica has the 5th position?
CREATE TABLE "2012_tt_results" ( "race" text, "position" text, "time_hh_mm_ss" text, "speed_mph" text, "replica" text );
SELECT "replica" FROM "2012_tt_results" WHERE "position"='5th';
2-13063768-4
When a Sigma 7 has a standard byte string, what is the value for the decimal?
CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );
SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "model"='sigma 7';
2-12797090-1
What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512?
CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );
SELECT "byte_string" FROM "32_bit_systems" WHERE "memory_map"='standard' AND "decimal"='standard' AND "floating_point"='standard' AND "max_memory_kwords"<512;
2-12797090-1
What model has both a standard byte string and floating-point?
CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );
SELECT "model" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "floating_point"='standard';
2-12797090-1
On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map?
CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );
SELECT "memory_map" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "max_memory_kwords">128 AND "model"='sigma 9';
2-12797090-1
What is the decimal value when the memory map and byte string are standard, and the max memory is 512?
CREATE TABLE "32_bit_systems" ( "model" text, "floating_point" text, "decimal" text, "byte_string" text, "memory_map" text, "max_memory_kwords" real );
SELECT "decimal" FROM "32_bit_systems" WHERE "byte_string"='standard' AND "memory_map"='standard' AND "max_memory_kwords"=512;
2-12797090-1
Who was the co-driver in the DNF position in the GT1 class?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );
SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "pos"='dnf' AND "class"='gt1';
2-1226503-2
Which co-driver was part of team Martini Lancia earlier than 1986?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );
SELECT "co_drivers" FROM "24_hours_of_le_mans_results" WHERE "year"<1986 AND "team"='martini lancia';
2-1226503-2
The Le Mans Porsche team Joest Racing is in which class?
CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "pos" text, "class_pos" text );
SELECT "class" FROM "24_hours_of_le_mans_results" WHERE "team"='le mans porsche team joest racing';
2-1226503-2
Name the build date for total produced of 146
CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "build_date" FROM "switchers_s_series" WHERE "total_produced"=146;
2-1257252-1
Name the model for specification of dl-066
CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "model" FROM "switchers_s_series" WHERE "specification"='dl-066';
2-1257252-1
Name the power output for model of s-13
CREATE TABLE "switchers_s_series" ( "model" text, "specification" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "power_output" FROM "switchers_s_series" WHERE "model"='s-13';
2-1257252-1
What's the worst score for the worst dancer(s) john barnes, with a best score of 36?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );
SELECT "worst_score" FROM "highest_and_lowest_scoring_performances" WHERE "best_score"=36 AND "worst_dancer_s"='john barnes';
2-12305325-3
What's the worst dance of jive dancer(s)?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );
SELECT "worst_dancer_s" FROM "highest_and_lowest_scoring_performances" WHERE "dance"='jive';
2-12305325-3
What's the best score, with the worst dancer(s) gethin jones/kenny logan?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );
SELECT "best_score" FROM "highest_and_lowest_scoring_performances" WHERE "worst_dancer_s"='gethin jones/kenny logan';
2-12305325-3
What's the best average score with a bad score of 15?
CREATE TABLE "highest_and_lowest_scoring_performances" ( "dance" text, "best_dancer_s" text, "best_score" real, "worst_dancer_s" text, "worst_score" real );
SELECT AVG("best_score") FROM "highest_and_lowest_scoring_performances" WHERE "worst_score"=15;
2-12305325-3
What is the name of the opponent that has a record of 66-69?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "record"='66-69';
2-13041602-7
What was Olin Dutra's score?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "score" FROM "final_round" WHERE "player"='olin dutra';
2-12586224-4
What was Craig Wood's score?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "score" FROM "final_round" WHERE "player"='craig wood';
2-12586224-4
What was Paul Runyan's score?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "score" FROM "final_round" WHERE "player"='paul runyan';
2-12586224-4
What country has a To par of e?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "country" FROM "final_round" WHERE "to_par"='e';
2-12586224-4
What position for the player from villa park high school?
CREATE TABLE "june_draft" ( "round" real, "name" text, "position" text, "school" text, "signed" text );
SELECT "position" FROM "june_draft" WHERE "school"='villa park high school';
2-12901325-11
What is the total number of medals by the Czech republic?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "total" FROM "medal_table" WHERE "nation"='czech republic';
2-12392569-3
How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "rank"<2 AND "bronze">8;
2-12392569-3
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("rank") FROM "medal_table" WHERE "gold"<3 AND "silver">2 AND "total"<5;
2-12392569-3
When is the record 5-4?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='5-4';
2-12207474-2
What is the Genre when the Artist is Prince?
CREATE TABLE "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text );
SELECT "genre" FROM "100_million_to_119_million_records" WHERE "artist"='prince';
2-1291598-4
What is the Genre, when the Release-year of first charted record is 1968, and when the Country of origin is United States?
CREATE TABLE "100_million_to_119_million_records" ( "artist" text, "country_of_origin" text, "period_active" text, "release_year_of_first_charted_record" real, "genre" text, "claimed_sales" text );
SELECT "genre" FROM "100_million_to_119_million_records" WHERE "release_year_of_first_charted_record"=1968 AND "country_of_origin"='united states';
2-1291598-4
Name the builder numbers with RR class of a1 and year less than 1916
CREATE TABLE "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text );
SELECT "builder_nos" FROM "numbering" WHERE "rr_class"='a1' AND "year"<1916;
2-12898181-1
Name the RR numbers of hudswell clarke and years before 1914
CREATE TABLE "numbering" ( "year" real, "rr_class" text, "rr_nos" text, "builder" text, "builder_nos" text, "gwr_br_nos" text );
SELECT "rr_nos" FROM "numbering" WHERE "builder"='hudswell clarke' AND "year"<1914;
2-12898181-1
What is the To par has the presence of Vijay Singh?
CREATE TABLE "final_round_sunday" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "hole" text );
SELECT "to_par" FROM "final_round_sunday" WHERE "player"='vijay singh';
2-12512153-7
How many laps did Dick Rathmann complete when he ranked 14?
CREATE TABLE "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text );
SELECT "laps" FROM "indy_500_results" WHERE "rank"='14';
2-1235982-1
What was Dick Rathmann's Finish the year he Qualed at 130.928?
CREATE TABLE "indy_500_results" ( "year" text, "qual" text, "rank" text, "finish" text, "laps" text );
SELECT "finish" FROM "indy_500_results" WHERE "qual"='130.928';
2-1235982-1
What is the average total produced when the prime mover is 12-251c?
CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT AVG("total_produced") FROM "4_axle_units" WHERE "prime_mover"='12-251c';
2-1257252-6
What is the build date when total produced is 2?
CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "build_date" FROM "4_axle_units" WHERE "total_produced"=2;
2-1257252-6
What is the smallest total produced with a model of M-420?
CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT MIN("total_produced") FROM "4_axle_units" WHERE "model"='m-420';
2-1257252-6
What is the prime mover for a build date in 1975?
CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "prime_mover" FROM "4_axle_units" WHERE "build_date"='1975';
2-1257252-6
What model has a total produced more than 5 and a prime move of 12-251c?
CREATE TABLE "4_axle_units" ( "model" text, "build_date" text, "total_produced" real, "wheel_arrangement" text, "prime_mover" text, "power_output" text );
SELECT "model" FROM "4_axle_units" WHERE "total_produced">5 AND "prime_mover"='12-251c';
2-1257252-6
What was the date of the home Detroit game with a decision of Joseph and a record of 27–13–5–2?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "date" FROM "january" WHERE "decision"='joseph' AND "home"='detroit' AND "record"='27–13–5–2';
2-13135264-6
What was the score of the home Dallas game that had a decision of Legace?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "decision"='legace' AND "home"='dallas';
2-13135264-6
What was the score of the game that had a record of 26–13–4–2 and a decision of Joseph?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "score" FROM "january" WHERE "decision"='joseph' AND "record"='26–13–4–2';
2-13135264-6
Who was the visiting team when the record was 28–14–6–2?
CREATE TABLE "january" ( "date" text, "visitor" text, "score" text, "home" text, "decision" text, "attendance" real, "record" text );
SELECT "visitor" FROM "january" WHERE "record"='28–14–6–2';
2-13135264-6
What are the lowest points that have a Mugen V8 engine and a Reynard 91D chassis?
CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT MIN("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "chassis"='reynard 91d';
2-1262623-2
What are the highest points that have a Mugen V8 engine and happened in 1991?
CREATE TABLE "complete_international_formula_3000_resu" ( "year" real, "chassis" text, "engine" text, "tyres" text, "points" real );
SELECT MAX("points") FROM "complete_international_formula_3000_resu" WHERE "engine"='mugen v8' AND "year"=1991;
2-1262623-2
How many years did John Player Lotus used Cosworth v8?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "engine"='cosworth v8' AND "entrant"='john player lotus';
2-1226554-3
Who used Eurobrun er189b after 1989?
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">1989 AND "chassis"='eurobrun er189b';
2-1226554-3
Who used Ford v8 and Jordan 191 after 1990 and got 8 points?
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">1990 AND "engine"='ford v8' AND "points"=8 AND "chassis"='jordan 191';
2-1226554-3
What is the name of the Leftfielder when Davey Lopes was the Second Baseman and first baseman was steve garvey, Shortstop of bill russell eariler than 1977?
CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );
SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "second_baseman"='davey lopes' AND "first_baseman"='steve garvey' AND "shortstop"='bill russell' AND "year">1977;
2-12142298-2
What is the name of the shortstop when the Catcher was johnny roseboro, and a Third Baseman of jim lefebvre, and a Second Baseman of nate oliver?
CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );
SELECT "shortstop" FROM "opening_day_starting_lineups" WHERE "catcher"='johnny roseboro' AND "third_baseman"='jim lefebvre' AND "second_baseman"='nate oliver';
2-12142298-2
Who was the First Baseman when the Shortstop was zoilo versalles?
CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );
SELECT "first_baseman" FROM "opening_day_starting_lineups" WHERE "shortstop"='zoilo versalles';
2-12142298-2
What is the name of the Leftfielder when the Shortstop was bill russell, and the Second Baseman was steve sax in 1983?
CREATE TABLE "opening_day_starting_lineups" ( "year" real, "catcher" text, "first_baseman" text, "second_baseman" text, "shortstop" text, "third_baseman" text, "rightfielder" text, "centerfielder" text, "leftfielder" text, "starting_pitcher" text );
SELECT "leftfielder" FROM "opening_day_starting_lineups" WHERE "shortstop"='bill russell' AND "second_baseman"='steve sax' AND "year"=1983;
2-12142298-2
What is the earliest year with less than 3 points and Parmalat Forti Ford was the entrant?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT MIN("year") FROM "complete_formula_one_results" WHERE "points"<3 AND "entrant"='parmalat forti ford';
2-1226332-2
What is the average Points when equipe ligier gauloises blondes is the entrant?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT AVG("points") FROM "complete_formula_one_results" WHERE "entrant"='equipe ligier gauloises blondes';
2-1226332-2
What is the smallest amount of points for parmalat forti ford entrant later than 1995?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT MIN("points") FROM "complete_formula_one_results" WHERE "entrant"='parmalat forti ford' AND "year">1995;
2-1226332-2
What is the company that made the chassis for the entrant danka arrows yamaha?
CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real );
SELECT "chassis" FROM "complete_formula_one_results" WHERE "entrant"='danka arrows yamaha';
2-1226332-2
What college did Ray Graves attend?
CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "indianapolis_colts_draft_history" WHERE "name"='ray graves';
2-13312898-1
What number pick was Bill Athey?
CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "pick_num" FROM "indianapolis_colts_draft_history" WHERE "name"='bill athey';
2-13312898-1
What is John Cole's overall pick number?
CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "indianapolis_colts_draft_history" WHERE "name"='john cole';
2-13312898-1
What is the date of the locomotive with a Waterford class?
CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );
SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "class"='waterford';
2-1290024-14
What is the date of the locomotive named Blacklion Glencar?
CREATE TABLE "sligo_leitrim_and_northern_counties_rail" ( "class" text, "type" text, "names" text, "quantity_made" text, "manufacturer" text, "date_made" text );
SELECT "date_made" FROM "sligo_leitrim_and_northern_counties_rail" WHERE "names"='blacklion glencar';
2-1290024-14