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