output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "attendance" FROM "fourth_round_proper" WHERE "home_team"='shrewsbury town';
## Task Generate a SQL query to answer the following question: `What is the attendance date of the game home team Shrewsbury Town played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "sco...
SELECT "home_team" FROM "fourth_round_proper" WHERE "attendance"='7 february 1996' AND "tie_no"='1';
## Task Generate a SQL query to answer the following question: `Who is the home team that attended on 7 February 1996 and had a tie no of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "...
SELECT "score" FROM "fourth_round_proper" WHERE "home_team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `What is the final score of the game home team Bolton Wanderers played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score"...
SELECT "round" FROM "european_cup_history" WHERE "opponent"='freiburg';
## Task Generate a SQL query to answer the following question: `Which round has an opponent of Freiburg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_cup_history" ( "season" text, "competition" text, "round" text, "opponent" text, ...
SELECT "home" FROM "european_cup_history" WHERE "opponent"='slovan liberec';
## Task Generate a SQL query to answer the following question: `Who was the home when the opponent was slovan liberec?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "european_cup_history" ( "season" text, "competition" text, "round" text, "opp...
SELECT MAX("game") FROM "schedule_and_results" WHERE "january">18 AND "decision"='valiquette';
## Task Generate a SQL query to answer the following question: `Which Game has a January larger than 18, and a Decision of valiquette?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent"...
SELECT "opponent" FROM "schedule_and_results" WHERE "game"<43 AND "record"='23-14-3';
## Task Generate a SQL query to answer the following question: `Who has a Game smaller than 43, and a Record of 23-14-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "january" real, "opponent" text, "scor...
SELECT "qual_2" FROM "qualifying_results" WHERE "best"='59.266';
## Task Generate a SQL query to answer the following question: `What is the time for qual 2 that has the best time of 59.266?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2...
SELECT "name" FROM "qualifying_results" WHERE "team"='forsythe racing' AND "best"='1:00.099';
## Task Generate a SQL query to answer the following question: `Who is the driver for the Forsythe Racing team that has the best time of 1:00.099?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qu...
SELECT "best" FROM "qualifying_results" WHERE "name"='justin wilson';
## Task Generate a SQL query to answer the following question: `Justin Wilson has what has his best time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" tex...
SELECT "qual_1" FROM "qualifying_results" WHERE "team"='rusport' AND "best"='59.654';
## Task Generate a SQL query to answer the following question: `Team Rusport has the best of 59.654 and what qual 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, ...
SELECT "qual_1" FROM "qualifying_results" WHERE "team"='newman/haas racing' AND "name"='sébastien bourdais';
## Task Generate a SQL query to answer the following question: `Sébastien Bourdais of the team Newman/Haas Racing has what qual 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "q...
SELECT "qual_1" FROM "qualifying_results" WHERE "name"='alex tagliani';
## Task Generate a SQL query to answer the following question: `What is Alex Tagliani's qual 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualifying_results" ( "name" text, "team" text, "qual_1" text, "qual_2" text, "best" text ); ### S...
SELECT AVG("bask") FROM "women_s" WHERE "soft"='18' AND "total">35;
## Task Generate a SQL query to answer the following question: `Which Bask has Soft of 18, and a Total larger than 35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s" ( "school" text, "bask" real, "golf" text, "soccer" text, "soft" t...
SELECT "volleyball" FROM "women_s" WHERE "golf"='2' AND "indoor_track"='3';
## Task Generate a SQL query to answer the following question: `Which Volleyball has a Golf of 2, and an Indoor track of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s" ( "school" text, "bask" real, "golf" text, "soccer" text, "so...
SELECT MIN("bask") FROM "women_s" WHERE "indoor_track"='0' AND "swimming"='5';
## Task Generate a SQL query to answer the following question: `Which Bask has an Indoor track of 0, and a Swimming of 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s" ( "school" text, "bask" real, "golf" text, "soccer" text, "soft...
SELECT "swimming" FROM "women_s" WHERE "total">35 AND "volleyball"='1';
## Task Generate a SQL query to answer the following question: `Which Swimming has a Total larger than 35, and a Volleyball of 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "women_s" ( "school" text, "bask" real, "golf" text, "soccer" text,...
SELECT "date" FROM "game_log" WHERE "location"='scotiabank place' AND "points"<20 AND "game">16 AND "opponent"='montreal canadiens';
## Task Generate a SQL query to answer the following question: `Date for scotiabank place with less than 20 points, game larger than 16, and an opponent of montreal canadiens?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, ...
SELECT COUNT("game") FROM "game_log" WHERE "points"<15 AND "date"='november 15' AND "attendance">'13,722';
## Task Generate a SQL query to answer the following question: `Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?` ### 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 "schedule" WHERE "date"='september 24, 1995';
## Task Generate a SQL query to answer the following question: `What was the results on September 24, 1995?` ### 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" tex...
SELECT "result" FROM "schedule" WHERE "opponent"='philadelphia eagles';
## Task Generate a SQL query to answer the following question: `What was the results against the Philadelphia Eagles?` ### 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, "atten...
SELECT "date" FROM "schedule" WHERE "attendance"='68,463';
## Task Generate a SQL query to answer the following question: `What is the date with 68,463 in attendance?` ### 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" tex...
SELECT "attendance" FROM "schedule" WHERE "week"=15;
## Task Generate a SQL query to answer the following question: `What was the attendance for week 15?` ### 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" text ); ##...
SELECT "name" FROM "in" WHERE "transfer_window"='winter';
## Task Generate a SQL query to answer the following question: `What is the name when winter is the transfer window?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer...
SELECT "transfer_fee" FROM "in" WHERE "transfer_window"='summer' AND "type"='transfer' AND "country"='hun';
## Task Generate a SQL query to answer the following question: `What is the transfer fee when summer is the transfer window, the type is transfer and the country is Hun?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" t...
SELECT "type" FROM "in" WHERE "moving_from"='rangers';
## Task Generate a SQL query to answer the following question: `What is the type when Rangers are the moving from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_w...
SELECT "type" FROM "in" WHERE "name"='mccormack';
## Task Generate a SQL query to answer the following question: `What is the type when McCormack is the name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_window"...
SELECT "type" FROM "in" WHERE "transfer_fee"='£120,000';
## Task Generate a SQL query to answer the following question: `What is the type when £120,000 is the transfer fee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "in" ( "name" text, "country" text, "type" text, "moving_from" text, "transfer_...
SELECT "date" FROM "fifth_round_proper" WHERE "away_team"='aston villa';
## Task Generate a SQL query to answer the following question: `What date is aston villa away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ...
SELECT "date" FROM "fifth_round_proper" WHERE "tie_no"='5';
## Task Generate a SQL query to answer the following question: `what date did tie number 5 occur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" te...
SELECT "tie_no" FROM "fifth_round_proper" WHERE "away_team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `Which tie number has Bolton Wanderers as away?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fifth_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text...
SELECT "round" FROM "schedule" WHERE "circuit"='portland international raceway';
## Task Generate a SQL query to answer the following question: `What round was the circuit portland international raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "round" real, "race_name" text, "circuit" text, "city_locatio...
SELECT "date" FROM "schedule" WHERE "circuit"='portland international raceway';
## Task Generate a SQL query to answer the following question: `When was the circuit portland international raceway?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "round" real, "race_name" text, "circuit" text, "city_location" tex...
SELECT "round" FROM "schedule" WHERE "city_location"='toronto, ontario';
## Task Generate a SQL query to answer the following question: `Which round had a city/location of Toronto, Ontario?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "round" real, "race_name" text, "circuit" text, "city_location" tex...
SELECT "city_location" FROM "schedule" WHERE "round"<11 AND "circuit"='streets of denver';
## Task Generate a SQL query to answer the following question: `For which location was the round smaller than 11 and the circuit streets of denver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "round" real, "race_name" text, "circu...
SELECT "date" FROM "schedule" WHERE "city_location"='cleveland, ohio' AND "round"=6;
## Task Generate a SQL query to answer the following question: `What day was the location Cleveland, Ohio in Round 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "round" real, "race_name" text, "circuit" text, "city_location" te...
SELECT SUM("attendance") FROM "schedule" WHERE "opponent"='at los angeles rams';
## Task Generate a SQL query to answer the following question: `What is the sum of attendance for the games played at Los Angeles Rams?` ### 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, "resu...
SELECT SUM("week") FROM "schedule" WHERE "attendance"='47,218';
## Task Generate a SQL query to answer the following question: `In which week was the attendance 47,218?` ### 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("december") FROM "schedule_and_results" WHERE "opponent"='calgary flames';
## Task Generate a SQL query to answer the following question: `How many Decembers have calgary flames as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real, "opponent" text, "scor...
SELECT "game" FROM "schedule_and_results" WHERE "decision"='valiquette' AND "opponent"='@ los angeles kings';
## Task Generate a SQL query to answer the following question: `What game has valiquette as the decision, with @ los angeles kings as the opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule_and_results" ( "game" real, "december" real...
SELECT MAX("tf1_num") FROM "season_3" WHERE "official_num">47 AND "air_date_france"='13 july 2010';
## Task Generate a SQL query to answer the following question: `What is the most elevated TF1 # that has an Official # larger than 47, and an Air date (France) of 13 july 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "official_num...
SELECT "original_beechwood_bunny_tale_source_material" FROM "season_3" WHERE "official_num">38 AND "tf1_num">50 AND "english_title"='\"sweet fabiola\"';
## Task Generate a SQL query to answer the following question: `What is the Original Beechwood Bunny Tale/Source material that has an Official # larger than 38, and a TF1 # larger than 50, and an English title of "sweet fabiola"?` ### Database Schema This query will run on a database whose schema is represented in th...
SELECT "official_num" FROM "season_3" WHERE "french_title"='\"pierre de lune\"';
## Task Generate a SQL query to answer the following question: `What is the Official # that has a French title of "Pierre de Lune"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_3" ( "official_num" real, "tf1_num" real, "french_title" te...
SELECT "venue" FROM "scottish_cup" WHERE "round"='sf';
## Task Generate a SQL query to answer the following question: `What venue had SF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text, "attendance" real, ...
SELECT "venue" FROM "scottish_cup" WHERE "attendance">'50,715';
## Task Generate a SQL query to answer the following question: `What venue has more than 50,715 attending?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue" text, "result" text...
SELECT "round" FROM "scottish_cup" WHERE "venue"='a' AND "attendance">'14,314';
## Task Generate a SQL query to answer the following question: `What round was at the A venue with a attendance more than 14,314?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_cup" ( "date" text, "round" text, "opponent" text, "venue...
SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "branding"='mom''s radio 101.9 zamboanga';
## Task Generate a SQL query to answer the following question: `What's the callsign of Mom's Radio 101.9 Zamboanga?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, ...
SELECT "power_k_w" FROM "sbn_mom_s_radio_stations" WHERE "frequency"='101.5mhz';
## Task Generate a SQL query to answer the following question: `What's the power when the frequency is 101.5mhz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "po...
SELECT "location" FROM "sbn_mom_s_radio_stations" WHERE "power_k_w"='10kw' AND "branding"='mom''s radio 95.9 naga';
## Task Generate a SQL query to answer the following question: `What's the location of Mom's Radio 95.9 Naga having a power of 10kw?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "fr...
SELECT "callsign" FROM "sbn_mom_s_radio_stations" WHERE "location"='tacloban';
## Task Generate a SQL query to answer the following question: `What's the callsign in Tacloban?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, ...
SELECT "power_k_w" FROM "sbn_mom_s_radio_stations" WHERE "branding"='mom''s radio 101.5 tacloban';
## Task Generate a SQL query to answer the following question: `What's the power of Mom's Radio 101.5 Tacloban?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sbn_mom_s_radio_stations" ( "branding" text, "callsign" text, "frequency" text, "pow...
SELECT "built_at" FROM "construction" WHERE "date"=1946 AND "1947_nos"='3556/7';
## Task Generate a SQL query to answer the following question: `Which Built at has a Date of 1946, and a 1947 Nos of 3556/7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "construction" ( "1946_nos" text, "1947_nos" text, "date" real, "built_a...
SELECT AVG("date") FROM "construction" WHERE "1946_nos"='3156/7';
## Task Generate a SQL query to answer the following question: `Which Date has a 1946 Nos of 3156/7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "construction" ( "1946_nos" text, "1947_nos" text, "date" real, "built_at" text, "lms_nos" tex...
SELECT COUNT("date") FROM "construction" WHERE "1947_nos"='3525-34';
## Task Generate a SQL query to answer the following question: `Which Date has a 1947 Nos of 3525-34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "construction" ( "1946_nos" text, "1947_nos" text, "date" real, "built_at" text, "lms_nos" te...
SELECT "1947_nos" FROM "construction" WHERE "br_nos"='48730-9';
## Task Generate a SQL query to answer the following question: `Which 1947 Nos has a BR Nos of 48730-9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "construction" ( "1946_nos" text, "1947_nos" text, "date" real, "built_at" text, "lms_nos" ...
SELECT SUM("losses") FROM "performance_summary" WHERE "win_pct"='71.43%' AND "no_result">0;
## Task Generate a SQL query to answer the following question: `What is the number of losses for the game with a win % of 71.43%, and No Result is more than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "mat...
SELECT COUNT("wins") FROM "performance_summary" WHERE "year"='2010' AND "matches">14;
## Task Generate a SQL query to answer the following question: `What is the total number of wins in 2010, when there were more than 14 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "matches" real, "w...
SELECT AVG("wins") FROM "performance_summary" WHERE "matches"=14 AND "no_result"<0;
## Task Generate a SQL query to answer the following question: `What is the number of wins when there are 14 matches, and the No Result was less than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "matches" r...
SELECT SUM("losses") FROM "performance_summary" WHERE "matches"=14 AND "no_result">0;
## Task Generate a SQL query to answer the following question: `What is the number of losses when there were 14 matches, and the No Result was larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "match...
SELECT SUM("matches") FROM "performance_summary" WHERE "wins"<8 AND "losses"=7 AND "year"='2011';
## Task Generate a SQL query to answer the following question: `What is the number of matches when the wins are less than 8, and losses of 7, in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "matches" rea...
SELECT "year" FROM "performance_summary" WHERE "win_pct"='50.00%' AND "matches">14 AND "wins">8;
## Task Generate a SQL query to answer the following question: `What year was the Win percentage 50.00%, with more than 14 matches, and wins more than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_summary" ( "year" text, "matches" ...
SELECT "area_km" FROM "regions_of_iceland" WHERE "pop_km"<0.97 AND "english"='east';
## Task Generate a SQL query to answer the following question: `What area has less than 0.97 mil in population and is on the east?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regions_of_iceland" ( "landsv_i" text, "english" text, "population_...
SELECT "area_km" FROM "regions_of_iceland" WHERE "pop_km"=0.58;
## Task Generate a SQL query to answer the following question: `What is the area for a population of 0.58 km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "regions_of_iceland" ( "landsv_i" text, "english" text, "population_2011_01_01" text, "...
SELECT "method" FROM "post_show_success" WHERE "result"='loss' AND "date"='january 19, 2008';
## Task Generate a SQL query to answer the following question: `what is the method when the result is loss on january 19, 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "post_show_success" ( "result" text, "tuf_competitor" text, "opponent" ...
SELECT "date" FROM "post_show_success" WHERE "opponent"='lyoto machida';
## Task Generate a SQL query to answer the following question: `when is the opponent lyoto machida?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "post_show_success" ( "result" text, "tuf_competitor" text, "opponent" text, "method" text, "ev...
SELECT "opponent" FROM "post_show_success" WHERE "method"='tko (punches) at 4:26 of round 1';
## Task Generate a SQL query to answer the following question: `who is the opponent when the method is tko (punches) at 4:26 of round 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "post_show_success" ( "result" text, "tuf_competitor" text, "o...
SELECT "tuf_competitor" FROM "post_show_success" WHERE "method"='decision (unanimous)';
## Task Generate a SQL query to answer the following question: `who is the tuf competitor when the method id decision (unanimous)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "post_show_success" ( "result" text, "tuf_competitor" text, "opponen...
SELECT "opponent" FROM "post_show_success" WHERE "method"='submission (rear naked choke) at 4:02 of round 2';
## Task Generate a SQL query to answer the following question: `who is the opponent when the method is submission (rear naked choke) at 4:02 of round 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "post_show_success" ( "result" text, "tuf_compet...
SELECT "venue" FROM "round_6" WHERE "home_team"='melbourne tigers';
## Task Generate a SQL query to answer the following question: `What is the venue where the melbourne tigers play their home games?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "date" text, "home_team" text, "score" text, "away_te...
SELECT "home_team" FROM "round_6" WHERE "venue"='gold coast convention centre';
## Task Generate a SQL query to answer the following question: `What team has theoir home games in the venue of gold coast convention centre?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "date" text, "home_team" text, "score" text, ...
SELECT "box_score" FROM "round_6" WHERE "score"='103-101';
## Task Generate a SQL query to answer the following question: `What is the box score type for the game that has a score of 103-101?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "date" text, "home_team" text, "score" text, "away_t...
SELECT "box_score" FROM "round_6" WHERE "away_team"='sydney spirit';
## Task Generate a SQL query to answer the following question: `What was the box score for the game where the away team was the sydney spirit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_6" ( "date" text, "home_team" text, "score" text,...
SELECT "res" FROM "mixed_martial_arts_record" WHERE "record"='15-7';
## Task Generate a SQL query to answer the following question: `What was the resolution of the fight when tim hague had a record of 15-7?` ### 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, "opp...
SELECT "event" FROM "mixed_martial_arts_record" WHERE "time"='5:00' AND "record"='10-4';
## Task Generate a SQL query to answer the following question: `What event did Tim hague have a fight that had a time of 5:00 and a record of 10-4?` ### 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" te...
SELECT "method" FROM "mixed_martial_arts_record" WHERE "event"='hardcore championship fighting: destiny';
## Task Generate a SQL query to answer the following question: `What method of resolution was the fight that took place at hardcore championship fighting: destiny?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mixed_martial_arts_record" ( "res" tex...
SELECT "event" FROM "mixed_martial_arts_record" WHERE "record"='3-0';
## Task Generate a SQL query to answer the following question: `What event did tim Hague have a record of 3-0?` ### 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" tex...
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "republican_john_kennedy"='45%' AND "democrat_mary_landrieu"='38%';
## Task Generate a SQL query to answer the following question: `On what date was the poll showing John Kennedy with 45% and Mary Landrieu with 38%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_sour...
SELECT "dates_administered" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"<5.5 AND "poll_source"='survey usa';
## Task Generate a SQL query to answer the following question: `What was the date of the poll from Survey USA that showed a lead margin smaller than 5.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "pol...
SELECT "poll_source" FROM "opinion_polling_for_the_united_states_se" WHERE "lead_margin"=5.5;
## Task Generate a SQL query to answer the following question: `Which organization administered the poll that showed a lead margin of 5.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source" text,...
SELECT "republican_john_kennedy" FROM "opinion_polling_for_the_united_states_se" WHERE "democrat_mary_landrieu"='53%';
## Task Generate a SQL query to answer the following question: `Which poll shows Democrat Mary Landrieu with 53% against Republican John Kennedy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polling_for_the_united_states_se" ( "poll_source...
SELECT SUM("round") FROM "draft_picks" WHERE "position"='forward' AND "school_club_team"='western kentucky';
## Task Generate a SQL query to answer the following question: `What is the sum of Round, when Position is Forward, and when School/Club Team is Western Kentucky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" t...
SELECT "position" FROM "draft_picks" WHERE "pick"='7';
## Task Generate a SQL query to answer the following question: `What is Position, when Pick is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" text, "player" text, "position" text, "nationality" text, ...
SELECT "pick" FROM "draft_picks" WHERE "round">1 AND "school_club_team"='south carolina';
## Task Generate a SQL query to answer the following question: `What is Pick, when Round is greater than 1, and when School/Club Team is South Carolina?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "draft_picks" ( "round" real, "pick" text, "pl...
SELECT "date" FROM "singles_14_5_9" WHERE "outcome"='runner-up' AND "score"='5–7, 3–6, 6–3, 2–6';
## Task Generate a SQL query to answer the following question: `What is the Date of the game with an Outcome of runner-up and Score of 5–7, 3–6, 6–3, 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_14_5_9" ( "outcome" text, "date" text...
SELECT "date" FROM "singles_14_5_9" WHERE "score"='4–6, 4–6';
## Task Generate a SQL query to answer the following question: `What is the Date of the game with a Score of 4–6, 4–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_14_5_9" ( "outcome" text, "date" text, "championship" text, "surface"...
SELECT "date" FROM "singles_14_5_9" WHERE "opponent"='christo van rensburg';
## Task Generate a SQL query to answer the following question: `What is the Date of the game against Christo Van Rensburg?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_14_5_9" ( "outcome" text, "date" text, "championship" text, "surf...
SELECT "home_team" FROM "fourth_round_proper" WHERE "tie_no"='3';
## Task Generate a SQL query to answer the following question: `Who was the home team for the game that has a Tie value of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, "score" text, ...
SELECT SUM("attendance") FROM "fourth_round_proper" WHERE "away_team"='chelsea';
## Task Generate a SQL query to answer the following question: `How many in total were in attendance at games where Chelsea was the away team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fourth_round_proper" ( "tie_no" text, "home_team" text, ...
SELECT "population_2004_est" FROM "administrative_divisions" WHERE "hanzi"='昌黎县';
## Task Generate a SQL query to answer the following question: `What is the 2004 population for 昌黎县?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2004_es...
SELECT "population_2004_est" FROM "administrative_divisions" WHERE "hanzi"='山海关区';
## Task Generate a SQL query to answer the following question: `What is the 2004 population for 山海关区?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2004_e...
SELECT "hanzi" FROM "administrative_divisions" WHERE "population_2004_est"='suburban';
## Task Generate a SQL query to answer the following question: `Which Hanzi has a suburban population in 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "populati...
SELECT "density_km" FROM "administrative_divisions" WHERE "hanzi"='昌黎县';
## Task Generate a SQL query to answer the following question: `What is the density of 昌黎县?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2004_est" text, ...
SELECT "hanyu_pinyin" FROM "administrative_divisions" WHERE "name"='rural';
## Task Generate a SQL query to answer the following question: `Which Hanyu Pinyin is labeled rural?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "administrative_divisions" ( "name" text, "hanzi" text, "hanyu_pinyin" text, "population_2004_es...
SELECT "pressure_in_h_pa_mbar" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='medium vacuum';
## Task Generate a SQL query to answer the following question: `What is the Pressure in hPa (mbar), when Vacuum Range is "medium vacuum"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mean_free_path_in_kinetic_theory" ( "vacuum_range" text, "pres...
SELECT "mean_free_path" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='medium vacuum';
## Task Generate a SQL query to answer the following question: `What is Mean Free Path, when Vacuum Range is "medium vacuum"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mean_free_path_in_kinetic_theory" ( "vacuum_range" text, "pressure_in_h_pa...
SELECT "mean_free_path" FROM "mean_free_path_in_kinetic_theory" WHERE "vacuum_range"='medium vacuum';
## Task Generate a SQL query to answer the following question: `What is Mean Free Path, when Vacuum Range is "medium vacuum"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mean_free_path_in_kinetic_theory" ( "vacuum_range" text, "pressure_in_h_pa...
SELECT "outcome" FROM "singles_26_17_9" WHERE "date"='10 october 1994';
## Task Generate a SQL query to answer the following question: `what is the outcome when the date is 10 october 1994?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_17_9" ( "outcome" text, "date" text, "championship" text, "surface"...
SELECT "score" FROM "singles_26_17_9" WHERE "date"='22 february 1993';
## Task Generate a SQL query to answer the following question: `what is the score on 22 february 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_17_9" ( "outcome" text, "date" text, "championship" text, "surface" text, "oppon...
SELECT "outcome" FROM "singles_26_17_9" WHERE "surface"='grass' AND "date"='23 june 1997';
## Task Generate a SQL query to answer the following question: `what is the outcome when the surface is grass on 23 june 1997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_17_9" ( "outcome" text, "date" text, "championship" text, ...
SELECT "score" FROM "singles_26_17_9" WHERE "surface"='carpet (i)' AND "outcome"='winner' AND "championship"='rotterdam, netherlands';
## Task Generate a SQL query to answer the following question: `what is the score when the surface is carpet (i) outcome is winner and the championship is rotterdam, netherlands?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_26_17_9" ( "out...