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 amount of oil terminal in 2004?
CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text );
SELECT "2004" FROM "port_statistics" WHERE "product"='oil terminal';
2-1136796-1
What is the 2003 statistic for the product that had 514,000 tonnes in 2001?
CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text );
SELECT "2003" FROM "port_statistics" WHERE "2001"='514,000 tonnes';
2-1136796-1
What is the 2002 statistic for the product that had 452,000 tonnes in 2001?
CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text );
SELECT "2002" FROM "port_statistics" WHERE "2001"='452,000 tonnes';
2-1136796-1
What is the 2001 statistic for the product that had 2,360,000 tonnes in 2002?
CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text );
SELECT "2001" FROM "port_statistics" WHERE "2002"='2,360,000 tonnes';
2-1136796-1
What is the 2003 statistic for general cargo?
CREATE TABLE "port_statistics" ( "product" text, "2004" text, "2003" text, "2002" text, "2001" text );
SELECT "2003" FROM "port_statistics" WHERE "product"='general cargo';
2-1136796-1
What did the home team score at MCG?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_1" WHERE "venue"='mcg';
2-10808933-1
What did the away team score when playing South Melbourne?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_1" WHERE "home_team"='south melbourne';
2-10808933-1
When did the game with North Melbourne as the away team take place?
CREATE TABLE "round_1" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_1" WHERE "away_team"='north melbourne';
2-10808933-1
If the Away team was south melbourne what Date did they play?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_6" WHERE "away_team"='south melbourne';
2-10784349-6
When the venue was kardinia park and the Crowd was larger than 16,437, what was the Away team score?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_6" WHERE "crowd">'16,437' AND "venue"='kardinia park';
2-10784349-6
When the Away team scored 6.13 (49), what was the Home teams score?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_6" WHERE "away_team_score"='6.13 (49)';
2-10784349-6
When the Home team of essendon is playing what is the Away team score?
CREATE TABLE "round_6" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_6" WHERE "home_team"='essendon';
2-10784349-6
I wan the date of vacancy for departure of resigned and outgoing manager of gordon wylde
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "date_of_vacancy" FROM "managerial_changes" WHERE "manner_of_departure"='resigned' AND "outgoing_manager"='gordon wylde';
2-11206916-2
I want the replaced for date of appointment being 12 october 2007
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "replaced_by" FROM "managerial_changes" WHERE "date_of_appointment"='12 october 2007';
2-11206916-2
I want the team for date of vacancy being 28 february
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "team" FROM "managerial_changes" WHERE "date_of_vacancy"='28 february';
2-11206916-2
I want the manner of departure for date of appointment being 12 october 2007
CREATE TABLE "managerial_changes" ( "team" text, "outgoing_manager" text, "manner_of_departure" text, "date_of_vacancy" text, "replaced_by" text, "date_of_appointment" text );
SELECT "manner_of_departure" FROM "managerial_changes" WHERE "date_of_appointment"='12 october 2007';
2-11206916-2
Which date was the syracuse circuit?
CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "date" FROM "non_championship_race_results" WHERE "circuit"='syracuse';
2-1140111-5
Which date was the x gran premio di napoli?
CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "date" FROM "non_championship_race_results" WHERE "race_name"='x gran premio di napoli';
2-1140111-5
What report happened on 22 september?
CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "report" FROM "non_championship_race_results" WHERE "date"='22 september';
2-1140111-5
Which report has a Winning driver of peter collins, and a Circuit of syracuse?
CREATE TABLE "non_championship_race_results" ( "race_name" text, "circuit" text, "date" text, "winning_driver" text, "constructor" text, "report" text );
SELECT "report" FROM "non_championship_race_results" WHERE "winning_driver"='peter collins' AND "circuit"='syracuse';
2-1140111-5
Who appointed Judge Edward E. Cushman?
CREATE TABLE "former_judges" ( "judge" text, "state" text, "born_died" text, "active_service" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text );
SELECT "appointed_by" FROM "former_judges" WHERE "judge"='edward e. cushman';
2-1137899-2
Who was Judge Jack Edward Tanner's chief judge?
CREATE TABLE "former_judges" ( "judge" text, "state" text, "born_died" text, "active_service" text, "chief_judge" text, "senior_status" text, "appointed_by" text, "reason_for_termination" text );
SELECT "chief_judge" FROM "former_judges" WHERE "judge"='jack edward tanner';
2-1137899-2
What is the date of birth of the player that has 11 caps and plays the prop position?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "date_of_birth_age" FROM "2007_rugby_world_cup_squads" WHERE "caps"=11 AND "position"='prop';
2-11783766-1
What club or province is the player with 12 caps from?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "club_province" FROM "2007_rugby_world_cup_squads" WHERE "caps"=12;
2-11783766-1
What position does Toby Flood, who is from Newcastle and has fewer than 24 caps, play?
CREATE TABLE "2007_rugby_world_cup_squads" ( "player" text, "position" text, "date_of_birth_age" text, "caps" real, "club_province" text );
SELECT "position" FROM "2007_rugby_world_cup_squads" WHERE "club_province"='newcastle' AND "caps"<24 AND "player"='toby flood';
2-11783766-1
Which team beat the Newcastle Breakers?
CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "cup_final_attendance" text );
SELECT "winning_team" FROM "nsl_cup_winners" WHERE "losing_team"='newcastle breakers';
2-12028543-3
What team lost on 20 August 1989?
CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "cup_final_attendance" text );
SELECT "losing_team" FROM "nsl_cup_winners" WHERE "cup_final_date"='20 august 1989';
2-12028543-3
On what date did the Brisbane Lions (1) win?
CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "cup_final_attendance" text );
SELECT "cup_final_date" FROM "nsl_cup_winners" WHERE "winning_team"='brisbane lions (1)';
2-12028543-3
What was the winning team with the 8,132 final attendance?
CREATE TABLE "nsl_cup_winners" ( "season" text, "cup_final_date" text, "winning_team" text, "score" text, "losing_team" text, "cup_final_attendance" text );
SELECT "winning_team" FROM "nsl_cup_winners" WHERE "cup_final_attendance"='8,132';
2-12028543-3
What was the attendance on August 2?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "attendance" FROM "game_log" WHERE "date"='august 2';
2-11512253-6
What is the date where the attendance was 31,220?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "attendance"='31,220';
2-11512253-6
What was the team's record on August 4?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "date"='august 4';
2-11512253-6
What was the date when the attendance was 48,041?
CREATE TABLE "game_log" ( "date" text, "opponent" text, "score" text, "loss" text, "attendance" text, "record" text );
SELECT "date" FROM "game_log" WHERE "attendance"='48,041';
2-11512253-6
Who are the finals opponents for the match with partner Ricardo Hocevar?
CREATE TABLE "doubles_12" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text );
SELECT "opponents_in_the_final" FROM "doubles_12" WHERE "partnering"='ricardo hocevar';
2-11474317-12
Who were the opponents of the final on June 23, 2003?
CREATE TABLE "doubles_12" ( "date" text, "tournament" text, "surface" text, "partnering" text, "opponents_in_the_final" text, "score" text );
SELECT "opponents_in_the_final" FROM "doubles_12" WHERE "date"='june 23, 2003';
2-11474317-12
Who was the home side at glenferrie oval?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_21" WHERE "venue"='glenferrie oval';
2-1164217-21
How many people attended the game with the home side scoring 18.14 (122)?
CREATE TABLE "round_21" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_21" WHERE "home_team_score"='18.14 (122)';
2-1164217-21
Who is the author of Episode 38 (16)?
CREATE TABLE "season_2_1998" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );
SELECT "written_by" FROM "season_2_1998" WHERE "episode_num"='38 (16)';
2-10910712-2
When did Episode 29 (7) originally air?
CREATE TABLE "season_2_1998" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );
SELECT "original_airdate" FROM "season_2_1998" WHERE "episode_num"='29 (7)';
2-10910712-2
Who directed the episode "Approaching Zero"?
CREATE TABLE "season_2_1998" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );
SELECT "directed_by" FROM "season_2_1998" WHERE "title"='\"approaching zero\"';
2-10910712-2
What is the episode # of the episode that aired on April 5, 1998?
CREATE TABLE "season_2_1998" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );
SELECT "episode_num" FROM "season_2_1998" WHERE "original_airdate"='april 5, 1998';
2-10910712-2
Who wrote the episode that originally aired on March 1, 1998?
CREATE TABLE "season_2_1998" ( "episode_num" text, "title" text, "directed_by" text, "written_by" text, "original_airdate" text );
SELECT "written_by" FROM "season_2_1998" WHERE "original_airdate"='march 1, 1998';
2-10910712-2
what tournament has 2000 of 3r?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text );
SELECT "tournament" FROM "grand_slam_singles_performance_timeline" WHERE "2000"='3r';
2-1111175-11
what 2001 has 1991 of 4r?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text );
SELECT "2001" FROM "grand_slam_singles_performance_timeline" WHERE "1991"='4r';
2-1111175-11
what 1989 has 2002 of 4r and 2005 of 4r?
CREATE TABLE "grand_slam_singles_performance_timeline" ( "tournament" text, "1989" text, "1990" text, "1991" text, "1992" text, "1993" text, "1994" text, "1995" text, "1996" text, "1997" text, "1998" text, "1999" text, "2000" text, "2001" text, "2002" text, "2003" text, "2004" text, "2005" text );
SELECT "1989" FROM "grand_slam_singles_performance_timeline" WHERE "2002"='4r' AND "2005"='4r';
2-1111175-11
What team played in front of 28,536 at an away stadium?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_4" WHERE "crowd">'28,536';
2-10826385-4
What was Fitzroy score at their home stadium?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team_score" FROM "round_4" WHERE "home_team"='fitzroy';
2-10826385-4
When did an away team score 12.14 (86) against a home team with 15.10 (100)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "away_team_score"='12.14 (86)' AND "home_team_score"='15.10 (100)';
2-10826385-4
Who faced off against St Kilda at their home?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team_score" FROM "round_4" WHERE "home_team"='st kilda';
2-10826385-4
Where did a home team score 15.14 (104)?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "venue" FROM "round_4" WHERE "home_team_score"='15.14 (104)';
2-10826385-4
When did an away team score 12.14 (86) at Windy Hill?
CREATE TABLE "round_4" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "date" FROM "round_4" WHERE "away_team_score"='12.14 (86)' AND "venue"='windy hill';
2-10826385-4
What is the low number of top 25s in an event with over 15 appearances?
CREATE TABLE "summary" ( "tournament" text, "wins" real, "top_5" real, "top_10" real, "top_25" real, "events" real, "cuts_made" real );
SELECT MIN("top_25") FROM "summary" WHERE "events">15;
2-11106562-3
What is the average rank of the Reliance Entertainment movie with an opening day on Wednesday before 2012?
CREATE TABLE "biggest_opening_day_gross" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_day_net_gross" real, "day_of_week" text );
SELECT AVG("rank") FROM "biggest_opening_day_gross" WHERE "day_of_week"='wednesday' AND "year"<2012 AND "studio_s"='reliance entertainment';
2-11872185-5
What is the opening day of the week of Chennai Express, which had an opening day net gross larger than 14,76,00,000 in 2013?
CREATE TABLE "biggest_opening_day_gross" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_day_net_gross" real, "day_of_week" text );
SELECT "day_of_week" FROM "biggest_opening_day_gross" WHERE "opening_day_net_gross">'14,76,00,000' AND "year"=2013 AND "movie"='chennai express';
2-11872185-5
What is the opening day net gross a Reliance Entertainment movie before 2011 had?
CREATE TABLE "biggest_opening_day_gross" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_day_net_gross" real, "day_of_week" text );
SELECT SUM("opening_day_net_gross") FROM "biggest_opening_day_gross" WHERE "studio_s"='reliance entertainment' AND "year"<2011;
2-11872185-5
What is the studio of ra.one?
CREATE TABLE "biggest_opening_day_gross" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_day_net_gross" real, "day_of_week" text );
SELECT "studio_s" FROM "biggest_opening_day_gross" WHERE "movie"='ra.one';
2-11872185-5
What is the year of the movie with an opening day on Friday with a rank 10?
CREATE TABLE "biggest_opening_day_gross" ( "rank" real, "movie" text, "year" real, "studio_s" text, "opening_day_net_gross" real, "day_of_week" text );
SELECT COUNT("year") FROM "biggest_opening_day_gross" WHERE "day_of_week"='friday' AND "rank"=10;
2-11872185-5
What is the lowest Sack with a Solo of 24, with Tackles larger than 25.5, with Yards larger than 0?
CREATE TABLE "defense" ( "player" text, "tackles" real, "solo" real, "assisted" real, "sack" real, "yards" real, "td_s" real );
SELECT MIN("sack") FROM "defense" WHERE "solo"=24 AND "tackles">25.5 AND "yards">0;
2-11939336-6
What is the total number of Solo with a Player with sean mcinerney, and Yards larger than 0?
CREATE TABLE "defense" ( "player" text, "tackles" real, "solo" real, "assisted" real, "sack" real, "yards" real, "td_s" real );
SELECT COUNT("solo") FROM "defense" WHERE "player"='sean mcinerney' AND "yards">0;
2-11939336-6
What is the highest Sack with an Assisted larger than 4, with TD's smaller than 0?
CREATE TABLE "defense" ( "player" text, "tackles" real, "solo" real, "assisted" real, "sack" real, "yards" real, "td_s" real );
SELECT MAX("sack") FROM "defense" WHERE "assisted">4 AND "td_s"<0;
2-11939336-6
At the power plant located in ramakkalmedu, what is the sum of the total capacity (MWe)?
CREATE TABLE "projects_in_india" ( "power_plant" text, "producer" text, "location" text, "state" text, "total_capacity_m_we" real );
SELECT SUM("total_capacity_m_we") FROM "projects_in_india" WHERE "power_plant"='ramakkalmedu';
2-10922076-2
What company is the producer in the chennai mohan power plant?
CREATE TABLE "projects_in_india" ( "power_plant" text, "producer" text, "location" text, "state" text, "total_capacity_m_we" real );
SELECT "producer" FROM "projects_in_india" WHERE "power_plant"='chennai mohan';
2-10922076-2
What company is the producer at the poolavadi location
CREATE TABLE "projects_in_india" ( "power_plant" text, "producer" text, "location" text, "state" text, "total_capacity_m_we" real );
SELECT "producer" FROM "projects_in_india" WHERE "location"='poolavadi';
2-10922076-2
What company is known as the producer at the kethanur location?
CREATE TABLE "projects_in_india" ( "power_plant" text, "producer" text, "location" text, "state" text, "total_capacity_m_we" real );
SELECT "producer" FROM "projects_in_india" WHERE "location"='kethanur';
2-10922076-2
Which away team scored 18.11 (119)?
CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "away_team" FROM "round_22" WHERE "away_team_score"='18.11 (119)';
2-10883333-22
Which home team scored 18.11 (119)?
CREATE TABLE "round_22" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT "home_team" FROM "round_22" WHERE "home_team_score"='18.11 (119)';
2-10883333-22
When the duration was 11 min, 34 sec, what was the feathered (Fxx)?
CREATE TABLE "list_of_test_flights" ( "flight_designation" text, "date" text, "duration" text, "pilot_co_pilot" text, "feathered_fxx" text );
SELECT "feathered_fxx" FROM "list_of_test_flights" WHERE "duration"='11 min, 34 sec';
2-1133351-1
I want to know the city for guelferbytanus b and the 5th
CREATE TABLE "uncials_with_sigla" ( "sign" text, "name" text, "date" text, "content" text, "city" text, "country" text );
SELECT "city" FROM "uncials_with_sigla" WHERE "date"='5th' AND "name"='guelferbytanus b';
2-11163970-1
Name the country for the 9th and sign of g e
CREATE TABLE "uncials_with_sigla" ( "sign" text, "name" text, "date" text, "content" text, "city" text, "country" text );
SELECT "country" FROM "uncials_with_sigla" WHERE "date"='9th' AND "sign"='g e';
2-11163970-1
Name the content for sign of g e
CREATE TABLE "uncials_with_sigla" ( "sign" text, "name" text, "date" text, "content" text, "city" text, "country" text );
SELECT "content" FROM "uncials_with_sigla" WHERE "sign"='g e';
2-11163970-1
Name the city for athous lavrensis
CREATE TABLE "uncials_with_sigla" ( "sign" text, "name" text, "date" text, "content" text, "city" text, "country" text );
SELECT "city" FROM "uncials_with_sigla" WHERE "name"='athous lavrensis';
2-11163970-1
Which race had a distance of 4 miles where the runner-up was not known?
CREATE TABLE "summary" ( "race_name" text, "dist_miles" text, "course" text, "prize" text, "odds" text, "runners" real, "place" real, "runner_up" text );
SELECT "race_name" FROM "summary" WHERE "dist_miles"='4' AND "runner_up"='not known';
2-11152923-1
What date did the Jazz play the Bulls at home?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "february" WHERE "home"='jazz' AND "visitor"='bulls';
2-11964263-8
On February 26, who was the leading scorer?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "leading_scorer" FROM "february" WHERE "date"='february 26';
2-11964263-8
What's the record of Carlos Boozer (23) as the leading scorer?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "record" FROM "february" WHERE "leading_scorer"='carlos boozer (23)';
2-11964263-8
What date was Carlos Boozer (23) the leading scorer?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "february" WHERE "leading_scorer"='carlos boozer (23)';
2-11964263-8
Who was the leading scorer on February 9?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "leading_scorer" FROM "february" WHERE "date"='february 9';
2-11964263-8
While the Hornets were visiting, what date was Deron Williams (29) the leading scorer?
CREATE TABLE "february" ( "date" text, "visitor" text, "score" text, "home" text, "leading_scorer" text, "record" text );
SELECT "date" FROM "february" WHERE "leading_scorer"='deron williams (29)' AND "visitor"='hornets';
2-11964263-8
Tell me the ships in classs for kuha class
CREATE TABLE "minesweepers" ( "class" text, "ships_in_class" text, "pennant_number" real, "builder" text, "commissioned" text );
SELECT "ships_in_class" FROM "minesweepers" WHERE "class"='kuha class';
2-11627546-3
How many grids have a Constructor of talbot-lago - talbot, a Laps under 83, and a driver of johnny claes?
CREATE TABLE "race" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT COUNT("grid") FROM "race" WHERE "constructor"='talbot-lago - talbot' AND "laps"<83 AND "driver"='johnny claes';
2-1122052-2
When the away team is Geelong, what is the highest crowd count?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT MAX("crowd") FROM "round_9" WHERE "away_team"='geelong';
2-10826072-9
What is the total crowd count for the venue Princes Park?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_9" WHERE "venue"='princes park';
2-10826072-9
For the away team with a score of 16.13 (109), what is the total crowd count?
CREATE TABLE "round_9" ( "home_team" text, "home_team_score" text, "away_team" text, "away_team_score" text, "venue" text, "crowd" real, "date" text );
SELECT SUM("crowd") FROM "round_9" WHERE "away_team_score"='16.13 (109)';
2-10826072-9
What is the home port of m40?
CREATE TABLE "ships" ( "navy" text, "name" text, "pennant" text, "commissioned" real, "home_port" text );
SELECT "home_port" FROM "ships" WHERE "pennant"='m40';
2-1162013-1
What is the navy for middleton with a home port of portsmouth after 1983?
CREATE TABLE "ships" ( "navy" text, "name" text, "pennant" text, "commissioned" real, "home_port" text );
SELECT "navy" FROM "ships" WHERE "home_port"='portsmouth' AND "commissioned">1983 AND "name"='middleton';
2-1162013-1
When did Charles III die?
CREATE TABLE "house_of_habsburg_1482_1678" ( "name" text, "date_of_birth" text, "date_of_death" text, "reign" text, "relationship_with_predecessor" text );
SELECT "date_of_death" FROM "house_of_habsburg_1482_1678" WHERE "name"='charles iii';
2-1178691-10
What is the fastest lap of the race where Giuseppe Farina was the winning driver?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "fastest_lap" FROM "season_review" WHERE "winning_driver"='giuseppe farina';
2-1140117-1
What is the report status of the race with Ferrari as the constructor and a monza circuit?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "report" FROM "season_review" WHERE "constructor"='ferrari' AND "circuit"='monza';
2-1140117-1
What is the constructor of the race with Juan Manuel Fangio as the fastest lap and Giuseppe Farina as the winning driver?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "constructor" FROM "season_review" WHERE "fastest_lap"='juan manuel fangio' AND "winning_driver"='giuseppe farina';
2-1140117-1
Who was the winning driver of the British Grand Prix where Giuseppe Farina had the fastest lap?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "winning_driver" FROM "season_review" WHERE "fastest_lap"='giuseppe farina' AND "race"='british grand prix';
2-1140117-1
What is the race that had a tyre of p and Juan Manuel Fangio as the winning driver?
CREATE TABLE "season_review" ( "race" text, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "constructor" text, "tyre" text, "report" text );
SELECT "race" FROM "season_review" WHERE "tyre"='p' AND "winning_driver"='juan manuel fangio';
2-1140117-1
What is the Quantity of Type 2-4-2t?
CREATE TABLE "1893_1900" ( "class" text, "type" text, "quantity" real, "date" text, "lner_class" text );
SELECT SUM("quantity") FROM "1893_1900" WHERE "type"='2-4-2t';
2-1169568-3
What was the Quantity on Date 1900?
CREATE TABLE "1893_1900" ( "class" text, "type" text, "quantity" real, "date" text, "lner_class" text );
SELECT SUM("quantity") FROM "1893_1900" WHERE "date"='1900';
2-1169568-3
What is the Quantity of type 2-4-2t?
CREATE TABLE "1893_1900" ( "class" text, "type" text, "quantity" real, "date" text, "lner_class" text );
SELECT COUNT("quantity") FROM "1893_1900" WHERE "type"='2-4-2t';
2-1169568-3
What is the smallest grid with a Time/Retired of engine, and a qual of less than 138.75?
CREATE TABLE "classification" ( "grid" real, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text );
SELECT MIN("grid") FROM "classification" WHERE "time_retired"='engine' AND "qual"<138.75;
2-1122126-1
What laps have a rank larger than 13 and the Time/Retired is accident, and a Qual smaller than 136.98?
CREATE TABLE "classification" ( "grid" real, "constructor" text, "qual" real, "rank" real, "laps" real, "time_retired" text );
SELECT "laps" FROM "classification" WHERE "rank">13 AND "time_retired"='accident' AND "qual"<136.98;
2-1122126-1
What position is Sal Martinez?
CREATE TABLE "2011_team" ( "player" text, "position" text, "school" text, "hometown" text, "college" text );
SELECT "position" FROM "2011_team" WHERE "player"='sal martinez';
2-11677691-8
What is the compatibility for the Mnemonic d for "dynamite"?
CREATE TABLE "chimney_bombs" ( "fire_class" text, "geometric_symbol" text, "intended_use" text, "mnemonic" text, "compatibility" text );
SELECT "compatibility" FROM "chimney_bombs" WHERE "mnemonic"='d for \"dynamite\"';
2-11185256-1
Who constructed the car that has a Time/Retired of +2:06.0?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT "constructor" FROM "classification" WHERE "time_retired"='+2:06.0';
2-1122152-1
What is the lap total for the grid under 15 that retired due to transmission?
CREATE TABLE "classification" ( "driver" text, "constructor" text, "laps" real, "time_retired" text, "grid" real );
SELECT SUM("laps") FROM "classification" WHERE "grid"<15 AND "time_retired"='transmission';
2-1122152-1