output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "year_signed" FROM "list_of_male_capital_artists_singers" WHERE "year_separated"='1987' AND "chinese_name"='蘇永康';
## Task Generate a SQL query to answer the following question: `What was the signed year for the Chinese name 蘇永康 who separated in 1987?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_male_capital_artists_singers" ( "english_name" text, "chinese_name" text, "year_signed" real, "year_separated" text, "reason_for_separation" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the signed year for the Chinese name 蘇永康 who separated in 1987?`: ```sql
SELECT "site" FROM "schedule" WHERE "date"='october 7';
## Task Generate a SQL query to answer the following question: `WHAT IS THE SITE ON OCTOBER 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE SITE ON OCTOBER 7?`: ```sql
SELECT "date" FROM "schedule" WHERE "rank_num"='6';
## Task Generate a SQL query to answer the following question: `WHAT DATE HAD 6 RANK?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT DATE HAD 6 RANK?`: ```sql
SELECT "opponentnum" FROM "schedule" WHERE "date"='october 7';
## Task Generate a SQL query to answer the following question: `WHAT OPPONENT WAS ON OCTOBER 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT OPPONENT WAS ON OCTOBER 7?`: ```sql
SELECT "rank_num" FROM "schedule" WHERE "result"='w13-3';
## Task Generate a SQL query to answer the following question: `WHAT RANK HAD A RESULT OF W13-3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponentnum" text, "rank_num" text, "site" text, "result" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT RANK HAD A RESULT OF W13-3?`: ```sql
SELECT "original_nfl_team" FROM "notable_undrafted_players" WHERE "college"='oregon' AND "pos"='dt';
## Task Generate a SQL query to answer the following question: `What is the original NFL team of the College of Oregon DT Player?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original NFL team of the College of Oregon DT Player?`: ```sql
SELECT "player" FROM "notable_undrafted_players" WHERE "college"='iowa state';
## Task Generate a SQL query to answer the following question: `What Player is from Iowa State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "notable_undrafted_players" ( "original_nfl_team" text, "player" text, "pos" text, "college" text, "conf" text ); ### SQL Given the database schema, here is the SQL query that answers `What Player is from Iowa State?`: ```sql
SELECT "result" FROM "schedule" WHERE "attendance"='77,702';
## Task Generate a SQL query to answer the following question: `What was the result of the game that had 77,702 people 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" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the result of the game that had 77,702 people in attendance?`: ```sql
SELECT "date" FROM "schedule" WHERE "opponent"='indianapolis colts';
## Task Generate a SQL query to answer the following question: `On what day did the team play the Indianapolis Colts?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `On what day did the team play the Indianapolis Colts?`: ```sql
SELECT AVG("played") FROM "third_division_final_table" WHERE "goals_against"<63 AND "team"='nelson' AND "lost">16;
## Task Generate a SQL query to answer the following question: `What is the average Played, when Goals Against is less than 63, when Team is "Nelson", and when Lost is greater than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average Played, when Goals Against is less than 63, when Team is "Nelson", and when Lost is greater than 16?`: ```sql
SELECT COUNT("goals_for") FROM "third_division_final_table" WHERE "points_1"='41';
## Task Generate a SQL query to answer the following question: `What is the total number of Goals For, when Points 1 is "41"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Goals For, when Points 1 is "41"?`: ```sql
SELECT MIN("position") FROM "third_division_final_table" WHERE "lost">15 AND "team"='cheadle town' AND "drawn">8;
## Task Generate a SQL query to answer the following question: `What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Position, when Lost is greater than 15, when Team is Cheadle Town, and when Drawn is greater than 8?`: ```sql
SELECT MIN("position") FROM "third_division_final_table" WHERE "points_1"='39' AND "goals_against">49;
## Task Generate a SQL query to answer the following question: `What is the lowest Position, when Points 1 is "39", and when Goals Against is greater than 49?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "third_division_final_table" ( "position" real, "team" text, "played" real, "drawn" real, "lost" real, "goals_for" real, "goals_against" real, "goal_difference" text, "points_1" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Position, when Points 1 is "39", and when Goals Against is greater than 49?`: ```sql
SELECT "season" FROM "season_by_season" WHERE "head_coach"='jonas kazlauskas' AND "europe"='champions cup group stage';
## Task Generate a SQL query to answer the following question: `WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "season" text, "lkf_cup" text, "regional_competitions" text, "europe" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?`: ```sql
SELECT "lkf_cup" FROM "season_by_season" WHERE "europe"='euroleague group stage' AND "regional_competitions"='bbl elite division finalist';
## Task Generate a SQL query to answer the following question: `WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "season" text, "lkf_cup" text, "regional_competitions" text, "europe" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE LKF CUP WITH euroleague group stage AND bbl elite division finalist?`: ```sql
SELECT "europe" FROM "season_by_season" WHERE "head_coach"='vainauskas , sakalauskas' AND "regional_competitions"='nebl finalist';
## Task Generate a SQL query to answer the following question: `WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_by_season" ( "season" text, "lkf_cup" text, "regional_competitions" text, "europe" text, "head_coach" text ); ### SQL Given the database schema, here is the SQL query that answers `WHAT IS THE ERUPE WITH HEAD COACH vainauskas , sakalauskas AND WITH NEBL FINALIST?`: ```sql
SELECT "american" FROM "initial_unstressed_syllables" WHERE "17th_c"='ɪ' AND "semi_closed_initial_unstressed_vowels"='i /ɪ, ɨ/';
## Task Generate a SQL query to answer the following question: `What is the American sound that has a 17th century equivalent of ɪ, and a Semi-closed initial unstressed vowels of i /ɪ, ɨ/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the American sound that has a 17th century equivalent of ɪ, and a Semi-closed initial unstressed vowels of i /ɪ, ɨ/?`: ```sql
SELECT "american" FROM "initial_unstressed_syllables" WHERE "17th_c"='ɔ';
## Task Generate a SQL query to answer the following question: `What is the American sound that has a 17th century equivalent of ɔ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the American sound that has a 17th century equivalent of ɔ?`: ```sql
SELECT "australian" FROM "initial_unstressed_syllables" WHERE "examples"='illyria, cf. cirrhosis';
## Task Generate a SQL query to answer the following question: `What is the entry for the Australian sound that has an example of illyria, cf. cirrhosis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the entry for the Australian sound that has an example of illyria, cf. cirrhosis?`: ```sql
SELECT "semi_closed_initial_unstressed_vowels" FROM "initial_unstressed_syllables" WHERE "17th_c"='ɐ';
## Task Generate a SQL query to answer the following question: `For the 17th century entry of ɐ, what is Semi-closed initial unstressed vowels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `For the 17th century entry of ɐ, what is Semi-closed initial unstressed vowels?`: ```sql
SELECT "australian" FROM "initial_unstressed_syllables" WHERE "17th_c"='ɐ';
## Task Generate a SQL query to answer the following question: `What is the entry for the Australian sound that has a 17th century equivalent of ɐ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the entry for the Australian sound that has a 17th century equivalent of ɐ?`: ```sql
SELECT "examples" FROM "initial_unstressed_syllables" WHERE "american"='ɪ, ə' AND "semi_closed_initial_unstressed_vowels"='y /ɨ/';
## Task Generate a SQL query to answer the following question: `What is the example for the American of ɪ, ə, and a Semi-closed initial unstressed vowels of y /ɨ/?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "initial_unstressed_syllables" ( "semi_closed_initial_unstressed_vowels" text, "17th_c" text, "american" text, "australian" text, "examples" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the example for the American of ɪ, ə, and a Semi-closed initial unstressed vowels of y /ɨ/?`: ```sql
SELECT "field" FROM "schedule" WHERE "opponent"='cannons' AND "result"='w 16-11';
## Task Generate a SQL query to answer the following question: `What field is an opponent of cannons and resulted with w 16-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What field is an opponent of cannons and resulted with w 16-11?`: ```sql
SELECT "result" FROM "schedule" WHERE "field"='texas stadium';
## Task Generate a SQL query to answer the following question: `what is the result from texas stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the result from texas stadium?`: ```sql
SELECT "field" FROM "schedule" WHERE "result"='w 18-12';
## Task Generate a SQL query to answer the following question: `What field resulted with w 18-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What field resulted with w 18-12?`: ```sql
SELECT "field" FROM "schedule" WHERE "result"='w 18-12';
## Task Generate a SQL query to answer the following question: `What field had results of w 18-12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "opponent" text, "home_away" text, "field" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What field had results of w 18-12?`: ```sql
SELECT MAX("points") FROM "group_i" WHERE "goals_for">48 AND "wins"<19 AND "goals_against"<44 AND "draws">5;
## Task Generate a SQL query to answer the following question: `WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT ARE THE HIGHEST POINTS WITH GOALS LARGER THAN 48, WINS LESS THAN 19, GOALS AGAINST SMALLER THAN 44, DRAWS LARGER THAN 5?`: ```sql
SELECT COUNT("points") FROM "group_i" WHERE "wins"<14 AND "club"='sd indauchu' AND "position">12;
## Task Generate a SQL query to answer the following question: `WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT ARE THE TOTAL NUMBER OF POINTS WITH WINS SMALLER THAN 14, AT SD INDAUCHU, POSITION BIGGER THAN 12?`: ```sql
SELECT AVG("goals_for") FROM "group_i" WHERE "draws"<6 AND "losses"<7;
## Task Generate a SQL query to answer the following question: `WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "group_i" ( "position" real, "club" text, "played" real, "points" real, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `WHAT ARE THE GOALS WITH DRAWS SMALLER THAN 6, AND LOSSES SMALLER THAN 7?`: ```sql
SELECT COUNT("2010") FROM "table_showing_viewing_share_of_individua" WHERE "2007">4.6 AND "2006"=8.2;
## Task Generate a SQL query to answer the following question: `How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_showing_viewing_share_of_individua" ( "2006" real, "2007" real, "2008" real, "2009" real, "2010" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 2010s have a 2007 greater than 4.6, and 8.2 as a 2006?`: ```sql
SELECT "2010" FROM "table_showing_viewing_share_of_individua" WHERE "2006"<6.9 AND "2008">1.6 AND "2007"=2;
## Task Generate a SQL query to answer the following question: `What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_showing_viewing_share_of_individua" ( "2006" real, "2007" real, "2008" real, "2009" real, "2010" real ); ### SQL Given the database schema, here is the SQL query that answers `What 2010 has a 2006 less than 6.9, a 2008 greater than 1.6, and 2 for 2007?`: ```sql
SELECT COUNT("2008") FROM "table_showing_viewing_share_of_individua" WHERE "2006"=6.9 AND "2007"<7.1;
## Task Generate a SQL query to answer the following question: `How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_showing_viewing_share_of_individua" ( "2006" real, "2007" real, "2008" real, "2009" real, "2010" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 2008s have 6.9 as a 2006, with a 2007 less than 7.1?`: ```sql
SELECT MAX("2010") FROM "table_showing_viewing_share_of_individua" WHERE "2009"<6.5 AND "2008"=0.4 AND "2007"<0.5;
## Task Generate a SQL query to answer the following question: `What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_showing_viewing_share_of_individua" ( "2006" real, "2007" real, "2008" real, "2009" real, "2010" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest 2010 that has a 2009 less than 6.5, 0.4 as the 2008, with a 2007 less than 0.5?`: ```sql
SELECT SUM("2007") FROM "table_showing_viewing_share_of_individua" WHERE "2006"=0.2 AND "2010"<0.1;
## Task Generate a SQL query to answer the following question: `How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table_showing_viewing_share_of_individua" ( "2006" real, "2007" real, "2008" real, "2009" real, "2010" real ); ### SQL Given the database schema, here is the SQL query that answers `How many 2007s have 0.2 as a 2006, with a 2010 less than 0.1?`: ```sql
SELECT "tournament" FROM "singles_8_4_4" WHERE "outcome"='runner-up' AND "score"='4–6, 3–6';
## Task Generate a SQL query to answer the following question: `What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Tournament has an Outcome of runner-up, and a Score of 4–6, 3–6?`: ```sql
SELECT "surface" FROM "singles_8_4_4" WHERE "date"='1 september 2008';
## Task Generate a SQL query to answer the following question: `What Surface has a Date of 1 september 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Surface has a Date of 1 september 2008?`: ```sql
SELECT "score" FROM "singles_8_4_4" WHERE "opponent"='nina bratchikova';
## Task Generate a SQL query to answer the following question: `What Score has an Opponent of nina bratchikova?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Score has an Opponent of nina bratchikova?`: ```sql
SELECT "surface" FROM "singles_8_4_4" WHERE "tournament"='pune, india';
## Task Generate a SQL query to answer the following question: `What Surface has a Tournament of pune, india?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Surface has a Tournament of pune, india?`: ```sql
SELECT "tournament" FROM "singles_8_4_4" WHERE "date"='20 december 2010';
## Task Generate a SQL query to answer the following question: `What Tournament has a Date of 20 december 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Tournament has a Date of 20 december 2010?`: ```sql
SELECT "tournament" FROM "singles_8_4_4" WHERE "score"='5–7, 2–6';
## Task Generate a SQL query to answer the following question: `What Tournament has a Score of 5–7, 2–6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_8_4_4" ( "outcome" text, "date" text, "tournament" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What Tournament has a Score of 5–7, 2–6?`: ```sql
SELECT "place" FROM "second_round" WHERE "score"='71-70=141';
## Task Generate a SQL query to answer the following question: `Which Place has a Score of 71-70=141?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which Place has a Score of 71-70=141?`: ```sql
SELECT "country" FROM "second_round" WHERE "score"='69-66=135';
## Task Generate a SQL query to answer the following question: `Which Country has a Score of 69-66=135?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a Score of 69-66=135?`: ```sql
SELECT "country" FROM "second_round" WHERE "to_par"='–9';
## Task Generate a SQL query to answer the following question: `Which Country has a To par of –9?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a To par of –9?`: ```sql
SELECT "to_par" FROM "second_round" WHERE "country"='united states' AND "score"='71-70=141';
## Task Generate a SQL query to answer the following question: `Which To par has a Country of united states, and a Score of 71-70=141?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which To par has a Country of united states, and a Score of 71-70=141?`: ```sql
SELECT "player" FROM "second_round" WHERE "to_par"='–5' AND "country"='england';
## Task Generate a SQL query to answer the following question: `Which Player has a To par of –5, and a Country of england?` ### 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 ); ### SQL Given the database schema, here is the SQL query that answers `Which Player has a To par of –5, and a Country of england?`: ```sql
SELECT "category" FROM "awards" WHERE "award"='monte carlo tv festival awards' AND "year">2010;
## Task Generate a SQL query to answer the following question: `Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "role" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Category has an Award of monte carlo tv festival awards, and a Year larger than 2010?`: ```sql
SELECT COUNT("year") FROM "awards" WHERE "result"='nominated';
## Task Generate a SQL query to answer the following question: `How many years have a Result of nominated?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "role" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have a Result of nominated?`: ```sql
SELECT "result" FROM "awards" WHERE "category"='outstanding actor (drama)';
## Task Generate a SQL query to answer the following question: `Which Result has a Category of outstanding actor (drama)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "role" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has a Category of outstanding actor (drama)?`: ```sql
SELECT "result" FROM "awards" WHERE "award"='virgin media tv awards';
## Task Generate a SQL query to answer the following question: `Which Result has an Award of virgin media tv awards?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards" ( "year" real, "award" text, "category" text, "role" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Result has an Award of virgin media tv awards?`: ```sql
SELECT "prize_money" FROM "calendar" WHERE "round"='second round qualifying';
## Task Generate a SQL query to answer the following question: `What is the prize money for the second round qualifying that is listed?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" text, "date" text, "fixtures" real, "clubs" text, "new_entries_this_round" text, "prize_money" text, "player_of_the_round" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the prize money for the second round qualifying that is listed?`: ```sql
SELECT SUM("year") FROM "singles_7_2_5" WHERE "outcome"='runner-up' AND "championship"='indian wells';
## Task Generate a SQL query to answer the following question: `How many years have runner-up as the outcome, and indian wells as the championship?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_2_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years have runner-up as the outcome, and indian wells as the championship?`: ```sql
SELECT "score" FROM "singles_7_2_5" WHERE "year"=2000;
## Task Generate a SQL query to answer the following question: `What score has 2000 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_2_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What score has 2000 as the year?`: ```sql
SELECT "surface" FROM "singles_7_2_5" WHERE "championship"='indian wells' AND "outcome"='winner';
## Task Generate a SQL query to answer the following question: `What surface has indian wells as the championship, with winner as the outcome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_7_2_5" ( "outcome" text, "year" real, "championship" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What surface has indian wells as the championship, with winner as the outcome?`: ```sql
SELECT AVG("money") FROM "final_leaderboard" WHERE "to_par">12;
## Task Generate a SQL query to answer the following question: `Which average money has a To par larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which average money has a To par larger than 12?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "to_par"<6 AND "money">700 AND "score"='69-73-70-71=283';
## Task Generate a SQL query to answer the following question: `Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a To par smaller than 6, and a Money ($) larger than 700, and a Score of 69-73-70-71=283?`: ```sql
SELECT AVG("money") FROM "final_leaderboard" WHERE "place"='t10' AND "player"='denny shute' AND "to_par">12;
## Task Generate a SQL query to answer the following question: `Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which average money has a Place of t10, and a Player of denny shute, and a To par larger than 12?`: ```sql
SELECT "country" FROM "final_leaderboard" WHERE "money"=0 AND "place"='t10';
## Task Generate a SQL query to answer the following question: `Which Country has a Money ($) of 0, and a Place of t10?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_leaderboard" ( "place" text, "player" text, "country" text, "score" text, "to_par" real, "money" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Country has a Money ($) of 0, and a Place of t10?`: ```sql
SELECT MAX("f_lap") FROM "by_season" WHERE "bike"='honda nsr500' AND "race">16;
## Task Generate a SQL query to answer the following question: `What is the highest FLap by a Honda NSR500 bike after Race 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_season" ( "season" text, "class" text, "bike" text, "team" text, "race" real, "pole" real, "f_lap" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest FLap by a Honda NSR500 bike after Race 16?`: ```sql
SELECT "fate" FROM "raiding_history" WHERE "tonnage_grt">'1,352' AND "name"='lavington court';
## Task Generate a SQL query to answer the following question: `Which Fate has a Tonnage (GRT) larger than 1,352, and a Name of lavington court?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "raiding_history" ( "date" text, "name" text, "nationality" text, "tonnage_grt" real, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Fate has a Tonnage (GRT) larger than 1,352, and a Name of lavington court?`: ```sql
SELECT COUNT("tonnage_grt") FROM "raiding_history" WHERE "nationality"='united kingdom' AND "date"='27 june 1941';
## Task Generate a SQL query to answer the following question: `How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "raiding_history" ( "date" text, "name" text, "nationality" text, "tonnage_grt" real, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `How much tonnage Tonnage (GRT) has a Nationality of united kingdom, and a Date of 27 june 1941?`: ```sql
SELECT "nationality" FROM "raiding_history" WHERE "date"='8 may 1942';
## Task Generate a SQL query to answer the following question: `Which Nationality has a Date of 8 may 1942?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "raiding_history" ( "date" text, "name" text, "nationality" text, "tonnage_grt" real, "fate" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Nationality has a Date of 8 may 1942?`: ```sql
SELECT MAX("round") FROM "wha" WHERE "nationality"='canada' AND "draft"<1973;
## Task Generate a SQL query to answer the following question: `What is Canada's highest round before 1973?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wha" ( "draft" real, "round" real, "pick" real, "player" text, "nationality" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Canada's highest round before 1973?`: ```sql
SELECT AVG("year") FROM "awards_and_nominations" WHERE "title_of_work"='saber' AND "category"='best action';
## Task Generate a SQL query to answer the following question: `What year was The Saber nominated for best action?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title_of_work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was The Saber nominated for best action?`: ```sql
SELECT "award" FROM "awards_and_nominations" WHERE "year"<2013 AND "title_of_work"='saber' AND "category"='best action';
## Task Generate a SQL query to answer the following question: `What was awarded before 2013 to the Saber in the category of Best Action?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" real, "award" text, "category" text, "title_of_work" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What was awarded before 2013 to the Saber in the category of Best Action?`: ```sql
SELECT "date" FROM "mutant_cultivars" WHERE "plant_patent_number"='us plant patent 12098';
## Task Generate a SQL query to answer the following question: `What date had the patent number US plant patent 12098?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What date had the patent number US plant patent 12098?`: ```sql
SELECT "mutated_from" FROM "mutant_cultivars" WHERE "plant_patent_number"='us plant patent 9645';
## Task Generate a SQL query to answer the following question: `What's the mutated having a patent number of US plant patent 9645?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the mutated having a patent number of US plant patent 9645?`: ```sql
SELECT "plant_patent_number" FROM "mutant_cultivars" WHERE "habit"='standard' AND "mutated_from"='yakata 7001';
## Task Generate a SQL query to answer the following question: `What's the patent number when it was mutated from Yakata 7001 and a standard habit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the patent number when it was mutated from Yakata 7001 and a standard habit?`: ```sql
SELECT "plant_patent_number" FROM "mutant_cultivars" WHERE "inventor"='fukuda';
## Task Generate a SQL query to answer the following question: `What's the patent number of Fukuda?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the patent number of Fukuda?`: ```sql
SELECT "inventor" FROM "mutant_cultivars" WHERE "habit"='spur' AND "pattern"='stripe' AND "mutated_from"='redsport type 2';
## Task Generate a SQL query to answer the following question: `Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `Who's the inventor when it was mutated from Redsport Type 2, has a stripe pattern and a spur habit?`: ```sql
SELECT "mutated_from" FROM "mutant_cultivars" WHERE "assignee"='auvil';
## Task Generate a SQL query to answer the following question: `What's the mutated of Auvil?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mutant_cultivars" ( "date" text, "inventor" text, "marketed_as" text, "mutated_from" text, "assignee" text, "habit" text, "pattern" text, "earlier" text, "color" text, "plant_patent_number" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the mutated of Auvil?`: ```sql
SELECT "model" FROM "models_and_specifications" WHERE "top_speed"='231km/h (143mph)';
## Task Generate a SQL query to answer the following question: `Which model has a top speed of 231km/h (143mph)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_and_specifications" ( "model" text, "years" text, "engine" text, "power" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `Which model has a top speed of 231km/h (143mph)?`: ```sql
SELECT "0_100km_h_62mph" FROM "models_and_specifications" WHERE "model"='slk200k' AND "top_speed"='236km/h (147mph)';
## Task Generate a SQL query to answer the following question: `How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_and_specifications" ( "model" text, "years" text, "engine" text, "power" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `How fast can the SLK200K, with a top speed of 236km/h (147mph), accelerate to 100km/h (62mph)?`: ```sql
SELECT "0_100km_h_62mph" FROM "models_and_specifications" WHERE "top_speed"='208km/h (129mph)';
## Task Generate a SQL query to answer the following question: `What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_and_specifications" ( "model" text, "years" text, "engine" text, "power" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 0–100km/h (62mph) acceleration of the model with a top speed of 208km/h (129mph)?`: ```sql
SELECT "top_speed" FROM "models_and_specifications" WHERE "model"='slk200k' AND "power"='122kw (163hp)';
## Task Generate a SQL query to answer the following question: `What is the top speed of the SLK200K that produces 122kw (163hp)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "models_and_specifications" ( "model" text, "years" text, "engine" text, "power" text, "0_100km_h_62mph" text, "top_speed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the top speed of the SLK200K that produces 122kw (163hp)?`: ```sql
SELECT "latin" FROM "possible_correspondences_between_proto_s" WHERE "greek"='μ';
## Task Generate a SQL query to answer the following question: `What is the Latin term for the Greek symbol μ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "possible_correspondences_between_proto_s" ( "phoen_value" text, "phoen_name" text, "hebrew" text, "greek" text, "latin" text, "cyrillic" text, "arabic" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Latin term for the Greek symbol μ?`: ```sql
SELECT "role" FROM "casts" WHERE "closing_broadway_cast"='adam grupper';
## Task Generate a SQL query to answer the following question: `Which role had a closing broadway cast of Adam Grupper?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "casts" ( "role" text, "original_broadway_cast" text, "closing_broadway_cast" text, "original_us_tour_cast" text, "original_non_equity_tour_cast" text, "original_s_o_paulo_cast" text, "original_lima_cast" text ); ### SQL Given the database schema, here is the SQL query that answers `Which role had a closing broadway cast of Adam Grupper?`: ```sql
SELECT "original_us_tour_cast" FROM "casts" WHERE "original_broadway_cast"='kevin chamberlin';
## Task Generate a SQL query to answer the following question: `What was the original US Tour cast when the original broadway was Kevin Chamberlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "casts" ( "role" text, "original_broadway_cast" text, "closing_broadway_cast" text, "original_us_tour_cast" text, "original_non_equity_tour_cast" text, "original_s_o_paulo_cast" text, "original_lima_cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original US Tour cast when the original broadway was Kevin Chamberlin?`: ```sql
SELECT "original_non_equity_tour_cast" FROM "casts" WHERE "original_broadway_cast"='kevin chamberlin';
## Task Generate a SQL query to answer the following question: `What was the original nonequity tour when the original broadway was Kevin Chamberlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "casts" ( "role" text, "original_broadway_cast" text, "closing_broadway_cast" text, "original_us_tour_cast" text, "original_non_equity_tour_cast" text, "original_s_o_paulo_cast" text, "original_lima_cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original nonequity tour when the original broadway was Kevin Chamberlin?`: ```sql
SELECT "role" FROM "casts" WHERE "original_broadway_cast"='adam riegler';
## Task Generate a SQL query to answer the following question: `What was the role when the original broadway was Adam Riegler?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "casts" ( "role" text, "original_broadway_cast" text, "closing_broadway_cast" text, "original_us_tour_cast" text, "original_non_equity_tour_cast" text, "original_s_o_paulo_cast" text, "original_lima_cast" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the role when the original broadway was Adam Riegler?`: ```sql
SELECT AVG("international") FROM "annual_passenger_statistics_for_enonteki" WHERE "domestic"=669 AND "year"<2005;
## Task Generate a SQL query to answer the following question: `What is the number for the international with 669 domestic earlier than 2005?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "annual_passenger_statistics_for_enonteki" ( "year" real, "domestic" real, "international" real, "total" real, "change" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number for the international with 669 domestic earlier than 2005?`: ```sql
SELECT AVG("year") FROM "annual_passenger_statistics_for_enonteki" WHERE "international"<'17,517' AND "domestic"<545;
## Task Generate a SQL query to answer the following question: `What year was the international lower than 17,517 and domestic was less than 545?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "annual_passenger_statistics_for_enonteki" ( "year" real, "domestic" real, "international" real, "total" real, "change" text ); ### SQL Given the database schema, here is the SQL query that answers `What year was the international lower than 17,517 and domestic was less than 545?`: ```sql
SELECT "score" FROM "league_cup" WHERE "date"='14 march 2004';
## Task Generate a SQL query to answer the following question: `What was the score on 14 march 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "season" text, "date" text, "winners" text, "finalists" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on 14 march 2004?`: ```sql
SELECT "season" FROM "league_cup" WHERE "winners"='hibernian' AND "finalists"='kilmarnock';
## Task Generate a SQL query to answer the following question: `In what season was Kilmarnock a finalist and Hibernian the winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "season" text, "date" text, "winners" text, "finalists" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In what season was Kilmarnock a finalist and Hibernian the winner?`: ```sql
SELECT "finalists" FROM "league_cup" WHERE "season"='1972–73';
## Task Generate a SQL query to answer the following question: `Who were the finalists in the 1972–73 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "season" text, "date" text, "winners" text, "finalists" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the finalists in the 1972–73 season?`: ```sql
SELECT "season" FROM "league_cup" WHERE "score"='2–1' AND "winners"='rangers';
## Task Generate a SQL query to answer the following question: `In which season did the Rangers win with a score of 2–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "season" text, "date" text, "winners" text, "finalists" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `In which season did the Rangers win with a score of 2–1?`: ```sql
SELECT "date" FROM "league_cup" WHERE "winners"='motherwell';
## Task Generate a SQL query to answer the following question: `When did Motherwell win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "season" text, "date" text, "winners" text, "finalists" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `When did Motherwell win?`: ```sql
SELECT MIN("burglary") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "forcible_rape"='39.1' AND "motor_vehicle_theft"<568.8;
## Task Generate a SQL query to answer the following question: `What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" real, "forcible_rape" text, "robbery" real, "aggravated_assault" real, "property_crime" text, "burglary" real, "larceny_theft" text, "motor_vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest rate of burglary when forcible rape is 39.1 and motor vehicle theft is less than 568.8?`: ```sql
SELECT MIN("burglary") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "population">'832,901' AND "murder_and_non_negligent_manslaughter"=11.6;
## Task Generate a SQL query to answer the following question: `When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" real, "forcible_rape" text, "robbery" real, "aggravated_assault" real, "property_crime" text, "burglary" real, "larceny_theft" text, "motor_vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `When population is greater than 832,901 and murder and non-negligent manslaughter is 11.6, what is the smallest burglary?`: ```sql
SELECT SUM("murder_and_non_negligent_manslaughter") FROM "2012_calendar_year_ratios_of_crime_per_1" WHERE "larceny_theft"='3,693.9' AND "burglary">'1,027.0';
## Task Generate a SQL query to answer the following question: `What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_calendar_year_ratios_of_crime_per_1" ( "state" text, "city" text, "population" real, "violent_crime" text, "murder_and_non_negligent_manslaughter" real, "forcible_rape" text, "robbery" real, "aggravated_assault" real, "property_crime" text, "burglary" real, "larceny_theft" text, "motor_vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total rate of murder and non-negligent manslaughter when larceny-theft is 3,693.9 and burglary is more than 1,027.0?`: ```sql
SELECT "name" FROM "assembly_segments" WHERE "district"='total:';
## Task Generate a SQL query to answer the following question: `What is the name for district total:?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name for district total:?`: ```sql
SELECT AVG("number_of_electorates_2009") FROM "assembly_segments" WHERE "name"='modi nagar';
## Task Generate a SQL query to answer the following question: `What is the electorates in 2009 for Modi Nagar?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "assembly_segments" ( "constituency_number" text, "name" text, "reserved_for_sc_st_none" text, "district" text, "number_of_electorates_2009" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the electorates in 2009 for Modi Nagar?`: ```sql
SELECT "opponent" FROM "scottish_premier_league" WHERE "match_day">33 AND "date"='12 may';
## Task Generate a SQL query to answer the following question: `Who was the opponent on 12 May, when the match day was more than 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "scottish_premier_league" ( "match_day" real, "date" text, "opponent" text, "venue" text, "score" text, "attendance" real, "report" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on 12 May, when the match day was more than 33?`: ```sql
SELECT MAX("issue_date") FROM "top_10_albums" WHERE "highest_position"=3;
## Task Generate a SQL query to answer the following question: `What is the largest issue date for an album that reached position of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_10_albums" ( "issue_date" real, "album_title" text, "artist" text, "sales" real, "highest_position" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest issue date for an album that reached position of 3?`: ```sql
SELECT "record" FROM "game_log" WHERE "date"='march 16';
## Task Generate a SQL query to answer the following question: `What is the record on March 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record on March 16?`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='january 23';
## Task Generate a SQL query to answer the following question: `What was the score on January 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "date" text, "visitor" text, "score" text, "home" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the score on January 23?`: ```sql
SELECT COUNT("to_par") FROM "missed_the_cut" WHERE "total"=157;
## Task Generate a SQL query to answer the following question: `How many strokes off par was the player who scored 157?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `How many strokes off par was the player who scored 157?`: ```sql
SELECT MAX("to_par") FROM "missed_the_cut" WHERE "year_s_won"='1977' AND "total">155;
## Task Generate a SQL query to answer the following question: `Which player who won in 1977 and scored great than 155 was the closest to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `Which player who won in 1977 and scored great than 155 was the closest to par?`: ```sql
SELECT "country" FROM "missed_the_cut" WHERE "to_par"=11;
## Task Generate a SQL query to answer the following question: `What country was the player who was 11 off par from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What country was the player who was 11 off par from?`: ```sql
SELECT "home_team" FROM "second_round_proper" WHERE "tie_no"='16';
## Task Generate a SQL query to answer the following question: `What was the Home team in Tie no 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Home team in Tie no 16?`: ```sql
SELECT "date" FROM "second_round_proper" WHERE "tie_no"='9';
## Task Generate a SQL query to answer the following question: `What is the Date of Tie no 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "second_round_proper" ( "tie_no" text, "home_team" text, "score" text, "away_team" text, "date" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Date of Tie no 9?`: ```sql