question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is the attendance when the result was w61-7?
CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "site" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "result"='w61-7';
2-16518708-11
What shows for miles [One Way] when the fans took 340?
CREATE TABLE "head_to_head" ( "team" text, "miles_one_way" real, "home_result" text, "fans_brought" real, "away_result" text, "fans_took" text, "points_gained" real );
SELECT AVG("miles_one_way") FROM "head_to_head" WHERE "fans_took"='340';
2-17439391-8
what is the reported birth date when the reported age is 110 years, 185 days?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "reported_birth_date" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='110 years, 185 days';
2-16254863-3
what is the reported age when the reported birth date is 22 december 1878?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "reported_age" FROM "oldest_norwegian_person_by_region" WHERE "reported_birth_date"='22 december 1878';
2-16254863-3
what is the region when the reported age is 111 years, 107 days?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "region" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 107 days';
2-16254863-3
what is the reported death date for laura svehaug?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "reported_death_date" FROM "oldest_norwegian_person_by_region" WHERE "name"='laura svehaug';
2-16254863-3
Who has a reported age of 111 years, 66 days?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_age"='111 years, 66 days';
2-16254863-3
Who has a reported death of 6 march 1998?
CREATE TABLE "oldest_norwegian_person_by_region" ( "region" text, "name" text, "reported_birth_date" text, "reported_death_date" text, "reported_age" text );
SELECT "name" FROM "oldest_norwegian_person_by_region" WHERE "reported_death_date"='6 march 1998';
2-16254863-3
Date for less than 122 countries and a 47% rank?
CREATE TABLE "general" ( "overall_ranking" text, "lat_am_ranking" text, "countries_surveyed" real, "pct_rank" text, "date" text );
SELECT "date" FROM "general" WHERE "countries_surveyed"<122 AND "pct_rank"='47';
2-16972894-1
What high assists has the high points of andrew bynum (23)?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "high_assists" FROM "game_log" WHERE "high_points"='andrew bynum (23)';
2-17190012-7
What score is the team of charlotte?
CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text );
SELECT "score" FROM "game_log" WHERE "team"='charlotte';
2-17190012-7
What was strikeforce: barnett vs. cormier's record?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "record" FROM "mixed_martial_arts_record" WHERE "event"='strikeforce: barnett vs. cormier';
2-16801144-2
What is the total q > 1.4 with a q > 1 less than 7,801,334, and a q > 1.05 greater than 812,499?
CREATE TABLE "distribution_of_triples_with_q_1" ( "q_1" real, "q_1_05" real, "q_1_1" real, "q_1_2" real, "q_1_3" real, "q_1_4" real );
SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1"<'7,801,334' AND "q_1_05">'812,499';
2-174108-1
What is the sum of q > 1 when q > 1.05 is bigger than 18,233, and a q > 1.4 less than 112, and q > 1.1 is 13,266?
CREATE TABLE "distribution_of_triples_with_q_1" ( "q_1" real, "q_1_05" real, "q_1_1" real, "q_1_2" real, "q_1_3" real, "q_1_4" real );
SELECT COUNT("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_05">'18,233' AND "q_1_4"<112 AND "q_1_1"='13,266';
2-174108-1
What is the mean q > 1 with a q > 1.2 less than 3,028, and a q > 1.4 of 51, and a q > 1.05 greater than 18,233?
CREATE TABLE "distribution_of_triples_with_q_1" ( "q_1" real, "q_1_05" real, "q_1_1" real, "q_1_2" real, "q_1_3" real, "q_1_4" real );
SELECT AVG("q_1") FROM "distribution_of_triples_with_q_1" WHERE "q_1_2"<'3,028' AND "q_1_4"=51 AND "q_1_05">'18,233';
2-174108-1
What is the total of q > 1.4 when q > 1.3 is 455, and q >1.2 is less than 3,028?
CREATE TABLE "distribution_of_triples_with_q_1" ( "q_1" real, "q_1_05" real, "q_1_1" real, "q_1_2" real, "q_1_3" real, "q_1_4" real );
SELECT SUM("q_1_4") FROM "distribution_of_triples_with_q_1" WHERE "q_1_3"=455 AND "q_1_2"<'3,028';
2-174108-1
Who was the losing team with a total of 24 when the winning team was Sydney Roosters?
CREATE TABLE "lowest_scoring_matches" ( "total" real, "score" text, "winning_team" text, "losing_team" text, "venue" text, "date" text );
SELECT "losing_team" FROM "lowest_scoring_matches" WHERE "total"=24 AND "winning_team"='sydney roosters';
2-16802194-3
Which venue had a losing team of south sydney rabbitohs?
CREATE TABLE "lowest_scoring_matches" ( "total" real, "score" text, "winning_team" text, "losing_team" text, "venue" text, "date" text );
SELECT "venue" FROM "lowest_scoring_matches" WHERE "losing_team"='south sydney rabbitohs';
2-16802194-3
What day was the total smaller than 19 at Venue of anz stadium?
CREATE TABLE "lowest_scoring_matches" ( "total" real, "score" text, "winning_team" text, "losing_team" text, "venue" text, "date" text );
SELECT "date" FROM "lowest_scoring_matches" WHERE "total"<19 AND "venue"='anz stadium';
2-16802194-3
What is the total number of Total trade (tonnes) when the Imports is smaller than 114,287 tonnes and the year is higher than 2008?
CREATE TABLE "port_trade" ( "year" real, "imports_tonnes" real, "exports_tonnes" real, "total_trade_tonnes" real, "vessels_entering_port" real );
SELECT COUNT("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"<'114,287' AND "year">2008;
2-17403151-2
What is the sum of Total trade (tonnes) where the Imports are 111,677 tonnes and there are fewer than 129 vessels entering port?
CREATE TABLE "port_trade" ( "year" real, "imports_tonnes" real, "exports_tonnes" real, "total_trade_tonnes" real, "vessels_entering_port" real );
SELECT SUM("total_trade_tonnes") FROM "port_trade" WHERE "imports_tonnes"='111,677' AND "vessels_entering_port"<129;
2-17403151-2
What is the highest Total trade (tonnes) after 2001 when the Imports are 144,368 tonnes, the Exports are more than 4,024,311 tonnes, and there are more than 91 vessels entering port?
CREATE TABLE "port_trade" ( "year" real, "imports_tonnes" real, "exports_tonnes" real, "total_trade_tonnes" real, "vessels_entering_port" real );
SELECT MAX("total_trade_tonnes") FROM "port_trade" WHERE "year">2001 AND "vessels_entering_port">91 AND "imports_tonnes"='144,368' AND "exports_tonnes">'4,024,311';
2-17403151-2
What was the Attendance before Week 17 with a Record of Bye?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "kickoff_time" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "week"<17 AND "record"='bye';
2-16882116-2
What is the Kickoff Time on January 7, 2002?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "kickoff_time" text, "attendance" text );
SELECT "kickoff_time" FROM "schedule" WHERE "date"='january 7, 2002';
2-16882116-2
What was the Opponent in the game with a Result of L 24–14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "kickoff_time" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "result"='l 24–14';
2-16882116-2
What was the Result of the game with an Attendance of 69,365?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "record" text, "kickoff_time" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "attendance"='69,365';
2-16882116-2
Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL?
CREATE TABLE "results" ( "year" real, "date_held" text, "winner" text, "events_won_by_kcl" real, "events_won_by_kclms" real );
SELECT "events_won_by_kcl" FROM "results" WHERE "winner"='kclms' AND "events_won_by_kclms"<10 AND "year"=2008;
2-16674265-1
How many years were the events won by KCLMS less than 7?
CREATE TABLE "results" ( "year" real, "date_held" text, "winner" text, "events_won_by_kcl" real, "events_won_by_kclms" real );
SELECT COUNT("year") FROM "results" WHERE "events_won_by_kclms"<7;
2-16674265-1
What is the average value for events won by KCL in a year earlier than 2004?
CREATE TABLE "results" ( "year" real, "date_held" text, "winner" text, "events_won_by_kcl" real, "events_won_by_kclms" real );
SELECT AVG("events_won_by_kcl") FROM "results" WHERE "year"<2004;
2-16674265-1
What is the appointment day for 4 December 2008 vacancy?
CREATE TABLE "during_the_season" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );
SELECT "date_of_appointment" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008';
2-17260623-3
Which outgoing manager has tabled 16th position?
CREATE TABLE "during_the_season" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );
SELECT "outgoing_manager" FROM "during_the_season" WHERE "position_in_table"='16th';
2-17260623-3
Which position is team mons who was replaced by Christophe Dessy (caretaker)?
CREATE TABLE "during_the_season" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );
SELECT "position_in_table" FROM "during_the_season" WHERE "team"='mons' AND "replaced_by"='christophe dessy (caretaker)';
2-17260623-3
What is the table position for 4 December 2008 vacancy?
CREATE TABLE "during_the_season" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text, "position_in_table" text );
SELECT "position_in_table" FROM "during_the_season" WHERE "date_of_vacancy"='4 december 2008';
2-17260623-3
How many laps have 50 points?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "laps" FROM "race_results" WHERE "points"='50';
2-17242268-2
What is the grid of team dreyer & reinbold racing, which has 26 points?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "grid" FROM "race_results" WHERE "team"='dreyer & reinbold racing' AND "points"='26';
2-17242268-2
How many points have 75 laps?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "points" FROM "race_results" WHERE "laps"='75';
2-17242268-2
How many laps have 0 laps led and 13 points?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "laps" FROM "race_results" WHERE "laps_led"='0' AND "points"='13';
2-17242268-2
How many points have 88 laps and a grid of 14?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "points" FROM "race_results" WHERE "laps"='88' AND "grid"='14';
2-17242268-2
How many laps have a +0.4865 time/retired?
CREATE TABLE "race_results" ( "driver" text, "team" text, "laps" text, "time_retired" text, "grid" text, "laps_led" text, "points" text );
SELECT "laps" FROM "race_results" WHERE "time_retired"='+0.4865';
2-17242268-2
When did the ATV that deorbited on 29 september 2008, launch?
CREATE TABLE "atv_missions" ( "designation" text, "name" text, "launch_date" text, "iss_docking_date" text, "deorbit_date" text );
SELECT "launch_date" FROM "atv_missions" WHERE "deorbit_date"='29 september 2008';
2-16193250-1
When did the atv-002 launch?
CREATE TABLE "atv_missions" ( "designation" text, "name" text, "launch_date" text, "iss_docking_date" text, "deorbit_date" text );
SELECT "launch_date" FROM "atv_missions" WHERE "designation"='atv-002';
2-16193250-1
When did Edoardo Amaldi launch?
CREATE TABLE "atv_missions" ( "designation" text, "name" text, "launch_date" text, "iss_docking_date" text, "deorbit_date" text );
SELECT "launch_date" FROM "atv_missions" WHERE "name"='edoardo amaldi';
2-16193250-1
When did the ATV that launched on 9 March 2008, deorbit?
CREATE TABLE "atv_missions" ( "designation" text, "name" text, "launch_date" text, "iss_docking_date" text, "deorbit_date" text );
SELECT "deorbit_date" FROM "atv_missions" WHERE "launch_date"='9 march 2008';
2-16193250-1
Who was the partner on the game which took place on a clay surface with opponents of marco chiudinelli michael lammer and a runner-up result?
CREATE TABLE "doubles_23_11_12" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_23_11_12" WHERE "outcome"='runner-up' AND "surface"='clay' AND "opponents"='marco chiudinelli michael lammer';
2-17325082-3
Who were the opponent in the match on a clay surface that had a score of 6–3, 7–6 (11–9)?
CREATE TABLE "doubles_23_11_12" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "opponents" FROM "doubles_23_11_12" WHERE "surface"='clay' AND "score"='6–3, 7–6 (11–9)';
2-17325082-3
What is Season, when Races is less than 16?
CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real );
SELECT "season" FROM "by_seasons_and_teams" WHERE "races"<16;
2-17273933-2
What is the sum of Poles, when Podiums is 0, and when Races is 17?
CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real );
SELECT SUM("poles") FROM "by_seasons_and_teams" WHERE "podiums"=0 AND "races"=17;
2-17273933-2
What is Poles, when Races is less than 16?
CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real );
SELECT "poles" FROM "by_seasons_and_teams" WHERE "races"<16;
2-17273933-2
What is the lowest Races, when Podiums is greater than 1?
CREATE TABLE "by_seasons_and_teams" ( "season" text, "races" real, "wins" real, "podiums" real, "poles" real );
SELECT MIN("races") FROM "by_seasons_and_teams" WHERE "podiums">1;
2-17273933-2
How many people on average attended the game in week 14?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT AVG("attendance") FROM "schedule" WHERE "week"=14;
2-17129359-2
The game in week 11 has what result?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "week"=11;
2-17129359-2
For the game against the San Francisco 49ers what was the total attendance?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='san francisco 49ers';
2-17129359-2
What is the Place that has a To standard of –1, and a Score of 71-68-76=215?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "third_round" WHERE "to_par"='–1' AND "score"='71-68-76=215';
2-16514630-6
What is the Player that has a To standard of –7?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='–7';
2-16514630-6
What is the Player that has a To standard of –4?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='–4';
2-16514630-6
What is the Player that has a To standard of –1, and a Score of 71-68-76=215?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='–1' AND "score"='71-68-76=215';
2-16514630-6
What is the Player that has a To standard of –4?
CREATE TABLE "third_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "third_round" WHERE "to_par"='–4';
2-16514630-6
What shows for 1980–81 when 1973–74, and 2001–02 did not participate?
CREATE TABLE "competition_timeline" ( "competition" text, "1970_71" text, "1971_72" text, "1972_73" text, "1973_74" text, "1974_75" text, "1975_76" text, "1976_77" text, "1977_78" text, "1978_79" text, "1979_80" text, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text, "1985_86" text, "1986_87" text, "1987_88" text, "1988_89" text, "1989_90" text, "1990_91" text, "1991_92" text, "1992_93" text, "1993_94" text, "1994_95" text, "1995_96" text, "1996_97" text, "1997_98" text, "1998_99" text, "1999_00" text, "2000_01" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text );
SELECT "1980_81" FROM "competition_timeline" WHERE "1973_74"='did not participate' AND "2001_02"='did not participate';
2-16224775-38
What is the 2004–05 answer when 2003–04 shows grp?
CREATE TABLE "competition_timeline" ( "competition" text, "1970_71" text, "1971_72" text, "1972_73" text, "1973_74" text, "1974_75" text, "1975_76" text, "1976_77" text, "1977_78" text, "1978_79" text, "1979_80" text, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text, "1985_86" text, "1986_87" text, "1987_88" text, "1988_89" text, "1989_90" text, "1990_91" text, "1991_92" text, "1992_93" text, "1993_94" text, "1994_95" text, "1995_96" text, "1996_97" text, "1997_98" text, "1998_99" text, "1999_00" text, "2000_01" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text );
SELECT "2004_05" FROM "competition_timeline" WHERE "2003_04"='grp';
2-16224775-38
What is the 1999–00 answer when the 2010–11 shows grp?
CREATE TABLE "competition_timeline" ( "competition" text, "1970_71" text, "1971_72" text, "1972_73" text, "1973_74" text, "1974_75" text, "1975_76" text, "1976_77" text, "1977_78" text, "1978_79" text, "1979_80" text, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text, "1985_86" text, "1986_87" text, "1987_88" text, "1988_89" text, "1989_90" text, "1990_91" text, "1991_92" text, "1992_93" text, "1993_94" text, "1994_95" text, "1995_96" text, "1996_97" text, "1997_98" text, "1998_99" text, "1999_00" text, "2000_01" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text );
SELECT "1999_00" FROM "competition_timeline" WHERE "2010_11"='grp';
2-16224775-38
What is the 1997–98 answer when the 2003–04 shows grp?
CREATE TABLE "competition_timeline" ( "competition" text, "1970_71" text, "1971_72" text, "1972_73" text, "1973_74" text, "1974_75" text, "1975_76" text, "1976_77" text, "1977_78" text, "1978_79" text, "1979_80" text, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text, "1985_86" text, "1986_87" text, "1987_88" text, "1988_89" text, "1989_90" text, "1990_91" text, "1991_92" text, "1992_93" text, "1993_94" text, "1994_95" text, "1995_96" text, "1996_97" text, "1997_98" text, "1998_99" text, "1999_00" text, "2000_01" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text );
SELECT "1997_98" FROM "competition_timeline" WHERE "2003_04"='grp';
2-16224775-38
What is the 1989–90 answer when the 2004–05 shows grp?
CREATE TABLE "competition_timeline" ( "competition" text, "1970_71" text, "1971_72" text, "1972_73" text, "1973_74" text, "1974_75" text, "1975_76" text, "1976_77" text, "1977_78" text, "1978_79" text, "1979_80" text, "1980_81" text, "1981_82" text, "1982_83" text, "1983_84" text, "1984_85" text, "1985_86" text, "1986_87" text, "1987_88" text, "1988_89" text, "1989_90" text, "1990_91" text, "1991_92" text, "1992_93" text, "1993_94" text, "1994_95" text, "1995_96" text, "1996_97" text, "1997_98" text, "1998_99" text, "1999_00" text, "2000_01" text, "2001_02" text, "2002_03" text, "2003_04" text, "2004_05" text, "2005_06" text, "2006_07" text, "2007_08" text, "2008_09" text, "2009_10" text, "2010_11" text, "2011_12" text );
SELECT "1989_90" FROM "competition_timeline" WHERE "2004_05"='grp';
2-16224775-38
Which rank is 40 for s Wicket with a player of Daniel Marsh?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "player"='daniel marsh';
2-16351707-15
Which rank has a s wicket at 40 and 28.42 is the average?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "rank" FROM "most_career_wickets" WHERE "s_wicket"='40' AND "average"='28.42';
2-16351707-15
Which value for s wicket is associated with Shaun Young?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young';
2-16351707-15
Which player has a s wicket at 48?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "player" FROM "most_career_wickets" WHERE "s_wicket"='48';
2-16351707-15
What is the s wicket value associated with Shaun Young?
CREATE TABLE "most_career_wickets" ( "rank" text, "s_wicket" text, "player" text, "matches" text, "average" text );
SELECT "s_wicket" FROM "most_career_wickets" WHERE "player"='shaun young';
2-16351707-15
What is the date of the game where the NY Islanders are the home team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "date" FROM "game_log" WHERE "home"='ny islanders';
2-17301013-6
What is the score of the game where the NY Islanders are the home team?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "score" FROM "game_log" WHERE "home"='ny islanders';
2-17301013-6
Who was the home team on February 3?
CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text, "points" real );
SELECT "home" FROM "game_log" WHERE "date"='february 3';
2-17301013-6
What is the sum of Overall, when Round is less than 24, and when College is North Carolina State?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT SUM("overall") FROM "washington_redskins_draft_history" WHERE "round"<24 AND "college"='north carolina state';
2-17100961-22
What is the total number of Pick, when Position is OT, when Overall is greater than 91, when Round is greater than 21, and when College is Mississippi?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("pick") FROM "washington_redskins_draft_history" WHERE "position"='ot' AND "overall">91 AND "round">21 AND "college"='mississippi';
2-17100961-22
What is the lowest Overall, when College is Hardin-Simmons, and when Round is greater than 26?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "college"='hardin-simmons' AND "round">26;
2-17100961-22
What is the score of the tournament with younes el aynaoui as the opponent?
CREATE TABLE "singles_21_10_titles_11_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='younes el aynaoui';
2-1723559-2
What is the date of the tournament with carlos moyà as the opponent?
CREATE TABLE "singles_21_10_titles_11_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='carlos moyà';
2-1723559-2
What is the tournament with greg rusedski as the opponent?
CREATE TABLE "singles_21_10_titles_11_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "tournament" FROM "singles_21_10_titles_11_runner_ups" WHERE "opponent"='greg rusedski';
2-1723559-2
What is the surface on 26 May 1996?
CREATE TABLE "singles_21_10_titles_11_runner_ups" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text );
SELECT "surface" FROM "singles_21_10_titles_11_runner_ups" WHERE "date"='26 may 1996';
2-1723559-2
What club did united states player ty harden play for?
CREATE TABLE "top_goalscorers_by_season" ( "season" real, "player" text, "club" text, "nationality" text, "goals" real );
SELECT "club" FROM "top_goalscorers_by_season" WHERE "nationality"='united states' AND "player"='ty harden';
2-16472331-9
Which seaosn had a player of rohan ricketts?
CREATE TABLE "top_goalscorers_by_season" ( "season" real, "player" text, "club" text, "nationality" text, "goals" real );
SELECT COUNT("season") FROM "top_goalscorers_by_season" WHERE "player"='rohan ricketts';
2-16472331-9
What is Tries Against, when Points Against is 213?
CREATE TABLE "pool_2" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text );
SELECT "tries_against" FROM "pool_2" WHERE "points_against"='213';
2-16770037-3
What is Tries Against, when Tries For is 21?
CREATE TABLE "pool_2" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text );
SELECT "tries_against" FROM "pool_2" WHERE "tries_for"='21';
2-16770037-3
What is Try Diff, when Points Diff is +71?
CREATE TABLE "pool_2" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text );
SELECT "try_diff" FROM "pool_2" WHERE "points_diff"='+71';
2-16770037-3
What is Try Diff, when Points Against is 213?
CREATE TABLE "pool_2" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text );
SELECT "try_diff" FROM "pool_2" WHERE "points_against"='213';
2-16770037-3
What is Tries Against, when Try Diff is +15?
CREATE TABLE "pool_2" ( "team" text, "tries_for" text, "tries_against" text, "try_diff" text, "points_for" text, "points_against" text, "points_diff" text );
SELECT "tries_against" FROM "pool_2" WHERE "try_diff"='+15';
2-16770037-3
Which archbishop vacated the throne on May 17, 1907?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "archbishop" FROM "archbishops" WHERE "vacated_throne"='may 17, 1907';
2-1656555-1
When did the archbishop that was ordained a bishop on July 25, 1902 die?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "died" FROM "archbishops" WHERE "ordained_bishop"='july 25, 1902';
2-1656555-1
When was the archbishop that was born on February 10, 1858 ordained a bishop?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "ordained_bishop" FROM "archbishops" WHERE "born"='february 10, 1858';
2-1656555-1
When did Archbishop Albert Daeger vacate the throne?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "vacated_throne" FROM "archbishops" WHERE "archbishop"='albert daeger';
2-1656555-1
When was the archbishop that was ordained as a bishop on November 30, 1925 born?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "born" FROM "archbishops" WHERE "ordained_bishop"='november 30, 1925';
2-1656555-1
When was the archbishop that was born on February 22, 1825 ordained as a bishop?
CREATE TABLE "archbishops" ( "archbishop" text, "born" text, "ordained_priest" text, "ordained_bishop" text, "appointed_archbishop" text, "vacated_throne" text, "died" text );
SELECT "ordained_bishop" FROM "archbishops" WHERE "born"='february 22, 1825';
2-1656555-1
Which event was against Pat Barry?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" text, "time" text, "location" text );
SELECT "event" FROM "mixed_martial_arts_record" WHERE "opponent"='pat barry';
2-17621533-2
What event is 200m larger than 922?
CREATE TABLE "athletics" ( "athlete" text, "event" text, "100_h" real, "200_m" real, "800_m" text, "final" real, "rank" text );
SELECT "event" FROM "athletics" WHERE "200_m">922;
2-16615577-8
What Player has a Score of 71-71=142?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "player" FROM "second_round" WHERE "score"='71-71=142';
2-16881908-5
What is the To par of T9 Place Player Ernie Els?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "place"='t9' AND "player"='ernie els';
2-16881908-5
What is the Score of the Player from South Africa?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "score" FROM "second_round" WHERE "country"='south africa';
2-16881908-5
What is the Place of the Player with a Score of 70-71=141?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "place" FROM "second_round" WHERE "score"='70-71=141';
2-16881908-5
Which Date has a Set 1 of 25–20?
CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "date" FROM "pool_f" WHERE "set_1"='25–20';
2-16571273-13
Which Score has a Total of 80–72?
CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "score" FROM "pool_f" WHERE "total"='80–72';
2-16571273-13
Which Date has a Set 1 of 21–25?
CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "date" FROM "pool_f" WHERE "set_1"='21–25';
2-16571273-13
Which Set 2 has a Set 3 of 25–20, and a Time of 13:45?
CREATE TABLE "pool_f" ( "date" text, "time" text, "score" text, "set_1" text, "set_2" text, "set_3" text, "total" text );
SELECT "set_2" FROM "pool_f" WHERE "set_3"='25–20' AND "time"='13:45';
2-16571273-13