output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("pf") FROM "standings" WHERE "stolen_ends"=3;
## Task Generate a SQL query to answer the following question: `What are the number of points for associated with exactly 3 stolen ends?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "skip_club" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the number of points for associated with exactly 3 stolen ends?`: ```sql
SELECT COUNT("position") FROM "roster" WHERE "weight"=170;
## Task Generate a SQL query to answer the following question: `How many position did a player took while weighing 170?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "num" real, "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 `How many position did a player took while weighing 170?`: ```sql
SELECT "former_school" FROM "roster" WHERE "hometown"='East Brunswick, NJ';
## Task Generate a SQL query to answer the following question: `What were the former schools of the player from East Brunswick, NJ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "num" real, "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 were the former schools of the player from East Brunswick, NJ?`: ```sql
SELECT "height" FROM "roster" WHERE "position"='Forward' AND "year"='Freshman';
## Task Generate a SQL query to answer the following question: `What was the height of this Freshman with a forward position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "roster" ( "name" text, "num" real, "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 was the height of this Freshman with a forward position?`: ```sql
SELECT "start_date_of_first_term" FROM "footnotes" WHERE "date_of_birth"='1961-08-09 9 August 1961';
## Task Generate a SQL query to answer the following question: `If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "footnotes" ( "num" real, "prime_minister" text, "date_of_birth" text, "start_date_of_first_term" text, "age_at_beginning_of_first_term" text, "end_date_of_final_term" text, "total_time_in_office" text, "date_of_death" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `If the date of birth is 1961-08-09 9 august 1961, what is the start date of (first) term?`: ```sql
SELECT "end_date_of_final_term" FROM "footnotes" WHERE "prime_minister"='Palmer, Geoffrey Geoffrey Palmer';
## Task Generate a SQL query to answer the following question: `If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "footnotes" ( "num" real, "prime_minister" text, "date_of_birth" text, "start_date_of_first_term" text, "age_at_beginning_of_first_term" text, "end_date_of_final_term" text, "total_time_in_office" text, "date_of_death" text, "lifespan" text ); ### SQL Given the database schema, here is the SQL query that answers `If the prime minister is Palmer, Geoffrey Geoffrey Palmer, what is the end date of (final) term?`: ```sql
SELECT "population" FROM "table1_25200461_9" WHERE "city"='Gilroy';
## Task Generate a SQL query to answer the following question: `What is the population if the city is Gilroy?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the population if the city is Gilroy?`: ```sql
SELECT "city" FROM "table1_25200461_9" WHERE "democratic"='42.5%';
## Task Generate a SQL query to answer the following question: `If Democratic is 42.5%, what is the city?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `If Democratic is 42.5%, what is the city?`: ```sql
SELECT MIN("population") FROM "table1_25200461_9" WHERE "registered_voters"='66.8%';
## Task Generate a SQL query to answer the following question: `If the registered voters is 66.8%, what is the minimum population?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `If the registered voters is 66.8%, what is the minimum population?`: ```sql
SELECT "other" FROM "table1_25200461_9" WHERE "city"='Los Gatos';
## Task Generate a SQL query to answer the following question: `What is the other is the city is Los Gatos?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the other is the city is Los Gatos?`: ```sql
SELECT "d_r_spread" FROM "table1_25200461_9" WHERE "no_party_preference"='31.8%';
## Task Generate a SQL query to answer the following question: `What is the d-r spread if the no party preference is 31.8%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the d-r spread if the no party preference is 31.8%?`: ```sql
SELECT COUNT("population") FROM "table1_25200461_9" WHERE "city"='Santa Clara';
## Task Generate a SQL query to answer the following question: `If the city is Santa Clara, what is the population total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25200461_9" ( "city" text, "population" real, "registered_voters" text, "democratic" text, "republican" text, "d_r_spread" text, "other" text, "no_party_preference" text ); ### SQL Given the database schema, here is the SQL query that answers `If the city is Santa Clara, what is the population total number?`: ```sql
SELECT "prefecture" FROM "2013_tournament" WHERE "city_town"='Susaki';
## Task Generate a SQL query to answer the following question: `In what prefecture is Susaki located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `In what prefecture is Susaki located?`: ```sql
SELECT COUNT("year_of_previous_participation") FROM "2013_tournament" WHERE "total_number_of_participation"=1 AND "high_school_name"='Maebashi Ikuei';
## Task Generate a SQL query to answer the following question: `How many previous years did Maebashi Ikuei high school have a total number of 1 participation?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `How many previous years did Maebashi Ikuei high school have a total number of 1 participation?`: ```sql
SELECT "prefecture" FROM "2013_tournament" WHERE "high_school_name"='Nihon Bunri';
## Task Generate a SQL query to answer the following question: `In what prefecture is Nihon Bunri located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `In what prefecture is Nihon Bunri located?`: ```sql
SELECT "prefecture" FROM "2013_tournament" WHERE "city_town"='Daito';
## Task Generate a SQL query to answer the following question: `In what prefecture is Daito located?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `In what prefecture is Daito located?`: ```sql
SELECT "high_school_name" FROM "2013_tournament" WHERE "prefecture"='Kyoto';
## Task Generate a SQL query to answer the following question: `Which high school is located in Kyoto?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `Which high school is located in Kyoto?`: ```sql
SELECT "year_of_previous_participation" FROM "2013_tournament" WHERE "prefecture"='Kagoshima';
## Task Generate a SQL query to answer the following question: `What was the year of previous participation for the school in the Kagoshima prefecture?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_tournament" ( "prefecture" text, "city_town" text, "high_school_name" text, "year_of_previous_participation" text, "total_number_of_participation" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the year of previous participation for the school in the Kagoshima prefecture?`: ```sql
SELECT "january_15_16" FROM "table1_25216791_3" WHERE "march_27_29"='March 29, 2006';
## Task Generate a SQL query to answer the following question: `What was the data on January 15-16 if March 27-29 is March 29, 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25216791_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the data on January 15-16 if March 27-29 is March 29, 2006?`: ```sql
SELECT "november_3" FROM "table1_25216791_3" WHERE "january_15_16"='January 15, 2010';
## Task Generate a SQL query to answer the following question: `What was the data on November 3, if the data on January 15-16 is January 15, 2010?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25216791_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the data on November 3, if the data on January 15-16 is January 15, 2010?`: ```sql
SELECT COUNT("january_15_16") FROM "table1_25216791_3" WHERE "august_21_22"='155';
## Task Generate a SQL query to answer the following question: `How many datas were recorded on January 15-16 if August 21-22 is 155?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25216791_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many datas were recorded on January 15-16 if August 21-22 is 155?`: ```sql
SELECT "january_15_16" FROM "table1_25216791_3" WHERE "june_10_11"='June 10, 1964';
## Task Generate a SQL query to answer the following question: `What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25216791_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the data on January 15-16 if the data recorded June 10-11 is June 10, 1964?`: ```sql
SELECT COUNT("points_for") FROM "awards_and_milestones" WHERE "percentage_pct"='94.29';
## Task Generate a SQL query to answer the following question: `How many data are on points for if the percentage is 94.29?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_milestones" ( "opponent" text, "played" real, "won" real, "lost" real, "drew" real, "premiership_points" real, "points_for" real, "points_against" real, "percentage_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `How many data are on points for if the percentage is 94.29?`: ```sql
SELECT "opponent" FROM "awards_and_milestones" WHERE "points_for"=177;
## Task Generate a SQL query to answer the following question: `Who was the opponent with a points for of 177?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_milestones" ( "opponent" text, "played" real, "won" real, "lost" real, "drew" real, "premiership_points" real, "points_for" real, "points_against" real, "percentage_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the opponent with a points for of 177?`: ```sql
SELECT MIN("points_against") FROM "awards_and_milestones" WHERE "opponent"='Port Adelaide';
## Task Generate a SQL query to answer the following question: `What was the minimum points against if the opponent is Port Adelaide?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "awards_and_milestones" ( "opponent" text, "played" real, "won" real, "lost" real, "drew" real, "premiership_points" real, "points_for" real, "points_against" real, "percentage_pct" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the minimum points against if the opponent is Port Adelaide?`: ```sql
SELECT "rider" FROM "practice_times_and_leaderboard_600cc" WHERE "thurs_3_june"='20'' 27.93 110.615mph';
## Task Generate a SQL query to answer the following question: `If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `If Thursday 3 June is 20' 27.93 110.615mph, what are the names of the riders?`: ```sql
SELECT COUNT("tues_1_june") FROM "practice_times_and_leaderboard_600cc" WHERE "mon_31_may"='20'' 15.35 111.761mph';
## Task Generate a SQL query to answer the following question: `What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Tuesday 1 June total number if Monday 31 May is 20' 15.35 111.761mph?`: ```sql
SELECT "fri_4_june" FROM "practice_times_and_leaderboard_600cc" WHERE "wed_2_june"='20'' 11.98 112.071mph';
## Task Generate a SQL query to answer the following question: `What is Friday 4 June if Wednesday 2 June is 20' 11.98 112.071mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `What is Friday 4 June if Wednesday 2 June is 20' 11.98 112.071mph?`: ```sql
SELECT COUNT("rider") FROM "practice_times_and_leaderboard_600cc" WHERE "tues_1_june"='21'' 05.27 107.351mph';
## Task Generate a SQL query to answer the following question: `If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `If Tuesday 1 June is 21' 05.27 107.351mph, what is the rider total number?`: ```sql
SELECT MAX("rank") FROM "practice_times_and_leaderboard_600cc" WHERE "tues_1_june"='20'' 59.60 107.834mph';
## Task Generate a SQL query to answer the following question: `If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `If Tuesday 1 June is 20' 59.60 107.834mph, what is the rank maximum?`: ```sql
SELECT "fri_4_june" FROM "practice_times_and_leaderboard_600cc" WHERE "wed_2_june"='20'' 50.62 108.608mph';
## Task Generate a SQL query to answer the following question: `What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_and_leaderboard_600cc" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Friday 4 June if the Wednesday 2 June is 20' 50.62 108.608mph?`: ```sql
SELECT "wed_2_june" FROM "practice_times_leaderboard_superstock_tt" WHERE "thurs_3_june"='17'' 48.58 127.111mph';
## Task Generate a SQL query to answer the following question: `What is the 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_leaderboard_superstock_tt" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2 June time for the rider with time of 17' 48.58 127.111mph on 3 June?`: ```sql
SELECT COUNT("mon_31_may") FROM "practice_times_leaderboard_superstock_tt" WHERE "rank"=5;
## Task Generate a SQL query to answer the following question: `How many times are listed for 31 May for the rider ranked 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_leaderboard_superstock_tt" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times are listed for 31 May for the rider ranked 5?`: ```sql
SELECT "thurs_3_june" FROM "practice_times_leaderboard_superstock_tt" WHERE "wed_2_june"='17'' 45.11 127.525mph';
## Task Generate a SQL query to answer the following question: `What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_leaderboard_superstock_tt" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 3 June time for the rider with 2 June time of 17' 45.11 127.525mph?`: ```sql
SELECT "rider" FROM "practice_times_leaderboard_superstock_tt" WHERE "rank"=2;
## Task Generate a SQL query to answer the following question: `Who is ranked 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "practice_times_leaderboard_superstock_tt" ( "rank" real, "rider" text, "sat_29_may" text, "mon_31_may" text, "tues_1_june" text, "wed_2_june" text, "thurs_3_june" text, "fri_4_june" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is ranked 2?`: ```sql
SELECT COUNT("november_3") FROM "table1_25235489_2" WHERE "january_15_16"='January 15, 1991';
## Task Generate a SQL query to answer the following question: `How many times does November 3rd occur when January 15, 1991 does?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25235489_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times does November 3rd occur when January 15, 1991 does?`: ```sql
SELECT "march_27_29" FROM "table1_25235489_2" WHERE "november_3"='153';
## Task Generate a SQL query to answer the following question: `When November is 153 what is the March number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25235489_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `When November is 153 what is the March number?`: ```sql
SELECT COUNT("june_10_11") FROM "table1_25235489_2" WHERE "november_3"='November 3, 1975';
## Task Generate a SQL query to answer the following question: `How many times does an occurance happen in June when it happens on NOvember 3, 1975?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25235489_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many times does an occurance happen in June when it happens on NOvember 3, 1975?`: ```sql
SELECT "august_21_22" FROM "table1_25235489_2" WHERE "march_27_29"='129';
## Task Generate a SQL query to answer the following question: `When march is 129 what is the August number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25235489_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `When march is 129 what is the August number?`: ```sql
SELECT COUNT("august_21_22") FROM "table1_25235489_2" WHERE "march_27_29"='139';
## Task Generate a SQL query to answer the following question: `How many numbers are there for August when March is 139?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25235489_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many numbers are there for August when March is 139?`: ```sql
SELECT COUNT("team") FROM "2013_teams" WHERE "seasons"=8;
## Task Generate a SQL query to answer the following question: `How many teams have been in Topperserien for 8 seasons? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `How many teams have been in Topperserien for 8 seasons? `: ```sql
SELECT MAX("seasons") FROM "2013_teams";
## Task Generate a SQL query to answer the following question: `What is the maximum number of seasons for any team? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the maximum number of seasons for any team? `: ```sql
SELECT "team" FROM "2013_teams" WHERE "home_ground"='Stemmemyren';
## Task Generate a SQL query to answer the following question: `Which teams homeeground is Stemmemyren? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `Which teams homeeground is Stemmemyren? `: ```sql
SELECT "home_ground" FROM "2013_teams" WHERE "seasons"=27 AND "home_city"='Trondheim';
## Task Generate a SQL query to answer the following question: `What is the home ground for the team whose home city is Trondheim with 27 seasons? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the home ground for the team whose home city is Trondheim with 27 seasons? `: ```sql
SELECT "home_city" FROM "2013_teams" WHERE "home_ground"='DnB Nor Arena';
## Task Generate a SQL query to answer the following question: `What is the home city for the team whose home ground is dnb nor arena? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the home city for the team whose home ground is dnb nor arena? `: ```sql
SELECT "home_city" FROM "2013_teams" WHERE "home_ground"='Klepp Stadion';
## Task Generate a SQL query to answer the following question: `What Home city has the home ground Klepp stadion? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2013_teams" ( "team" text, "home_city" text, "home_ground" text, "in_toppserien_since" real, "first_appearance" real, "seasons" real ); ### SQL Given the database schema, here is the SQL query that answers `What Home city has the home ground Klepp stadion? `: ```sql
SELECT COUNT("total_electricity_gw_h") FROM "table1_25244412_2" WHERE "renewable_electricity_w_o_hydro_gw_h"=3601;
## Task Generate a SQL query to answer the following question: `How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25244412_2" ( "rank" real, "rank_w_o_hydropower" real, "state" text, "pct_renewable" text, "pct_renewable_w_o_hydro" text, "renewable_electricity_gw_h" real, "renewable_electricity_w_o_hydro_gw_h" real, "total_electricity_gw_h" real ); ### SQL Given the database schema, here is the SQL query that answers `How many data was given the total electricity in GW-h if the renewable electricity w/o hydro (GW-h) is 3601?`: ```sql
SELECT COUNT("total_electricity_gw_h") FROM "table1_25244412_2" WHERE "pct_renewable"='92.3%';
## Task Generate a SQL query to answer the following question: `How many data was given the total electricity in GW-h if % renewable is 92.3%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25244412_2" ( "rank" real, "rank_w_o_hydropower" real, "state" text, "pct_renewable" text, "pct_renewable_w_o_hydro" text, "renewable_electricity_gw_h" real, "renewable_electricity_w_o_hydro_gw_h" real, "total_electricity_gw_h" real ); ### SQL Given the database schema, here is the SQL query that answers `How many data was given the total electricity in GW-h if % renewable is 92.3%?`: ```sql
SELECT MAX("rank") FROM "table1_25244412_2" WHERE "pct_renewable_w_o_hydro"='2.17%';
## Task Generate a SQL query to answer the following question: `What was the maximum rank of the source with renewable percentage w/o hydro is 2.17%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25244412_2" ( "rank" real, "rank_w_o_hydropower" real, "state" text, "pct_renewable" text, "pct_renewable_w_o_hydro" text, "renewable_electricity_gw_h" real, "renewable_electricity_w_o_hydro_gw_h" real, "total_electricity_gw_h" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the maximum rank of the source with renewable percentage w/o hydro is 2.17%?`: ```sql
SELECT MIN("renewable_electricity_gw_h") FROM "table1_25244412_2" WHERE "rank"=36;
## Task Generate a SQL query to answer the following question: `How much was the minimum renewable electricity (GW-h) that is ranked 36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25244412_2" ( "rank" real, "rank_w_o_hydropower" real, "state" text, "pct_renewable" text, "pct_renewable_w_o_hydro" text, "renewable_electricity_gw_h" real, "renewable_electricity_w_o_hydro_gw_h" real, "total_electricity_gw_h" real ); ### SQL Given the database schema, here is the SQL query that answers `How much was the minimum renewable electricity (GW-h) that is ranked 36?`: ```sql
SELECT "state" FROM "table1_25244412_2" WHERE "total_electricity_gw_h"=38380;
## Task Generate a SQL query to answer the following question: `What was the state with the total electricity generated is 38380 gw-h?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25244412_2" ( "rank" real, "rank_w_o_hydropower" real, "state" text, "pct_renewable" text, "pct_renewable_w_o_hydro" text, "renewable_electricity_gw_h" real, "renewable_electricity_w_o_hydro_gw_h" real, "total_electricity_gw_h" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the state with the total electricity generated is 38380 gw-h?`: ```sql
SELECT "directed_by" FROM "table1_25246990_2" WHERE "title"='\"Big Time Blogger\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Big Time Blogger"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `Who directed the episode titled "Big Time Blogger"?`: ```sql
SELECT "no_in_series" FROM "table1_25246990_2" WHERE "prod_code"='111';
## Task Generate a SQL query to answer the following question: `What number episode in the series had a production code of 111?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode in the series had a production code of 111?`: ```sql
SELECT "no_in_series" FROM "table1_25246990_2" WHERE "prod_code"='110';
## Task Generate a SQL query to answer the following question: `What number episode in the series had a production code of 110?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `What number episode in the series had a production code of 110?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_25246990_2" WHERE "written_by"='Jed Spingarn' AND "no_in_series"='7';
## Task Generate a SQL query to answer the following question: `How many U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_2" ( "no_in_series" text, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" text ); ### SQL Given the database schema, here is the SQL query that answers `How many U.S. viewers in millions watched the number 7 episode in the series that was written by Jed Spingarn?`: ```sql
SELECT "original_u_s_air_date" FROM "table1_25246990_5" WHERE "directed_by"='Julian Petrillo';
## Task Generate a SQL query to answer the following question: `What was the original U.S. air date of the episode directed by Julian Petrillo?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the original U.S. air date of the episode directed by Julian Petrillo?`: ```sql
SELECT COUNT("original_u_s_air_date") FROM "table1_25246990_5" WHERE "u_s_viewers_millions"='2.5';
## Task Generate a SQL query to answer the following question: `How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different original U.S. air dates appear where the U.S. viewers were 2.5 million?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_25246990_5" WHERE "written_by"='Lazar Saric & Jed Spingarn';
## Task Generate a SQL query to answer the following question: `How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many U.S. viewers were there for the episode written by Lazar Saric & Jed Spingarn?`: ```sql
SELECT "u_s_viewers_millions" FROM "table1_25246990_5" WHERE "no_in_season"=4;
## Task Generate a SQL query to answer the following question: `How many U.S. viewers were there for the number 4 episode in season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25246990_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "u_s_viewers_millions" text, "original_u_s_air_date" text, "prod_code" real ); ### SQL Given the database schema, here is the SQL query that answers `How many U.S. viewers were there for the number 4 episode in season?`: ```sql
SELECT MIN("rank") FROM "demographics";
## Task Generate a SQL query to answer the following question: `Name the least rank` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least rank`: ```sql
SELECT "growth_rate" FROM "demographics" WHERE "district"='Hooghly';
## Task Generate a SQL query to answer the following question: `Name the growth rate for hooghly` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the growth rate for hooghly`: ```sql
SELECT COUNT("rank") FROM "demographics" WHERE "district"='East Midnapore';
## Task Generate a SQL query to answer the following question: `Name the total number of rank for east midnapore` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of rank for east midnapore`: ```sql
SELECT COUNT("rank") FROM "demographics" WHERE "growth_rate"='14.47';
## Task Generate a SQL query to answer the following question: `Name the total number of rank for growth raate for 14.47` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "demographics" ( "rank" real, "district" text, "population" real, "growth_rate" text, "sex_ratio" real, "literacy" text, "density_km" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of rank for growth raate for 14.47`: ```sql
SELECT "champion" FROM "seasons_summary" WHERE "season"=1994;
## Task Generate a SQL query to answer the following question: `Who is the champion of the 1994 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons_summary" ( "season" real, "champion" text, "runner_up" text, "third_place" text, "top_scorer" text, "best_player" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the champion of the 1994 season?`: ```sql
SELECT "best_player" FROM "seasons_summary" WHERE "season"=1998;
## Task Generate a SQL query to answer the following question: `Who is the best player in the 1998 season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "seasons_summary" ( "season" real, "champion" text, "runner_up" text, "third_place" text, "top_scorer" text, "best_player" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the best player in the 1998 season?`: ```sql
SELECT MAX("index") FROM "crime_statistics_1960_2009" WHERE "forcible_rape"=1084;
## Task Generate a SQL query to answer the following question: `What was the largest index the year/s forcible rapes numbered 1084? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "crime_statistics_1960_2009" ( "year" real, "population" real, "index" real, "violent" real, "property" real, "murder" real, "forcible_rape" real, "robbery" real, "aggravated_assault" real, "burglary" real, "larceny_theft" real, "vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the largest index the year/s forcible rapes numbered 1084? `: ```sql
SELECT COUNT("violent") FROM "crime_statistics_1960_2009" WHERE "forcible_rape"=1156;
## Task Generate a SQL query to answer the following question: `How many violent catagories are listed for the year forcible rapes were 1156? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "crime_statistics_1960_2009" ( "year" real, "population" real, "index" real, "violent" real, "property" real, "murder" real, "forcible_rape" real, "robbery" real, "aggravated_assault" real, "burglary" real, "larceny_theft" real, "vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `How many violent catagories are listed for the year forcible rapes were 1156? `: ```sql
SELECT MAX("aggravated_assault") FROM "crime_statistics_1960_2009" WHERE "robbery"=3811;
## Task Generate a SQL query to answer the following question: `What was the largest number of aggravated assaults when there were 3811 robberies? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "crime_statistics_1960_2009" ( "year" real, "population" real, "index" real, "violent" real, "property" real, "murder" real, "forcible_rape" real, "robbery" real, "aggravated_assault" real, "burglary" real, "larceny_theft" real, "vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the largest number of aggravated assaults when there were 3811 robberies? `: ```sql
SELECT "murder" FROM "crime_statistics_1960_2009" WHERE "forcible_rape"=166;
## Task Generate a SQL query to answer the following question: `What was the number of murders the year forcible rapes were at 166? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "crime_statistics_1960_2009" ( "year" real, "population" real, "index" real, "violent" real, "property" real, "murder" real, "forcible_rape" real, "robbery" real, "aggravated_assault" real, "burglary" real, "larceny_theft" real, "vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the number of murders the year forcible rapes were at 166? `: ```sql
SELECT "violent" FROM "crime_statistics_1960_2009" WHERE "index"=191037;
## Task Generate a SQL query to answer the following question: `How many violent crimes occurred the year that the index was 191037? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "crime_statistics_1960_2009" ( "year" real, "population" real, "index" real, "violent" real, "property" real, "murder" real, "forcible_rape" real, "robbery" real, "aggravated_assault" real, "burglary" real, "larceny_theft" real, "vehicle_theft" real ); ### SQL Given the database schema, here is the SQL query that answers `How many violent crimes occurred the year that the index was 191037? `: ```sql
SELECT "original_air_date" FROM "table1_25277363_2" WHERE "title"='\"Fast Friends\"';
## Task Generate a SQL query to answer the following question: `What date did "fast friends" originally air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25277363_2" ( "no_in_series" real, "no_in_season" 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 date did "fast friends" originally air?`: ```sql
SELECT "written_by" FROM "table1_25277363_2" WHERE "no_in_series"=149;
## Task Generate a SQL query to answer the following question: `Who wrote episode number 149 in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25277363_2" ( "no_in_series" real, "no_in_season" 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 `Who wrote episode number 149 in the series?`: ```sql
SELECT MAX("no_in_series") FROM "table1_25277363_2" WHERE "title"='\"Tough Love\"';
## Task Generate a SQL query to answer the following question: `What episode number in the series is "tough love"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25277363_2" ( "no_in_series" real, "no_in_season" 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 episode number in the series is "tough love"?`: ```sql
SELECT MIN("no_in_season") FROM "table1_25276528_2" WHERE "title"='\"It''s Not My Job\"';
## Task Generate a SQL query to answer the following question: `"It's not my job" is the minimum title in no. in season.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25276528_2" ( "no_in_series" real, "no_in_season" 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 `"It's not my job" is the minimum title in no. in season.`: ```sql
SELECT "title" FROM "table1_25276528_2" WHERE "directed_by"='Bill Foster';
## Task Generate a SQL query to answer the following question: `What title did Bill Foster direct ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25276528_2" ( "no_in_series" real, "no_in_season" 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 title did Bill Foster direct ?`: ```sql
SELECT "no_in_series" FROM "table1_25276528_2" WHERE "written_by"='Kim Weiskopf and Jeff Franklin';
## Task Generate a SQL query to answer the following question: `Kim Weiskopf and Jeff Franklin wrote all the no. in series.` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25276528_2" ( "no_in_series" real, "no_in_season" 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 `Kim Weiskopf and Jeff Franklin wrote all the no. in series.`: ```sql
SELECT "co_stars" FROM "list_of_songs" WHERE "music_director"='Kalyanji-Anandji' AND "year"='1963';
## Task Generate a SQL query to answer the following question: `Which co-stars did Kalyanji-anandji direct in 1963?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" text, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which co-stars did Kalyanji-anandji direct in 1963?`: ```sql
SELECT "co_singers" FROM "list_of_songs" WHERE "movie_album"='Pyaasa';
## Task Generate a SQL query to answer the following question: `Which co-singers appear in the movie Pyaasa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" text, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which co-singers appear in the movie Pyaasa?`: ```sql
SELECT "additional_info" FROM "list_of_songs" WHERE "song"='Mera Yaar Bana Hai Dulha';
## Task Generate a SQL query to answer the following question: `What is the additional information in the song mera yaar bana hai dulha` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" text, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the additional information in the song mera yaar bana hai dulha`: ```sql
SELECT "year" FROM "list_of_songs" WHERE "co_stars"='Mala Sinha and Amitabh Bachchan';
## Task Generate a SQL query to answer the following question: `In which years are co-stars mala sinha and amitabh bachchan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" text, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `In which years are co-stars mala sinha and amitabh bachchan?`: ```sql
SELECT "song" FROM "list_of_songs" WHERE "additional_info"='Drunkard Groom';
## Task Generate a SQL query to answer the following question: `Which song has Drunkard Groom listed as additional information?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" real, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song has Drunkard Groom listed as additional information?`: ```sql
SELECT "lyricist" FROM "list_of_songs" WHERE "music_director"='Madan Mohan Kohli';
## Task Generate a SQL query to answer the following question: `Who was the lyricist for the song with music directed by madan mohan kohli?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" real, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the lyricist for the song with music directed by madan mohan kohli?`: ```sql
SELECT "additional_info" FROM "list_of_songs" WHERE "music_director"='Datta Naik';
## Task Generate a SQL query to answer the following question: `Which song directed by datta naik had the ending stranza written by Johnny Walker?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" real, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `Which song directed by datta naik had the ending stranza written by Johnny Walker?`: ```sql
SELECT "movie_album" FROM "list_of_songs" WHERE "song"='Dil De De Nahin Nahin Dil Le Le';
## Task Generate a SQL query to answer the following question: `In which album can Dil De De Nahin Nahin Dil Le Le be found?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_songs" ( "song" text, "singer" text, "co_singers" text, "music_director" text, "lyricist" text, "co_stars" text, "movie_album" text, "year" real, "additional_info" text ); ### SQL Given the database schema, here is the SQL query that answers `In which album can Dil De De Nahin Nahin Dil Le Le be found?`: ```sql
SELECT "2002_2005" FROM "gdp_by_value_added" WHERE "supply_sector_pct_of_gdp_in_current_prices"='Construction';
## Task Generate a SQL query to answer the following question: `What was the GDP for 2002-2005 for the construction center? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_by_value_added" ( "supply_sector_pct_of_gdp_in_current_prices" text, "1993_2001" text, "2002_2005" text, "2006_2009" text, "2010_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the GDP for 2002-2005 for the construction center? `: ```sql
SELECT "2006_2009" FROM "gdp_by_value_added" WHERE "2010_2012"='20.1';
## Task Generate a SQL query to answer the following question: `What was GDP for 2006-2009 for the sector that had a 20.1 GDP for 2010-2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_by_value_added" ( "supply_sector_pct_of_gdp_in_current_prices" text, "1993_2001" text, "2002_2005" text, "2006_2009" text, "2010_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What was GDP for 2006-2009 for the sector that had a 20.1 GDP for 2010-2012?`: ```sql
SELECT "supply_sector_pct_of_gdp_in_current_prices" FROM "gdp_by_value_added" WHERE "2006_2009"='1.4';
## Task Generate a SQL query to answer the following question: `What sector had a 1.4 GDP for 2006-2009?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_by_value_added" ( "supply_sector_pct_of_gdp_in_current_prices" text, "1993_2001" text, "2002_2005" text, "2006_2009" text, "2010_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What sector had a 1.4 GDP for 2006-2009?`: ```sql
SELECT "supply_sector_pct_of_gdp_in_current_prices" FROM "gdp_by_value_added" WHERE "1993_2001"='17.3';
## Task Generate a SQL query to answer the following question: `What sector had a 17.3 GDP for 1993-2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_by_value_added" ( "supply_sector_pct_of_gdp_in_current_prices" text, "1993_2001" text, "2002_2005" text, "2006_2009" text, "2010_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `What sector had a 17.3 GDP for 1993-2001?`: ```sql
SELECT "1993_2001" FROM "gdp_by_value_added" WHERE "2006_2009"='8.7';
## Task Generate a SQL query to answer the following question: `The sector that had a 8.7 GDP for 2006-2009 had what GDP for 1993-2001?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "gdp_by_value_added" ( "supply_sector_pct_of_gdp_in_current_prices" text, "1993_2001" text, "2002_2005" text, "2006_2009" text, "2010_2012" text ); ### SQL Given the database schema, here is the SQL query that answers `The sector that had a 8.7 GDP for 2006-2009 had what GDP for 1993-2001?`: ```sql
SELECT "november_3" FROM "table1_25284864_3" WHERE "june_10_11"='147';
## Task Generate a SQL query to answer the following question: `What is the November 3 result when June 10-11 is 147?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25284864_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the November 3 result when June 10-11 is 147?`: ```sql
SELECT "november_3" FROM "table1_25284864_3" WHERE "january_15_16"='141';
## Task Generate a SQL query to answer the following question: `What is the November 3 result when the result for January 15-16 is 141?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25284864_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the November 3 result when the result for January 15-16 is 141?`: ```sql
SELECT "november_3" FROM "table1_25284864_3" WHERE "june_10_11"='147';
## Task Generate a SQL query to answer the following question: `What is the November 3 result when the June 10-11 is 147?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25284864_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the November 3 result when the June 10-11 is 147?`: ```sql
SELECT "june_10_11" FROM "table1_25284864_3" WHERE "march_27_29"='March 28, 1968';
## Task Generate a SQL query to answer the following question: `What June 10-11 is is that corresponds to March 28, 1968?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25284864_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What June 10-11 is is that corresponds to March 28, 1968?`: ```sql
SELECT "january_15_16" FROM "table1_25284864_3" WHERE "november_3"='November 3, 2013';
## Task Generate a SQL query to answer the following question: `What January 15-16 is is that corresponds to November 3, 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25284864_3" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `What January 15-16 is is that corresponds to November 3, 2013?`: ```sql
SELECT "november_3" FROM "table1_25286976_2" WHERE "june_10_11"='127';
## Task Generate a SQL query to answer the following question: `When 127 is on June 10th to 11th what is November 3rd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25286976_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `When 127 is on June 10th to 11th what is November 3rd?`: ```sql
SELECT "june_10_11" FROM "table1_25286976_2" WHERE "march_27_29"='129';
## Task Generate a SQL query to answer the following question: `When 129 is on March 27th to 29th what is June 10th to 11th?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25286976_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `When 129 is on March 27th to 29th what is June 10th to 11th?`: ```sql
SELECT "august_21_22" FROM "table1_25286976_2" WHERE "march_27_29"='139';
## Task Generate a SQL query to answer the following question: `When 139 is on March 27th to 29th what is August 21st to 22nd?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25286976_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `When 139 is on March 27th to 29th what is August 21st to 22nd?`: ```sql
SELECT "november_3" FROM "table1_25287007_2" WHERE "august_21_22"='August 21, 2017';
## Task Generate a SQL query to answer the following question: `During November 3 where august 21-22 is august 21, 2017?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25287007_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `During November 3 where august 21-22 is august 21, 2017?`: ```sql
SELECT "june_10_11" FROM "table1_25287007_2" WHERE "november_3"='153';
## Task Generate a SQL query to answer the following question: `How many solar eclipse on June 10-11, while November 3 is 153?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25287007_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many solar eclipse on June 10-11, while November 3 is 153?`: ```sql
SELECT COUNT("august_21_22") FROM "table1_25287007_2" WHERE "june_10_11"='June 11, 1983';
## Task Generate a SQL query to answer the following question: `How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_25287007_2" ( "june_10_11" text, "march_27_29" text, "january_15_16" text, "november_3" text, "august_21_22" text ); ### SQL Given the database schema, here is the SQL query that answers `How many solar eclipse during August 21-22 where June 10-11 on June 11, 1983?`: ```sql