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 sum of Year, when Award is "Outer Critics Circle Award", and when Nominee is "Nathan Lane"?
CREATE TABLE "original_broadway_production" ( "year" real, "award" text, "category" text, "nominee" text, "result" text );
SELECT SUM("year") FROM "original_broadway_production" WHERE "award"='outer critics circle award' AND "nominee"='nathan lane';
2-18169845-3
What is Name, when Builder is "Kerr Stuart"?
CREATE TABLE "locomotives" ( "name" text, "builder" text, "type" text, "works_number" text, "built" real );
SELECT "name" FROM "locomotives" WHERE "builder"='kerr stuart';
2-1820430-1
What is Built, when Works Number is "717"?
CREATE TABLE "locomotives" ( "name" text, "builder" text, "type" text, "works_number" text, "built" real );
SELECT "built" FROM "locomotives" WHERE "works_number"='717';
2-1820430-1
What is Type, when Works Number is "unknown"?
CREATE TABLE "locomotives" ( "name" text, "builder" text, "type" text, "works_number" text, "built" real );
SELECT "type" FROM "locomotives" WHERE "works_number"='unknown';
2-1820430-1
What is the circuit for the ADAC großer preis der tourenwagen race?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text, "winning_team" text );
SELECT "circuit" FROM "race_calendar_and_winners" WHERE "race"='adac großer preis der tourenwagen';
2-17669275-2
What is the date that Fabrizio Giovanardi Christian Abt won?
CREATE TABLE "race_calendar_and_winners" ( "round" real, "race" text, "circuit" text, "date" text, "event" text, "winning_driver" text, "winning_team" text );
SELECT "date" FROM "race_calendar_and_winners" WHERE "winning_driver"='fabrizio giovanardi christian abt';
2-17669275-2
What home team has 16 as the tie no.?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='16';
2-17751859-2
What score has hull city as the away team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "score" FROM "second_round_proper" WHERE "away_team"='hull city';
2-17751859-2
What away team has 12 as the tie no.?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "away_team" FROM "second_round_proper" WHERE "tie_no"='12';
2-17751859-2
What date has 11 as the tie no.?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "second_round_proper" WHERE "tie_no"='11';
2-17751859-2
What home team has blackpool as the away team?
CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "home_team" FROM "second_round_proper" WHERE "away_team"='blackpool';
2-17751859-2
What was the surface when the opponent was sergiy stakhovsky mikhail youzhny?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "surface" FROM "doubles_6_2_4" WHERE "opponents"='sergiy stakhovsky mikhail youzhny';
2-17679324-7
What was the score for the opponent lukáš dlouhý leander paes?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "score" FROM "doubles_6_2_4" WHERE "opponents"='lukáš dlouhý leander paes';
2-17679324-7
What day was there a hard surface when the partner was Marc Gicquel?
CREATE TABLE "doubles_6_2_4" ( "outcome" text, "date" text, "surface" text, "partner" text, "opponents" text, "score" text );
SELECT "date" FROM "doubles_6_2_4" WHERE "surface"='hard' AND "partner"='marc gicquel';
2-17679324-7
What is the total (kg) when the snatch was 84, and bodyweight was less than 57.35?
CREATE TABLE "lightweight_58_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT AVG("total_kg") FROM "lightweight_58_kg" WHERE "snatch"=84 AND "bodyweight"<57.35;
2-17703223-11
What is the clean & jerk when the total (kg) is more than 204, and snatch is more than 98?
CREATE TABLE "lightweight_58_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT AVG("clean_jerk") FROM "lightweight_58_kg" WHERE "total_kg">204 AND "snatch">98;
2-17703223-11
What is the total (kg when the bodyweight is more than 57.8, and the clean & jerk is less than 103?
CREATE TABLE "lightweight_58_kg" ( "name" text, "bodyweight" real, "snatch" real, "clean_jerk" real, "total_kg" real );
SELECT SUM("total_kg") FROM "lightweight_58_kg" WHERE "bodyweight">57.8 AND "clean_jerk"<103;
2-17703223-11
What is the Overall of the pick less than 20?
CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "overall" FROM "nfl_draft" WHERE "pick_num"<20;
2-18008691-1
What is the name of the cornerback from Wisconsin college?
CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "name" FROM "nfl_draft" WHERE "position"='cornerback' AND "college"='wisconsin';
2-18008691-1
What college is Pat Thomas from?
CREATE TABLE "nfl_draft" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text );
SELECT "college" FROM "nfl_draft" WHERE "name"='pat thomas';
2-18008691-1
What is the best top-10 result when events are fewer than 39, top-5 is 1 and more than 5 cuts are made?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("top_10") FROM "summary" WHERE "events"<39 AND "top_5"=1 AND "cuts_made">5;
2-1781343-3
How many cuts made when the top-5 is greater than 1?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("cuts_made") FROM "summary" WHERE "top_5">1;
2-1781343-3
What is the best top-5 when top-10 is 1 and there are more than 0 wins?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MAX("top_5") FROM "summary" WHERE "top_10"=1 AND "wins">0;
2-1781343-3
What is the number of cuts made when the top-5 is 0, top-10 is 1 and events are fewer than 12?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT AVG("cuts_made") FROM "summary" WHERE "top_5"=0 AND "top_10"=1 AND "events"<12;
2-1781343-3
What was the 1st leg for Team 2, Leeds United?
CREATE TABLE "fourth_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "fourth_round" WHERE "team_2"='leeds united';
2-18210406-5
What was the 1st leg for Team 2, Slovan Liberec?
CREATE TABLE "fourth_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "1st_leg" FROM "fourth_round" WHERE "team_2"='slovan liberec';
2-18210406-5
Which Team 1, has Team 2, Slovan Liberec?
CREATE TABLE "fourth_round" ( "team_1" text, "agg" text, "team_2" text, "1st_leg" text, "2nd_leg" text );
SELECT "team_1" FROM "fourth_round" WHERE "team_2"='slovan liberec';
2-18210406-5
What is the date of the match with west bromwich albion as the home team?
CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "fifth_round_proper" WHERE "home_team"='west bromwich albion';
2-17751803-5
What is the highest Apps of kairat after 2008 and a Level smaller than 1?
CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" real, "goals" real );
SELECT MAX("apps") FROM "club_career_stats" WHERE "season">2008 AND "team"='kairat' AND "level"<1;
2-18119901-1
What is the total Level with 27 Apps after 2006?
CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" real, "goals" real );
SELECT SUM("level") FROM "club_career_stats" WHERE "apps"=27 AND "season">2006;
2-18119901-1
What is the lowest Apps with more than 1 level?
CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" real, "goals" real );
SELECT MIN("apps") FROM "club_career_stats" WHERE "level">1;
2-18119901-1
what is the total levels in 2007?
CREATE TABLE "club_career_stats" ( "season" real, "team" text, "country" text, "league" text, "level" real, "apps" real, "goals" real );
SELECT SUM("level") FROM "club_career_stats" WHERE "season"=2007;
2-18119901-1
How many times is the award ceremony laurence olivier award, result is won and the nominee is imelda staunton?
CREATE TABLE "2012_london_revival" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text );
SELECT COUNT("year") FROM "2012_london_revival" WHERE "award_ceremony"='laurence olivier award' AND "result"='won' AND "nominee"='imelda staunton';
2-1794747-8
what is the result when the category is best sound design?
CREATE TABLE "2012_london_revival" ( "year" real, "award_ceremony" text, "category" text, "nominee" text, "result" text );
SELECT "result" FROM "2012_london_revival" WHERE "category"='best sound design';
2-1794747-8
What's the total byes for more than 1 draw?
CREATE TABLE "2007_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT COUNT("byes") FROM "2007_ladder" WHERE "draws">1;
2-18036506-9
What Hometown/School had a pick above 30, position of OF and team of Cleveland Indians?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT "hometown_school" FROM "supplemental_first_round_selections" WHERE "pick">30 AND "position"='of' AND "team"='cleveland indians';
2-18132662-2
What's the highest pick for SS position?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT MAX("pick") FROM "supplemental_first_round_selections" WHERE "position"='ss';
2-18132662-2
What pick did the Minnesota Twins have?
CREATE TABLE "supplemental_first_round_selections" ( "pick" real, "player" text, "team" text, "position" text, "hometown_school" text );
SELECT AVG("pick") FROM "supplemental_first_round_selections" WHERE "team"='minnesota twins';
2-18132662-2
What is the average Draws, when Losses is less than 2?
CREATE TABLE "2006_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("draws") FROM "2006_ladder" WHERE "losses"<2;
2-18036506-7
What is the average Wins, when Against is less than 1786, when Losses is less than 4, and when Byes is less than 2?
CREATE TABLE "2006_ladder" ( "golden_rivers" text, "wins" real, "byes" real, "losses" real, "draws" real, "against" real );
SELECT AVG("wins") FROM "2006_ladder" WHERE "against"<1786 AND "losses"<4 AND "byes"<2;
2-18036506-7
What is Country, when Class / Type is "Three masted full rigged ship"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "country" FROM "see_also" WHERE "class_type"='three masted full rigged ship';
2-18279398-1
What is Builder, when Country is "United Kingdom", and when Location is "Chatham, Kent"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "country"='united kingdom' AND "location"='chatham, kent';
2-18279398-1
What is Builder, when Ship is "Arizona"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "ship"='arizona';
2-18279398-1
What is Location, when Class / Type is "Sloop"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "location" FROM "see_also" WHERE "class_type"='sloop';
2-18279398-1
What is Country, when Builder is "Sheerness Dockyard"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "country" FROM "see_also" WHERE "builder"='sheerness dockyard';
2-18279398-1
What is Builder, when Location is "Govan , Scotland"?
CREATE TABLE "see_also" ( "country" text, "builder" text, "location" text, "ship" text, "class_type" text );
SELECT "builder" FROM "see_also" WHERE "location"='govan , scotland';
2-18279398-1
How many ranks have 40 as the apps, with goals per match greater than 1?
CREATE TABLE "most_goals_in_a_season_all_competitions_" ( "rank" real, "name" text, "season" text, "club" text, "goals" real, "apps" real, "goals_per_match" real );
SELECT SUM("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "apps"=40 AND "goals_per_match">1;
2-17937080-8
What is the lowest rank that has goals per match less than 1.237, real madrid as the club, goals less than 53, with apps greater than 40?
CREATE TABLE "most_goals_in_a_season_all_competitions_" ( "rank" real, "name" text, "season" text, "club" text, "goals" real, "apps" real, "goals_per_match" real );
SELECT MIN("rank") FROM "most_goals_in_a_season_all_competitions_" WHERE "goals_per_match"<1.237 AND "club"='real madrid' AND "goals"<53 AND "apps">40;
2-17937080-8
What was Britain's (2013) birthstone when the U.S (2013) birthstone was ruby?
CREATE TABLE "birthstones_by_cultures" ( "month" text, "15th_20th_century" text, "u_s_1912" text, "u_s_2013" text, "britain_2013" text, "hindu" text );
SELECT "britain_2013" FROM "birthstones_by_cultures" WHERE "u_s_2013"='ruby';
2-17891889-1
What was the U.S birthstone in 1912 when in 2013 the birthstone was amethyst?
CREATE TABLE "birthstones_by_cultures" ( "month" text, "15th_20th_century" text, "u_s_1912" text, "u_s_2013" text, "britain_2013" text, "hindu" text );
SELECT "u_s_1912" FROM "birthstones_by_cultures" WHERE "u_s_2013"='amethyst';
2-17891889-1
What was the U.S birthstone in the 15th-20th century when in 2013 it was amethyst?
CREATE TABLE "birthstones_by_cultures" ( "month" text, "15th_20th_century" text, "u_s_1912" text, "u_s_2013" text, "britain_2013" text, "hindu" text );
SELECT "15th_20th_century" FROM "birthstones_by_cultures" WHERE "u_s_2013"='amethyst';
2-17891889-1
Which month in 2013 did the U.S. use the ruby birthstone?
CREATE TABLE "birthstones_by_cultures" ( "month" text, "15th_20th_century" text, "u_s_1912" text, "u_s_2013" text, "britain_2013" text, "hindu" text );
SELECT "month" FROM "birthstones_by_cultures" WHERE "u_s_2013"='ruby';
2-17891889-1
In 1912 when the U.S used sapphire, what was the Hindu birthstone?
CREATE TABLE "birthstones_by_cultures" ( "month" text, "15th_20th_century" text, "u_s_1912" text, "u_s_2013" text, "britain_2013" text, "hindu" text );
SELECT "hindu" FROM "birthstones_by_cultures" WHERE "u_s_1912"='sapphire';
2-17891889-1
What's the hometown of rachel muyot soriano?
CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text );
SELECT "hometown" FROM "appointed_delegates_to_various_internati" WHERE "delegate"='rachel muyot soriano';
2-1825751-14
What's the latest year the miss internet www pageant had a result of second runner-up?
CREATE TABLE "appointed_delegates_to_various_internati" ( "year" real, "delegate" text, "hometown" text, "pageant" text, "result" text, "other_awards" text );
SELECT MAX("year") FROM "appointed_delegates_to_various_internati" WHERE "pageant"='miss internet www' AND "result"='second runner-up';
2-1825751-14
On what Date is Tie no 19?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "third_round_proper" WHERE "tie_no"='19';
2-17751811-3
What is the Ti no of the Walsall Home game?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "tie_no" FROM "third_round_proper" WHERE "home_team"='walsall';
2-17751811-3
What is the Date of Tie no 21?
CREATE TABLE "third_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text );
SELECT "date" FROM "third_round_proper" WHERE "tie_no"='21';
2-17751811-3
Which race happened in 1948?
CREATE TABLE "first_street_course" ( "year" real, "drivers" text, "team" text, "duration_distance" text, "race_title" text, "championship" text );
SELECT "race_title" FROM "first_street_course" WHERE "year"=1948;
2-17830249-1
Was the Grand Prix Watkins GLen that Miles Collier raced in before 1952 a championship?
CREATE TABLE "first_street_course" ( "year" real, "drivers" text, "team" text, "duration_distance" text, "race_title" text, "championship" text );
SELECT "championship" FROM "first_street_course" WHERE "year"<1952 AND "race_title"='grand prix watkins glen' AND "drivers"='miles collier';
2-17830249-1
Who drove in races in 1949?
CREATE TABLE "first_street_course" ( "year" real, "drivers" text, "team" text, "duration_distance" text, "race_title" text, "championship" text );
SELECT "drivers" FROM "first_street_course" WHERE "year"=1949;
2-17830249-1
What is the lowest Total, when Silver is greater than 7, and when Gold is greater than 73?
CREATE TABLE "sailing_1896_1968" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("total") FROM "sailing_1896_1968" WHERE "silver">7 AND "gold">73;
2-1806946-5
What is Total, when Silver is less than 65, when Bronze is greater than 4, and when Rank is "4"?
CREATE TABLE "sailing_1896_1968" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT "total" FROM "sailing_1896_1968" WHERE "silver"<65 AND "bronze">4 AND "rank"='4';
2-1806946-5
What is the average Silver, when Gold is less than 0?
CREATE TABLE "sailing_1896_1968" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT AVG("silver") FROM "sailing_1896_1968" WHERE "gold"<0;
2-1806946-5
What is Height, when Name is "Manuela Zanchi"?
CREATE TABLE "italy" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "height" FROM "italy" WHERE "name"='manuela zanchi';
2-17774593-6
What is Pos., when Height is "m (ft 6in)", and when Name is "Martina Miceli"?
CREATE TABLE "italy" ( "name" text, "pos" text, "height" text, "weight" text, "date_of_birth" text, "club" text );
SELECT "pos" FROM "italy" WHERE "height"='m (ft 6in)' AND "name"='martina miceli';
2-17774593-6
Which opponent has a week less than 2?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT "opponent" FROM "schedule" WHERE "week"<2;
2-17860767-2
How many kills did basobas, florentino have?
CREATE TABLE "oceania_and_maritime_southeast_asia" ( "perpetrator" text, "location" text, "country" text, "killed" real, "injured" text );
SELECT MAX("killed") FROM "oceania_and_maritime_southeast_asia" WHERE "perpetrator"='basobas, florentino';
2-17794738-6
What is the average number of people killed with a Perpetrator of wirjo, 42?
CREATE TABLE "oceania_and_maritime_southeast_asia" ( "perpetrator" text, "location" text, "country" text, "killed" real, "injured" text );
SELECT AVG("killed") FROM "oceania_and_maritime_southeast_asia" WHERE "perpetrator"='wirjo, 42';
2-17794738-6
How many are injured in Borneo?
CREATE TABLE "oceania_and_maritime_southeast_asia" ( "perpetrator" text, "location" text, "country" text, "killed" real, "injured" text );
SELECT "injured" FROM "oceania_and_maritime_southeast_asia" WHERE "location"='borneo';
2-17794738-6
How many points were scored by the player with 79 goals and who played 38 games?
CREATE TABLE "top_ten_scorers" ( "name" text, "hometown" text, "games" text, "goals" text, "assists" text, "points" text, "pen_min" text );
SELECT "points" FROM "top_ten_scorers" WHERE "goals"='79' AND "games"='38';
2-1788953-3
How many games were played by the player with 127 assists?
CREATE TABLE "top_ten_scorers" ( "name" text, "hometown" text, "games" text, "goals" text, "assists" text, "points" text, "pen_min" text );
SELECT "games" FROM "top_ten_scorers" WHERE "assists"='127';
2-1788953-3
How many games were played by the player who had 22 penalty minutes?
CREATE TABLE "top_ten_scorers" ( "name" text, "hometown" text, "games" text, "goals" text, "assists" text, "points" text, "pen_min" text );
SELECT "games" FROM "top_ten_scorers" WHERE "pen_min"='22';
2-1788953-3
How many assists did the player with 54 penalty minutes have?
CREATE TABLE "top_ten_scorers" ( "name" text, "hometown" text, "games" text, "goals" text, "assists" text, "points" text, "pen_min" text );
SELECT "assists" FROM "top_ten_scorers" WHERE "pen_min"='54';
2-1788953-3
What is John Davis's home town?
CREATE TABLE "top_ten_scorers" ( "name" text, "hometown" text, "games" text, "goals" text, "assists" text, "points" text, "pen_min" text );
SELECT "hometown" FROM "top_ten_scorers" WHERE "name"='john davis';
2-1788953-3
What is the date of the 1500m freestyle event?
CREATE TABLE "men" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );
SELECT "date" FROM "men" WHERE "event"='1500m freestyle';
2-18020762-1
What is the nationality of the event with a 1:51.51 time?
CREATE TABLE "men" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );
SELECT "nationality" FROM "men" WHERE "time"='1:51.51';
2-18020762-1
What is the time of the 100m freestyle event?
CREATE TABLE "men" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );
SELECT "time" FROM "men" WHERE "event"='100m freestyle';
2-18020762-1
What is the date of the event with a 1:54.00 time?
CREATE TABLE "men" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );
SELECT "date" FROM "men" WHERE "time"='1:54.00';
2-18020762-1
What event is on 18 December 2009?
CREATE TABLE "men" ( "event" text, "time" text, "nationality" text, "date" text, "meet" text, "location" text );
SELECT "event" FROM "men" WHERE "date"='18 december 2009';
2-18020762-1
Jimmie Lee Sloas was the composer for what album?
CREATE TABLE "singles" ( "year" real, "single" text, "chr_chart_peak" real, "album" text, "composer_s" text );
SELECT "album" FROM "singles" WHERE "composer_s"='jimmie lee sloas';
2-18001849-2
Which composer had a CHR chart peak at #2?
CREATE TABLE "singles" ( "year" real, "single" text, "chr_chart_peak" real, "album" text, "composer_s" text );
SELECT "composer_s" FROM "singles" WHERE "chr_chart_peak"=2;
2-18001849-2
What was the date for Westport?
CREATE TABLE "2008_pool_games" ( "week" text, "date" text, "home_team" text, "away_team" text, "venue" text );
SELECT "date" FROM "2008_pool_games" WHERE "venue"='westport';
2-18356118-1
What is the home team in week 1?
CREATE TABLE "2008_pool_games" ( "week" text, "date" text, "home_team" text, "away_team" text, "venue" text );
SELECT "home_team" FROM "2008_pool_games" WHERE "week"='1';
2-18356118-1
In what week was the away team Auckland?
CREATE TABLE "2008_pool_games" ( "week" text, "date" text, "home_team" text, "away_team" text, "venue" text );
SELECT "week" FROM "2008_pool_games" WHERE "away_team"='auckland';
2-18356118-1
What is the venue for week 1?
CREATE TABLE "2008_pool_games" ( "week" text, "date" text, "home_team" text, "away_team" text, "venue" text );
SELECT "venue" FROM "2008_pool_games" WHERE "week"='1';
2-18356118-1
What is the sum of men's wheelchair from Ireland and more than 1 total?
CREATE TABLE "victories_by_nationality" ( "country" text, "men_s_open" real, "women_s_open" real, "men_s_wheelchair" real, "women_s_wheelchair" real, "total" real );
SELECT SUM("men_s_wheelchair") FROM "victories_by_nationality" WHERE "country"='ireland' AND "total">1;
2-182298-5
What is the average total for the Men's Open of 7, and the men's wheelchair more than 0?
CREATE TABLE "victories_by_nationality" ( "country" text, "men_s_open" real, "women_s_open" real, "men_s_wheelchair" real, "women_s_wheelchair" real, "total" real );
SELECT AVG("total") FROM "victories_by_nationality" WHERE "men_s_open"=7 AND "men_s_wheelchair">0;
2-182298-5
What is the title in 1991?
CREATE TABLE "singles" ( "year" text, "title" text, "sales_certified" text, "certification_france" text, "peak_position" text );
SELECT "title" FROM "singles" WHERE "year"='1991';
2-17910765-6
In what City/State did the ATCC Round 4 series take place?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "city_state" FROM "race_calendar" WHERE "series"='atcc round 4';
2-17834902-1
In what City/State did the ATCC Round 4 series take place?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "city_state" FROM "race_calendar" WHERE "series"='atcc round 4';
2-17834902-1
Which series was won by Paul Morris?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "series" FROM "race_calendar" WHERE "winner"='paul morris';
2-17834902-1
On which date did the Winfield Triple Challenge series take place?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "date" FROM "race_calendar" WHERE "series"='winfield triple challenge';
2-17834902-1
What was the circuit for Team Peter Jackson Racing in the ATCC Round 4 series?
CREATE TABLE "race_calendar" ( "date" text, "series" text, "circuit" text, "city_state" text, "winner" text, "team" text );
SELECT "circuit" FROM "race_calendar" WHERE "team"='peter jackson racing' AND "series"='atcc round 4';
2-17834902-1
Which 2008/ 09 has a 1999/ 00 of non-ranking tournaments?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "2008_09" FROM "performance_and_rankings_timeline" WHERE "1999_00"='non-ranking tournaments';
2-1795208-1
Which 1999/ 00 has a 2001/ 02 of lq, a 2006/ 07 of qf, and a 2005/ 06 of 1r?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "1999_00" FROM "performance_and_rankings_timeline" WHERE "2001_02"='lq' AND "2006_07"='qf' AND "2005_06"='1r';
2-1795208-1
Which 2001/ 02 has a 2002/ 03 of tournament not held, a 2007/ 08 of tournament not held, and a 2008/ 09 of non-ranking?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "2001_02" FROM "performance_and_rankings_timeline" WHERE "2002_03"='tournament not held' AND "2007_08"='tournament not held' AND "2008_09"='non-ranking';
2-1795208-1
Which 2006/ 07 has a 2011/ 12 of tournament not held, a 2005/ 06 of tournament not held, and a 2002/ 03 of 1r?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "2006_07" FROM "performance_and_rankings_timeline" WHERE "2011_12"='tournament not held' AND "2005_06"='tournament not held' AND "2002_03"='1r';
2-1795208-1
Which 2010/ 11 has a 2011/ 12 of former non-ranking tournaments?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='former non-ranking tournaments';
2-1795208-1
Which 2007/ 08 has a 2008/ 09 of tournament not held, a 2005/ 06 of tournament not held, and a 1999/ 00 of tournament not held?
CREATE TABLE "performance_and_rankings_timeline" ( "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, "2012_13" text );
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2008_09"='tournament not held' AND "2005_06"='tournament not held' AND "1999_00"='tournament not held';
2-1795208-1