question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What did the team score at home in north melbourne?
CREATE TABLE "round_12" ( "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_12" WHERE "away_team"='north melbourne';
2-10826072-12
What is the computation for 5 or less TD's?
CREATE TABLE "quarterback" ( "player" text, "comp" real, "att" real, "comppct" real, "yards" real, "td_s" real, "int_s" real );
SELECT AVG("comppct") FROM "quarterback" WHERE "td_s"<5;
2-11379937-4
What was the time of the driver in grid 2?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "classification" WHERE "grid"<2;
2-1122188-1
What time did Carroll Shelby have in Grid 14?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "classification" WHERE "grid"<14 AND "driver"='carroll shelby';
2-1122188-1
What time did the ferrari car that finished 62 laps have?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "time_retired" FROM "classification" WHERE "laps"<62 AND "constructor"='ferrari';
2-1122188-1
What is the date of the game where the vistor team was the Knicks and more than 18,165 were in attendance?
CREATE TABLE "april" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "attendance" real, "record" text );
SELECT "date" FROM "april" WHERE "visitor"='knicks' AND "attendance">'18,165';
2-11960091-8
Whats teo fabi average lap time while having less than 9 grids?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT AVG("laps") FROM "race" WHERE "driver"='teo fabi' AND "grid"<9;
2-1122925-2
Which driver drove in grid 19?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "driver" FROM "race" WHERE "grid"=19;
2-1122925-2
Who was the opponent on April 29?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "opponent" FROM "game_log" WHERE "date"='april 29';
2-11508001-6
How many attended the game on April 17?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT SUM("attendance") FROM "game_log" WHERE "date"='april 17';
2-11508001-6
What is the record on April 3?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" real, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='april 3';
2-11508001-6
What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
CREATE TABLE "non_electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "screen_type" text, "weight" text, "screen_pixels" text, "hours_reading" text, "touch_screen" text, "wireless_network" text, "internal_storage" text, "card_reader_slot" text );
SELECT "weight" FROM "non_electronic_paper_displays" WHERE "internal_storage"='16-64 gb' AND "wireless_network"='wi-fi, 3g';
2-1149661-3
Which wireless network did LCD displays with 4 GB of internal storage use?
CREATE TABLE "non_electronic_paper_displays" ( "maker" text, "model" text, "intro_year" text, "screen_size_inch" text, "screen_type" text, "weight" text, "screen_pixels" text, "hours_reading" text, "touch_screen" text, "wireless_network" text, "internal_storage" text, "card_reader_slot" text );
SELECT "wireless_network" FROM "non_electronic_paper_displays" WHERE "screen_type"='lcd' AND "internal_storage"='4 gb';
2-1149661-3
What's the lowest number of draws when the wins are less than 15, and against is 1228?
CREATE TABLE "2012_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT MIN("draws") FROM "2012_ladder" WHERE "wins"<15 AND "against"=1228;
2-11562830-11
What's the sum of draws for against larger than 1228 with fewer than 1 wins?
CREATE TABLE "2012_ladder" ( "mid_gippsland_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT SUM("draws") FROM "2012_ladder" WHERE "against">1228 AND "wins"<1;
2-11562830-11
On what dates did Jim Jarmusch win the Lifetime Achievement?
CREATE TABLE "riff_awards" ( "year" real, "dates" text, "discovery_of_the_year_golden_puffin" text, "lifetime_achievement" text, "creative_excellency" text, "audience_award" text, "fipresci_award" text, "church_of_iceland_award" text );
SELECT "dates" FROM "riff_awards" WHERE "lifetime_achievement"='jim jarmusch';
2-11749830-1
Which team was the home team when Colorado was the visitor and the record became 26–15–9?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "game_log" WHERE "visitor"='colorado' AND "record"='26–15–9';
2-11945691-5
What was the score when the record became 25–14–9?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "score" FROM "game_log" WHERE "record"='25–14–9';
2-11945691-5
What was the date the record became 26–14–9?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "date" FROM "game_log" WHERE "record"='26–14–9';
2-11945691-5
What team was the home team when Colorado was the visitor and the record became 22–13–6?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text );
SELECT "home" FROM "game_log" WHERE "visitor"='colorado' AND "record"='22–13–6';
2-11945691-5
What's the venue for the asian games tournament?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );
SELECT "venue" FROM "achievements" WHERE "tournament"='asian games';
2-11402303-1
Which tournament resulted in 6th place?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );
SELECT "tournament" FROM "achievements" WHERE "result"='6th';
2-11402303-1
What's the latest year that Doha, Qatar hosted a tournament?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );
SELECT MAX("year") FROM "achievements" WHERE "venue"='doha, qatar';
2-11402303-1
What's the average of all years tournaments were hosted in Doha, Qatar?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "extra" text );
SELECT AVG("year") FROM "achievements" WHERE "venue"='doha, qatar';
2-11402303-1
What is the overall draft number for the running back drafted after round 1 from fresno state?
CREATE TABLE "1994_chiefs_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT SUM("overall") FROM "1994_chiefs_draft_selections" WHERE "position"='running back' AND "round">1 AND "college"='fresno state';
2-10996789-1
What is the overall total for players drafted from notre dame?
CREATE TABLE "1994_chiefs_draft_selections" ( "round" real, "overall" real, "player" text, "position" text, "college" text );
SELECT SUM("overall") FROM "1994_chiefs_draft_selections" WHERE "college"='notre dame';
2-10996789-1
Name the sum of gold which has a silver more than 1
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "silver">1;
2-11154357-4
Name the average rank for west germany when gold is more than 1
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_table" WHERE "nation"='west germany' AND "gold">1;
2-11154357-4
Name the average rank for when bronze is more than 1
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("rank") FROM "medal_table" WHERE "bronze">1;
2-11154357-4
I want the sum of gold for silver being less than 0
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("gold") FROM "medal_table" WHERE "silver"<0;
2-11154357-4
Which 2011–12 has a 2010–11 smaller than 26.016, and a Rank 2013 larger than 20, and a Club of rubin kazan?
CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "coeff" real );
SELECT AVG("2011_12") FROM "uefa_team_ranking" WHERE "2010_11"<26.016 AND "rank_2013">20 AND "club"='rubin kazan';
2-1800094-4
Which Rank 2014 has a 2009–10 of 21.233?
CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "coeff" real );
SELECT AVG("rank_2014") FROM "uefa_team_ranking" WHERE "2009_10"=21.233;
2-1800094-4
Which 2013–14 has a Rank 2014 smaller than 23, and a 2011–12 larger than 19.1, and a Rank 2013 of 14?
CREATE TABLE "uefa_team_ranking" ( "rank_2014" real, "rank_2013" real, "mvmt" text, "club" text, "country" text, "2009_10" real, "2010_11" real, "2011_12" real, "2012_13" real, "2013_14" real, "coeff" real );
SELECT AVG("2013_14") FROM "uefa_team_ranking" WHERE "rank_2014"<23 AND "2011_12">19.1 AND "rank_2013"=14;
2-1800094-4
What are the polling dates when Larry O'Brien has 37%?
CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text );
SELECT "polling_dates" FROM "poll_results" WHERE "larry_o_brien"='37%';
2-1821892-62
What dates and firm does Larry O'Brien have 18% when Terry Kilrea dropped out?
CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text );
SELECT "terry_kilrea_dropped_out" FROM "poll_results" WHERE "larry_o_brien"='18%';
2-1821892-62
What dates does Alex Munter have 25% and the polling firm of Decima?
CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text );
SELECT "polling_dates" FROM "poll_results" WHERE "alex_munter"='25%' AND "polling_firm"='decima';
2-1821892-62
What are the Decima polling dates when Larry O'Brien has 37%?
CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text );
SELECT "polling_dates" FROM "poll_results" WHERE "polling_firm"='decima' AND "larry_o_brien"='37%';
2-1821892-62
What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?
CREATE TABLE "poll_results" ( "polling_firm" text, "polling_dates" text, "bob_chiarelli" text, "alex_munter" text, "larry_o_brien" text, "terry_kilrea_dropped_out" text );
SELECT "terry_kilrea_dropped_out" FROM "poll_results" WHERE "polling_firm"='holinshed' AND "bob_chiarelli"='22.5%';
2-1821892-62
What is Date, when Outcome is "Runner Up", and when Opponent is "Lu Jiaxiang"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_4_7" WHERE "outcome"='runner up' AND "opponent"='lu jiaxiang';
2-18285768-8
What is Opponent, when Tournament is "Phuket , Thailand"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "singles_4_7" WHERE "tournament"='phuket , thailand';
2-18285768-8
What is Surface, when Tournament is "Saint Joseph , United States"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_4_7" WHERE "tournament"='saint joseph , united states';
2-18285768-8
What is Tournament, when Opponent is "Lu Jiaxiang"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_4_7" WHERE "opponent"='lu jiaxiang';
2-18285768-8
What is Outcome, when Tournament is "Chiang Mai , Thailand"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_4_7" WHERE "tournament"='chiang mai , thailand';
2-18285768-8
What is Outcome, when Date is "19 September 2012"?
CREATE TABLE "singles_4_7" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "singles_4_7" WHERE "date"='19 september 2012';
2-18285768-8
What Poles have Races smaller than 4?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT AVG("poles") FROM "career_summary" WHERE "races"<4;
2-17755575-1
What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT COUNT("points") FROM "career_summary" WHERE "series"='italian formula renault 2.0' AND "poles"<0;
2-17755575-1
What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT SUM("points") FROM "career_summary" WHERE "wins">0 AND "position"='12th' AND "poles">0;
2-17755575-1
What is the smallest Wins with a Position of 20th, and Poles smaller than 0?
CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "podiums" real, "points" real, "position" text );
SELECT MIN("wins") FROM "career_summary" WHERE "position"='20th' AND "poles"<0;
2-17755575-1
What is the date of the match located in Madrid, Esp?
CREATE TABLE "professional_boxing_record" ( "result" text, "opponent" text, "type" text, "rd_time" text, "date" text, "location" text );
SELECT "date" FROM "professional_boxing_record" WHERE "location"='madrid, esp';
2-1784541-1
Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?
CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text, "third_runner_up" text, "fourth_runner_up" text );
SELECT "miss_maja_pilipinas" FROM "title_holders_from_1964_until_1972" WHERE "second_runner_up"='maria penson';
2-1825751-1
Can you tell me the Miss Maja Pilipinas that has the Year of 1969?
CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text, "third_runner_up" text, "fourth_runner_up" text );
SELECT "miss_maja_pilipinas" FROM "title_holders_from_1964_until_1972" WHERE "year"=1969;
2-1825751-1
Can you tell me the Third runner-up that has the Year of 1969?
CREATE TABLE "title_holders_from_1964_until_1972" ( "year" real, "binibining_pilipinas_universe" text, "binibining_pilipinas_international" text, "miss_maja_pilipinas" text, "first_runner_up" text, "second_runner_up" text, "third_runner_up" text, "fourth_runner_up" text );
SELECT "third_runner_up" FROM "title_holders_from_1964_until_1972" WHERE "year"=1969;
2-1825751-1
What is 7 säwen if 3 dree is 3d dredda?
CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text );
SELECT "7_s_wen" FROM "numerals" WHERE "3_dree"='3d dredda';
2-181498-29
What is 3 dree if 8 acht is 8th achta?
CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text );
SELECT "3_dree" FROM "numerals" WHERE "8_acht"='8th achta';
2-181498-29
What is 5 fiew when 7 säwen equals 17 säwentieen?
CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text );
SELECT "5_fiew" FROM "numerals" WHERE "7_s_wen"='17 säwentieen';
2-181498-29
What is 5 fiew if 7 säwen is 7th säwenda?
CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text );
SELECT "5_fiew" FROM "numerals" WHERE "7_s_wen"='7th säwenda';
2-181498-29
Name the 4 vea for 6 sas at 60 zastich?
CREATE TABLE "numerals" ( "2_twee" text, "3_dree" text, "4_vea" text, "5_fiew" text, "6_sas" text, "7_s_wen" text, "8_acht" text, "9_n_ajen" text );
SELECT "4_vea" FROM "numerals" WHERE "6_sas"='60 zastich';
2-181498-29
Which Byes have an Against smaller than 1466, and Losses smaller than 6?
CREATE TABLE "2009_ladder" ( "geelong_fl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT "byes" FROM "2009_ladder" WHERE "against"<1466 AND "losses"<6;
2-17982112-4
What was week 2's opponent?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "week"=2;
2-17946546-1
Which Week has an Attendance of 20,112?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "venue" text, "attendance" real );
SELECT MAX("week") FROM "schedule" WHERE "attendance"='20,112';
2-17946546-1
What is the margin of victory of the Dodge Intrepid?
CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_victory" text );
SELECT "margin_of_victory" FROM "nascar_sprint_cup_series_race_winners" WHERE "make"='dodge intrepid';
2-1771753-2
What is the lowest car number sponsored by UPS before 2001?
CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_victory" text );
SELECT MIN("car_num") FROM "nascar_sprint_cup_series_race_winners" WHERE "sponsor"='ups' AND "season"<2001;
2-1771753-2
Who sponsored Greg Biffle's win on April 14?
CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_victory" text );
SELECT "sponsor" FROM "nascar_sprint_cup_series_race_winners" WHERE "winning_driver"='greg biffle' AND "date"='april 14';
2-1771753-2
What is the highest car number sponsored by Post-It / National Guard?
CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_victory" text );
SELECT MAX("car_num") FROM "nascar_sprint_cup_series_race_winners" WHERE "sponsor"='post-it / national guard';
2-1771753-2
How many seasons has UPS sponsored a car with a number larger than 17?
CREATE TABLE "nascar_sprint_cup_series_race_winners" ( "season" real, "date" text, "winning_driver" text, "car_num" real, "sponsor" text, "make" text, "distance" text, "avg_speed" text, "margin_of_victory" text );
SELECT COUNT("season") FROM "nascar_sprint_cup_series_race_winners" WHERE "car_num">17 AND "sponsor"='ups';
2-1771753-2
What shows for set 2 when Set 1 is 29–27?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_2" FROM "pool_b" WHERE "set_1"='29–27';
2-17978030-6
What is the time when the set 1 is 21–25?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "time" FROM "pool_b" WHERE "set_1"='21–25';
2-17978030-6
What is the score when the set 3 is 26–28?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "score" FROM "pool_b" WHERE "set_3"='26–28';
2-17978030-6
What is the Score when the set 3 is 26–28?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "score" FROM "pool_b" WHERE "set_3"='26–28';
2-17978030-6
What is the set 3 when the total is 78–92?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_3" FROM "pool_b" WHERE "total"='78–92';
2-17978030-6
What is the total when the set 1 is 21–25?
CREATE TABLE "pool_b" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "total" FROM "pool_b" WHERE "set_1"='21–25';
2-17978030-6
How many total losses were with less than 51 draws but more than 6 wins?
CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real );
SELECT COUNT("losses") FROM "s_s_lazio" WHERE "draw"<51 AND "wins">6;
2-17639363-13
How many matches has 51 draws and more than 6 against?
CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real );
SELECT SUM("matches") FROM "s_s_lazio" WHERE "against">6 AND "draw"=51;
2-17639363-13
How many wins has more than 165 against?
CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real );
SELECT MAX("wins") FROM "s_s_lazio" WHERE "against">165;
2-17639363-13
How many draws have less than 35 losses with 136 matches and less than 146 against?
CREATE TABLE "s_s_lazio" ( "matches" real, "wins" real, "draw" real, "losses" real, "against" real );
SELECT AVG("draw") FROM "s_s_lazio" WHERE "losses"<35 AND "matches"=136 AND "against"<146;
2-17639363-13
How many Againsts have more than 15 wins?
CREATE TABLE "2012_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("against") FROM "2012_ladder" WHERE "wins">15;
2-17732555-11
Which Byes have Losses larger than 0, and an Against larger than 3049?
CREATE TABLE "2012_ladder" ( "mininera_dfl" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("byes") FROM "2012_ladder" WHERE "losses">0 AND "against">3049;
2-17732555-11
What is the total number of Points 1, when Position is "7", and when Drawn is greater than 6?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT COUNT("points_1") FROM "second_division_final_table" WHERE "position"=7 AND "drawn">6;
2-17790191-2
What is the highest Goals For, when Team is "Cheadle Town", and when Drawn is greater than 7?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT MAX("goals_for") FROM "second_division_final_table" WHERE "team"='cheadle town' AND "drawn">7;
2-17790191-2
What is the sum of Position, when Points 1 is greater than 23, and when Goals For is "77"?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT SUM("position") FROM "second_division_final_table" WHERE "points_1">23 AND "goals_for"=77;
2-17790191-2
What is Played, when Goal Difference is "+51"?
CREATE TABLE "second_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" real );
SELECT "played" FROM "second_division_final_table" WHERE "goal_difference"='+51';
2-17790191-2
What is Date, when Surface is "Carpet"?
CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "date" FROM "runners_up_12" WHERE "surface"='carpet';
2-17995113-3
What is Tournament, when Date is "6 October 2008"?
CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "tournament" FROM "runners_up_12" WHERE "date"='6 october 2008';
2-17995113-3
What is Surface, when Tournament is "Sunderland , United Kingdom"?
CREATE TABLE "runners_up_12" ( "date" text, "tournament" text, "surface" text, "opponent_in_the_final" text, "score" text );
SELECT "surface" FROM "runners_up_12" WHERE "tournament"='sunderland , united kingdom';
2-17995113-3
Who replaced István Sándor?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text );
SELECT "replaced_by" FROM "managerial_changes" WHERE "outgoing_manager"='istván sándor';
2-17717335-3
What is the position that has the outgoing manager lászló Dajka?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text );
SELECT "position_in_table" FROM "managerial_changes" WHERE "outgoing_manager"='lászló dajka';
2-17717335-3
When was outgoing manager Zoltán Varga appointed?
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "position_in_table" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='zoltán varga';
2-17717335-3
Can you tell me the Score that has the Date of 05 dec?
CREATE TABLE "pool_a" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "score" FROM "pool_a" WHERE "date"='05 dec';
2-17877429-12
What is the average number of points of the team with more than 17 pg won?
CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT AVG("points_pts") FROM "anaprof_2008_relegation_table" WHERE "won_pg">17;
2-17902603-5
What is the total number of pg won of the team with 64 goals conceded and more than 33 goals scored?
CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT COUNT("won_pg") FROM "anaprof_2008_relegation_table" WHERE "goals_conceded_gc"=64 AND "goals_scored_gf">33;
2-17902603-5
What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?
CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT SUM("draw_pe") FROM "anaprof_2008_relegation_table" WHERE "team_equipo"='plaza amador' AND "won_pg"<6;
2-17902603-5
What is the sum of the places of the team with more than 49 points and less than 54 goals scored?
CREATE TABLE "anaprof_2008_relegation_table" ( "place_posici_n" real, "team_equipo" text, "played_pj" real, "won_pg" real, "draw_pe" real, "lost_pp" real, "goals_scored_gf" real, "goals_conceded_gc" real, "dif" real, "points_pts" real );
SELECT SUM("place_posici_n") FROM "anaprof_2008_relegation_table" WHERE "points_pts">49 AND "goals_scored_gf"<54;
2-17902603-5
WHAT IS THE AWAY WITH HOME AT 2-2?
CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_greuther_f_" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "away" FROM "1_fc_nuremberg_versus_sp_vgg_greuther_f_" WHERE "home"='2-2';
2-17918213-5
WHAT IS THE LEAGUE WITH HOME 1-1?
CREATE TABLE "1_fc_nuremberg_versus_sp_vgg_greuther_f_" ( "season" text, "league" text, "teams" text, "home" text, "away" text );
SELECT "league" FROM "1_fc_nuremberg_versus_sp_vgg_greuther_f_" WHERE "home"='1-1';
2-17918213-5
What is the Weight of the person born 1981-02-24 from the Uralochka Zlatoust club ?
CREATE TABLE "russia" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "weight" FROM "russia" WHERE "club"='uralochka zlatoust' AND "date_of_birth"='1981-02-24';
2-17774593-8
What is the total number of households with a population larger than 25,692 and a median household income of $51,914?
CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT COUNT("number_of_households") FROM "michigan_counties_by_per_capita_income" WHERE "population">'25,692' AND "median_household_income"='$51,914';
2-1827915-1
What is the sum of households that makes a median household income of $44,718?
CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT SUM("number_of_households") FROM "michigan_counties_by_per_capita_income" WHERE "median_household_income"='$44,718';
2-1827915-1
What is the highest population for Baraga County with less than 3,444 households?
CREATE TABLE "michigan_counties_by_per_capita_income" ( "county" text, "per_capita_income" text, "median_household_income" text, "median_family_income" text, "population" real, "number_of_households" real );
SELECT MAX("population") FROM "michigan_counties_by_per_capita_income" WHERE "county"='baraga' AND "number_of_households"<'3,444';
2-1827915-1
Which golfer had a score of 68-70-68-66=272?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money_s" real );
SELECT "player" FROM "final_round" WHERE "score"='68-70-68-66=272';
2-18017347-7
What place was the golfer with a score of 67-67-66-68=268 ranked in?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money_s" real );
SELECT "place" FROM "final_round" WHERE "score"='67-67-66-68=268';
2-18017347-7