question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
How many terms did the governor that left office on August 4, 1825 serve?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "terms" FROM "governors_of_missouri" WHERE "left_office"='august 4, 1825';
2-187803-5
On what date did the Democratic governor that had Wallace Crossley as lieutenant governor take office?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "took_office" FROM "governors_of_missouri" WHERE "party"='democratic' AND "lieutenant_governor"='wallace crossley';
2-187803-5
Which governor had William Henry Ashley as lieutenant governor?
CREATE TABLE "governors_of_missouri" ( "governor" text, "took_office" text, "left_office" text, "party" text, "lieutenant_governor" text, "terms" text );
SELECT "governor" FROM "governors_of_missouri" WHERE "lieutenant_governor"='william henry ashley';
2-187803-5
Which IHSAA Class has a School of shakamak?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
2-18974097-9
Which County has a School of bloomfield?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "county" FROM "indiana_high_school_athletics_conference" WHERE "school"='bloomfield';
2-18974097-9
How much Enrollment has a School of shakamak?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT COUNT("enrollment") FROM "indiana_high_school_athletics_conference" WHERE "school"='shakamak';
2-18974097-9
Which IHSAA Class has a Mascot of bulldogs?
CREATE TABLE "indiana_high_school_athletics_conference" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text );
SELECT "ihsaa_class" FROM "indiana_high_school_athletics_conference" WHERE "mascot"='bulldogs';
2-18974097-9
What's the 1996 if 1986 has a 1R?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "1996" FROM "women_s_doubles_performance_timeline" WHERE "1986"='1r';
2-18622227-6
What's the 1986 if 1991 has a QF and 1998 has a 3R?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "1986" FROM "women_s_doubles_performance_timeline" WHERE "1991"='qf' AND "1998"='3r';
2-18622227-6
What's the 1997 if 1993 has a 1R, 1995 has a 3R, and 1999 has a 1R?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1995"='3r' AND "1993"='1r';
2-18622227-6
What's the 1994 if 1995 has a 1R?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "1994" FROM "women_s_doubles_performance_timeline" WHERE "1995"='1r';
2-18622227-6
What's the tournament when 1992 is A?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "tournament" FROM "women_s_doubles_performance_timeline" WHERE "1992"='a';
2-18622227-6
What's the 1997 when 1992 is QF, 1995 is 1R, and 1999 is 1R?
CREATE TABLE "women_s_doubles_performance_timeline" ( "tournament" text, "1986" text, "1988" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text );
SELECT "1997" FROM "women_s_doubles_performance_timeline" WHERE "1999"='1r' AND "1992"='qf' AND "1995"='1r';
2-18622227-6
What's the most league cup apps for Jimmy Lawson having 0 league cup goals?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT MAX("league_cup_apps") FROM "appearances_and_goals" WHERE "league_cup_goals"=0 AND "name"='jimmy lawson';
2-18815485-1
What's the total goals for Alan Sweeney having 0 FA Cup goals and fewer than 0 League Cup apps?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT AVG("total_goals") FROM "appearances_and_goals" WHERE "fa_cup_goals"=0 AND "name"='alan sweeney' AND "league_cup_apps"<0;
2-18815485-1
What's the total number of league cup apps when the league goals were less than 0?
CREATE TABLE "appearances_and_goals" ( "name" text, "position" text, "league_apps" text, "league_goals" real, "fa_cup_apps" real, "fa_cup_goals" real, "league_cup_apps" real, "league_cup_goals" real, "total_apps" text, "total_goals" real );
SELECT COUNT("league_cup_apps") FROM "appearances_and_goals" WHERE "league_goals"<0;
2-18815485-1
Where was the September 3 game?
CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "location" FROM "regular_season" WHERE "date"='september 3';
2-18949197-7
Which game was on September 12?
CREATE TABLE "regular_season" ( "game" text, "date" text, "opponent" text, "score" text, "location" text, "record" text );
SELECT "game" FROM "regular_season" WHERE "date"='september 12';
2-18949197-7
What is cork's rank?
CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );
SELECT "rank" FROM "season" WHERE "county"='cork';
2-18984749-1
How many totals does cork have whose rank is larger than 2?
CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );
SELECT SUM("total") FROM "season" WHERE "county"='cork' AND "rank">2;
2-18984749-1
Which Matches have a Tally of 1-38?
CREATE TABLE "season" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "matches" real, "average" real );
SELECT "matches" FROM "season" WHERE "tally"='1-38';
2-18984749-1
How many silver medals did spain have when they had more than 0 bronze medals and less than 54 total medals?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "silver" FROM "medals_table" WHERE "bronze">0 AND "total"<54 AND "nation"='spain';
2-18618431-4
What was the highest number of gold medals when there were 0 silver medals?
CREATE TABLE "medals_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MAX("gold") FROM "medals_table" WHERE "silver"<0;
2-18618431-4
What's Brazil's rank when it has notes of R?
CREATE TABLE "heat_1" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text );
SELECT COUNT("rank") FROM "heat_1" WHERE "notes"='r' AND "country"='brazil';
2-18662704-3
What rank was the premier Sir John See?
CREATE TABLE "rank_by_time_in_office" ( "rank" real, "premier" text, "party" text, "assumed_office" text, "left_office" text, "total_time_in_office" text );
SELECT COUNT("rank") FROM "rank_by_time_in_office" WHERE "premier"='sir john see';
2-18766128-1
Which Peak Position has a Date of 10 june 1998?
CREATE TABLE "singles" ( "date" text, "title" text, "peak_position" real, "weeks" text, "sales" real );
SELECT "peak_position" FROM "singles" WHERE "date"='10 june 1998';
2-1898955-4
What Report is on June 3, 2000?
CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text );
SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='june 3, 2000';
2-18594107-9
What is the Report on November 15, 2000?
CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text );
SELECT "report" FROM "2000_in_paraguayan_football" WHERE "date"='november 15, 2000';
2-18594107-9
What is the Score on October 7, 2000?
CREATE TABLE "2000_in_paraguayan_football" ( "date" text, "venue" text, "score" text, "comp" text, "report" text );
SELECT "score" FROM "2000_in_paraguayan_football" WHERE "date"='october 7, 2000';
2-18594107-9
What is the figure for Santo Domingo, Dominican for the world record in the clean & jerk?
CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text );
SELECT "santo_domingo_dominican" FROM "records" WHERE "world_record"='clean & jerk';
2-18547192-2
What is the 98kg for Santo Domingo, Domincan on 1 October 2006?
CREATE TABLE "records" ( "world_record" text, "snatch" text, "yang_lian_chn" text, "98kg" text, "santo_domingo_dominican" text );
SELECT "98kg" FROM "records" WHERE "santo_domingo_dominican"='1 october 2006';
2-18547192-2
What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?
CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text );
SELECT AVG("fips_code") FROM "demographics" WHERE "area"='114.76 sq mi (297.23 sq km)' AND "population_2010"<'166,327';
2-189952-1
What is the FIPS code for the municipality that has an area of 58.60 sq mi (151.77 sq km) and had a 2010 population smaller than 166,327?
CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text );
SELECT COUNT("fips_code") FROM "demographics" WHERE "population_2010"<'166,327' AND "area"='58.60 sq mi (151.77 sq km)';
2-189952-1
In what year was Yauco, which had over 42,043 people in 2010, founded?
CREATE TABLE "demographics" ( "municipality" text, "fips_code" real, "founded" real, "population_2010" real, "area" text );
SELECT AVG("founded") FROM "demographics" WHERE "municipality"='yauco' AND "population_2010">'42,043';
2-189952-1
Which Result has an Attendance larger than 38,354, and a Date of october 23, 1988?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "result" FROM "schedule" WHERE "attendance">'38,354' AND "date"='october 23, 1988';
2-18847684-2
What is the attendance for a week smaller than 9 with a result of L 38-20?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MAX("attendance") FROM "schedule" WHERE "result"='l 38-20' AND "week"<9;
2-18674332-1
Can you tell me the School that has the IHSAA Class of a, and the Enrollment 08-09 off 244?
CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );
SELECT "school" FROM "membership" WHERE "ihsaa_class"='a' AND "enrollment_08_09"=244;
2-18820828-1
Can you tell me the County that has the Location of shelbyville?
CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment_08_09" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text );
SELECT "county" FROM "membership" WHERE "location"='shelbyville';
2-18820828-1
How many Deaths have a Fate of damaged, and a Tonnage (GRT) smaller than 4,917?
CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real );
SELECT COUNT("deaths") FROM "summary_of_raiding_history" WHERE "fate"='damaged' AND "tonnage_grt"<'4,917';
2-18914307-1
Which Tonnage has a Fate of sunk, and Deaths smaller than 17, and a Date of 16 november 1940?
CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real );
SELECT "tonnage_grt" FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "deaths"<17 AND "date"='16 november 1940';
2-18914307-1
How much tonnage has a Fate of sunk, and a Flag of great britain, and a Date of 26 september 1940, and Deaths of 2?
CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real );
SELECT SUM("tonnage_grt") FROM "summary_of_raiding_history" WHERE "fate"='sunk' AND "flag"='great britain' AND "date"='26 september 1940' AND "deaths"=2;
2-18914307-1
Which tonnage has a Date of 26 september 1940, and a Ship Name of ashantian?
CREATE TABLE "summary_of_raiding_history" ( "date" text, "ship_name" text, "flag" text, "tonnage_grt" real, "fate" text, "deaths" real );
SELECT MIN("tonnage_grt") FROM "summary_of_raiding_history" WHERE "date"='26 september 1940' AND "ship_name"='ashantian';
2-18914307-1
What is the highest lane for Brazil, ranked less than 8?
CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "country" text, "time" text );
SELECT MAX("lane") FROM "semifinal_2" WHERE "country"='brazil' AND "rank"<8;
2-18569131-4
What is the total population with less than 789 males?
CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real );
SELECT COUNT("total_population") FROM "population_of_hiroo_district_july_2008" WHERE "male"<789;
2-18901117-1
What is the lowest female number of the hiroo 1-chōme district, which has more than 1,666 households?
CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real );
SELECT MIN("female") FROM "population_of_hiroo_district_july_2008" WHERE "district"='hiroo 1-chōme' AND "number_of_households">'1,666';
2-18901117-1
What is the highest number of males where there are 1,202 females and more than 1,127 households?
CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real );
SELECT MAX("male") FROM "population_of_hiroo_district_july_2008" WHERE "female"='1,202' AND "number_of_households">'1,127';
2-18901117-1
What is the total number of females where the total population is less than 2,195?
CREATE TABLE "population_of_hiroo_district_july_2008" ( "district" text, "number_of_households" real, "total_population" real, "male" real, "female" real );
SELECT COUNT("female") FROM "population_of_hiroo_district_july_2008" WHERE "total_population"<'2,195';
2-18901117-1
What was the outcome when the partner was Iryna Bremond?
CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "outcome" FROM "doubles_6_3_3" WHERE "partner"='iryna bremond';
2-18586543-6
What tournament had a Score of 6–3, 2–6, [10–8]?
CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "tournament" FROM "doubles_6_3_3" WHERE "score"='6–3, 2–6, [10–8]';
2-18586543-6
Who was the partner when the surface was clay, and outcome was runner-up, with a score of 4–6, 1–6?
CREATE TABLE "doubles_6_3_3" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "partner" FROM "doubles_6_3_3" WHERE "surface"='clay' AND "outcome"='runner-up' AND "score"='4–6, 1–6';
2-18586543-6
What is the rank of Manuel Cortina Martínez?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT "rank" FROM "heat_4" WHERE "athletes"='manuel cortina martínez';
2-18646681-6
What is the rank if the person with a time of 1:40.626?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT SUM("rank") FROM "heat_4" WHERE "time"='1:40.626';
2-18646681-6
What is the rank of the person with a time of 1:44.757?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT MAX("rank") FROM "heat_4" WHERE "time"='1:44.757';
2-18646681-6
What is the rank of Israel?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT MAX("rank") FROM "heat_4" WHERE "country"='israel';
2-18646681-6
What is the name of the athlete from Myanmar?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT "athletes" FROM "heat_4" WHERE "country"='myanmar';
2-18646681-6
What are the notes for the person ranked larger than 2, and a time of 1:48.179?
CREATE TABLE "heat_4" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text );
SELECT "notes" FROM "heat_4" WHERE "rank">2 AND "time"='1:48.179';
2-18646681-6
What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?
CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real );
SELECT MIN("chorley") FROM "summary_of_results_2005" WHERE "preston"=6 AND "west_lancashire"<4;
2-18992950-1
What is the average rating for a Flyde that has a Burnley less than 0?
CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real );
SELECT AVG("fylde") FROM "summary_of_results_2005" WHERE "burnley"<0;
2-18992950-1
What is the highest rated West Lancashire with a Pendle greater than 1 and a Rossendale more than 2?
CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real );
SELECT MAX("west_lancashire") FROM "summary_of_results_2005" WHERE "pendle">1 AND "rossendale">2;
2-18992950-1
What was the average Chorley for the Labour party that had a Rossendale greater than 0 and a Pendle less than 1?
CREATE TABLE "summary_of_results_2005" ( "party" text, "burnley" real, "chorley" real, "fylde" real, "hyndburn" real, "lancaster" real, "pendle" real, "preston" real, "ribble_valley" real, "rossendale" real, "south_ribble" real, "west_lancashire" real, "wyre" real, "total" real );
SELECT AVG("chorley") FROM "summary_of_results_2005" WHERE "rossendale">0 AND "party"='labour' AND "pendle"<1;
2-18992950-1
In what season was Schädlich the top goalscorer?
CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real );
SELECT "season" FROM "1945_63" WHERE "top_goalscorer"='schädlich';
2-18608338-3
What is the average attendance when the rank is 5?
CREATE TABLE "1945_63" ( "season" text, "division" text, "rank" text, "avg_att" text, "top_goalscorer" text, "goals" real );
SELECT "avg_att" FROM "1945_63" WHERE "rank"='5';
2-18608338-3
What is the Speed for Chris Swallow?
CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rider"='chris swallow';
2-18649514-4
What is the speed when the rank is larger than 2, and team is 500cc norton manx?
CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank">2 AND "team"='500cc norton manx';
2-18649514-4
What is the time for Alan Oversby?
CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "time" FROM "race_2_senior_classic_race" WHERE "rider"='alan oversby';
2-18649514-4
What is the Speed when the rank is smaller than 3, and time is 1:06.19.90?
CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "speed" FROM "race_2_senior_classic_race" WHERE "rank"<3 AND "time"='1:06.19.90';
2-18649514-4
What is the team when the time is 1:11.19.89?
CREATE TABLE "race_2_senior_classic_race" ( "rank" real, "rider" text, "team" text, "speed" text, "time" text );
SELECT "team" FROM "race_2_senior_classic_race" WHERE "time"='1:11.19.89';
2-18649514-4
Which actor plays the character Helga Beimer?
CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "actor" FROM "germany" WHERE "character"='helga beimer';
2-18772558-6
How long did the soap opera run in which Nadine Spruß acted in?
CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "character" FROM "germany" WHERE "actor"='nadine spruß';
2-18772558-6
How many years did the soap opera run in which the character Clemens Richter was included?
CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "duration" FROM "germany" WHERE "character"='clemens richter';
2-18772558-6
What years did Marienhof run, which featured Leonore Capell and lasted 10 years?
CREATE TABLE "germany" ( "actor" text, "character" text, "soap_opera" text, "years" text, "duration" text );
SELECT "years" FROM "germany" WHERE "soap_opera"='marienhof' AND "duration"='10 years' AND "actor"='leonore capell';
2-18772558-6
Who was the opponent in week 6?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "opponent" FROM "schedule" WHERE "week"=6;
2-18856037-1
What's the result when the Carolina Panthers were the opponent?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "result" FROM "schedule" WHERE "opponent"='carolina panthers';
2-18856037-1
What date had a result of W 41-0?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "date" FROM "schedule" WHERE "result"='w 41-0';
2-18856037-1
What's the attendance when the week was more than 16?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" text );
SELECT "attendance" FROM "schedule" WHERE "week">16;
2-18856037-1
What was the year of the World Half Marathon Championships with a result of 3rd?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );
SELECT "year" FROM "achievements" WHERE "tournament"='world half marathon championships' AND "result"='3rd';
2-18564451-1
What was the result of the tournament in 2001?
CREATE TABLE "achievements" ( "year" real, "tournament" text, "venue" text, "result" text, "event" text );
SELECT "result" FROM "achievements" WHERE "year"=2001;
2-18564451-1
What is the average capacity for the vehicle having a navigator of Macneall?
CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );
SELECT AVG("capacity") FROM "modern_competition" WHERE "navigator"='macneall';
2-18394791-2
Which vehicle had a class of CM14?
CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );
SELECT "vehicle" FROM "modern_competition" WHERE "class"='cm14';
2-18394791-2
Who was the driver of the vehicle having class of CM22 and navigator of Macneall?
CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );
SELECT "driver" FROM "modern_competition" WHERE "class"='cm22' AND "navigator"='macneall';
2-18394791-2
What is the total time of the vehicle having a navigator of Vandenberg?
CREATE TABLE "modern_competition" ( "driver" text, "navigator" text, "vehicle" text, "class" text, "capacity" real, "total_time" text, "margin" text );
SELECT "total_time" FROM "modern_competition" WHERE "navigator"='vandenberg';
2-18394791-2
What is the bronze with more than 2 gold and less than 14 total and 4 silver?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("bronze") FROM "medal_table" WHERE "gold">2 AND "total"<14 AND "silver"=4;
2-18565896-1
How many silvers are there with a total of 11?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("silver") FROM "medal_table" WHERE "total"=11;
2-18565896-1
How many silvers are there with more than 2 golds in Germany?
CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT COUNT("silver") FROM "medal_table" WHERE "gold">2 AND "nation"='germany';
2-18565896-1
What is the average reaction for brigitte foster-hylton after heat 1?
CREATE TABLE "semifinals" ( "heat" real, "name" text, "nationality" text, "reaction" real, "result" text );
SELECT AVG("reaction") FROM "semifinals" WHERE "heat">1 AND "name"='brigitte foster-hylton';
2-18578883-3
What round did the home team Pohang Steelers play?
CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text );
SELECT "round" FROM "fixtures" WHERE "home_team"='pohang steelers';
2-18484319-13
What is the latest round for Pohang Steelers as the away team?
CREATE TABLE "fixtures" ( "round" real, "date" text, "home_team" text, "score" text, "away_team" text, "attendance" real, "stadium" text );
SELECT MAX("round") FROM "fixtures" WHERE "away_team"='pohang steelers';
2-18484319-13
what is the album when the remix is dead guys remix and the year is after 2003?
CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text );
SELECT "album" FROM "remixes" WHERE "remix"='dead guys remix' AND "year">2003;
2-18813729-2
what is the album with the song "party like ur 18" feat. sway?
CREATE TABLE "remixes" ( "year" real, "artist" text, "song" text, "album" text, "remix" text );
SELECT "album" FROM "remixes" WHERE "song"='\"party like ur 18\" feat. sway';
2-18813729-2
What is Joselito Escobar's Pick number?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT SUM("pick") FROM "round_1" WHERE "player"='joselito escobar';
2-18703231-1
What is the Pick 3 Player from East College?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "player" FROM "round_1" WHERE "college"='east' AND "pick"=3;
2-18703231-1
What is Ateneo de Manila's PBA Team?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "pba_team" FROM "round_1" WHERE "college"='ateneo de manila';
2-18703231-1
What is the College of the Player from PBA Team Alaska Milkmen with a Pick number of 3 or less?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "college" FROM "round_1" WHERE "pick"<3 AND "pba_team"='alaska milkmen';
2-18703231-1
What is the College of the Player from San Miguel Beermen PBA Team?
CREATE TABLE "round_1" ( "pick" real, "player" text, "country_of_origin" text, "pba_team" text, "college" text );
SELECT "college" FROM "round_1" WHERE "pba_team"='san miguel beermen';
2-18703231-1
who is the web client when the client is x and the project is goto servers vnc java server (gsvncj)?
CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text );
SELECT "web_client" FROM "comparison_chart" WHERE "client"='x' AND "project"='goto servers vnc java server (gsvncj)';
2-18418837-1
what is the color quality when the proxy is x, the encryption is x, the webclient is x and authentication is ✓?
CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text );
SELECT "color_quality" FROM "comparison_chart" WHERE "proxy"='x' AND "encryption"='x' AND "web_client"='x' AND "authentication"='✓';
2-18418837-1
what is the color quality when the relay is ✓?
CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text );
SELECT "color_quality" FROM "comparison_chart" WHERE "relay"='✓';
2-18418837-1
what is the proxy when the image quality is ✓, the encryption is ssl and the license is proprietary?
CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text );
SELECT "proxy" FROM "comparison_chart" WHERE "image_quality"='✓' AND "encryption"='ssl' AND "license"='proprietary';
2-18418837-1
what is the image quality when the multiple sessions is x, the authentication is ✓ and the date is may 15, 2007?
CREATE TABLE "comparison_chart" ( "project" text, "license" text, "date" text, "protocol" text, "technology" text, "server" text, "client" text, "web_client" text, "multiple_sessions" text, "encryption" text, "authentication" text, "data_compression" text, "image_quality" text, "color_quality" text, "file_transfer" text, "clipboard_transfer" text, "chat" text, "relay" text, "http_tunnel" text, "proxy" text );
SELECT "image_quality" FROM "comparison_chart" WHERE "multiple_sessions"='x' AND "authentication"='✓' AND "date"='may 15, 2007';
2-18418837-1
What is listed for the Cores that has the L3 cache of 8 MB and Model number of Core i7-860?
CREATE TABLE "45_nm" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "cores" text, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text );
SELECT "cores" FROM "45_nm" WHERE "l3_cache"='8 mb' AND "model_number"='core i7-860';
2-18823880-2