output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "result" FROM "writers_guild_of_america" WHERE "recipients_and_nominees"='outstanding achievement in drama' AND "year"=1995;
## Task Generate a SQL query to answer the following question: `Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writers_guild_of_america" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which result has a recipients and nominees of outstanding achievement in drama with 1995 as the year?`: ```sql
SELECT "recipients_and_nominees" FROM "writers_guild_of_america" WHERE "category"='outstanding achievement in drama' AND "year"=1994;
## Task Generate a SQL query to answer the following question: `What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writers_guild_of_america" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What recipients and nominees have outstanding achievement in drama as the category with 1994 as the year?`: ```sql
SELECT "result" FROM "writers_guild_of_america" WHERE "role_episode"='outstanding achievement in drama' AND "year"<1995;
## Task Generate a SQL query to answer the following question: `What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "writers_guild_of_america" ( "year" real, "category" text, "recipients_and_nominees" text, "role_episode" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `What result has outstanding achievement in drama, as the role/episode with a year prior to 1995?`: ```sql
SELECT AVG("total") FROM "qualified_competitors" WHERE "gymnast"='danny pinheiro rodrigues ( fra )' AND "position"<7;
## Task Generate a SQL query to answer the following question: `What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for Danny Pinheiro Rodrigues ( fra ), in a Position smaller than 7?`: ```sql
SELECT COUNT("total") FROM "qualified_competitors" WHERE "gymnast"='chen yibing ( chn )' AND "b_score"<9.225;
## Task Generate a SQL query to answer the following question: `What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for Chen Yibing ( chn ), when his B Score was smaller than 9.225?`: ```sql
SELECT COUNT("a_score") FROM "qualified_competitors" WHERE "b_score">9.05 AND "total"<16.525;
## Task Generate a SQL query to answer the following question: `What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the A Score when the B Score is more than 9.05, and the total is less than 16.525?`: ```sql
SELECT COUNT("position") FROM "qualified_competitors" WHERE "gymnast"='oleksandr vorobiov ( ukr )' AND "total">16.25;
## Task Generate a SQL query to answer the following question: `What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the position for Oleksandr Vorobiov ( ukr ), when the total was larger than 16.25?`: ```sql
SELECT SUM("total") FROM "qualified_competitors" WHERE "gymnast"='robert stanescu ( rou )' AND "b_score">8.75;
## Task Generate a SQL query to answer the following question: `What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "qualified_competitors" ( "position" real, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total for Robert Stanescu ( rou ), when the B Score is larger than 8.75?`: ```sql
SELECT "notes" FROM "repechage" WHERE "country"='poland';
## Task Generate a SQL query to answer the following question: `Poland has what notes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Poland has what notes?`: ```sql
SELECT "rank" FROM "repechage" WHERE "country"='croatia';
## Task Generate a SQL query to answer the following question: `What is Croatia's rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Croatia's rank?`: ```sql
SELECT "rowers" FROM "repechage" WHERE "rank"=5;
## Task Generate a SQL query to answer the following question: `When rank is 5, what is the rowers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `When rank is 5, what is the rowers?`: ```sql
SELECT AVG("rank") FROM "repechage" WHERE "country"='denmark';
## Task Generate a SQL query to answer the following question: `What is the average rank for Denmark?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "repechage" ( "rank" real, "rowers" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the average rank for Denmark?`: ```sql
SELECT "term_end" FROM "list_of_housing_and_construction_ministe" WHERE "party"='kadima' AND "term_start"='18 january 2006';
## Task Generate a SQL query to answer the following question: `What is the end of the term for Kadima that started on 18 January 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_housing_and_construction_ministe" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the end of the term for Kadima that started on 18 January 2006?`: ```sql
SELECT "minister" FROM "list_of_housing_and_construction_ministe" WHERE "term_start"='4 may 2006';
## Task Generate a SQL query to answer the following question: `Whose term started on 4 May 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_housing_and_construction_ministe" ( "minister" text, "party" text, "governments" text, "term_start" text, "term_end" text ); ### SQL Given the database schema, here is the SQL query that answers `Whose term started on 4 May 2006?`: ```sql
SELECT "2005_06" FROM "performance_and_rankings_timeline" WHERE "2006_07"='ur';
## Task Generate a SQL query to answer the following question: `Which 2005/ 06 has a 2006/ 07 of ur?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2005/ 06 has a 2006/ 07 of ur?`: ```sql
SELECT "2005_06" FROM "performance_and_rankings_timeline" WHERE "2011_12"='ranking tournaments';
## Task Generate a SQL query to answer the following question: `Which 2005/ 06 has a 2011/ 12 of ranking tournaments` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2005/ 06 has a 2011/ 12 of ranking tournaments`: ```sql
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2006_07"='1r';
## Task Generate a SQL query to answer the following question: `Which the 2007/ 08 has a 2006/ 07 of 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which the 2007/ 08 has a 2006/ 07 of 1r?`: ```sql
SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2011_12"='wr';
## Task Generate a SQL query to answer the following question: `Which 2010/ 11 has a 2011/ 12 of wr?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which 2010/ 11 has a 2011/ 12 of wr?`: ```sql
SELECT "2007_08" FROM "performance_and_rankings_timeline" WHERE "2009_10"='non-ranking';
## Task Generate a SQL query to answer the following question: `Which in 2007/ 08 has a 2009/ 10 of non-ranking?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Which in 2007/ 08 has a 2009/ 10 of non-ranking?`: ```sql
SELECT "2010_11" FROM "performance_and_rankings_timeline" WHERE "2006_07"='not held' AND "2011_12"='a' AND "2012_13"='a';
## Task Generate a SQL query to answer the following question: `Name the 2010/ 11 which has a 2006/ 07 of not held, and a 2011/ 12 of a, and a 2012/ 13 of a?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performance_and_rankings_timeline" ( "2005_06" text, "2006_07" text, "2007_08" text, "2009_10" text, "2010_11" text, "2011_12" text, "2012_13" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 2010/ 11 which has a 2006/ 07 of not held, and a 2011/ 12 of a, and a 2012/ 13 of a?`: ```sql
SELECT MIN("bronze") FROM "medal_table" WHERE "gold"<2 AND "rank"='29' AND "total">3;
## Task Generate a SQL query to answer the following question: `What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the number of bronze when they are ranked 29, had a total more than 3 and less than 2 golds?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "silver"<2 AND "total">4 AND "rank"='33';
## Task Generate a SQL query to answer the following question: `What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the bronze medal count for Rank 33 when the silver count was less than 2 and the total was more than 4?`: ```sql
SELECT SUM("silver") FROM "medal_table" WHERE "bronze"<5 AND "gold">0 AND "rank"='22';
## Task Generate a SQL query to answer the following question: `How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "nation"='south africa (rsa)' AND "total">16;
## Task Generate a SQL query to answer the following question: `What's the bronze count for South Africa (RSA) with a total more than 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What's the bronze count for South Africa (RSA) with a total more than 16?`: ```sql
SELECT MIN("election") FROM "provinces" WHERE "president"='leonardo marras' AND "inhabitants"<'227,063';
## Task Generate a SQL query to answer the following question: `What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "established" real, "president" text, "party" text, "election" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the lowest election result for President Leonardo Marras with an area smaller than 227,063 people?`: ```sql
SELECT "party" FROM "provinces" WHERE "president"='stefano baccelli';
## Task Generate a SQL query to answer the following question: `What is the party affiliation for President Stefano Baccelli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "established" real, "president" text, "party" text, "election" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the party affiliation for President Stefano Baccelli?`: ```sql
SELECT AVG("election") FROM "provinces" WHERE "province"='grosseto' AND "established"<1766;
## Task Generate a SQL query to answer the following question: `What is the average election result for the province of Grosseto from 1766 and prior?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "provinces" ( "province" text, "inhabitants" real, "established" real, "president" text, "party" text, "election" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average election result for the province of Grosseto from 1766 and prior?`: ```sql
SELECT COUNT("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_amendments_sponsored"<15 AND "all_bills_sponsored"=6 AND "all_amendments_cosponsored"<0;
## Task Generate a SQL query to answer the following question: `What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislation_sponsored_by_john_mc_cain" ( "years_covered" text, "all_bills_sponsored" real, "all_amendments_sponsored" real, "all_bills_cosponsored" real, "all_amendments_cosponsored" real, "bills_originally_cosponsored" real, "amendments_originally_cosponsored" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of all bills co-sponsored associated with all amendments sponsored under 15, all bills sponsored of 6, and 0 amendments cosponsored?`: ```sql
SELECT MIN("all_amendments_sponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored"=150 AND "all_bills_cosponsored">247;
## Task Generate a SQL query to answer the following question: `What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislation_sponsored_by_john_mc_cain" ( "years_covered" text, "all_bills_sponsored" real, "all_amendments_sponsored" real, "all_bills_cosponsored" real, "all_amendments_cosponsored" real, "bills_originally_cosponsored" real, "amendments_originally_cosponsored" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest amendments sponsored associated with 150 bills originally cosponsored and over 247 bills cosponsored?`: ```sql
SELECT MAX("all_bills_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "all_bills_sponsored"<24 AND "all_amendments_sponsored"<16;
## Task Generate a SQL query to answer the following question: `What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislation_sponsored_by_john_mc_cain" ( "years_covered" text, "all_bills_sponsored" real, "all_amendments_sponsored" real, "all_bills_cosponsored" real, "all_amendments_cosponsored" real, "bills_originally_cosponsored" real, "amendments_originally_cosponsored" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of bills cosponsored associated with under 24 bills sponsored and under 16 amendments sponsored?`: ```sql
SELECT MAX("all_amendments_cosponsored") FROM "legislation_sponsored_by_john_mc_cain" WHERE "amendments_originally_cosponsored"=53 AND "all_bills_sponsored">54;
## Task Generate a SQL query to answer the following question: `What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislation_sponsored_by_john_mc_cain" ( "years_covered" text, "all_bills_sponsored" real, "all_amendments_sponsored" real, "all_bills_cosponsored" real, "all_amendments_cosponsored" real, "bills_originally_cosponsored" real, "amendments_originally_cosponsored" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of amendments cosponsored associated with 53 amendments originally cosponsored and over 54 bills sponsored?`: ```sql
SELECT "all_bills_sponsored" FROM "legislation_sponsored_by_john_mc_cain" WHERE "bills_originally_cosponsored">113 AND "all_amendments_cosponsored"<47;
## Task Generate a SQL query to answer the following question: `What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "legislation_sponsored_by_john_mc_cain" ( "years_covered" text, "all_bills_sponsored" real, "all_amendments_sponsored" real, "all_bills_cosponsored" real, "all_amendments_cosponsored" real, "bills_originally_cosponsored" real, "amendments_originally_cosponsored" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of bills sponsored associated with over 113 bills originally cosponsored and under 47 amendments cosponsored?`: ```sql
SELECT COUNT("lane") FROM "heats" WHERE "heat"=1 AND "nationality"='uzbekistan';
## Task Generate a SQL query to answer the following question: `What is the Lane of the swimmer from Uzbekistan in Heat 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heats" ( "heat" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Lane of the swimmer from Uzbekistan in Heat 1?`: ```sql
SELECT "station" FROM "list_of_radio_stations_in_malaysia" WHERE "frequency"='873khz';
## Task Generate a SQL query to answer the following question: `Which station has a frequency of 873khz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_radio_stations_in_malaysia" ( "frequency" text, "station" text, "operator" text, "country_of_origin" text, "transmitter_location" text, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Which station has a frequency of 873khz?`: ```sql
SELECT "transmitter_location" FROM "list_of_radio_stations_in_malaysia" WHERE "station"='voice of vietnam';
## Task Generate a SQL query to answer the following question: `Where is the transmitter located for the station voice of vietnam` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_radio_stations_in_malaysia" ( "frequency" text, "station" text, "operator" text, "country_of_origin" text, "transmitter_location" text, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the transmitter located for the station voice of vietnam`: ```sql
SELECT "station" FROM "list_of_radio_stations_in_malaysia" WHERE "country_of_origin"='china' AND "frequency"='684khz';
## Task Generate a SQL query to answer the following question: `Which station is from China and has a frequency of 684khz?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_radio_stations_in_malaysia" ( "frequency" text, "station" text, "operator" text, "country_of_origin" text, "transmitter_location" text, "format" text ); ### SQL Given the database schema, here is the SQL query that answers `Which station is from China and has a frequency of 684khz?`: ```sql
SELECT "tally" FROM "single_game" WHERE "opposition"='westmeath';
## Task Generate a SQL query to answer the following question: `Name the Tally of an Opposition of westmeath?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "county" text, "tally" text, "total" real, "opposition" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Tally of an Opposition of westmeath?`: ```sql
SELECT "horizontal_bar" FROM "individuals" WHERE "pommel_horse"='n/a' AND "position"<27 AND "parallel_bars"='15.800';
## Task Generate a SQL query to answer the following question: `What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the horizontal bar score with a pommel horse of n/a, and the position is less than 27, and the parallel bars score is 15.800?`: ```sql
SELECT "floor" FROM "individuals" WHERE "position"<21 AND "total"<81.2 AND "pommel_horse"='13.925';
## Task Generate a SQL query to answer the following question: `What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the score of the floor when the position is less than 21, and less than 81.2 total, and the pommel horse score is 13.925?`: ```sql
SELECT "gymnast" FROM "individuals" WHERE "floor"='14.800';
## Task Generate a SQL query to answer the following question: `Who is the gymnast with a floor score of 14.800?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Who is the gymnast with a floor score of 14.800?`: ```sql
SELECT "horizontal_bar" FROM "individuals" WHERE "pommel_horse"='15.250';
## Task Generate a SQL query to answer the following question: `What horizontal bar score also has a pommel horse score of 15.250?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What horizontal bar score also has a pommel horse score of 15.250?`: ```sql
SELECT AVG("total") FROM "individuals" WHERE "parallel_bars"='14.625';
## Task Generate a SQL query to answer the following question: `With a parallel bars score of 14.625 what is the average total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "individuals" ( "position" real, "gymnast" text, "floor" text, "pommel_horse" text, "rings" text, "vault" text, "parallel_bars" text, "horizontal_bar" text, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `With a parallel bars score of 14.625 what is the average total?`: ```sql
SELECT COUNT("rank") FROM "heat_1" WHERE "time"='3:43.491';
## Task Generate a SQL query to answer the following question: `What is the Rank of the Athletes with a Time of 3:43.491?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank of the Athletes with a Time of 3:43.491?`: ```sql
SELECT "notes" FROM "heat_1" WHERE "country"='germany';
## Task Generate a SQL query to answer the following question: `What are the Notes of the Athletes from Germany?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the Notes of the Athletes from Germany?`: ```sql
SELECT COUNT("rank") FROM "heat_1" WHERE "country"='ukraine';
## Task Generate a SQL query to answer the following question: `What is the Rank of the Athletes from Ukraine?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "heat_1" ( "rank" real, "athletes" text, "country" text, "time" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Rank of the Athletes from Ukraine?`: ```sql
SELECT "location" FROM "winners" WHERE "winning_skip"='sherry middaugh';
## Task Generate a SQL query to answer the following question: `What location did Sherry Middaugh win in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What location did Sherry Middaugh win in?`: ```sql
SELECT "event" FROM "winners" WHERE "winning_skip"='patti lank';
## Task Generate a SQL query to answer the following question: `What event did Patti Lank have the winning skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What event did Patti Lank have the winning skip?`: ```sql
SELECT "date" FROM "winners" WHERE "runner_up_skip"='binia feltscher-beeli';
## Task Generate a SQL query to answer the following question: `What date shows Binia Feltscher-Beeli as the runner-up skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What date shows Binia Feltscher-Beeli as the runner-up skip?`: ```sql
SELECT "runner_up_skip" FROM "winners" WHERE "winning_skip"='julie reddick';
## Task Generate a SQL query to answer the following question: `What person was the runner-up skip when Julie Reddick was the winning skip?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "event" text, "date" text, "location" text, "winning_skip" text, "runner_up_skip" text ); ### SQL Given the database schema, here is the SQL query that answers `What person was the runner-up skip when Julie Reddick was the winning skip?`: ```sql
SELECT "yellow_1_09pct" FROM "total_fertility_rate" WHERE "brazil_100pct"='0,43407';
## Task Generate a SQL query to answer the following question: `What's the Yellow fertility rate when Brazil is 0,43407?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "total_fertility_rate" ( "brazil_100pct" text, "white_47_73pct" text, "black_7_61pct" text, "yellow_1_09pct" text, "brown_multiracial_43_13pct" text, "indians_0_43pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the Yellow fertility rate when Brazil is 0,43407?`: ```sql
SELECT SUM("area_km_2") FROM "list" WHERE "population_2011"=110;
## Task Generate a SQL query to answer the following question: `What is the sum of the area in km with a population of 110 in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "type" text, "population_2011" real, "population_2006" real, "area_km_2" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of the area in km with a population of 110 in 2011?`: ```sql
SELECT AVG("population_2006") FROM "list" WHERE "population_2011">5 AND "area_km_2"=5.84;
## Task Generate a SQL query to answer the following question: `What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "name" text, "type" text, "population_2011" real, "population_2006" real, "area_km_2" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the average population in 2006 that has more than 5 people in 2011 and an area 5.84km?`: ```sql
SELECT MIN("lane") FROM "semifinal_2" WHERE "react"=0.216;
## Task Generate a SQL query to answer the following question: `What is the lowest lane with a 0.216 react?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest lane with a 0.216 react?`: ```sql
SELECT SUM("rank") FROM "semifinal_2" WHERE "lane"<2;
## Task Generate a SQL query to answer the following question: `What is the total rank for the lane before 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "athlete" text, "nationality" text, "time" real, "react" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total rank for the lane before 2?`: ```sql
SELECT "genre" FROM "readers_choice" WHERE "year"=2007;
## Task Generate a SQL query to answer the following question: `What genre is the game from the year 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What genre is the game from the year 2007?`: ```sql
SELECT "game" FROM "readers_choice" WHERE "platform_s"='playstation 3' AND "year"<2009;
## Task Generate a SQL query to answer the following question: `What is the Game that came out before the year 2009 for the Playstation 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Game that came out before the year 2009 for the Playstation 3?`: ```sql
SELECT MIN("year") FROM "readers_choice" WHERE "game"='the legend of zelda: twilight princess';
## Task Generate a SQL query to answer the following question: `What is the earliest year that had the Legend of Zelda: Twilight Princess game?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "readers_choice" ( "year" real, "game" text, "genre" text, "platform_s" text, "developer_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the earliest year that had the Legend of Zelda: Twilight Princess game?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "date"='november 15, 1981';
## Task Generate a SQL query to answer the following question: `Who was the opponent on November 15, 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent on November 15, 1981?`: ```sql
SELECT MAX("debut_year") FROM "1950s" WHERE "player"='noel carroll' AND "games"<12;
## Task Generate a SQL query to answer the following question: `Which Debut year has a Player of noel carroll, and Games smaller than 12?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1950s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Debut year has a Player of noel carroll, and Games smaller than 12?`: ```sql
SELECT MIN("goals") FROM "1950s" WHERE "player"='noel carroll';
## Task Generate a SQL query to answer the following question: `Which Goals have a Player of noel carroll?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1950s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Goals have a Player of noel carroll?`: ```sql
SELECT SUM("debut_year") FROM "1950s" WHERE "years_at_club"='1950–1951' AND "games">14;
## Task Generate a SQL query to answer the following question: `How many debut years have Years at club of 1950–1951, and Games larger than 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1950s" ( "debut_year" real, "player" text, "games" real, "goals" real, "years_at_club" text ); ### SQL Given the database schema, here is the SQL query that answers `How many debut years have Years at club of 1950–1951, and Games larger than 14?`: ```sql
SELECT "title" FROM "greatest_hits_best_of_compilations" WHERE "label"='origianal sound entertainment';
## Task Generate a SQL query to answer the following question: `Which title has origianal sound entertainment as its label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "greatest_hits_best_of_compilations" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text ); ### SQL Given the database schema, here is the SQL query that answers `Which title has origianal sound entertainment as its label?`: ```sql
SELECT MIN("year_of_release") FROM "greatest_hits_best_of_compilations" WHERE "peaches"='francine barker' AND "label"='wounded bird';
## Task Generate a SQL query to answer the following question: `What was the earliest year of release for Peaches: Francine Barker with the wounded bird label?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "greatest_hits_best_of_compilations" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest year of release for Peaches: Francine Barker with the wounded bird label?`: ```sql
SELECT MAX("year_of_release") FROM "greatest_hits_best_of_compilations" WHERE "title"='greatest hits';
## Task Generate a SQL query to answer the following question: `What was the latest year of release for the greatest hits title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "greatest_hits_best_of_compilations" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the latest year of release for the greatest hits title?`: ```sql
SELECT "label" FROM "greatest_hits_best_of_compilations" WHERE "country_of_release"='eu';
## Task Generate a SQL query to answer the following question: `When the country of release is EU, what is the label name?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "greatest_hits_best_of_compilations" ( "title" text, "label" text, "year_of_release" real, "country_of_release" text, "peaches" text ); ### SQL Given the database schema, here is the SQL query that answers `When the country of release is EU, what is the label name?`: ```sql
SELECT MAX("latitude") FROM "k" WHERE "township"='kingsley' AND "geo_id">3803942820;
## Task Generate a SQL query to answer the following question: `what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest latitude when the township is kingsley and the geo id is higher than 3803942820?`: ```sql
SELECT AVG("latitude") FROM "k" WHERE "water_sqmi"=0.058 AND "ansi_code"<1759683;
## Task Generate a SQL query to answer the following question: `what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the latitude when water (sqmi) is 0.058 and the ansi code is less than 1759683?`: ```sql
SELECT MAX("geo_id") FROM "k" WHERE "longitude"=-98.435797 AND "land_sqmi"<36.039;
## Task Generate a SQL query to answer the following question: `what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "township" text, "county" text, "pop_2010" real, "land_sqmi" real, "water_sqmi" real, "latitude" real, "longitude" real, "geo_id" real, "ansi_code" real ); ### SQL Given the database schema, here is the SQL query that answers `what is the geo id when the longitude is -98.435797 and the land (sqmi) is less than 36.039?`: ```sql
SELECT MIN("year_joined") FROM "membership" WHERE "mascot"='pioneers';
## Task Generate a SQL query to answer the following question: `Name the lowest Year Joined which has a Mascot of pioneers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the lowest Year Joined which has a Mascot of pioneers?`: ```sql
SELECT "ihsaa_class" FROM "membership" WHERE "mascot"='pioneers';
## Task Generate a SQL query to answer the following question: `Name the IHSAA Class of Mascot of pioneers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the IHSAA Class of Mascot of pioneers?`: ```sql
SELECT "ihsaa_class" FROM "membership" WHERE "county"='55 morgan' AND "school"='mooresville';
## Task Generate a SQL query to answer the following question: `Name the IHSAA Class of 55 morgan and a School of mooresville?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the IHSAA Class of 55 morgan and a School of mooresville?`: ```sql
SELECT "location" FROM "membership" WHERE "mascot"='quakers';
## Task Generate a SQL query to answer the following question: `where is Mascot of quakers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `where is Mascot of quakers?`: ```sql
SELECT "ihsaa_class" FROM "membership" WHERE "school"='decatur central';
## Task Generate a SQL query to answer the following question: `What kind of IHSAA Class has a School of decatur central?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "membership" ( "school" text, "location" text, "mascot" text, "enrollment" real, "ihsaa_class" text, "county" text, "year_joined" real, "previous_conference" text ); ### SQL Given the database schema, here is the SQL query that answers `What kind of IHSAA Class has a School of decatur central?`: ```sql
SELECT "studio_s" FROM "2000s" WHERE "year"<2004 AND "director"='peter lord nick park';
## Task Generate a SQL query to answer the following question: `What studio had the director Peter Lord Nick Park before 2004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What studio had the director Peter Lord Nick Park before 2004?`: ```sql
SELECT "studio_s" FROM "2000s" WHERE "year"=2007 AND "director"='paul greengrass';
## Task Generate a SQL query to answer the following question: `What studio did Paul Greengrass direct in 2007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2000s" ( "year" real, "title" text, "director" text, "studio_s" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What studio did Paul Greengrass direct in 2007?`: ```sql
SELECT SUM("a_score") FROM "parallel_bars_event_final_qualifiers" WHERE "b_score">9.15 AND "position"='2nd';
## Task Generate a SQL query to answer the following question: `What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "parallel_bars_event_final_qualifiers" ( "position" text, "gymnast" text, "a_score" real, "b_score" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the A score when the B score is more than 9.15 and the gymnast was in the 2nd position?`: ```sql
SELECT "quantity" FROM "railbuses" WHERE "year_s_of_manufacture"='1900' AND "class"='mc';
## Task Generate a SQL query to answer the following question: `what is the quantity when the year of manufacture is 1900 and the class is mc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the quantity when the year of manufacture is 1900 and the class is mc?`: ```sql
SELECT "class" FROM "railbuses" WHERE "quantity"=4;
## Task Generate a SQL query to answer the following question: `what is the class when the quantity is 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" real, "year_s_of_manufacture" text, "axle_arrangement_uic" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the class when the quantity is 4?`: ```sql
SELECT "opponent" FROM "schedule" WHERE "week"=8;
## Task Generate a SQL query to answer the following question: `Who were the opponents on Week 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Who were the opponents on Week 8?`: ```sql
SELECT "change_12_11" FROM "2012_statistics_at_least_1_000_000_passe" WHERE "city"='agadir';
## Task Generate a SQL query to answer the following question: `When the city is agadir what is the change (12/11)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012_statistics_at_least_1_000_000_passe" ( "country" text, "airport" text, "city" text, "2012" real, "change_12_11" text ); ### SQL Given the database schema, here is the SQL query that answers `When the city is agadir what is the change (12/11)?`: ```sql
SELECT "catalog_number" FROM "singles" WHERE "a_side"='venus demilo';
## Task Generate a SQL query to answer the following question: `What is the catalog number of Venus Demilo's A-side?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "catalog_number" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the catalog number of Venus Demilo's A-side?`: ```sql
SELECT "year" FROM "singles" WHERE "b_side"='just squeeze me';
## Task Generate a SQL query to answer the following question: `What year did the B-Side of Just Squeeze Me come out?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "catalog_number" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What year did the B-Side of Just Squeeze Me come out?`: ```sql
SELECT "label" FROM "singles" WHERE "catalog_number"='817';
## Task Generate a SQL query to answer the following question: `What label has the 817 catalog?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "catalog_number" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What label has the 817 catalog?`: ```sql
SELECT "a_side" FROM "singles" WHERE "b_side"='it never entered my mind, part 2';
## Task Generate a SQL query to answer the following question: `What is the A-side for it Never Entered My Mind, Part 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "catalog_number" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the A-side for it Never Entered My Mind, Part 2?`: ```sql
SELECT "a_side" FROM "singles" WHERE "catalog_number"='902';
## Task Generate a SQL query to answer the following question: `What is the A-side for catalog 902?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "a_side" text, "b_side" text, "catalog_number" text, "label" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the A-side for catalog 902?`: ```sql
SELECT "class" FROM "railbuses" WHERE "type"='a1 bm';
## Task Generate a SQL query to answer the following question: `What is the class of the a1 bm type?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the class of the a1 bm type?`: ```sql
SELECT "quantity" FROM "railbuses" WHERE "class"='aw';
## Task Generate a SQL query to answer the following question: `What is the quantity of the aw class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the quantity of the aw class?`: ```sql
SELECT "class" FROM "railbuses" WHERE "quantity"='1';
## Task Generate a SQL query to answer the following question: `What is the class with 1 quantity?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the class with 1 quantity?`: ```sql
SELECT "railway_number_s" FROM "railbuses" WHERE "class"='aw';
## Task Generate a SQL query to answer the following question: `What is the railway number of the aw class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "railbuses" ( "class" text, "railway_number_s" text, "quantity" text, "year_s_of_manufacture" text, "type" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the railway number of the aw class?`: ```sql
SELECT "game" FROM "game_log" WHERE "record"='31-15';
## Task Generate a SQL query to answer the following question: `What was the game when the record was 31-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the game when the record was 31-15?`: ```sql
SELECT "date" FROM "game_log" WHERE "score"='w 106-100';
## Task Generate a SQL query to answer the following question: `What was the date of the game with a score of W 106-100?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" text, "date" text, "opponent" text, "score" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game with a score of W 106-100?`: ```sql
SELECT "speed" FROM "twin_cylinder_race" WHERE "rank"='1';
## Task Generate a SQL query to answer the following question: `What is the speed for rank 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "twin_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the speed for rank 1?`: ```sql
SELECT "team" FROM "twin_cylinder_race" WHERE "rank"='ret' AND "rider"='frank a applebee';
## Task Generate a SQL query to answer the following question: `What team has a Rank Ret, and rider Frank A Applebee?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "twin_cylinder_race" ( "rank" text, "rider" text, "team" text, "speed" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What team has a Rank Ret, and rider Frank A Applebee?`: ```sql
SELECT "internet_explorer" FROM "global_usage_share_data_from_get_clicky_" WHERE "chrome"='29.07%';
## Task Generate a SQL query to answer the following question: `What internet explorer has 29.07% for the chrome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_usage_share_data_from_get_clicky_" ( "period" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text, "opera" text, "other_mozilla" text ); ### SQL Given the database schema, here is the SQL query that answers `What internet explorer has 29.07% for the chrome?`: ```sql
SELECT "other_mozilla" FROM "global_usage_share_data_from_get_clicky_" WHERE "safari"='9.41%';
## Task Generate a SQL query to answer the following question: `What is the other mozilla that has 9.41% for the safari?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_usage_share_data_from_get_clicky_" ( "period" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text, "opera" text, "other_mozilla" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the other mozilla that has 9.41% for the safari?`: ```sql
SELECT "other_mozilla" FROM "global_usage_share_data_from_get_clicky_" WHERE "period"='january 2010';
## Task Generate a SQL query to answer the following question: `What other mozilla has January 2010 as the period?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_usage_share_data_from_get_clicky_" ( "period" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text, "opera" text, "other_mozilla" text ); ### SQL Given the database schema, here is the SQL query that answers `What other mozilla has January 2010 as the period?`: ```sql
SELECT "internet_explorer" FROM "global_usage_share_data_from_get_clicky_" WHERE "safari"='7.89%' AND "chrome"='8.22%';
## Task Generate a SQL query to answer the following question: `What internet explorer has 7.89% as the safari, and 8.22% as the chrome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_usage_share_data_from_get_clicky_" ( "period" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text, "opera" text, "other_mozilla" text ); ### SQL Given the database schema, here is the SQL query that answers `What internet explorer has 7.89% as the safari, and 8.22% as the chrome?`: ```sql
SELECT "period" FROM "global_usage_share_data_from_get_clicky_" WHERE "other_mozilla"='0.25%';
## Task Generate a SQL query to answer the following question: `What period has 0.25% as the other mozilla?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "global_usage_share_data_from_get_clicky_" ( "period" text, "internet_explorer" text, "chrome" text, "firefox" text, "safari" text, "opera" text, "other_mozilla" text ); ### SQL Given the database schema, here is the SQL query that answers `What period has 0.25% as the other mozilla?`: ```sql
SELECT "socket" FROM "sandy_bridge_quad_core_32_nm" WHERE "release_price_usd"='$378' AND "turbo"='6/6/8/9';
## Task Generate a SQL query to answer the following question: `Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sandy_bridge_quad_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `Which socket goes with the item with release price of $378 and turbo of 6/6/8/9?`: ```sql
SELECT "l2_cache" FROM "sandy_bridge_quad_core_32_nm" WHERE "model_number"='core i7-2635qm';
## Task Generate a SQL query to answer the following question: `What is the L2 cache for the core i7-2635QM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sandy_bridge_quad_core_32_nm" ( "model_number" text, "s_spec_number" text, "cores" text, "frequency" text, "turbo" text, "l2_cache" text, "l3_cache" text, "gpu_model" text, "gpu_frequency" text, "socket" text, "i_o_bus" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the L2 cache for the core i7-2635QM?`: ```sql