output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "sonnet" FROM "table1_3002894_4" WHERE "model"='Included RAM (MiB)';
## Task Generate a SQL query to answer the following question: `When included ram (mib) is the model what is the sonnet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_3002894_4" ( "model" text, "sonnet" text, "apple" text, "n_upowr_117" text, "n_upowr_167" text, "n_upowr_183" text, "n_upowr_g3" text ); ### SQL Given the database schema, here is the SQL query that answers `When included ram (mib) is the model what is the sonnet?`: ```sql
SELECT "apple" FROM "table1_3002894_4" WHERE "sonnet"='4 MB';
## Task Generate a SQL query to answer the following question: `When 4 mb is the sonnet what is the apple?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_3002894_4" ( "model" text, "sonnet" text, "apple" text, "n_upowr_117" text, "n_upowr_167" text, "n_upowr_183" text, "n_upowr_g3" text ); ### SQL Given the database schema, here is the SQL query that answers `When 4 mb is the sonnet what is the apple?`: ```sql
SELECT "sonnet" FROM "table1_3002894_4" WHERE "n_upowr_117"='0,4, or 8 MB';
## Task Generate a SQL query to answer the following question: `When 0,4, or 8 mb is the nupowr 117 what is the sonnet?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_3002894_4" ( "model" text, "sonnet" text, "apple" text, "n_upowr_117" text, "n_upowr_167" text, "n_upowr_183" text, "n_upowr_g3" text ); ### SQL Given the database schema, here is the SQL query that answers `When 0,4, or 8 mb is the nupowr 117 what is the sonnet?`: ```sql
SELECT "n_upowr_167" FROM "table1_3002894_4" WHERE "model"='Maker';
## Task Generate a SQL query to answer the following question: `When maker is the model what is the nupowr 167?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_3002894_4" ( "model" text, "sonnet" text, "apple" text, "n_upowr_117" text, "n_upowr_167" text, "n_upowr_183" text, "n_upowr_g3" text ); ### SQL Given the database schema, here is the SQL query that answers `When maker is the model what is the nupowr 167?`: ```sql
SELECT "n_upowr_183" FROM "table1_3002894_4" WHERE "n_upowr_117"='0,4, or 8 MB';
## Task Generate a SQL query to answer the following question: `When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_3002894_4" ( "model" text, "sonnet" text, "apple" text, "n_upowr_117" text, "n_upowr_167" text, "n_upowr_183" text, "n_upowr_g3" text ); ### SQL Given the database schema, here is the SQL query that answers `When 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?`: ```sql
SELECT "title" FROM "table1_30030477_1" WHERE "written_by"='Glen Mazzara';
## Task Generate a SQL query to answer the following question: `What is the name of the episode written by glen mazzara?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30030477_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode written by glen mazzara?`: ```sql
SELECT COUNT("title") FROM "table1_30030477_1" WHERE "original_air_date"='August3,2010';
## Task Generate a SQL query to answer the following question: `How many titles are there with the original air date of august3,2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30030477_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many titles are there with the original air date of august3,2010?`: ```sql
SELECT "directed_by" FROM "table1_30030477_1" WHERE "viewers_million"='3.24';
## Task Generate a SQL query to answer the following question: `Who directed the episdoe veiwed by 3.24 million viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30030477_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episdoe veiwed by 3.24 million viewers?`: ```sql
SELECT "original_air_date" FROM "table1_30030477_1" WHERE "written_by"='Adam E. Fierro & Glen Mazzara';
## Task Generate a SQL query to answer the following question: `What dated the episode written by is adam e. fierro & glen mazzara air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30030477_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What dated the episode written by is adam e. fierro & glen mazzara air?`: ```sql
SELECT "date" FROM "game_log" WHERE "streak"='W 2';
## Task Generate a SQL query to answer the following question: `in which date the strea was w 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `in which date the strea was w 2`: ```sql
SELECT "streak" FROM "game_log" WHERE "date"='April 13';
## Task Generate a SQL query to answer the following question: `in april 13 what was the streak` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `in april 13 what was the streak`: ```sql
SELECT "high_rebounds" FROM "game_log" WHERE "date"='April 13';
## Task Generate a SQL query to answer the following question: `in april 13 who made the high rebounds` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "location_attendance" text, "series" text, "streak" text ); ### SQL Given the database schema, here is the SQL query that answers `in april 13 who made the high rebounds`: ```sql
SELECT "game" FROM "game_log" WHERE "score"='L 111–126';
## Task Generate a SQL query to answer the following question: `Name the game for l 111–126` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the game for l 111–126`: ```sql
SELECT "score" FROM "game_log" WHERE "date"='March 8';
## Task Generate a SQL query to answer the following question: `Name the score for march 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the score for march 8`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Detroit';
## Task Generate a SQL query to answer the following question: `in the detroit team who made the high points` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `in the detroit team who made the high points`: ```sql
SELECT COUNT("score") FROM "game_log" WHERE "team"='Philadelphia';
## Task Generate a SQL query to answer the following question: `what is the score in the philadelphia team ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the score in the philadelphia team `: ```sql
SELECT "high_points" FROM "game_log" WHERE "date"='December 7';
## Task Generate a SQL query to answer the following question: `in december 7 who made the high points` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `in december 7 who made the high points`: ```sql
SELECT COUNT("date") FROM "game_log" WHERE "game"=2;
## Task Generate a SQL query to answer the following question: `in how many dates the game was 2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `in how many dates the game was 2`: ```sql
SELECT "high_points" FROM "game_log" WHERE "team"='Milwaukee';
## Task Generate a SQL query to answer the following question: `in the milwaukee team who made the high points` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `in the milwaukee team who made the high points`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "team"='Los Angeles';
## Task Generate a SQL query to answer the following question: `What was the location and it's corresponding attendance during the game against Los Angeles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the location and it's corresponding attendance during the game against Los Angeles?`: ```sql
SELECT "km_from_wellington" FROM "current_stations" WHERE "metlink_code"='MAST';
## Task Generate a SQL query to answer the following question: `what is the km from wellington where the metlink code is mast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_stations" ( "station" text, "metlink_code" text, "line_s" text, "service_s" text, "serves" text, "km_from_wellington" text, "fare_zone_s" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the km from wellington where the metlink code is mast?`: ```sql
SELECT "station" FROM "current_stations" WHERE "metlink_code"='MATA';
## Task Generate a SQL query to answer the following question: `what is the name of the station where the metlink code is mata?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_stations" ( "station" text, "metlink_code" text, "line_s" text, "service_s" text, "serves" text, "km_from_wellington" text, "fare_zone_s" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the station where the metlink code is mata?`: ```sql
SELECT "metlink_code" FROM "current_stations" WHERE "opened"='1908';
## Task Generate a SQL query to answer the following question: `what is the metlink code that opened in 1908?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_stations" ( "station" text, "metlink_code" text, "line_s" text, "service_s" text, "serves" text, "km_from_wellington" text, "fare_zone_s" text, "opened" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the metlink code that opened in 1908?`: ```sql
SELECT COUNT("team") FROM "schedule" WHERE "high_assists"='Inge – 6';
## Task Generate a SQL query to answer the following question: `How many teams did inge – 6 have the high assists with?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams did inge – 6 have the high assists with?`: ```sql
SELECT "record" FROM "schedule" WHERE "date"='December 3';
## Task Generate a SQL query to answer the following question: `What is the record for december 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for december 3?`: ```sql
SELECT COUNT("high_rebounds") FROM "schedule" WHERE "high_points"='Inge – 19';
## Task Generate a SQL query to answer the following question: `How many entries are there for high rebounds when high points is inge – 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries are there for high rebounds when high points is inge – 19?`: ```sql
SELECT COUNT("game") FROM "schedule" WHERE "location_attendance"='Phog Allen Fieldhouse , Lawrence, KS (16,300)';
## Task Generate a SQL query to answer the following question: `How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?`: ```sql
SELECT "high_assists" FROM "schedule" WHERE "date"='February 5';
## Task Generate a SQL query to answer the following question: `how many high assits have a date of february 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `how many high assits have a date of february 5?`: ```sql
SELECT "fri_26_aug" FROM "2011_junior_manx_grand_prix_practice_tim" WHERE "mon_22_aug"='β€”β€” No Time';
## Task Generate a SQL query to answer the following question: `What is shown for fri 26 aug when mon 22 aug is β€”β€” no time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_junior_manx_grand_prix_practice_tim" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What is shown for fri 26 aug when mon 22 aug is β€”β€” no time?`: ```sql
SELECT "sat_20_aug" FROM "2011_junior_manx_grand_prix_practice_tim" WHERE "fri_26_aug"='19'' 30.70 116.023mph';
## Task Generate a SQL query to answer the following question: `What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_junior_manx_grand_prix_practice_tim" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?`: ```sql
SELECT "mon_22_aug" FROM "2011_junior_manx_grand_prix_practice_tim" WHERE "wed_24_aug"='19'' 56.16 113.553mph';
## Task Generate a SQL query to answer the following question: `What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_junior_manx_grand_prix_practice_tim" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph?`: ```sql
SELECT "thurs_25_aug" FROM "2011_junior_manx_grand_prix_practice_tim" WHERE "wed_24_aug"='19'' 59.73 113.216mph';
## Task Generate a SQL query to answer the following question: `What is the thurs 25 aug when wed 24 aug is 19' 59.73 113.216mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_junior_manx_grand_prix_practice_tim" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the thurs 25 aug when wed 24 aug is 19' 59.73 113.216mph?`: ```sql
SELECT "thurs_25_aug" FROM "2011_junior_manx_grand_prix_practice_tim" WHERE "fri_26_aug"='19'' 30.70 116.023mph';
## Task Generate a SQL query to answer the following question: `What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_junior_manx_grand_prix_practice_tim" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?`: ```sql
SELECT MIN("rank") FROM "2011_supertwin_practice_times_and_leader";
## Task Generate a SQL query to answer the following question: `What's the best rank possible?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_supertwin_practice_times_and_leader" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the best rank possible?`: ```sql
SELECT "gt4_cup_winner" FROM "table1_30060356_3" WHERE "circuit"='Spa-Francorchamps Report';
## Task Generate a SQL query to answer the following question: `List all GT4 Cup winners played on the Spa-Francorchamps Report.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30060356_3" ( "event" real, "circuit" text, "gt3_pro_cup_winner" text, "gt3_pro_am_cup_winner" text, "gt3_citation_cup_winner" text, "gt4_cup_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `List all GT4 Cup winners played on the Spa-Francorchamps Report.`: ```sql
SELECT "gt3_pro_am_cup_winner" FROM "table1_30060356_3" WHERE "gt3_pro_cup_winner"='No. 1 Vita4One';
## Task Generate a SQL query to answer the following question: `Who are the gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30060356_3" ( "event" real, "circuit" text, "gt3_pro_cup_winner" text, "gt3_pro_am_cup_winner" text, "gt3_citation_cup_winner" text, "gt4_cup_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?`: ```sql
SELECT MAX("event") FROM "table1_30060356_3";
## Task Generate a SQL query to answer the following question: `What is the highest numbered event?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30060356_3" ( "event" real, "circuit" text, "gt3_pro_cup_winner" text, "gt3_pro_am_cup_winner" text, "gt3_citation_cup_winner" text, "gt4_cup_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest numbered event?`: ```sql
SELECT "tues_23_aug" FROM "2011_classic_superbike_practice_times_an" WHERE "wed_24_aug"='22'' 23.29 101.116mph';
## Task Generate a SQL query to answer the following question: `What is every entry for Tuesday August 23 if the entry for Wednesday August 24 is 22' 23.29 101.116mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_classic_superbike_practice_times_an" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text, "sat_27_aug" text, "mon_29_aug" text, "wed_31_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Tuesday August 23 if the entry for Wednesday August 24 is 22' 23.29 101.116mph?`: ```sql
SELECT "sat_27_aug" FROM "2011_classic_superbike_practice_times_an" WHERE "thurs_25_aug"='23'' 56.90 94.528mph';
## Task Generate a SQL query to answer the following question: `What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_classic_superbike_practice_times_an" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text, "sat_27_aug" text, "mon_29_aug" text, "wed_31_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?`: ```sql
SELECT "fri_26_aug" FROM "2011_classic_superbike_practice_times_an" WHERE "wed_24_aug"='23'' 52.67 94.807mph';
## Task Generate a SQL query to answer the following question: `What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2011_classic_superbike_practice_times_an" ( "rank" real, "rider" text, "sat_20_aug" text, "mon_22_aug" text, "tues_23_aug" text, "wed_24_aug" text, "thurs_25_aug" text, "fri_26_aug" text, "sat_27_aug" text, "mon_29_aug" text, "wed_31_aug" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?`: ```sql
SELECT "length" FROM "calendar" WHERE "round"=1 AND "gt3_winner"='David Ashburn Richard Westbrook';
## Task Generate a SQL query to answer the following question: `When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gt4_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?`: ```sql
SELECT "gt4_winner" FROM "calendar" WHERE "circuit"='Donington Park' AND "gt3_winner"='Charles Bateman Michael Lyons';
## Task Generate a SQL query to answer the following question: `When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gt4_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?`: ```sql
SELECT "gt4_winner" FROM "calendar" WHERE "round"=9 AND "gt3_winner"='Charles Bateman Michael Lyons';
## Task Generate a SQL query to answer the following question: `When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gt4_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?`: ```sql
SELECT "gt3_winner" FROM "calendar" WHERE "pole_position"='Tim Bridgman Gregor Fisken';
## Task Generate a SQL query to answer the following question: `When tim bridgman gregor fisken is the pole position who is the gt3 winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "calendar" ( "round" real, "circuit" text, "date" text, "length" text, "pole_position" text, "gt3_winner" text, "gt4_winner" text ); ### SQL Given the database schema, here is the SQL query that answers `When tim bridgman gregor fisken is the pole position who is the gt3 winner?`: ```sql
SELECT "jockey" FROM "2008_09_season_as_a_three_year_old" WHERE "race"='Doncaster Handicap';
## Task Generate a SQL query to answer the following question: `List the rider for the doncaster handicap compeition.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_09_season_as_a_three_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" text, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `List the rider for the doncaster handicap compeition.`: ```sql
SELECT COUNT("number_of_troops") FROM "table1_30108346_1" WHERE "troops_per_1_billion_usd_gdp"='2.45';
## Task Generate a SQL query to answer the following question: `Name the number of troops for troops per $1 billion being 2.45` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30108346_1" ( "country" text, "number_of_troops" real, "pct_of_total_troops" text, "troops_per_one_million_population" text, "troops_per_1_billion_usd_gdp" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of troops for troops per $1 billion being 2.45`: ```sql
SELECT COUNT("troops_per_one_million_population") FROM "table1_30108346_1" WHERE "troops_per_1_billion_usd_gdp"='2.76';
## Task Generate a SQL query to answer the following question: `Name the total number of troops per one million being 2.76` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30108346_1" ( "country" text, "number_of_troops" real, "pct_of_total_troops" text, "troops_per_one_million_population" text, "troops_per_1_billion_usd_gdp" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of troops per one million being 2.76`: ```sql
SELECT "country" FROM "table1_30108346_1" WHERE "troops_per_one_million_population"='54.9';
## Task Generate a SQL query to answer the following question: `Name the country for troops per one million being 54.9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30108346_1" ( "country" text, "number_of_troops" real, "pct_of_total_troops" text, "troops_per_one_million_population" text, "troops_per_1_billion_usd_gdp" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the country for troops per one million being 54.9`: ```sql
SELECT "player" FROM "round_five" WHERE "college"='Howard';
## Task Generate a SQL query to answer the following question: `Which player(s) played at Howard college?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which player(s) played at Howard college?`: ```sql
SELECT "cfl_team" FROM "round_five" WHERE "pick_num"=35;
## Task Generate a SQL query to answer the following question: `Which CFL team was pick #35?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which CFL team was pick #35?`: ```sql
SELECT "cfl_team" FROM "round_five" WHERE "pick_num"=34;
## Task Generate a SQL query to answer the following question: `Which CFL team got pick 34?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which CFL team got pick 34?`: ```sql
SELECT "position" FROM "round_five" WHERE "player"='Tyrell Francisco';
## Task Generate a SQL query to answer the following question: `What is Tyrell Francisco's player position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_five" ( "pick_num" real, "cfl_team" text, "player" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Tyrell Francisco's player position?`: ```sql
SELECT "barony" FROM "table1_30120547_1" WHERE "townland"='Gurraghy';
## Task Generate a SQL query to answer the following question: `What is the barony of the Gurraghy townland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120547_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the barony of the Gurraghy townland?`: ```sql
SELECT "civil_parish" FROM "table1_30120547_1" WHERE "townland"='Cappanaboul';
## Task Generate a SQL query to answer the following question: `What is the civil parish of the cappanaboul townland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120547_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the civil parish of the cappanaboul townland?`: ```sql
SELECT "civil_parish" FROM "table1_30120547_1" WHERE "area_acres"=119;
## Task Generate a SQL query to answer the following question: `What are the civil parishes of the townlands with an area of 119 acres?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120547_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the civil parishes of the townlands with an area of 119 acres?`: ```sql
SELECT "civil_parish" FROM "table1_30120556_1" WHERE "townland"='Ballynamona' AND "area_acres"=126;
## Task Generate a SQL query to answer the following question: `What civil paris appears when Ballynamona is the townland with 126 acres?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120556_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What civil paris appears when Ballynamona is the townland with 126 acres?`: ```sql
SELECT "area_acres" FROM "table1_30120556_1" WHERE "civil_parish"='Kilworth' AND "townland"='Monadrishane';
## Task Generate a SQL query to answer the following question: `What is the area of the civil parish kilworth and townland monadrishane?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120556_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the area of the civil parish kilworth and townland monadrishane?`: ```sql
SELECT COUNT("barony") FROM "table1_30120556_1" WHERE "townland"='Ballyvadona';
## Task Generate a SQL query to answer the following question: `How many barony's appear when Ballyvadona is the townland.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120556_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many barony's appear when Ballyvadona is the townland.`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120556_1" WHERE "townland"='Glasvaunta';
## Task Generate a SQL query to answer the following question: `How many items appear in the area column when Glasvaunta is the townland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120556_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many items appear in the area column when Glasvaunta is the townland?`: ```sql
SELECT MIN("area_acres") FROM "table1_30120556_1" WHERE "townland"='Derrynanool';
## Task Generate a SQL query to answer the following question: `What is the fewest area in Derrynanool townland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120556_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest area in Derrynanool townland?`: ```sql
SELECT "poor_law_union" FROM "table1_30120566_1" WHERE "townland"='Lisladeen';
## Task Generate a SQL query to answer the following question: `What is Lisladeen poor law union?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120566_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Lisladeen poor law union?`: ```sql
SELECT "barony" FROM "table1_30120566_1" WHERE "townland"='Dawstown' AND "civil_parish"='Matehy';
## Task Generate a SQL query to answer the following question: `In what barony are both the townland Dawstown and the civil parish Matehy located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120566_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `In what barony are both the townland Dawstown and the civil parish Matehy located?`: ```sql
SELECT "barony" FROM "table1_30120566_1" WHERE "townland"='Ballycunningham';
## Task Generate a SQL query to answer the following question: `What barony is Ballycunningham in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120566_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What barony is Ballycunningham in?`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120566_1" WHERE "townland"='Rathcoola East';
## Task Generate a SQL query to answer the following question: `How many different sizes (in acres) are noted for Rathcoola East?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120566_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many different sizes (in acres) are noted for Rathcoola East?`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120560_1" WHERE "townland"='Kilgilky North';
## Task Generate a SQL query to answer the following question: `how many areas have townland as kilgilky north?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120560_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `how many areas have townland as kilgilky north?`: ```sql
SELECT "civil_parish" FROM "table1_30120560_1" WHERE "area_acres"=405;
## Task Generate a SQL query to answer the following question: `which cilvil parishes have areas of 405?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120560_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `which cilvil parishes have areas of 405?`: ```sql
SELECT "barony" FROM "table1_30120560_1" WHERE "area_acres"=560;
## Task Generate a SQL query to answer the following question: `what is the barony and an area of 560?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120560_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the barony and an area of 560?`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120560_1" WHERE "townland"='Brittas';
## Task Generate a SQL query to answer the following question: `what is the number of areas where the townland is brittas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120560_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of areas where the townland is brittas?`: ```sql
SELECT "poor_law_union" FROM "table1_30120633_1" WHERE "townland"='Coolkirky';
## Task Generate a SQL query to answer the following question: `What is the Poor Law Union for Coolkirky?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120633_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Poor Law Union for Coolkirky?`: ```sql
SELECT MIN("area_acres") FROM "table1_30120633_1" WHERE "townland"='Clashroe';
## Task Generate a SQL query to answer the following question: `How few acres is the area of Clashroe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120633_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How few acres is the area of Clashroe?`: ```sql
SELECT "townland" FROM "table1_30120633_1" WHERE "area_acres"=213;
## Task Generate a SQL query to answer the following question: `Which townland has a 213 acre area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120633_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `Which townland has a 213 acre area?`: ```sql
SELECT "area_acres" FROM "table1_30120633_1" WHERE "poor_law_union"='Bandon' AND "townland"='Lissagroom';
## Task Generate a SQL query to answer the following question: `How many acres does the area of Lissagroom with Bandon as its poor law union cover?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120633_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many acres does the area of Lissagroom with Bandon as its poor law union cover?`: ```sql
SELECT "civil_parish" FROM "table1_30120633_1" WHERE "townland"='Ballymurphy North';
## Task Generate a SQL query to answer the following question: `What is Ballymurphy North's civil parish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120633_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Ballymurphy North's civil parish?`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120761_1" WHERE "townland"='Coomroe';
## Task Generate a SQL query to answer the following question: `How many acres in the townland of Coomroe?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120761_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many acres in the townland of Coomroe?`: ```sql
SELECT "area_acres" FROM "table1_30120761_1" WHERE "poor_law_union"='Macroom' AND "civil_parish"='Macroom';
## Task Generate a SQL query to answer the following question: `What are all the acreages of the townlands in the Macroom poor law union and Macroom civil parish?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120761_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all the acreages of the townlands in the Macroom poor law union and Macroom civil parish?`: ```sql
SELECT COUNT("barony") FROM "table1_30120761_1" WHERE "townland"='Maulnagrough';
## Task Generate a SQL query to answer the following question: `How many baronies is Maulnagrough a part of?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120761_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many baronies is Maulnagrough a part of?`: ```sql
SELECT "townland" FROM "table1_30120761_1" WHERE "area_acres"=131;
## Task Generate a SQL query to answer the following question: `What are all of the townlands that have exactly 131 acres.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120761_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all of the townlands that have exactly 131 acres.`: ```sql
SELECT COUNT("area_acres") FROM "table1_30120761_1" WHERE "civil_parish"='Macroom' AND "townland"='Maghereen';
## Task Generate a SQL query to answer the following question: `What is the acreage of the Maghereen in the civil parish of Macroom?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30120761_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the acreage of the Maghereen in the civil parish of Macroom?`: ```sql
SELECT "poor_law_union" FROM "table1_30121075_1" WHERE "townland"='Bohonagh';
## Task Generate a SQL query to answer the following question: `What is the poor law union when the townland is bohonagh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30121075_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the poor law union when the townland is bohonagh?`: ```sql
SELECT COUNT("barony") FROM "table1_30121075_1" WHERE "townland"='Derrigra';
## Task Generate a SQL query to answer the following question: `How many entries are in barony when the townland is derrigra?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30121075_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries are in barony when the townland is derrigra?`: ```sql
SELECT COUNT("poor_law_union") FROM "table1_30121075_1" WHERE "townland"='Dromidiclogh';
## Task Generate a SQL query to answer the following question: `How many entries are listed in poor law union when townland is dromidiclogh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30121075_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries are listed in poor law union when townland is dromidiclogh?`: ```sql
SELECT "area_acres" FROM "table1_30121075_1" WHERE "poor_law_union"='Skibbereen' AND "townland"='Knockmore';
## Task Generate a SQL query to answer the following question: `What is the area when the poor law union is skibbereen and the townland is knockmore?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_30121075_1" ( "townland" text, "area_acres" real, "barony" text, "civil_parish" text, "poor_law_union" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the area when the poor law union is skibbereen and the townland is knockmore?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "location"='Baltimore , Maryland';
## Task Generate a SQL query to answer the following question: `What is the circuit located in baltimore , maryland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the circuit located in baltimore , maryland?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "location"='St. Petersburg, Florida';
## Task Generate a SQL query to answer the following question: `Which circuit was located in st. petersburg, florida?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Which circuit was located in st. petersburg, florida?`: ```sql
SELECT "fastest_lap" FROM "race_calendar_and_results" WHERE "location"='Bowmanville, Ontario';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap in bowmanville, ontario?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the fastest lap in bowmanville, ontario?`: ```sql
SELECT "fastest_lap" FROM "race_calendar_and_results" WHERE "date"='September 4';
## Task Generate a SQL query to answer the following question: `Who had the fastest lap on september 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Who had the fastest lap on september 4?`: ```sql
SELECT "1985" FROM "per_capita_gdp" WHERE "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions"='369.38';
## Task Generate a SQL query to answer the following question: `What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?`: ```sql
SELECT "gap_from_thailand_as_of_2012_times" FROM "per_capita_gdp" WHERE "economy"='China';
## Task Generate a SQL query to answer the following question: `What was the gap from Thailand as of 2012 for China?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the gap from Thailand as of 2012 for China?`: ```sql
SELECT MAX("2010") FROM "per_capita_gdp" WHERE "economy"='China';
## Task Generate a SQL query to answer the following question: `What is the maximum 2010 value for China?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum 2010 value for China?`: ```sql
SELECT "gap_from_thailand_as_of_2012_times" FROM "per_capita_gdp" WHERE "gap_from_thailand_as_of_1980_times"='0.29';
## Task Generate a SQL query to answer the following question: `What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the gap from Thailand as of 2012 for the country whose 1980 gap was 0.29?`: ```sql
SELECT COUNT("gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions") FROM "per_capita_gdp" WHERE "2012"=23113;
## Task Generate a SQL query to answer the following question: `How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `How many GDPs as of 2012 after PPP values are associated with a 2012 value of 23113?`: ```sql
SELECT MAX("2010") FROM "per_capita_gdp" WHERE "gap_from_thailand_as_of_1980_times"='2.43';
## Task Generate a SQL query to answer the following question: `What is the max 2010 value for a 1980 gap value is 2.43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "per_capita_gdp" ( "economy" text, "1980" real, "gap_from_thailand_as_of_1980_times" text, "1985" real, "1990" real, "1995" real, "2000" real, "2005" real, "2010" real, "2012" real, "gap_from_thailand_as_of_2012_times" text, "gdp_as_of_2012_after_purchasing_power_parity_ppp_calculations_usd_billions" text, "gdp_per_capita_as_of_2012_ppp" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the max 2010 value for a 1980 gap value is 2.43?`: ```sql
SELECT "uk_total_viewers" FROM "series_1_2011" WHERE "episode_no"=50;
## Task Generate a SQL query to answer the following question: `How many viewers in the UK did episode 50 have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "series_1_2011" ( "episode_no" real, "us_airdate" text, "us_total_viewers" text, "uk_airdate" text, "uk_total_viewers" text ); ### SQL Given the database schema, here is the SQL query that answers `How many viewers in the UK did episode 50 have?`: ```sql
SELECT "doubles_w_l" FROM "current_team" WHERE "player"='laurynas grigelis';
## Task Generate a SQL query to answer the following question: `Tell me the doubles W-L for player of laurynas grigelis` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_team" ( "player" text, "current_singles_ranking" text, "current_doubles_ranking" text, "first_year_played" real, "ties_played" real, "total_w_l" text, "singles_w_l" text, "doubles_w_l" text ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the doubles W-L for player of laurynas grigelis`: ```sql
SELECT "most_recent_cap" FROM "highest_goal_scorer" WHERE "goals">17 AND "name"='brian turner';
## Task Generate a SQL query to answer the following question: `What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "highest_goal_scorer" ( "name" text, "career" text, "goals" real, "caps" real, "first_cap" text, "most_recent_cap" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the newest Cap with a Goals stat larger than 17 and which was done by Brian Turner?`: ```sql
SELECT "nationality" FROM "r" WHERE "school_club_team"='barton cc (ks)';
## Task Generate a SQL query to answer the following question: `What is the nationality of school/club team of barton cc (ks)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of school/club team of barton cc (ks)?`: ```sql
SELECT "school_club_team" FROM "r" WHERE "player"='shawn respert';
## Task Generate a SQL query to answer the following question: `Shawn Respert play for what school/club team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Shawn Respert play for what school/club team?`: ```sql
SELECT "position" FROM "r" WHERE "years_in_toronto"='1996-97';
## Task Generate a SQL query to answer the following question: `Who has position in year 1996-97 in Toronto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has position in year 1996-97 in Toronto?`: ```sql
SELECT "school_club_team" FROM "r" WHERE "player"='roy rogers';
## Task Generate a SQL query to answer the following question: `Roy Rogers play for what school/club team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Roy Rogers play for what school/club team?`: ```sql
SELECT "years_in_toronto" FROM "r" WHERE "nationality"='united states' AND "school_club_team"='arkansas';
## Task Generate a SQL query to answer the following question: `What year is United States school/club team from Arkansas play in Toronto` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "nationality" text, "position" text, "years_in_toronto" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What year is United States school/club team from Arkansas play in Toronto`: ```sql