output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "2010" FROM "singles_performance_timeline" WHERE "2012"='2r' AND "tournament"='us open';
## Task Generate a SQL query to answer the following question: `If the US Open tournament had 2r in 2012, what was it in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2009" text, "2010" text, "2011" text, "2012" text ); ### SQL Given the database schema, here is the SQL query that answers `If the US Open tournament had 2r in 2012, what was it in 2010?`: ```sql
SELECT "school" FROM "2005_regular_season_football_standings" WHERE "team"='senators';
## Task Generate a SQL query to answer the following question: `What is the school, when the Team is Senators?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the school, when the Team is Senators?`: ```sql
SELECT "season_outcome" FROM "2005_regular_season_football_standings" WHERE "school"='sussex tech';
## Task Generate a SQL query to answer the following question: `What is the Season Outcome, when the School is Sussex Tech?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Season Outcome, when the School is Sussex Tech?`: ```sql
SELECT "school" FROM "2005_regular_season_football_standings" WHERE "team"='golden knights';
## Task Generate a SQL query to answer the following question: `What is the School, when the Team is Golden Knights?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2005_regular_season_football_standings" ( "school" text, "team" text, "division_record" text, "overall_record" text, "season_outcome" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the School, when the Team is Golden Knights?`: ```sql
SELECT "venue" FROM "mohamed_al_zeno_international_goals" WHERE "result"='5–1';
## Task Generate a SQL query to answer the following question: `What is the Venue where the Result is 5–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Venue where the Result is 5–1?`: ```sql
SELECT "score" FROM "mohamed_al_zeno_international_goals" WHERE "goal">11 AND "competition"='2009 nehru cup' AND "date"='24 august 2009';
## Task Generate a SQL query to answer the following question: `What was the Score where Goal is larger than 11, and a Competition of 2009 nehru cup, and had a Date of 24 august 2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score where Goal is larger than 11, and a Competition of 2009 nehru cup, and had a Date of 24 august 2009?`: ```sql
SELECT "result" FROM "mohamed_al_zeno_international_goals" WHERE "goal"=9;
## Task Generate a SQL query to answer the following question: `What is the Result where Goal is 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Result where Goal is 9?`: ```sql
SELECT "goal" FROM "mohamed_al_zeno_international_goals" WHERE "competition"='international friendly' AND "result"='2–1';
## Task Generate a SQL query to answer the following question: `What was Goal that where Competition of international friendly, and a Result of 2–1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was Goal that where Competition of international friendly, and a Result of 2–1?`: ```sql
SELECT "competition" FROM "mohamed_al_zeno_international_goals" WHERE "score"='3–0' AND "goal">4;
## Task Generate a SQL query to answer the following question: `What is the Competition where the Score was 3–0, and the was Goal larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "mohamed_al_zeno_international_goals" ( "goal" real, "date" text, "venue" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Competition where the Score was 3–0, and the was Goal larger than 4?`: ```sql
SELECT "population_2009_estimate" FROM "the_five_regions" WHERE "name"='northeast';
## Task Generate a SQL query to answer the following question: `What is the 2009 estimate population of the Northeast?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 estimate population of the Northeast?`: ```sql
SELECT "population_2009_estimate" FROM "the_five_regions" WHERE "largest_city"='manaus';
## Task Generate a SQL query to answer the following question: `What is the 2009 estimate population of the region with Manaus as the largest city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 estimate population of the region with Manaus as the largest city?`: ```sql
SELECT "number_of_states" FROM "the_five_regions" WHERE "population_2009_estimate"='27,3 million';
## Task Generate a SQL query to answer the following question: `How many states has a 2009 estimate population of 27,3 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); ### SQL Given the database schema, here is the SQL query that answers `How many states has a 2009 estimate population of 27,3 million?`: ```sql
SELECT "largest_metropolitan_area" FROM "the_five_regions" WHERE "name"='central-west';
## Task Generate a SQL query to answer the following question: `What is the largest metropolitan area of the Central-West?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest metropolitan area of the Central-West?`: ```sql
SELECT "population_2009_estimate" FROM "the_five_regions" WHERE "largest_city"='manaus';
## Task Generate a SQL query to answer the following question: `What is the 2009 estimate population of the region with Manaus as the largest city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_five_regions" ( "name" text, "population_2009_estimate" text, "largest_city" text, "largest_metropolitan_area" text, "number_of_states" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 estimate population of the region with Manaus as the largest city?`: ```sql
SELECT "leader_at_the_summit" FROM "appearances_in_tour_de_france" WHERE "stage">14 AND "category"=1 AND "start"='saint-girons' AND "finish"='cauterets';
## Task Generate a SQL query to answer the following question: `Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_in_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the leader at the summit when the stage was larger than 14, the category was 1, the start was Saint-Girons, and the finish was Cauterets?`: ```sql
SELECT MIN("year") FROM "appearances_in_tour_de_france" WHERE "start"='saint-gaudens' AND "stage"<15;
## Task Generate a SQL query to answer the following question: `What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "appearances_in_tour_de_france" ( "year" real, "stage" real, "category" real, "start" text, "finish" text, "leader_at_the_summit" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest year that had a start of Saint-Gaudens and a stage smaller than 15?`: ```sql
SELECT "model" FROM "four_abreast_cabin" WHERE "seats"='37-78';
## Task Generate a SQL query to answer the following question: `Which Model had 37-78 seats?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "four_abreast_cabin" ( "model" text, "seats" text, "period" text, "built" real, "country" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Model had 37-78 seats?`: ```sql
SELECT "studio" FROM "1936" WHERE "title"='the oregon trail';
## Task Generate a SQL query to answer the following question: `Which studio did The Oregon Trail?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which studio did The Oregon Trail?`: ```sql
SELECT "title" FROM "1936" WHERE "leading_lady"='muriel evans';
## Task Generate a SQL query to answer the following question: `Which title had Muriel Evans as leading lady?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Which title had Muriel Evans as leading lady?`: ```sql
SELECT "leading_lady" FROM "1936" WHERE "title"='the lonely trail';
## Task Generate a SQL query to answer the following question: `Who is the leading lady in The Lonely Trail?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the leading lady in The Lonely Trail?`: ```sql
SELECT "leading_lady" FROM "1936" WHERE "studio"='uni' AND "director"='frank strayer';
## Task Generate a SQL query to answer the following question: `Who was the leading lady for Uni studio and Frank Strayer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the leading lady for Uni studio and Frank Strayer?`: ```sql
SELECT "title" FROM "1936" WHERE "leading_lady"='ann rutherford' AND "director"='joseph kane';
## Task Generate a SQL query to answer the following question: `In which title was Ann Rutherford the leading lady for Joseph Kane?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `In which title was Ann Rutherford the leading lady for Joseph Kane?`: ```sql
SELECT "leading_lady" FROM "1936" WHERE "director"='joseph kane' AND "title"='the lonely trail';
## Task Generate a SQL query to answer the following question: `Who is the leading lady in The Lonely Trail for Joseph Kane?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1936" ( "title" text, "studio" text, "role" text, "leading_lady" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the leading lady in The Lonely Trail for Joseph Kane?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "year"<1960 AND "points"<8;
## Task Generate a SQL query to answer the following question: `What was the Chassis with less than 8 points before 1960?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the Chassis with less than 8 points before 1960?`: ```sql
SELECT "chassis" FROM "complete_formula_one_world_championship_" WHERE "points"=0;
## Task Generate a SQL query to answer the following question: `Which Chassis has 0 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Which Chassis has 0 points?`: ```sql
SELECT SUM("points") FROM "complete_formula_one_world_championship_" WHERE "year">1957;
## Task Generate a SQL query to answer the following question: `What were the total Pints after 1957?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What were the total Pints after 1957?`: ```sql
SELECT MAX("year") FROM "complete_formula_one_world_championship_" WHERE "entrant"='dean van lines';
## Task Generate a SQL query to answer the following question: `What was the most recent year for Dean Van Lines?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_world_championship_" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the most recent year for Dean Van Lines?`: ```sql
SELECT "gold_coast" FROM "2012" WHERE "auckland"='cancelled' AND "adelaide"='yes';
## Task Generate a SQL query to answer the following question: `What Gold Coast has Auckland cancelled, and Adelaide yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `What Gold Coast has Auckland cancelled, and Adelaide yes?`: ```sql
SELECT "sydney" FROM "2012" WHERE "auckland"='cancelled' AND "perth"='yes';
## Task Generate a SQL query to answer the following question: `Which Sydney has Auckland cancelled and Perth yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Sydney has Auckland cancelled and Perth yes?`: ```sql
SELECT "sydney" FROM "2012" WHERE "gold_coast"='no' AND "adelaide"='no' AND "auckland"='no';
## Task Generate a SQL query to answer the following question: `Which Sydney has Gold Coast no, Adelaide no< and Auckland no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Sydney has Gold Coast no, Adelaide no< and Auckland no?`: ```sql
SELECT "gold_coast" FROM "2012" WHERE "melbourne"='yes' AND "auckland"='yes';
## Task Generate a SQL query to answer the following question: `Which Gold Coast has Melbourne yes, and Auckland yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Gold Coast has Melbourne yes, and Auckland yes?`: ```sql
SELECT "perth" FROM "2012" WHERE "auckland"='yes' AND "gold_coast"='yes';
## Task Generate a SQL query to answer the following question: `Which Perth has Auckland yes and Gold Coast yes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Perth has Auckland yes and Gold Coast yes?`: ```sql
SELECT "gold_coast" FROM "2012" WHERE "auckland"='no' AND "adelaide"='yes' AND "melbourne"='no';
## Task Generate a SQL query to answer the following question: `Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2012" ( "auckland" text, "gold_coast" text, "sydney" text, "melbourne" text, "adelaide" text, "perth" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Gold Coast has Auckland no, Adelaide yes, and Melbourne no?`: ```sql
SELECT "round" FROM "league_cup" WHERE "date"='7 january 2003';
## Task Generate a SQL query to answer the following question: `What round was on 7 January 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What round was on 7 January 2003?`: ```sql
SELECT "result_f_a" FROM "league_cup" WHERE "date"='17 december 2002';
## Task Generate a SQL query to answer the following question: `What is the result F_A on 17 December 2002?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the result F_A on 17 December 2002?`: ```sql
SELECT "attendance" FROM "league_cup" WHERE "date"='7 january 2003';
## Task Generate a SQL query to answer the following question: `What attendance was on 7 January 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "league_cup" ( "date" text, "round" text, "opponents" text, "result_f_a" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What attendance was on 7 January 2003?`: ```sql
SELECT "recording" FROM "awards_and_nominations" WHERE "year"='2012';
## Task Generate a SQL query to answer the following question: `Name the recording for 2012` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the recording for 2012`: ```sql
SELECT "year" FROM "awards_and_nominations" WHERE "category"='best female pop vocal album' AND "result"='won';
## Task Generate a SQL query to answer the following question: `Name the year with the best female pop vocal album and result of won` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year with the best female pop vocal album and result of won`: ```sql
SELECT "category" FROM "awards_and_nominations" WHERE "year"='2013';
## Task Generate a SQL query to answer the following question: `Name the category for 2013` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_nominations" ( "year" text, "category" text, "genre" text, "recording" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the category for 2013`: ```sql
SELECT MIN("gold") FROM "medal_table" WHERE "silver"<0;
## Task Generate a SQL query to answer the following question: `Which was the lowest gold when silver was smaller than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which was the lowest gold when silver was smaller than 0?`: ```sql
SELECT MAX("total") FROM "medal_table" WHERE "rank"=6 AND "bronze"=2 AND "gold">0;
## Task Generate a SQL query to answer the following question: `Which is the highest total at rank 6, bronze 2, and gold larger than 0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the highest total at rank 6, bronze 2, and gold larger than 0?`: ```sql
SELECT MAX("bronze") FROM "medal_table" WHERE "rank">5 AND "nation"='chinese taipei' AND "total"<1;
## Task Generate a SQL query to answer the following question: `Which is the highest bronze at Chinese Taipei when the rank was higher than 5 and total was smaller than 1?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" real, "nation" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which is the highest bronze at Chinese Taipei when the rank was higher than 5 and total was smaller than 1?`: ```sql
SELECT "u_s_dance" FROM "singles" WHERE "year">1985;
## Task Generate a SQL query to answer the following question: `Name the US dance when the year is more than 1985` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the US dance when the year is more than 1985`: ```sql
SELECT "u_s_hot_100" FROM "singles" WHERE "album"='i like you';
## Task Generate a SQL query to answer the following question: `Name the US Hot 100 for album of I like you` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the US Hot 100 for album of I like you`: ```sql
SELECT "u_s_r_b" FROM "singles" WHERE "year"=1981;
## Task Generate a SQL query to answer the following question: `Name the US R&B for 1981` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles" ( "year" real, "single" text, "u_s_hot_100" text, "u_s_dance" text, "u_s_r_b" text, "album" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the US R&B for 1981`: ```sql
SELECT "writer_s" FROM "2008_i" WHERE "recipient"='parkville pictures ltd';
## Task Generate a SQL query to answer the following question: `Who was the writer when Parkville Pictures Ltd was the recipient?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer when Parkville Pictures Ltd was the recipient?`: ```sql
SELECT "director_s" FROM "2008_i" WHERE "writer_s"='alex winckler';
## Task Generate a SQL query to answer the following question: `Alex Winckler wrote the film, who was the director?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Alex Winckler wrote the film, who was the director?`: ```sql
SELECT "date" FROM "2008_i" WHERE "writer_s"='edward jeffreys';
## Task Generate a SQL query to answer the following question: `On what date was Edward Jeffreys the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `On what date was Edward Jeffreys the writer?`: ```sql
SELECT "date" FROM "2008_i" WHERE "award"='Β£6,600';
## Task Generate a SQL query to answer the following question: `What date was the award of Β£6,600 was given?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `What date was the award of Β£6,600 was given?`: ```sql
SELECT "director_s" FROM "2008_i" WHERE "recipient"='redbag pictures ltd';
## Task Generate a SQL query to answer the following question: `Who was the director that had a recipient of Redbag Pictures Ltd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the director that had a recipient of Redbag Pictures Ltd?`: ```sql
SELECT "award" FROM "2008_i" WHERE "writer_s"='edward jeffreys';
## Task Generate a SQL query to answer the following question: `What's the name of the award that Edward Jeffreys was the writer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2008_i" ( "director_s" text, "writer_s" text, "recipient" text, "date" text, "award" text ); ### SQL Given the database schema, here is the SQL query that answers `What's the name of the award that Edward Jeffreys was the writer?`: ```sql
SELECT "player" FROM "fiba_euro_basket_2007_squads" WHERE "year_born"=1981;
## Task Generate a SQL query to answer the following question: `Who is the Player born in 1981?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the Player born in 1981?`: ```sql
SELECT COUNT("height") FROM "fiba_euro_basket_2007_squads" WHERE "year_born"<1977;
## Task Generate a SQL query to answer the following question: `What is the Height that has a year born before 1977` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fiba_euro_basket_2007_squads" ( "player" text, "height" real, "position" text, "year_born" real, "current_club" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Height that has a year born before 1977`: ```sql
SELECT MIN("total_region") FROM "population" WHERE "year">2001 AND "broadsound">'6,843';
## Task Generate a SQL query to answer the following question: `What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest Total Region that has a Year after 2001, and a Broadsound greater than 6,843?`: ```sql
SELECT MAX("total_region") FROM "population" WHERE "broadsound">'1,590' AND "year">1966 AND "belyando">'11,362' AND "nebo"=914;
## Task Generate a SQL query to answer the following question: `What is the highest Total Region that has a Broadsound greater than 1,590, a Year after 1966, a Belyando greater than 11,362, and a Nebo of 914?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest Total Region that has a Broadsound greater than 1,590, a Year after 1966, a Belyando greater than 11,362, and a Nebo of 914?`: ```sql
SELECT SUM("total_region") FROM "population" WHERE "year"=1954 AND "nebo">447;
## Task Generate a SQL query to answer the following question: `What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447?`: ```sql
SELECT SUM("broadsound") FROM "population" WHERE "belyando">'11,362' AND "total_region"='5,016' AND "year"<1947;
## Task Generate a SQL query to answer the following question: `Before the Year 1947, what is the sum of Broadsound that have a Belyando greater than 11,362, and a Total Region equal to 5,016?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); ### SQL Given the database schema, here is the SQL query that answers `Before the Year 1947, what is the sum of Broadsound that have a Belyando greater than 11,362, and a Total Region equal to 5,016?`: ```sql
SELECT SUM("belyando") FROM "population" WHERE "nebo">'2,522' AND "year">2001;
## Task Generate a SQL query to answer the following question: `After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "population" ( "year" real, "total_region" real, "belyando" real, "broadsound" real, "nebo" real ); ### SQL Given the database schema, here is the SQL query that answers `After 2001, what is the sum of Belyando that have a Nebo greater than 2,522?`: ```sql
SELECT COUNT("bronze") FROM "medal_table" WHERE "gold"<2 AND "nation"='uganda' AND "total">2;
## Task Generate a SQL query to answer the following question: `What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?` ### 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 is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "nation"='canada' AND "silver"<7;
## Task Generate a SQL query to answer the following question: `With less than 7 Silver medals, how many Gold medals did Canada receive?` ### 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 `With less than 7 Silver medals, how many Gold medals did Canada receive?`: ```sql
SELECT "outcome" FROM "singles_2_3" WHERE "score"='6–1, 6–4';
## Task Generate a SQL query to answer the following question: `What is the outcome of a score that is 6–1, 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_2_3" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the outcome of a score that is 6–1, 6–4?`: ```sql
SELECT "surface" FROM "singles_2_3" WHERE "score"='7–6 (7–3) , 6–3';
## Task Generate a SQL query to answer the following question: `What is the surface of the score, 7–6 (7–3) , 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_2_3" ( "outcome" text, "date" text, "surface" text, "opponent" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the surface of the score, 7–6 (7–3) , 6–3?`: ```sql
SELECT "venue" FROM "achievements" WHERE "year"<2008 AND "position"='14th (q)';
## Task Generate a SQL query to answer the following question: `What venue did he play in before 2008 and finished 14th (q)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue did he play in before 2008 and finished 14th (q)?`: ```sql
SELECT "competition" FROM "achievements" WHERE "year"<2007 AND "venue"='gothenburg, sweden';
## Task Generate a SQL query to answer the following question: `What competition did he compete in before 2007 in gothenburg, sweden?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What competition did he compete in before 2007 in gothenburg, sweden?`: ```sql
SELECT "venue" FROM "achievements" WHERE "position"='7th';
## Task Generate a SQL query to answer the following question: `What venue did he finish 7th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "achievements" ( "year" real, "competition" text, "venue" text, "position" text, "notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What venue did he finish 7th?`: ```sql
SELECT MAX("performances") FROM "theatre" WHERE "role"='geoffrey fitton';
## Task Generate a SQL query to answer the following question: `Name the most performances for geoffrey fitton` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most performances for geoffrey fitton`: ```sql
SELECT "role" FROM "theatre" WHERE "closing_date"='feb 4, 1961';
## Task Generate a SQL query to answer the following question: `Name the role for Feb 4, 1961 closing date` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the role for Feb 4, 1961 closing date`: ```sql
SELECT "theatre" FROM "theatre" WHERE "performances">49 AND "role"='aaron jablonski schuyler grogan';
## Task Generate a SQL query to answer the following question: `Name the theatre for aaron jablonski schuyler grogan with performances more than 49` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "theatre" ( "opening_date" text, "closing_date" text, "performances" real, "role" text, "theatre" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the theatre for aaron jablonski schuyler grogan with performances more than 49`: ```sql
SELECT "title" FROM "list_of_gossip_girl_episodes" WHERE "no_in_series"<4;
## Task Generate a SQL query to answer the following question: `What are the titles for episodes prior to episode 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the titles for episodes prior to episode 4?`: ```sql
SELECT "title" FROM "list_of_gossip_girl_episodes" WHERE "no_in_series"<4;
## Task Generate a SQL query to answer the following question: `What are the titles for episodes prior to episode 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the titles for episodes prior to episode 4?`: ```sql
SELECT "original_air_date" FROM "list_of_gossip_girl_episodes" WHERE "no_in_series">3;
## Task Generate a SQL query to answer the following question: `What the air dates for the episodes are episode 3 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_gossip_girl_episodes" ( "no_in_series" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text ); ### SQL Given the database schema, here is the SQL query that answers `What the air dates for the episodes are episode 3 in the series?`: ```sql
SELECT MAX("laps") FROM "indy_500_results" WHERE "qual"='165.229';
## Task Generate a SQL query to answer the following question: `How many laps resulted from a Qual of 165.229?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `How many laps resulted from a Qual of 165.229?`: ```sql
SELECT "qual" FROM "indy_500_results" WHERE "start"='15';
## Task Generate a SQL query to answer the following question: `Whent he start was 15, what was the Qual?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `Whent he start was 15, what was the Qual?`: ```sql
SELECT "start" FROM "indy_500_results" WHERE "rank"='7' AND "laps">100;
## Task Generate a SQL query to answer the following question: `What was the start result with a Rank of 7 and more than 100 laps?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indy_500_results" ( "year" text, "start" text, "qual" text, "rank" text, "finish" text, "laps" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the start result with a Rank of 7 and more than 100 laps?`: ```sql
SELECT "shirt_sponsor" FROM "personnel_and_kits" WHERE "team"='blackburn rovers';
## Task Generate a SQL query to answer the following question: `Who was the shirt sponsor for the Blackburn Rovers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the shirt sponsor for the Blackburn Rovers?`: ```sql
SELECT "captain" FROM "personnel_and_kits" WHERE "team"='bolton wanderers';
## Task Generate a SQL query to answer the following question: `Who was the team captain of the Bolton Wanderers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the team captain of the Bolton Wanderers?`: ```sql
SELECT "team" FROM "personnel_and_kits" WHERE "kit_manufacturer"='adidas' AND "shirt_sponsor"='tdk';
## Task Generate a SQL query to answer the following question: `For which team did Adidas manufacture kits and TDK sponsor shirts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `For which team did Adidas manufacture kits and TDK sponsor shirts?`: ```sql
SELECT "team" FROM "personnel_and_kits" WHERE "captain"='robbie earle';
## Task Generate a SQL query to answer the following question: `On which team was Robbie Earle the captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `On which team was Robbie Earle the captain?`: ```sql
SELECT "manager_1" FROM "personnel_and_kits" WHERE "captain"='neil redfearn';
## Task Generate a SQL query to answer the following question: `Who was the manager for the team with captain Neil Redfearn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the manager for the team with captain Neil Redfearn?`: ```sql
SELECT "captain" FROM "personnel_and_kits" WHERE "team"='crystal palace';
## Task Generate a SQL query to answer the following question: `Who was the team captain for Crystal Palace?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_kits" ( "team" text, "manager_1" text, "captain" text, "kit_manufacturer" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the team captain for Crystal Palace?`: ```sql
SELECT MIN("score") FROM "top_five_scoring_international_players_t" WHERE "drop_goals">0 AND "penalties"=52 AND "number">5;
## Task Generate a SQL query to answer the following question: `drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_scoring_international_players_t" ( "number" real, "player" text, "years_active" text, "caps" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "average_score" real, "score" real ); ### SQL Given the database schema, here is the SQL query that answers `drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score?`: ```sql
SELECT COUNT("score") FROM "top_five_scoring_international_players_t" WHERE "player"='jaco coetzee' AND "tries">6;
## Task Generate a SQL query to answer the following question: `Player of jaco coetzee, and a Tries larger than 6 had what total number of score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_five_scoring_international_players_t" ( "number" real, "player" text, "years_active" text, "caps" real, "tries" real, "conversions" real, "penalties" real, "drop_goals" real, "average_score" real, "score" real ); ### SQL Given the database schema, here is the SQL query that answers `Player of jaco coetzee, and a Tries larger than 6 had what total number of score?`: ```sql
SELECT MAX("round") FROM "june_secondary_phase" WHERE "school"='washington state university';
## Task Generate a SQL query to answer the following question: `What is the highest round that has a draftee from Washington State University?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "june_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest round that has a draftee from Washington State University?`: ```sql
SELECT MAX("round") FROM "june_secondary_phase" WHERE "name"='bob randall';
## Task Generate a SQL query to answer the following question: `What round was Bob Randall selected in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "june_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); ### SQL Given the database schema, here is the SQL query that answers `What round was Bob Randall selected in?`: ```sql
SELECT "ont" FROM "change_in_number_of_senators_over_time" WHERE "n_b"='10' AND "normal_total"='77';
## Task Generate a SQL query to answer the following question: `Name the Ont of N.B. of 10 and normal total of 77` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the Ont of N.B. of 10 and normal total of 77`: ```sql
SELECT "date_enacted" FROM "change_in_number_of_senators_over_time" WHERE "n_s"='10' AND "normal_total"='104';
## Task Generate a SQL query to answer the following question: `Name the date enacted for N.S. of 10 and normal total of 104` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date enacted for N.S. of 10 and normal total of 104`: ```sql
SELECT "n_s" FROM "change_in_number_of_senators_over_time" WHERE "normal_total"='102';
## Task Generate a SQL query to answer the following question: `Name the NS with normal total of 102` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the NS with normal total of 102`: ```sql
SELECT "normal_total" FROM "change_in_number_of_senators_over_time" WHERE "que"='24';
## Task Generate a SQL query to answer the following question: `Name the normal with que of 24` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "change_in_number_of_senators_over_time" ( "date_enacted" text, "normal_total" text, "26_total" text, "ont" text, "que" text, "n_s" text, "n_b" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the normal with que of 24`: ```sql
SELECT SUM("points") FROM "complete_world_championship_results" WHERE "entrant"='peter whitehead' AND "chassis"='alta f2';
## Task Generate a SQL query to answer the following question: `What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis?`: ```sql
SELECT "points" FROM "complete_world_championship_results" WHERE "entrant"='g a vandervell';
## Task Generate a SQL query to answer the following question: `How many points does g a vandervell have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many points does g a vandervell have?`: ```sql
SELECT SUM("points") FROM "complete_world_championship_results" WHERE "chassis"='ferrari 125' AND "year">1952;
## Task Generate a SQL query to answer the following question: `How many total points were earned with ferrari 125 Chassis after 1952?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `How many total points were earned with ferrari 125 Chassis after 1952?`: ```sql
SELECT SUM("points") FROM "complete_world_championship_results" WHERE "entrant"='peter whitehead' AND "chassis"='ferrari 125';
## Task Generate a SQL query to answer the following question: `What is the total number of Points that Peter Whitehead earned in a Ferrari 125?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_world_championship_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of Points that Peter Whitehead earned in a Ferrari 125?`: ```sql
SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_40"='r 16';
## Task Generate a SQL query to answer the following question: `Name the D 44 when it has a D 40√ of r 16` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 44 when it has a D 40√ of r 16`: ```sql
SELECT "d_41" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_43_o"='r 13';
## Task Generate a SQL query to answer the following question: `Name the D 41 √ for having D 43 of r 13` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 41 √ for having D 43 of r 13`: ```sql
SELECT "d_45" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42_o"='r 14';
## Task Generate a SQL query to answer the following question: `Name the D 45+ which has D 42 of r 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 45+ which has D 42 of r 14`: ```sql
SELECT "d_44" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_42_o"='d 33';
## Task Generate a SQL query to answer the following question: `Name the D 44 which has D 42 O of d 33` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 44 which has D 42 O of d 33`: ```sql
SELECT "d_46" FROM "senate_composition_as_a_result_of_the_el" WHERE "d_44"='r 25';
## Task Generate a SQL query to answer the following question: `Name the D 46 which has D 44 of r 25` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "senate_composition_as_a_result_of_the_el" ( "d_47" text, "d_46" text, "d_45" text, "d_44" text, "d_43_o" text, "d_42_o" text, "d_41" text, "d_40" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the D 46 which has D 44 of r 25`: ```sql
SELECT COUNT("rank") FROM "incoming_transfers" WHERE "transfer_fee_million">13 AND "year">2008;
## Task Generate a SQL query to answer the following question: `What was the rank of a transfer fee larger than 13 million, and after 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "incoming_transfers" ( "rank" real, "player" text, "from" text, "transfer_fee_million" real, "year" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the rank of a transfer fee larger than 13 million, and after 2008?`: ```sql
SELECT "president" FROM "ukraine_1991_present" WHERE "elected"=2010;
## Task Generate a SQL query to answer the following question: `What president was elected in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ukraine_1991_present" ( "president" text, "elected" real, "took_office" text, "left_office" text, "party" text ); ### SQL Given the database schema, here is the SQL query that answers `What president was elected in 2010?`: ```sql
SELECT AVG("pct_2006") FROM "community_council" WHERE "seats_2001">15 AND "pct_2001">100;
## Task Generate a SQL query to answer the following question: `When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "community_council" ( "parties_and_voter_communities" text, "pct_2006" real, "seats_2006" real, "pct_2001" real, "seats_2001" real ); ### SQL Given the database schema, here is the SQL query that answers `When seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006?`: ```sql