question
stringlengths
12
244
create_table_statement
stringlengths
97
895
sql_query
stringlengths
27
479
wiki_sql_table_id
stringlengths
8
14
What is Score, when Outcome is Winner, and when Opponent is Angela Haynes?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "itf_singles_finals_18_12_6" WHERE "outcome"='winner' AND "opponent"='angela haynes';
2-16894271-9
What is Date, when Championship is Mackay?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "itf_singles_finals_18_12_6" WHERE "championship"='mackay';
2-16894271-9
What is Opponent, when Championship is Pétange?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "opponent" FROM "itf_singles_finals_18_12_6" WHERE "championship"='pétange';
2-16894271-9
What is Outcome, when Score is 1-6, 3-6?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "outcome" FROM "itf_singles_finals_18_12_6" WHERE "score"='1-6, 3-6';
2-16894271-9
What is Date, when Score is 6-3, 4-6, 0-6?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "date" FROM "itf_singles_finals_18_12_6" WHERE "score"='6-3, 4-6, 0-6';
2-16894271-9
What is Score, when Opponent is Natalia Rizhonkova?
CREATE TABLE "itf_singles_finals_18_12_6" ( "outcome" text, "date" text, "championship" text, "surface" text, "opponent" text, "score" text );
SELECT "score" FROM "itf_singles_finals_18_12_6" WHERE "opponent"='natalia rizhonkova';
2-16894271-9
Which Game has a Nugget points of 89?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nuggets_points" real, "opponents" real, "record" text, "streak" text );
SELECT MIN("game") FROM "game_log" WHERE "nuggets_points"=89;
2-17261464-3
Which Record has a Result of win, and a Streak of won 1, and a Game of 47?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nuggets_points" real, "opponents" real, "record" text, "streak" text );
SELECT "record" FROM "game_log" WHERE "result"='win' AND "streak"='won 1' AND "game"=47;
2-17261464-3
How many Opponents have a Result of win, and Nuggets points smaller than 115, and an Opponent of washington?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nuggets_points" real, "opponents" real, "record" text, "streak" text );
SELECT SUM("opponents") FROM "game_log" WHERE "result"='win' AND "nuggets_points"<115 AND "opponent"='washington';
2-17261464-3
How many Opponents have a Result of loss, and a Game smaller than 49, and Nuggets points of 108?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nuggets_points" real, "opponents" real, "record" text, "streak" text );
SELECT COUNT("opponents") FROM "game_log" WHERE "result"='loss' AND "game"<49 AND "nuggets_points"=108;
2-17261464-3
Which Result has a Game smaller than 37, and a Streak of lost 1, and a Record of 4-9?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "result" text, "nuggets_points" real, "opponents" real, "record" text, "streak" text );
SELECT "result" FROM "game_log" WHERE "game"<37 AND "streak"='lost 1' AND "record"='4-9';
2-17261464-3
What round has a name of vladimir morozov?
CREATE TABLE "men" ( "event" text, "date" text, "round" text, "name" text, "nationality" text, "time" text, "record" text );
SELECT "round" FROM "men" WHERE "name"='vladimir morozov';
2-16913465-6
What is the record for the date of 12 december?
CREATE TABLE "men" ( "event" text, "date" text, "round" text, "name" text, "nationality" text, "time" text, "record" text );
SELECT "record" FROM "men" WHERE "date"='12 december';
2-16913465-6
What is the date for the name ryan lochte?
CREATE TABLE "men" ( "event" text, "date" text, "round" text, "name" text, "nationality" text, "time" text, "record" text );
SELECT "date" FROM "men" WHERE "name"='ryan lochte';
2-16913465-6
What is the record for the date 15 december, and a round of final?
CREATE TABLE "men" ( "event" text, "date" text, "round" text, "name" text, "nationality" text, "time" text, "record" text );
SELECT "record" FROM "men" WHERE "date"='15 december' AND "round"='final';
2-16913465-6
What is the lowest attendance for week 11?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT MIN("attendance") FROM "schedule" WHERE "week"=11;
2-16714764-2
What is the total number of spectators on week 4?
CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real );
SELECT COUNT("attendance") FROM "schedule" WHERE "week"=4;
2-16714764-2
What was the sample size for polling on May 2-7, 2007 for Hillary Clinton?
CREATE TABLE "connecticut" ( "poll_source" text, "sample_size" real, "margin_of_error" real, "date" text, "democrat" text, "republican" text );
SELECT "sample_size" FROM "connecticut" WHERE "date"='may 2-7, 2007' AND "democrat"='hillary clinton';
2-16670191-1
Who was the republican when hillary clinton was the democrat and the sample size was more than 1087 with a margin of error of 2.6?
CREATE TABLE "connecticut" ( "poll_source" text, "sample_size" real, "margin_of_error" real, "date" text, "democrat" text, "republican" text );
SELECT "republican" FROM "connecticut" WHERE "sample_size">1087 AND "democrat"='hillary clinton' AND "margin_of_error"=2.6;
2-16670191-1
Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007?
CREATE TABLE "connecticut" ( "poll_source" text, "sample_size" real, "margin_of_error" real, "date" text, "democrat" text, "republican" text );
SELECT "poll_source" FROM "connecticut" WHERE "democrat"='hillary clinton' AND "margin_of_error"<4.5 AND "republican"='john mccain' AND "date"='may 2-7, 2007';
2-16670191-1
What si the total sample size at rasmussen reports when the margin of error was bigger than 4.5?
CREATE TABLE "connecticut" ( "poll_source" text, "sample_size" real, "margin_of_error" real, "date" text, "democrat" text, "republican" text );
SELECT COUNT("sample_size") FROM "connecticut" WHERE "poll_source"='rasmussen reports' AND "margin_of_error">4.5;
2-16670191-1
What is the date that the polls were going on at quinnipiac when john mccain was the republican, barack obama was the democrat and the sample size was bigger than 1427?
CREATE TABLE "connecticut" ( "poll_source" text, "sample_size" real, "margin_of_error" real, "date" text, "democrat" text, "republican" text );
SELECT "date" FROM "connecticut" WHERE "republican"='john mccain' AND "poll_source"='quinnipiac' AND "democrat"='barack obama' AND "sample_size">1427;
2-16670191-1
What is To Par, when Player is Greg Norman?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "player"='greg norman';
2-16514242-7
What is Score, when Money ( $ ) is 32,200, and when Player is Chip Beck?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "score" FROM "final_round" WHERE "money"='32,200' AND "player"='chip beck';
2-16514242-7
What is Money ( $ ), when Player is Greg Norman?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "money" FROM "final_round" WHERE "player"='greg norman';
2-16514242-7
What is Player, when Country is United States, and when Score is 73-76-72-66=287?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "player" FROM "final_round" WHERE "country"='united states' AND "score"='73-76-72-66=287';
2-16514242-7
What is To Par, when Money ( $ ) is Playoff, and when Score is 68-73-77-65=283?
CREATE TABLE "final_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text, "money" text );
SELECT "to_par" FROM "final_round" WHERE "money"='playoff' AND "score"='68-73-77-65=283';
2-16514242-7
What country was Ernie Els from?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "country" FROM "second_round" WHERE "player"='ernie els';
2-16514630-5
What was the par for the t5 place player Steve Jones?
CREATE TABLE "second_round" ( "place" text, "player" text, "country" text, "score" text, "to_par" text );
SELECT "to_par" FROM "second_round" WHERE "place"='t5' AND "player"='steve jones';
2-16514630-5
What is the title for Hui that ruled from 864 BC?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "title" FROM "vassal_states" WHERE "name"='hui' AND "from"='864 bc';
2-17338025-12
What type is You from the state of Chen?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "type" FROM "vassal_states" WHERE "state"='chen' AND "name"='you';
2-17338025-12
Xiong Yan the Younger of the house of Mi ruled from what year?
CREATE TABLE "vassal_states" ( "state" text, "type" text, "name" text, "title" text, "royal_house" text, "from" text );
SELECT "from" FROM "vassal_states" WHERE "royal_house"='mi' AND "name"='xiong yan the younger';
2-17338025-12
What country had the runner abubaker kaki khamis in lane 5?
CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text );
SELECT "country" FROM "semifinals" WHERE "lane"=5 AND "name"='abubaker kaki khamis';
2-16195179-3
What is the highest heat for a lane past 1 and mark of 1:48.61?
CREATE TABLE "semifinals" ( "heat" real, "lane" real, "name" text, "country" text, "mark" text );
SELECT MAX("heat") FROM "semifinals" WHERE "lane">1 AND "mark"='1:48.61';
2-16195179-3
What is average for Benito Lorenzi league when total is smaller than 143?
CREATE TABLE "goals" ( "rank" real, "name" text, "years" text, "league" real, "total" real );
SELECT AVG("league") FROM "goals" WHERE "name"='benito lorenzi' AND "total"<143;
2-17160236-2
Which league has total smaller than 284, with Sandro Mazzola league?
CREATE TABLE "goals" ( "rank" real, "name" text, "years" text, "league" real, "total" real );
SELECT MIN("league") FROM "goals" WHERE "total"<284 AND "name"='sandro mazzola';
2-17160236-2
What is the earliest election with 2 seats and the outcome of the election of minority in parliament?
CREATE TABLE "parliamentary_elections" ( "election" real, "number_of_pnc_votes" text, "share_of_votes" text, "seats" text, "outcome_of_election" text );
SELECT MIN("election") FROM "parliamentary_elections" WHERE "outcome_of_election"='minority in parliament' AND "seats"='2';
2-1725088-1
How many seats does the election with the outcome of election of minority in parliament and 186,226 PNC votes have?
CREATE TABLE "parliamentary_elections" ( "election" real, "number_of_pnc_votes" text, "share_of_votes" text, "seats" text, "outcome_of_election" text );
SELECT "seats" FROM "parliamentary_elections" WHERE "outcome_of_election"='minority in parliament' AND "number_of_pnc_votes"='186,226';
2-1725088-1
How many seats did the election before 2004 with 3.4% share of votes have?
CREATE TABLE "parliamentary_elections" ( "election" real, "number_of_pnc_votes" text, "share_of_votes" text, "seats" text, "outcome_of_election" text );
SELECT "seats" FROM "parliamentary_elections" WHERE "election"<2004 AND "share_of_votes"='3.4%';
2-1725088-1
How many PNC votes did the election before 1996 have?
CREATE TABLE "parliamentary_elections" ( "election" real, "number_of_pnc_votes" text, "share_of_votes" text, "seats" text, "outcome_of_election" text );
SELECT "number_of_pnc_votes" FROM "parliamentary_elections" WHERE "election"<1996;
2-1725088-1
How many times is the postion S?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "position"='s';
2-17100961-68
how many times is the name Derek Smith when the round is higher than 3?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT COUNT("overall") FROM "washington_redskins_draft_history" WHERE "name"='derek smith' AND "round">3;
2-17100961-68
what is the lowest overall when the pick is 20?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MIN("overall") FROM "washington_redskins_draft_history" WHERE "pick"=20;
2-17100961-68
what is the highest round when the overall is less than 17?
CREATE TABLE "washington_redskins_draft_history" ( "round" real, "pick" real, "overall" real, "name" text, "position" text, "college" text );
SELECT MAX("round") FROM "washington_redskins_draft_history" WHERE "overall"<17;
2-17100961-68
What is Partner, when Opponents In The Final is Remi Tezuka Shuko Aoyama?
CREATE TABLE "doubles_35_20_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );
SELECT "partner" FROM "doubles_35_20_15" WHERE "opponents_in_the_final"='remi tezuka shuko aoyama';
2-16435448-6
What is Opponents In The Final, when Score is 4-1 5-4 (7) 4-2?
CREATE TABLE "doubles_35_20_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );
SELECT "opponents_in_the_final" FROM "doubles_35_20_15" WHERE "score"='4-1 5-4 (7) 4-2';
2-16435448-6
What is Date, when Opponents In The Final, is Maria-Fernanda Alves Stéphanie Dubois?
CREATE TABLE "doubles_35_20_15" ( "outcome" text, "date" text, "tournament" text, "surface" text, "partner" text, "opponents_in_the_final" text, "score" text );
SELECT "date" FROM "doubles_35_20_15" WHERE "opponents_in_the_final"='maria-fernanda alves stéphanie dubois';
2-16435448-6
Where was the Fury FC 4: High Voltage event held?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "event"='fury fc 4: high voltage';
2-17440284-2
What's the nat that ends in 2009?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "nat" FROM "in" WHERE "ends"='2009';
2-17505751-2
What is the type when they move from Gimnàstic?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "type" FROM "in" WHERE "moving_from"='gimnàstic';
2-17505751-2
What's the transfer window that ends in 2012?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "transfer_window" FROM "in" WHERE "ends"='2012';
2-17505751-2
What's the type that ends in 2009?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "type" FROM "in" WHERE "ends"='2009';
2-17505751-2
What's the moving of the Esp with a transfer and named De La Red?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "moving_from" FROM "in" WHERE "type"='transfer' AND "nat"='esp' AND "name"='de la red';
2-17505751-2
What type is González?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "ends" text );
SELECT "type" FROM "in" WHERE "name"='gonzález';
2-17505751-2
How many sales took place with a peak of 1 for Boris?
CREATE TABLE "singles" ( "pos" real, "artist" text, "single" text, "year" real, "sales" real, "peak" real );
SELECT COUNT("sales") FROM "singles" WHERE "peak"=1 AND "artist"='boris';
2-16659852-1
What was the record in the game where the opponent was the cincinnati royals?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "record" FROM "game_log" WHERE "opponent"='cincinnati royals';
2-17342287-5
What was the attendance of game 25 when the played the San Francisco Warriors?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text );
SELECT "location_attendance" FROM "game_log" WHERE "opponent"='san francisco warriors' AND "game"=25;
2-17342287-5
Which manufacturer has a grid of 6?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "manufacturer" FROM "250cc_classification" WHERE "grid"='6';
2-17063289-2
Who is the rider for Honda with a grid of 25?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "rider" FROM "250cc_classification" WHERE "manufacturer"='honda' AND "grid"='25';
2-17063289-2
How many laps has a grid of 5?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "laps" FROM "250cc_classification" WHERE "grid"='5';
2-17063289-2
Who is the rider whose time/retired is accident?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "rider" FROM "250cc_classification" WHERE "time_retired"='accident';
2-17063289-2
How many laps have a time/retired of +23.080?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "laps" FROM "250cc_classification" WHERE "time_retired"='+23.080';
2-17063289-2
Who is the manufacturer for Henk Vd Lagemaat?
CREATE TABLE "250cc_classification" ( "rider" text, "manufacturer" text, "laps" text, "time_retired" text, "grid" text );
SELECT "manufacturer" FROM "250cc_classification" WHERE "rider"='henk vd lagemaat';
2-17063289-2
what is the technology when the gel pouring is no and the analysis time is 8 days?
CREATE TABLE "performance_values_for_genome_sequencing" ( "technology" text, "analysis_time" text, "average_read_length" text, "throughput_including_analysis" text, "gel_pouring" text );
SELECT "technology" FROM "performance_values_for_genome_sequencing" WHERE "gel_pouring"='no' AND "analysis_time"='8 days';
2-1708335-1
what is the throughput (including analysis) when the analysis time is 4 hours?
CREATE TABLE "performance_values_for_genome_sequencing" ( "technology" text, "analysis_time" text, "average_read_length" text, "throughput_including_analysis" text, "gel_pouring" text );
SELECT "throughput_including_analysis" FROM "performance_values_for_genome_sequencing" WHERE "analysis_time"='4 hours';
2-1708335-1
What is Geust, when Result is 0:9?
CREATE TABLE "round_of_64" ( "date" text, "time" text, "home" text, "geust" text, "result" text );
SELECT "geust" FROM "round_of_64" WHERE "result"='0:9';
2-17008878-1
What is Home, when Time is 18:00, and when Geust is Servette FC (CHL)?
CREATE TABLE "round_of_64" ( "date" text, "time" text, "home" text, "geust" text, "result" text );
SELECT "home" FROM "round_of_64" WHERE "time"='18:00' AND "geust"='servette fc (chl)';
2-17008878-1
What is Time, when Geust is AC Bellinzona (CHL)?
CREATE TABLE "round_of_64" ( "date" text, "time" text, "home" text, "geust" text, "result" text );
SELECT "time" FROM "round_of_64" WHERE "geust"='ac bellinzona (chl)';
2-17008878-1
What was the transfer fee when winter was the transfer window?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "transfer_fee" FROM "squad_changes" WHERE "transfer_window"='winter';
2-17480138-2
What transfer fee has both winter as the transfer window, and Madureira as the moving to?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "transfer_fee" FROM "squad_changes" WHERE "transfer_window"='winter' AND "moving_to"='madureira';
2-17480138-2
What was the moving that has a free transfer fee, and the nationality of CYP, and winter as the transfer window?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "moving_to" FROM "squad_changes" WHERE "transfer_fee"='free' AND "nat"='cyp' AND "transfer_window"='winter';
2-17480138-2
Who is moving to Metalurh Donetsk?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "name" FROM "squad_changes" WHERE "moving_to"='metalurh donetsk';
2-17480138-2
The player moving to Villa Rio has what transfer fee?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "transfer_fee" FROM "squad_changes" WHERE "moving_to"='villa rio';
2-17480138-2
Emerson has what transfer window?
CREATE TABLE "squad_changes" ( "nat" text, "name" text, "moving_to" text, "type" text, "transfer_window" text, "transfer_fee" text, "source" text );
SELECT "transfer_window" FROM "squad_changes" WHERE "name"='emerson';
2-17480138-2
Where was the fight located that lasted a time of 2:33?
CREATE TABLE "mixed_martial_arts_record" ( "res" text, "record" text, "opponent" text, "method" text, "event" text, "round" real, "time" text, "location" text );
SELECT "location" FROM "mixed_martial_arts_record" WHERE "time"='2:33';
2-17440469-2
What is the total number of Game, when Attendance is "18,568"?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT COUNT("game") FROM "game_log" WHERE "attendance"='18,568';
2-17360840-5
What is the sum of Game, when Attendance is greater than 18,007, and when Opponent is "Minnesota Wild"?
CREATE TABLE "game_log" ( "game" real, "date" text, "opponent" text, "score" text, "location" text, "attendance" real, "record" text, "points" real );
SELECT SUM("game") FROM "game_log" WHERE "attendance">'18,007' AND "opponent"='minnesota wild';
2-17360840-5
In Silver Bow County, Montana, when the capicity is more than 45 tons, what's the highest rank found?
CREATE TABLE "leading_copper_producing_mines" ( "rank" real, "mine" text, "county_and_state" text, "operator" text, "source_of_copper" text, "capacity_thousands_of_metric_tons" real );
SELECT MAX("rank") FROM "leading_copper_producing_mines" WHERE "county_and_state"='silver bow county, montana' AND "capacity_thousands_of_metric_tons">45;
2-16846977-1
In Pinal County, Arizona, when there's a capacity of over 5 metric tons, and the rank is under 14, what's the mine called?
CREATE TABLE "leading_copper_producing_mines" ( "rank" real, "mine" text, "county_and_state" text, "operator" text, "source_of_copper" text, "capacity_thousands_of_metric_tons" real );
SELECT "mine" FROM "leading_copper_producing_mines" WHERE "rank"<14 AND "capacity_thousands_of_metric_tons">5 AND "county_and_state"='pinal county, arizona';
2-16846977-1
How many sets lost have a loss smaller than 3 and a rank larger than 1?
CREATE TABLE "quarterfinals_standing" ( "rank" real, "team" text, "loss" real, "sets_won" real, "sets_lost" real, "percentage" text );
SELECT SUM("sets_lost") FROM "quarterfinals_standing" WHERE "loss"<3 AND "rank">1;
2-16348031-7
What is Bids, when Champions is "1"?
CREATE TABLE "record_by_conference" ( "conference" text, "bids" real, "record" text, "win_pct" real, "quarterfinals" text, "semifinals" text, "final" text, "champions" text );
SELECT "bids" FROM "record_by_conference" WHERE "champions"='1';
2-17290288-5
Which finalist played in the week of October 21?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "finalist" FROM "singles" WHERE "week"='october 21';
2-16381189-1
On what surface did they play the match in the week of October 21?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "surface" FROM "singles" WHERE "week"='october 21';
2-16381189-1
Who was the finalist in the Monte Carlo Tournament?
CREATE TABLE "singles" ( "tournament" text, "surface" text, "week" text, "winner_and_score" text, "finalist" text, "semifinalists" text );
SELECT "finalist" FROM "singles" WHERE "tournament"='monte carlo';
2-16381189-1
What is the Rank of the Nation with more than 1 Gold and a more than 4 Total medals?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT SUM("rank") FROM "medal_table" WHERE "gold">1 AND "total">4;
2-16831299-1
What is the Gold for the Nation in Rank 4 with less than 1 Silver?
CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real );
SELECT MIN("gold") FROM "medal_table" WHERE "rank"=4 AND "silver"<1;
2-16831299-1
What is the transfer window for Steven Thompson?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "transfer_window" FROM "in" WHERE "name"='steven thompson';
2-1630649-1
What type is Kevin Muscat?
CREATE TABLE "in" ( "nat" text, "name" text, "moving_from" text, "type" text, "transfer_window" text, "transfer_fee" text );
SELECT "type" FROM "in" WHERE "name"='kevin muscat';
2-1630649-1
What is the freestyle leg for the Netherlands?
CREATE TABLE "heats" ( "rank" text, "heat" real, "country" text, "backstroke_leg" text, "breaststroke_leg" text, "butterfly_leg" text, "freestyle_leg" text );
SELECT "freestyle_leg" FROM "heats" WHERE "country"='netherlands';
2-16330449-2
How much is the lowest glucose(mmol/L) with [Na +] under 0?
CREATE TABLE "composition_of_common_crystalloid_soluti" ( "solution" text, "other_name" text, "na_mmol_l" real, "cl_mmol_l" real, "glucose_mmol_l" real, "glucose_mg_dl" real );
SELECT MIN("glucose_mmol_l") FROM "composition_of_common_crystalloid_soluti" WHERE "na_mmol_l"<0;
2-16689223-1
What is the highest glucose(mg/dl) with a solution of 2/3d & 1/3s and glucose(mmol/L) less than 185?
CREATE TABLE "composition_of_common_crystalloid_soluti" ( "solution" text, "other_name" text, "na_mmol_l" real, "cl_mmol_l" real, "glucose_mmol_l" real, "glucose_mg_dl" real );
SELECT MAX("glucose_mg_dl") FROM "composition_of_common_crystalloid_soluti" WHERE "solution"='2/3d & 1/3s' AND "glucose_mmol_l"<185;
2-16689223-1
What is the largest [Cl -](mmol/L) with a solution of D5NS and [Na+](mmol/L) less than 154?
CREATE TABLE "composition_of_common_crystalloid_soluti" ( "solution" text, "other_name" text, "na_mmol_l" real, "cl_mmol_l" real, "glucose_mmol_l" real, "glucose_mg_dl" real );
SELECT MAX("cl_mmol_l") FROM "composition_of_common_crystalloid_soluti" WHERE "solution"='d5ns' AND "na_mmol_l"<154;
2-16689223-1
What is the release date when the location is Europe?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "release_date" FROM "single_track_listings" WHERE "location"='europe';
2-1756811-1
What is the location when the name is "I feel free" b/w "n.s.u.", with a release date of December 1966, on the Atco 6462 label?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "location" FROM "single_track_listings" WHERE "name"='\"i feel free\" b/w \"n.s.u.\"' AND "release_date"='december 1966' AND "record_label"='atco 6462';
2-1756811-1
What is the release in Germany?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "release_date" FROM "single_track_listings" WHERE "location"='germany';
2-1756811-1
What is the name with a release date of December 1966, and a Location of UK?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "name" FROM "single_track_listings" WHERE "release_date"='december 1966' AND "location"='uk';
2-1756811-1
What is the US release date?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "release_date" FROM "single_track_listings" WHERE "location"='us';
2-1756811-1
What is the name in the UK, with a release date of December 1966?
CREATE TABLE "single_track_listings" ( "name" text, "location" text, "format" text, "record_label" text, "release_date" text );
SELECT "name" FROM "single_track_listings" WHERE "location"='uk' AND "release_date"='december 1966';
2-1756811-1
What away team scored 107-104?
CREATE TABLE "round_14" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "away_team" FROM "round_14" WHERE "score"='107-104';
2-16653153-21
What was the away team for the New Zealand breakers?
CREATE TABLE "round_14" ( "date" text, "home_team" text, "score" text, "away_team" text, "venue" text, "box_score" text, "report" text );
SELECT "report" FROM "round_14" WHERE "away_team"='new zealand breakers';
2-16653153-21