output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03007';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with a production code of ip03007?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with a production code of ip03007?`: ```sql
SELECT "title" FROM "table1_29273182_1" WHERE "no_in_series"=29;
## Task Generate a SQL query to answer the following question: `What is the name of episode number 29 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of episode number 29 in the series?`: ```sql
SELECT "written_by" FROM "table1_29273182_1" WHERE "production_code"='IP03012';
## Task Generate a SQL query to answer the following question: `Who wrote the episode with ip03012 as the production code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode with ip03012 as the production code?`: ```sql
SELECT "directed_by" FROM "table1_29273182_1" WHERE "production_code"='IP03010';
## Task Generate a SQL query to answer the following question: `Who directed the episode with production code ip03010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273182_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode with production code ip03010?`: ```sql
SELECT MIN("no_in_season") FROM "table1_29273390_1";
## Task Generate a SQL query to answer the following question: `What is the least amount in each season? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273390_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least amount in each season? `: ```sql
SELECT MIN("no_in_season") FROM "table1_29273390_1";
## Task Generate a SQL query to answer the following question: `What is the least number in a season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273390_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the least number in a season?`: ```sql
SELECT "directed_by" FROM "table1_29273390_1" WHERE "u_s_viewers_million"='1.19';
## Task Generate a SQL query to answer the following question: `Who directed an episode with 1.19 million? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273390_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed an episode with 1.19 million? `: ```sql
SELECT "location" FROM "race_calendar_and_results" WHERE "date"='March 17';
## Task Generate a SQL query to answer the following question: `At what location was the March 17 race held?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `At what location was the March 17 race held?`: ```sql
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Zach Veach';
## Task Generate a SQL query to answer the following question: `What location did Zach Veach have the fastest lap?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `What location did Zach Veach have the fastest lap?`: ```sql
SELECT "location" FROM "race_calendar_and_results" WHERE "fastest_lap"='Luke Ellery' AND "winning_driver"='Wayne Boyd';
## Task Generate a SQL query to answer the following question: `Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "rnd" real, "circuit" text, "location" text, "date" text, "pole_position" text, "fastest_lap" text, "most_laps_led" text, "winning_driver" text, "winning_team" text, "supporting" text ); ### SQL Given the database schema, here is the SQL query that answers `Where was the race with Luke Ellery as fastest lap and Wayne Boyd as winning driver?`: ```sql
SELECT "area_km" FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "population_2010"=318676;
## Task Generate a SQL query to answer the following question: `When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29289372_1" ( "city_municipality" text, "population_2010" real, "area_km" text, "pop_density_per_km" text, "income_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When 318676 is the population of 2010 and 1st class is the income classification what is the area in kilometers squared?`: ```sql
SELECT COUNT("population_2010") FROM "table1_29289372_1" WHERE "income_classification"='1st Class' AND "city_municipality"='Itogon, Benguet';
## Task Generate a SQL query to answer the following question: `When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29289372_1" ( "city_municipality" text, "population_2010" real, "area_km" text, "pop_density_per_km" text, "income_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When itogon, benguet is the city/municipality and 1st class is the income classification how many measurements of population in 2010?`: ```sql
SELECT "pop_density_per_km" FROM "table1_29289372_1" WHERE "area_km"='82.74';
## Task Generate a SQL query to answer the following question: `When 82.74 is the area in kilometers squared what is the pop.density (per km2)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29289372_1" ( "city_municipality" text, "population_2010" real, "area_km" text, "pop_density_per_km" text, "income_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When 82.74 is the area in kilometers squared what is the pop.density (per km2)?`: ```sql
SELECT "city_municipality" FROM "table1_29289372_1" WHERE "area_km"='106';
## Task Generate a SQL query to answer the following question: `When 106 is the area in kilometers squared what is the city/municipality?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29289372_1" ( "city_municipality" text, "population_2010" real, "area_km" text, "pop_density_per_km" text, "income_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `When 106 is the area in kilometers squared what is the city/municipality?`: ```sql
SELECT COUNT("title") FROM "table1_29273243_1" WHERE "production_code"='IP04004';
## Task Generate a SQL query to answer the following question: `How many episodes have the production code ip04004?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273243_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many episodes have the production code ip04004?`: ```sql
SELECT MIN("no_in_season") FROM "table1_29273243_1" WHERE "title"='\"The Gang Cracks the Liberty Bell\"';
## Task Generate a SQL query to answer the following question: `What season number is the episode "The Gang Cracks The Liberty Bell"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273243_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What season number is the episode "The Gang Cracks The Liberty Bell"?`: ```sql
SELECT COUNT("written_by") FROM "table1_29273243_1" WHERE "title"='\"Paddy''s Pub: The Worst Bar in Philadelphia\"';
## Task Generate a SQL query to answer the following question: `How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273243_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many people wrote "Paddy's Pub: The Worst Bar in Philadelphia"?`: ```sql
SELECT "written_by" FROM "table1_29273243_1" WHERE "no_in_season"=11;
## Task Generate a SQL query to answer the following question: `Who wrote episode number 11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273243_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote episode number 11?`: ```sql
SELECT "written_by" FROM "table1_29273243_1" WHERE "title"='\"The Gang Gets Extreme: Home Makeover Edition\"';
## Task Generate a SQL query to answer the following question: `Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29273243_1" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode "The Gang Gets Extreme: Home Makeover Edition"?`: ```sql
SELECT "challenger" FROM "results" WHERE "iron_chef"='Guillaume Brahimi';
## Task Generate a SQL query to answer the following question: `Who was the challenger when guillaume brahimi was the iron chef?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "episode" real, "airdate" text, "iron_chef" text, "challenger" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the challenger when guillaume brahimi was the iron chef?`: ```sql
SELECT "iron_chef" FROM "results" WHERE "challenger"='Herb Faust';
## Task Generate a SQL query to answer the following question: `Who was the iron chef when herb Faust was the challenger?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "episode" real, "airdate" text, "iron_chef" text, "challenger" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the iron chef when herb Faust was the challenger?`: ```sql
SELECT "airdate" FROM "results" WHERE "winner"='Guy Grossi';
## Task Generate a SQL query to answer the following question: `What date did the episode air when guy grossi won?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "episode" real, "airdate" text, "iron_chef" text, "challenger" text, "theme_ingredient" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `What date did the episode air when guy grossi won?`: ```sql
SELECT "revival_cast_2010" FROM "characters" WHERE "new_zealand_cast_2012"='Morgan Albrecht';
## Task Generate a SQL query to answer the following question: `In the 2010 revival, who played the character that was played by Morgan Albrecht in the New Zealand 2012 production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `In the 2010 revival, who played the character that was played by Morgan Albrecht in the New Zealand 2012 production?`: ```sql
SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Owen Little';
## Task Generate a SQL query to answer the following question: `In the 2012 production in Wales, who played the character that Owen Little played in Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `In the 2012 production in Wales, who played the character that Owen Little played in Australia?`: ```sql
SELECT "australian_cast_2012" FROM "characters" WHERE "character"='Lily Cahill';
## Task Generate a SQL query to answer the following question: `Who played Lily Cahill in the Australian 2012 production?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played Lily Cahill in the Australian 2012 production?`: ```sql
SELECT "wales_cast_2012" FROM "characters" WHERE "australian_cast_2012"='Clementine Mills';
## Task Generate a SQL query to answer the following question: `In the 2012 Wales production, who played the character that Clementine Mills played in Australia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `In the 2012 Wales production, who played the character that Clementine Mills played in Australia?`: ```sql
SELECT "original_cast_2009" FROM "characters" WHERE "revival_cast_2010"='Edward Franklin';
## Task Generate a SQL query to answer the following question: `In the original cast, who played the character portrayed by Edward Franklin in the revival?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `In the original cast, who played the character portrayed by Edward Franklin in the revival?`: ```sql
SELECT "original_cast_2009" FROM "characters" WHERE "wales_cast_2012"='Christopher Harris';
## Task Generate a SQL query to answer the following question: `In the original cast, who played the character portrayed by Christopher Harris in Wales?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "characters" ( "character" text, "original_cast_2009" text, "revival_cast_2010" text, "wales_cast_2012" text, "new_zealand_cast_2012" text, "australian_cast_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `In the original cast, who played the character portrayed by Christopher Harris in Wales?`: ```sql
SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Nick Saviano Florin Segărceanu 6–3, 6–4';
## Task Generate a SQL query to answer the following question: `which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `which tournament was the champion nick saviano florin segărceanu 6–3, 6–4?`: ```sql
SELECT "tournament" FROM "table1_29296103_10" WHERE "runner_up"='Paul Annacone Eric Korita';
## Task Generate a SQL query to answer the following question: `Which tournament was runner-up paul annacone eric korita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament was runner-up paul annacone eric korita?`: ```sql
SELECT "semifinalists" FROM "table1_29296103_10" WHERE "runner_up"='Sammy Giammalva';
## Task Generate a SQL query to answer the following question: `Who were the semifinalists when sammy giammalva was runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the semifinalists when sammy giammalva was runner-up?`: ```sql
SELECT "tournament" FROM "table1_29296103_10" WHERE "champion"='Pat Cash 4–6, 6–4, 6–3';
## Task Generate a SQL query to answer the following question: `which tournament was the champion pat cash 4–6, 6–4, 6–3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `which tournament was the champion pat cash 4–6, 6–4, 6–3?`: ```sql
SELECT "tournament" FROM "table1_29296103_10" WHERE "week_of"='24 October' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';
## Task Generate a SQL query to answer the following question: `Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tournament was on the week of 24 october and champion is matt doyle 1–6, 6–1, 6–2?`: ```sql
SELECT COUNT("runner_up") FROM "table1_29296103_10" WHERE "tournament"='Cologne , Germany Carpet – $75,000 – S32/D16' AND "champion"='Matt Doyle 1–6, 6–1, 6–2';
## Task Generate a SQL query to answer the following question: `How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29296103_10" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `How many runner ups were there for the cologne , germany carpet – $75,000 – s32/d16 when the champion was matt doyle 1–6, 6–1, 6–2?`: ```sql
SELECT "train_number" FROM "pune_lonavala_service" WHERE "departure_pune"='13:00';
## Task Generate a SQL query to answer the following question: `which train number departs pune at 13:00` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `which train number departs pune at 13:00`: ```sql
SELECT "train_number" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';
## Task Generate a SQL query to answer the following question: `which train number arrives in lonavla at 17:45` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `which train number arrives in lonavla at 17:45`: ```sql
SELECT "train_name" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='17:45';
## Task Generate a SQL query to answer the following question: `which train name arrives in lonavla at 17:45` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `which train name arrives in lonavla at 17:45`: ```sql
SELECT COUNT("train_number") FROM "pune_lonavala_service" WHERE "frequency"='Daily' AND "arrival_lonavla"='12:25';
## Task Generate a SQL query to answer the following question: `how many trains run daily to lonavla and arrive at 12:25` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `how many trains run daily to lonavla and arrive at 12:25`: ```sql
SELECT COUNT("train_name") FROM "pune_lonavala_service" WHERE "train_number"=99808;
## Task Generate a SQL query to answer the following question: `how many trains have the number 99808` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `how many trains have the number 99808`: ```sql
SELECT "departure_pune" FROM "pune_lonavala_service" WHERE "arrival_lonavla"='22:22';
## Task Generate a SQL query to answer the following question: `what time does the train that arrives in lonavla at 22:22 depart pune` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "pune_lonavala_service" ( "train_number" real, "train_name" text, "departure_pune" text, "arrival_lonavla" text, "frequency" text, "origin" text ); ### SQL Given the database schema, here is the SQL query that answers `what time does the train that arrives in lonavla at 22:22 depart pune`: ```sql
SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Marty Davis';
## Task Generate a SQL query to answer the following question: `Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29295463_9" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who became the champion for the 1984 Grand Prix where Marty Davis was the runner-up?`: ```sql
SELECT "quarterfinalists" FROM "table1_29295463_9" WHERE "champion"='Terry Moor 3-6, 7-6, 6-2';
## Task Generate a SQL query to answer the following question: `Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29295463_9" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the quarter-finalists in the event where the champion was Terry Moor 3-6, 7-6, 6-2?`: ```sql
SELECT "champion" FROM "table1_29295463_9" WHERE "runner_up"='Scott Davis Chris Dunk';
## Task Generate a SQL query to answer the following question: `Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29295463_9" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the champion in the tournament where Scott Davis Chris Dunk was the runner up?`: ```sql
SELECT "semifinalists" FROM "table1_29295463_9" WHERE "champion"='Mats Wilander 7-6, 6-3';
## Task Generate a SQL query to answer the following question: `Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29295463_9" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the semifinalists in the tournament where Mats Wilander 7-6, 6-3 was declared the champion?`: ```sql
SELECT COUNT("year") FROM "1850s" WHERE "number_of_hurricanes"=3 AND "strongest_storm"='Three';
## Task Generate a SQL query to answer the following question: `How many years saw 3 hurricanes wherein the strongest storm was level three?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1850s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years saw 3 hurricanes wherein the strongest storm was level three?`: ```sql
SELECT MAX("number_of_major_hurricanes") FROM "1860s";
## Task Generate a SQL query to answer the following question: `What is the largest overall number of major hurricanes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1860s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest overall number of major hurricanes?`: ```sql
SELECT COUNT("number_of_major_hurricanes") FROM "1860s" WHERE "deaths"='None';
## Task Generate a SQL query to answer the following question: `When the death is none what is the number of major hurricanes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1860s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `When the death is none what is the number of major hurricanes?`: ```sql
SELECT MIN("number_of_hurricanes") FROM "1860s";
## Task Generate a SQL query to answer the following question: `What is the lowest overall number of hurricanes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1860s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest overall number of hurricanes?`: ```sql
SELECT "country" FROM "table1_29302711_13" WHERE "prize_money_usd"=66400;
## Task Generate a SQL query to answer the following question: `What country offered a prize of 66400 US dollars?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302711_13" ( "rk" real, "name" text, "country" text, "matches_played" real, "matches_won" real, "points" real, "prize_money_usd" real ); ### SQL Given the database schema, here is the SQL query that answers `What country offered a prize of 66400 US dollars?`: ```sql
SELECT "country" FROM "table1_29302711_13" WHERE "name"='Mark Cox';
## Task Generate a SQL query to answer the following question: `What country does the player named Mark Cox play for?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302711_13" ( "rk" real, "name" text, "country" text, "matches_played" real, "matches_won" real, "points" real, "prize_money_usd" real ); ### SQL Given the database schema, here is the SQL query that answers `What country does the player named Mark Cox play for?`: ```sql
SELECT COUNT("deaths") FROM "1870s" WHERE "number_of_hurricanes"=6;
## Task Generate a SQL query to answer the following question: `How many deaths did the eyar with exactly 6 hurricanes have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1870s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `How many deaths did the eyar with exactly 6 hurricanes have?`: ```sql
SELECT MAX("number_of_tropical_storms") FROM "1870s" WHERE "deaths"='34';
## Task Generate a SQL query to answer the following question: `What is the maximum number of tropical storms in the year that had exactly 34 deaths?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1870s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of tropical storms in the year that had exactly 34 deaths?`: ```sql
SELECT "deaths" FROM "1870s" WHERE "number_of_hurricanes"=10 AND "number_of_major_hurricanes"=1;
## Task Generate a SQL query to answer the following question: `How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1870s" ( "year" real, "number_of_tropical_storms" real, "number_of_hurricanes" real, "number_of_major_hurricanes" real, "deaths" text, "strongest_storm" text ); ### SQL Given the database schema, here is the SQL query that answers `How many deaths did the year with 10 hurricanes and exactly 1 major hurricane have?`: ```sql
SELECT COUNT("no") FROM "table1_29329432_1" WHERE "written_by"='Jim Barnes' AND "u_s_viewers_million"='1.82';
## Task Generate a SQL query to answer the following question: `Name the number of episodes that jim barnes wrote for 1.82 million viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29329432_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of episodes that jim barnes wrote for 1.82 million viewers`: ```sql
SELECT MIN("no") FROM "table1_29329432_1" WHERE "production_code"='3X6266';
## Task Generate a SQL query to answer the following question: `Name the least number for production code 3x6266` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29329432_1" ( "no" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least number for production code 3x6266`: ```sql
SELECT COUNT("status") FROM "cube_film_series" WHERE "played_by"='Maurice Dean Wint';
## Task Generate a SQL query to answer the following question: `How many characters does Maurice Dean Wint play in the movie Cube?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cube_film_series" ( "name" text, "occupation" text, "gender" text, "prison_connection" text, "played_by" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many characters does Maurice Dean Wint play in the movie Cube?`: ```sql
SELECT "occupation" FROM "cube_film_series" WHERE "name"='Joan Leaven';
## Task Generate a SQL query to answer the following question: `What is Joan Leaven's occupation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cube_film_series" ( "name" text, "occupation" text, "gender" text, "prison_connection" text, "played_by" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Joan Leaven's occupation?`: ```sql
SELECT "gender" FROM "cube_film_series" WHERE "name"='Quentin';
## Task Generate a SQL query to answer the following question: `What gender is Quentin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cube_film_series" ( "name" text, "occupation" text, "gender" text, "prison_connection" text, "played_by" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `What gender is Quentin?`: ```sql
SELECT "played_by" FROM "cube_film_series" WHERE "occupation"='Mathematics Student';
## Task Generate a SQL query to answer the following question: `Who played the mathematics student?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cube_film_series" ( "name" text, "occupation" text, "gender" text, "prison_connection" text, "played_by" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `Who played the mathematics student?`: ```sql
SELECT COUNT("prison_connection") FROM "cube_film_series" WHERE "name"='Joan Leaven';
## Task Generate a SQL query to answer the following question: `How many prisons is Joan Leaven connected with?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "cube_film_series" ( "name" text, "occupation" text, "gender" text, "prison_connection" text, "played_by" text, "status" text ); ### SQL Given the database schema, here is the SQL query that answers `How many prisons is Joan Leaven connected with?`: ```sql
SELECT "team_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Richie Porte';
## Task Generate a SQL query to answer the following question: `What is aggressive rider Richie Porte's team classifaction?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "young_rider_classification" text, "team_classification" text, "aggressive_rider" text ); ### SQL Given the database schema, here is the SQL query that answers `What is aggressive rider Richie Porte's team classifaction?`: ```sql
SELECT MAX("stage") FROM "classification_leadership" WHERE "aggressive_rider"='Thomas De Gendt';
## Task Generate a SQL query to answer the following question: `Thomas de Gendt performed on what stage as aggressive rider?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "young_rider_classification" text, "team_classification" text, "aggressive_rider" text ); ### SQL Given the database schema, here is the SQL query that answers `Thomas de Gendt performed on what stage as aggressive rider?`: ```sql
SELECT "young_rider_classification" FROM "classification_leadership" WHERE "aggressive_rider"='Luke Durbridge';
## Task Generate a SQL query to answer the following question: `Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "young_rider_classification" text, "team_classification" text, "aggressive_rider" text ); ### SQL Given the database schema, here is the SQL query that answers `Where Luke Durbridge is the aggressive rider who is listed as the young rider classification?`: ```sql
SELECT "general_classification" FROM "classification_leadership" WHERE "winner"='Ben Swift' AND "young_rider_classification"='Cameron Meyer';
## Task Generate a SQL query to answer the following question: `Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "young_rider_classification" text, "team_classification" text, "aggressive_rider" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is listed under the general classifcation where Ben Swift won and Cameron Meyer was listed under the young rider?`: ```sql
SELECT "sprint_classification" FROM "classification_leadership" WHERE "winner"='Francisco Ventoso';
## Task Generate a SQL query to answer the following question: `Who is the sprint classification where Francisco Ventoso wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "sprint_classification" text, "young_rider_classification" text, "team_classification" text, "aggressive_rider" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the sprint classification where Francisco Ventoso wins?`: ```sql
SELECT "week_of" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';
## Task Generate a SQL query to answer the following question: `In the week of what was the runner-up Pat Du Pré?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302781_12" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `In the week of what was the runner-up Pat Du Pré?`: ```sql
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Peter Feigl';
## Task Generate a SQL query to answer the following question: `Who were the semifinalists when the runner-up was Peter Feigl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302781_12" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the semifinalists when the runner-up was Peter Feigl?`: ```sql
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "runner_up"='Pat Du Pré';
## Task Generate a SQL query to answer the following question: `Who were the semifinalists when the runner-up was Pat Du Pré?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302781_12" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the semifinalists when the runner-up was Pat Du Pré?`: ```sql
SELECT "semifinalists" FROM "table1_29302781_12" WHERE "week_of"='13 November' AND "runner_up"='Pat Du Pré';
## Task Generate a SQL query to answer the following question: `Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302781_12" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the semifinalists in the week of 13 November when the runner-up was Pat Du Pré?`: ```sql
SELECT "quarterfinalists" FROM "table1_29302816_8" WHERE "runner_up"='Andrew Pattison';
## Task Generate a SQL query to answer the following question: `What are the quarterfinalists when the runner up is andrew pattison?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29302816_8" ( "week_of" text, "tournament" text, "champion" text, "runner_up" text, "semifinalists" text, "quarterfinalists" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the quarterfinalists when the runner up is andrew pattison?`: ```sql
SELECT "rank_2010" FROM "table1_293465_1" WHERE "country"='Indonesia';
## Task Generate a SQL query to answer the following question: `When indonesia is the country what is the rank of 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_293465_1" ( "rank_2011" real, "country" text, "production_in_2011_1_000_ton" real, "share_2011" text, "rank_2010" real, "production_in_2010_1_000_ton" real ); ### SQL Given the database schema, here is the SQL query that answers `When indonesia is the country what is the rank of 2010?`: ```sql
SELECT "country" FROM "table1_293465_1" WHERE "rank_2011"=5;
## Task Generate a SQL query to answer the following question: `When 5 is the rank of 2011 what is the country?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_293465_1" ( "rank_2011" real, "country" text, "production_in_2011_1_000_ton" real, "share_2011" text, "rank_2010" real, "production_in_2010_1_000_ton" real ); ### SQL Given the database schema, here is the SQL query that answers `When 5 is the rank of 2011 what is the country?`: ```sql
SELECT MAX("production_in_2010_1_000_ton") FROM "table1_293465_1" WHERE "country"='Sweden';
## Task Generate a SQL query to answer the following question: `When sweden is the country what is the highest production in 2010 (1,000 ton)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_293465_1" ( "rank_2011" real, "country" text, "production_in_2011_1_000_ton" real, "share_2011" text, "rank_2010" real, "production_in_2010_1_000_ton" real ); ### SQL Given the database schema, here is the SQL query that answers `When sweden is the country what is the highest production in 2010 (1,000 ton)?`: ```sql
SELECT "production_in_2011_1_000_ton" FROM "table1_293465_1" WHERE "production_in_2010_1_000_ton"=75849;
## Task Generate a SQL query to answer the following question: `When 75849 is the production in 2010 (1,000 ton) what is the production in 2011 (1,000 ton)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_293465_1" ( "rank_2011" real, "country" text, "production_in_2011_1_000_ton" real, "share_2011" text, "rank_2010" real, "production_in_2010_1_000_ton" real ); ### SQL Given the database schema, here is the SQL query that answers `When 75849 is the production in 2010 (1,000 ton) what is the production in 2011 (1,000 ton)?`: ```sql
SELECT "circuit" FROM "race_calendar_and_results" WHERE "pole_position"='Valmir Benavides';
## Task Generate a SQL query to answer the following question: `Valmir Benavides won pole position at which circuit?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Valmir Benavides won pole position at which circuit?`: ```sql
SELECT "winning_driver" FROM "race_calendar_and_results" WHERE "pole_position"='Roberval Andrade' AND "fastest_lap"='Felipe Giaffone' AND "winning_team"='RVR Corinthians Motorsport';
## Task Generate a SQL query to answer the following question: `Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "race_calendar_and_results" ( "round" real, "circuit" text, "date" text, "pole_position" text, "fastest_lap" text, "winning_driver" text, "winning_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the winner at the track where Roberval Andrade won pole, Felipe Giaffone had the fastest lap, and RVR Corinthians Motorsport was the winning team?`: ```sql
SELECT MIN("subscribers_2005_thousands") FROM "current_situation" WHERE "provider"='Vodafone';
## Task Generate a SQL query to answer the following question: `What is the fewest number of 2005 subscribers for Vodafone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_situation" ( "provider" text, "country" text, "subscribers_2005_thousands" real, "subscribers_2006_thousands" real, "growth_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the fewest number of 2005 subscribers for Vodafone?`: ```sql
SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Glo Mobile';
## Task Generate a SQL query to answer the following question: `What is the maximum number of 2006 subscribers for Glo Mobile?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_situation" ( "provider" text, "country" text, "subscribers_2005_thousands" real, "subscribers_2006_thousands" real, "growth_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of 2006 subscribers for Glo Mobile?`: ```sql
SELECT MAX("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Mobilis';
## Task Generate a SQL query to answer the following question: `What is the maximum number of 2006 subscribers for Mobilis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_situation" ( "provider" text, "country" text, "subscribers_2005_thousands" real, "subscribers_2006_thousands" real, "growth_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of 2006 subscribers for Mobilis?`: ```sql
SELECT "subscribers_2006_thousands" FROM "current_situation" WHERE "provider"='Glo Mobile';
## Task Generate a SQL query to answer the following question: `How many subscribers, in 2006, does Glo Mobile have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_situation" ( "provider" text, "country" text, "subscribers_2005_thousands" real, "subscribers_2006_thousands" real, "growth_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many subscribers, in 2006, does Glo Mobile have?`: ```sql
SELECT COUNT("subscribers_2006_thousands") FROM "current_situation" WHERE "provider"='Vodafone';
## Task Generate a SQL query to answer the following question: `How many 2006 subscribers are named Vodafone?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_situation" ( "provider" text, "country" text, "subscribers_2005_thousands" real, "subscribers_2006_thousands" real, "growth_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 2006 subscribers are named Vodafone?`: ```sql
SELECT COUNT("captain") FROM "personnel_and_sponsorship" WHERE "team"='Barcelona';
## Task Generate a SQL query to answer the following question: `Name the number of captains for barcelona` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsorship" ( "team" text, "chairman" text, "head_coach" text, "captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of captains for barcelona`: ```sql
SELECT "chairman" FROM "personnel_and_sponsorship" WHERE "captain"='Iker Casillas';
## Task Generate a SQL query to answer the following question: `Name the chairman for iker casillas` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsorship" ( "team" text, "chairman" text, "head_coach" text, "captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the chairman for iker casillas`: ```sql
SELECT "team" FROM "personnel_and_sponsorship" WHERE "head_coach"='Javier Clemente';
## Task Generate a SQL query to answer the following question: `Name the team for javier clemente` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "personnel_and_sponsorship" ( "team" text, "chairman" text, "head_coach" text, "captain" text, "kitmaker" text, "shirt_sponsor" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the team for javier clemente`: ```sql
SELECT "season_num" FROM "table1_29391888_1" WHERE "production_code"='3.89';
## Task Generate a SQL query to answer the following question: `What is the season # for the production code 3.89?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season # for the production code 3.89?`: ```sql
SELECT MAX("series_num") FROM "table1_29391888_1" WHERE "title"='\"Words\"';
## Task Generate a SQL query to answer the following question: `What is the series # for the episode titled "words"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the series # for the episode titled "words"?`: ```sql
SELECT "written_by" FROM "table1_29391888_1" WHERE "directed_by"='Kevin Inch';
## Task Generate a SQL query to answer the following question: `Who wrote the episode that was directed by Kevin Inch?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who wrote the episode that was directed by Kevin Inch?`: ```sql
SELECT "original_air_date" FROM "table1_29391888_1" WHERE "season_num"=2;
## Task Generate a SQL query to answer the following question: `What is the original air date for the season# 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the original air date for the season# 2?`: ```sql
SELECT "production_code" FROM "table1_29391888_1" WHERE "original_air_date"='May15,2000';
## Task Generate a SQL query to answer the following question: `What is the production code for the episode whose original air date was May15,2000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the production code for the episode whose original air date was May15,2000?`: ```sql
SELECT "directed_by" FROM "table1_29391888_1" WHERE "title"='\"Who Nose\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "who nose"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_29391888_1" ( "series_num" real, "season_num" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "production_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode titled "who nose"?`: ```sql
SELECT "former_school" FROM "roster" WHERE "hometown"='Detroit, MI';
## Task Generate a SQL query to answer the following question: `What is the former school of the player from Detroit, MI?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the former school of the player from Detroit, MI?`: ```sql
SELECT "hometown" FROM "roster" WHERE "name"='Jarrid Famous';
## Task Generate a SQL query to answer the following question: `What is the hometown of Jarrid Famous?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the hometown of Jarrid Famous?`: ```sql
SELECT "num" FROM "roster" WHERE "hometown"='Tampa, FL';
## Task Generate a SQL query to answer the following question: `What number is the player whose hometown is Tampa, FL?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What number is the player whose hometown is Tampa, FL?`: ```sql
SELECT "year" FROM "roster" WHERE "num"=31;
## Task Generate a SQL query to answer the following question: `What year is the player whose number is 31?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What year is the player whose number is 31?`: ```sql
SELECT "height" FROM "roster" WHERE "name"='Anthony Crater';
## Task Generate a SQL query to answer the following question: `What is the height of Anthony Crater? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the height of Anthony Crater? `: ```sql
SELECT "former_school" FROM "roster" WHERE "hometown"='North Port, FL';
## Task Generate a SQL query to answer the following question: `What is the former school of the player from North Port, FL? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "num" real, "name" text, "position" text, "height" text, "weight" real, "year" text, "former_school" text, "hometown" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the former school of the player from North Port, FL? `: ```sql
SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2008"='9.07';
## Task Generate a SQL query to answer the following question: `how many countries have remittances in 2008 of 9.07?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_recipient_countries_of_remittances_i" ( "country" text, "remittances_2008" text, "remittances_2009" text, "remittances_2010" text, "remittances_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `how many countries have remittances in 2008 of 9.07?`: ```sql
SELECT COUNT("remittances_2010") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='19.73';
## Task Generate a SQL query to answer the following question: `how many remittances in 2010 where the remittances is 19.73?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_recipient_countries_of_remittances_i" ( "country" text, "remittances_2008" text, "remittances_2009" text, "remittances_2010" text, "remittances_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `how many remittances in 2010 where the remittances is 19.73?`: ```sql
SELECT "remittances_2010" FROM "top_recipient_countries_of_remittances_i" WHERE "country"='Nigeria';
## Task Generate a SQL query to answer the following question: `how many remittances in 2010 for nigeria?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_recipient_countries_of_remittances_i" ( "country" text, "remittances_2008" text, "remittances_2009" text, "remittances_2010" text, "remittances_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `how many remittances in 2010 for nigeria?`: ```sql
SELECT COUNT("country") FROM "top_recipient_countries_of_remittances_i" WHERE "remittances_2009"='6.02';
## Task Generate a SQL query to answer the following question: `how many countiers had 2009 remittances of 6.02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_recipient_countries_of_remittances_i" ( "country" text, "remittances_2008" text, "remittances_2009" text, "remittances_2010" text, "remittances_2011" text ); ### SQL Given the database schema, here is the SQL query that answers `how many countiers had 2009 remittances of 6.02?`: ```sql