output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "highlight_s"='35 Career INTs';
## Task Generate a SQL query to answer the following question: `What class year was the player whose highlights were 35 career INTs from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sycamores_in_professional_leagues_50" ( "player" text, "class_year" real, "position" text, "teams" text, "career" text, "highlight_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What class year was the player whose highlights were 35 career INTs from?`: ```sql
SELECT MIN("class_year") FROM "sycamores_in_professional_leagues_50" WHERE "teams"='Buffalo';
## Task Generate a SQL query to answer the following question: `What class year was the player who played for Buffalo from? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "sycamores_in_professional_leagues_50" ( "player" text, "class_year" real, "position" text, "teams" text, "career" text, "highlight_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What class year was the player who played for Buffalo from? `: ```sql
SELECT MIN("gore_num") FROM "by_county" WHERE "others_num"='6.6%';
## Task Generate a SQL query to answer the following question: `Name the gore number for others # 6.6%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "gore_pct" text, "gore_num" real, "bush_pct" text, "bush_num" real, "others_pct" text, "others_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the gore number for others # 6.6%`: ```sql
SELECT "others_pct" FROM "by_county" WHERE "bush_num"=1372;
## Task Generate a SQL query to answer the following question: `Name the others % for bush number 1372` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "gore_pct" text, "gore_num" real, "bush_pct" text, "bush_num" real, "others_pct" text, "others_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the others % for bush number 1372`: ```sql
SELECT "gore_num" FROM "by_county" WHERE "others_pct"='5.3%';
## Task Generate a SQL query to answer the following question: `Name the gore number for others % being 5.3%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "gore_pct" text, "gore_num" real, "bush_pct" text, "bush_num" real, "others_pct" text, "others_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the gore number for others % being 5.3%`: ```sql
SELECT "county" FROM "by_county" WHERE "others_pct"='5.8';
## Task Generate a SQL query to answer the following question: `Name the couty for others% 5.8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "gore_pct" text, "gore_num" real, "bush_pct" text, "bush_num" real, "others_pct" text, "others_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the couty for others% 5.8`: ```sql
SELECT COUNT("bush_pct") FROM "by_county" WHERE "county"='Elko';
## Task Generate a SQL query to answer the following question: `Name the number of bush % for elko` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "by_county" ( "county" text, "gore_pct" text, "gore_num" real, "bush_pct" text, "bush_num" real, "others_pct" text, "others_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of bush % for elko`: ```sql
SELECT "team" FROM "career_summary" WHERE "poles"=1 AND "series"='ADAC GT Masters';
## Task Generate a SQL query to answer the following question: `If the series is ADAC GT Masters and poles is 1, what is the name of the team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `If the series is ADAC GT Masters and poles is 1, what is the name of the team?`: ```sql
SELECT COUNT("season") FROM "career_summary" WHERE "position"='26th';
## Task Generate a SQL query to answer the following question: `If the position of 26th what is the season total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `If the position of 26th what is the season total number?`: ```sql
SELECT "season" FROM "career_summary" WHERE "points"='41';
## Task Generate a SQL query to answer the following question: `If the points is 41, what is the season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" text, "position" text ); ### SQL Given the database schema, here is the SQL query that answers `If the points is 41, what is the season?`: ```sql
SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Inter The Bloomfield';
## Task Generate a SQL query to answer the following question: `If the primary (South) winners is Inter The Bloomfield, what is the season total number?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" ( "season" text, "junior_south_winners" text, "intermediate_south_winners" text, "minor_south_winners" text, "primary_south_winners" text ); ### SQL Given the database schema, here is the SQL query that answers `If the primary (South) winners is Inter The Bloomfield, what is the season total number?`: ```sql
SELECT COUNT("season") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Ridings High ''A''';
## Task Generate a SQL query to answer the following question: `What is the season total number if the primary (South) winners is Ridings High 'A'?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" ( "season" text, "junior_south_winners" text, "intermediate_south_winners" text, "minor_south_winners" text, "primary_south_winners" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season total number if the primary (South) winners is Ridings High 'A'?`: ```sql
SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "intermediate_south_winners"='Southmead Athletic';
## Task Generate a SQL query to answer the following question: `What is the year of the season if the intermediate (South) winners is Southmead Athletic?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" ( "season" text, "junior_south_winners" text, "intermediate_south_winners" text, "minor_south_winners" text, "primary_south_winners" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the year of the season if the intermediate (South) winners is Southmead Athletic?`: ```sql
SELECT "season" FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "minor_south_winners"='Bristol Sanctuary XI';
## Task Generate a SQL query to answer the following question: `What is the season date if the minor (South) winners is Bristol Sanctuary XI?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" ( "season" text, "junior_south_winners" text, "intermediate_south_winners" text, "minor_south_winners" text, "primary_south_winners" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the season date if the minor (South) winners is Bristol Sanctuary XI?`: ```sql
SELECT COUNT("minor_south_winners") FROM "list_of_recent_lower_tier_county_cup_sou" WHERE "primary_south_winners"='Mendip Gate';
## Task Generate a SQL query to answer the following question: `What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_recent_lower_tier_county_cup_sou" ( "season" text, "junior_south_winners" text, "intermediate_south_winners" text, "minor_south_winners" text, "primary_south_winners" text ); ### SQL Given the database schema, here is the SQL query that answers `What isthe minor (South) winners total number is the primary (South) winners is Mendip Gate?`: ```sql
SELECT "area_damaged" FROM "table1_23014685_1" WHERE "target"='King Khalid Military City';
## Task Generate a SQL query to answer the following question: `What area was damaged when King Khalid Military City was targeted?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23014685_1" ( "no" real, "place_date" text, "target" text, "area_damaged" text, "cause_of_damage" text, "intercepted_by_patriot" text ); ### SQL Given the database schema, here is the SQL query that answers `What area was damaged when King Khalid Military City was targeted?`: ```sql
SELECT "place_date" FROM "table1_23014685_1" WHERE "area_damaged"='Apartments area';
## Task Generate a SQL query to answer the following question: `What was the place and date that the Apartments area was damaged?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23014685_1" ( "no" real, "place_date" text, "target" text, "area_damaged" text, "cause_of_damage" text, "intercepted_by_patriot" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the place and date that the Apartments area was damaged?`: ```sql
SELECT "intercepted_by_patriot" FROM "table1_23014685_1" WHERE "area_damaged"='Parking lot';
## Task Generate a SQL query to answer the following question: `Was the missile intercepted by patriot when the parking lot was damaged?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23014685_1" ( "no" real, "place_date" text, "target" text, "area_damaged" text, "cause_of_damage" text, "intercepted_by_patriot" text ); ### SQL Given the database schema, here is the SQL query that answers `Was the missile intercepted by patriot when the parking lot was damaged?`: ```sql
SELECT MIN("no") FROM "table1_23014685_1" WHERE "area_damaged"='Islamic University campus';
## Task Generate a SQL query to answer the following question: `What number missile led to damage to the Islamic University campus?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23014685_1" ( "no" real, "place_date" text, "target" text, "area_damaged" text, "cause_of_damage" text, "intercepted_by_patriot" text ); ### SQL Given the database schema, here is the SQL query that answers `What number missile led to damage to the Islamic University campus?`: ```sql
SELECT COUNT("year") FROM "table1_23015396_1" WHERE "driver"='Mark Martin';
## Task Generate a SQL query to answer the following question: `Name the number of year for mark martin` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23015396_1" ( "year" real, "date" text, "driver" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of year for mark martin`: ```sql
SELECT COUNT("year") FROM "table1_23015396_1" WHERE "date"='June 30';
## Task Generate a SQL query to answer the following question: `Name the number of year for june 30` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23015396_1" ( "year" real, "date" text, "driver" text, "manufacturer" text, "laps" real, "miles_km" text, "race_time" text, "average_speed_mph" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of year for june 30`: ```sql
SELECT "model_number" FROM "32_nm_dual_core" WHERE "part_number_s"='CM80616003177ACBX80616I5660';
## Task Generate a SQL query to answer the following question: `What is the model number for part numbers of cm80616003177acbx80616i5660?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "32_nm_dual_core" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "gpu_frequency" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the model number for part numbers of cm80616003177acbx80616i5660?`: ```sql
SELECT "release_price_usd" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-650';
## Task Generate a SQL query to answer the following question: `What is every release price(USD) for model number core i5-650?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "32_nm_dual_core" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "gpu_frequency" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every release price(USD) for model number core i5-650?`: ```sql
SELECT COUNT("frequency") FROM "32_nm_dual_core" WHERE "model_number"='Core i5-655K';
## Task Generate a SQL query to answer the following question: `How many frequencies have a model number of core i5-655k?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "32_nm_dual_core" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "gpu_frequency" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `How many frequencies have a model number of core i5-655k?`: ```sql
SELECT "part_number_s" FROM "32_nm_dual_core" WHERE "model_number"='Core i5-670';
## Task Generate a SQL query to answer the following question: `What is every part number with model number core i5-670?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "32_nm_dual_core" ( "model_number" text, "s_spec_number" text, "frequency" text, "turbo" text, "gpu_frequency" text, "cores" real, "l2_cache" text, "l3_cache" text, "i_o_bus" text, "mult" text, "memory" text, "voltage" text, "tdp" text, "socket" text, "release_date" text, "part_number_s" text, "release_price_usd" text ); ### SQL Given the database schema, here is the SQL query that answers `What is every part number with model number core i5-670?`: ```sql
SELECT "winner" FROM "2009_10_big_ten_conference_men_s_basketb" WHERE "big_ten_team"='#4 Purdue';
## Task Generate a SQL query to answer the following question: `What is the record for Big Ten Team #4 Purdue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2009_10_big_ten_conference_men_s_basketb" ( "acc_team" text, "big_ten_team" text, "location" text, "attendance" real, "winner" text, "challenge_leader" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record for Big Ten Team #4 Purdue?`: ```sql
SELECT "avg_start" FROM "nascar_sprint_cup_series" WHERE "avg_finish"='24.2';
## Task Generate a SQL query to answer the following question: `Name the avg start for avg finish being 24.2` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the avg start for avg finish being 24.2`: ```sql
SELECT "year" FROM "nascar_sprint_cup_series" WHERE "avg_start"='22.4';
## Task Generate a SQL query to answer the following question: `Name the year for avg start being 22.4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nascar_sprint_cup_series" ( "year" real, "starts" real, "wins" real, "top_5" real, "top_10" real, "poles" real, "avg_start" text, "avg_finish" text, "winnings" text, "position" text, "team_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the year for avg start being 22.4`: ```sql
SELECT COUNT("kei") FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='2.56';
## Task Generate a SQL query to answer the following question: `How many KEI catagories are listed when the economic incentive regime is 2.56? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `How many KEI catagories are listed when the economic incentive regime is 2.56? `: ```sql
SELECT "innovation" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='7.14';
## Task Generate a SQL query to answer the following question: `What is the innovation when the economic incentive grime is 7.14? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the innovation when the economic incentive grime is 7.14? `: ```sql
SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Nepal';
## Task Generate a SQL query to answer the following question: `What is the education in Nepal? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the education in Nepal? `: ```sql
SELECT "2008_rank" FROM "kei_and_ki_indexes_by_country" WHERE "country"='Djibouti';
## Task Generate a SQL query to answer the following question: `What is the 2008 rank of Djibouti? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2008 rank of Djibouti? `: ```sql
SELECT "ict" FROM "kei_and_ki_indexes_by_country" WHERE "education"='1.73' AND "ki"='1.99';
## Task Generate a SQL query to answer the following question: `What is the ICT when education is 1.73 and KI is ag 1.99? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the ICT when education is 1.73 and KI is ag 1.99? `: ```sql
SELECT "education" FROM "kei_and_ki_indexes_by_country" WHERE "economic_incentive_regime"='1.58';
## Task Generate a SQL query to answer the following question: `What is the education when the economic incentive regime is 1.58?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kei_and_ki_indexes_by_country" ( "country" text, "kei" text, "ki" text, "economic_incentive_regime" text, "innovation" text, "education" text, "ict" text, "2008_rank" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the education when the economic incentive regime is 1.58?`: ```sql
SELECT "n_z_viewers_thousand" FROM "table1_23114705_7" WHERE "title"='\"Make Mad the Guilty and Appal the Free\"';
## Task Generate a SQL query to answer the following question: `How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23114705_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "n_z_viewers_thousand" text ); ### SQL Given the database schema, here is the SQL query that answers `How many thousands of viewers tuned in for "Make Mad the Guilty and Appal the Free"?`: ```sql
SELECT "original_air_date" FROM "table1_23114705_7" WHERE "title"='\"Follow Her Close\"';
## Task Generate a SQL query to answer the following question: `When did "Follow Her Close" air?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23114705_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "n_z_viewers_thousand" text ); ### SQL Given the database schema, here is the SQL query that answers `When did "Follow Her Close" air?`: ```sql
SELECT "original_air_date" FROM "table1_23114705_7" WHERE "n_z_viewers_thousand"='456.58';
## Task Generate a SQL query to answer the following question: `What was the air date of the episod that had 456.58 thousand viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23114705_7" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "n_z_viewers_thousand" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the air date of the episod that had 456.58 thousand viewers?`: ```sql
SELECT "season" FROM "table1_2311410_1" WHERE "winning_profit_aud"='$15,000';
## Task Generate a SQL query to answer the following question: `What season had a winning profit of $15,000?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2311410_1" ( "season" text, "episodes" real, "series_premiere" text, "series_finale" text, "winning_couple" text, "winning_profit_aud" text, "host_s" text, "judges" text ); ### SQL Given the database schema, here is the SQL query that answers `What season had a winning profit of $15,000?`: ```sql
SELECT COUNT("series_premiere") FROM "table1_2311410_1" WHERE "season"='All-Stars';
## Task Generate a SQL query to answer the following question: `How many series premieres did the season "All-stars" have?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2311410_1" ( "season" text, "episodes" real, "series_premiere" text, "series_finale" text, "winning_couple" text, "winning_profit_aud" text, "host_s" text, "judges" text ); ### SQL Given the database schema, here is the SQL query that answers `How many series premieres did the season "All-stars" have?`: ```sql
SELECT "erin_and_jake" FROM "table1_2311410_5" WHERE "week"=4;
## Task Generate a SQL query to answer the following question: `Name the erin and jake for week 4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2311410_5" ( "week" real, "room_s" text, "john_and_neisha" text, "mark_and_duncan" text, "erin_and_jake" text, "chez_and_brenton" text, "winner" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the erin and jake for week 4`: ```sql
SELECT MIN("no_in_series") FROM "table1_23117208_3" WHERE "viewers_millions"='5.28';
## Task Generate a SQL query to answer the following question: `when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `when the number of spectator are 5.28 millions, which is the smallest number of the episode in series? `: ```sql
SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "no_in_series"=20;
## Task Generate a SQL query to answer the following question: `which is the biggest number of episode in the season, where the number of the episode in series is 20?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `which is the biggest number of episode in the season, where the number of the episode in series is 20?`: ```sql
SELECT "title" FROM "table1_23117208_3" WHERE "viewers_millions"='5.60';
## Task Generate a SQL query to answer the following question: `what is the name of the episode when the number of spectators was 5.60 millions?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the name of the episode when the number of spectators was 5.60 millions?`: ```sql
SELECT "viewers_millions" FROM "table1_23117208_3" WHERE "prod_code"='RP#213';
## Task Generate a SQL query to answer the following question: `how many millions of spectator did has the episode whose prod.code was rp#213?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `how many millions of spectator did has the episode whose prod.code was rp#213?`: ```sql
SELECT MAX("no_in_season") FROM "table1_23117208_3" WHERE "directed_by"='Constantine Makris';
## Task Generate a SQL query to answer the following question: `which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_3" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `which is the biggest number of episode in the season, when the director of the episode was Constantine Makris?`: ```sql
SELECT "title" FROM "table1_23117208_5" WHERE "written_by"='Michael Rauch';
## Task Generate a SQL query to answer the following question: `What is the name of the episode that was written by Michael Rauch?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the episode that was written by Michael Rauch?`: ```sql
SELECT "no_in_series" FROM "table1_23117208_5" WHERE "directed_by"='Matthew Penn';
## Task Generate a SQL query to answer the following question: `For the episode directed by Matthew Penn, what is the total number in the series?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_5" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `For the episode directed by Matthew Penn, what is the total number in the series?`: ```sql
SELECT "prod_code" FROM "table1_23117208_4" WHERE "viewers_millions"='4.92';
## Task Generate a SQL query to answer the following question: `Name the production code for 4.92 million viewers` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the production code for 4.92 million viewers`: ```sql
SELECT MIN("no_in_season") FROM "table1_23117208_4" WHERE "written_by"='Jessica Ball';
## Task Generate a SQL query to answer the following question: `Name the least number in season for jessica ball` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23117208_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "prod_code" text, "viewers_millions" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the least number in season for jessica ball`: ```sql
SELECT MAX("f_laps") FROM "career_summary" WHERE "points"=109;
## Task Generate a SQL query to answer the following question: `How many flaps did he have when he had 109 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many flaps did he have when he had 109 points?`: ```sql
SELECT COUNT("wins") FROM "career_summary" WHERE "team_name"='Carlin Motorsport';
## Task Generate a SQL query to answer the following question: `How many wins did he have with carlin motorsport?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wins did he have with carlin motorsport?`: ```sql
SELECT MAX("races") FROM "career_summary";
## Task Generate a SQL query to answer the following question: `What was the most races he had in a season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "career_summary" ( "season" real, "series" text, "team_name" text, "races" real, "wins" real, "poles" real, "f_laps" real, "podiums" real, "points" real, "final_placing" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the most races he had in a season?`: ```sql
SELECT "sets_w_l" FROM "standings" WHERE "player"='Ken Rosewall';
## Task Generate a SQL query to answer the following question: `What are Ken Rosewall's sets w-l?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "player" text, "rr_w_l" text, "sets_w_l" text, "games_w_l" text, "standings" real ); ### SQL Given the database schema, here is the SQL query that answers `What are Ken Rosewall's sets w-l?`: ```sql
SELECT "games_w_l" FROM "standings" WHERE "player"='Arthur Ashe';
## Task Generate a SQL query to answer the following question: `What are Arthur Ashe's games w-l?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "player" text, "rr_w_l" text, "sets_w_l" text, "games_w_l" text, "standings" real ); ### SQL Given the database schema, here is the SQL query that answers `What are Arthur Ashe's games w-l?`: ```sql
SELECT "games_w_l" FROM "standings" WHERE "player"='Cliff Richey';
## Task Generate a SQL query to answer the following question: `Name the games w-1 for cliff richey` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "standings" ( "player" text, "rr_w_l" text, "sets_w_l" text, "games_w_l" text, "standings" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the games w-1 for cliff richey`: ```sql
SELECT COUNT("stage") FROM "classification_leadership_progress_table" WHERE "general_classification"='Rory Sutherland';
## Task Generate a SQL query to answer the following question: `What stage number had the general classification Rory Sutherland?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "youth_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `What stage number had the general classification Rory Sutherland?`: ```sql
SELECT "youth_classification" FROM "classification_leadership_progress_table" WHERE "mountains_classification"='Kenneth Hanson' AND "winner"='Lucas Sebastian Haedo';
## Task Generate a SQL query to answer the following question: `Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "youth_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the Youth Classification in the race with Kenneth Hanson as Mountains Classification and Lucas Sebastian Haedo as winner?`: ```sql
SELECT "winner" FROM "classification_leadership_progress_table" WHERE "mountains_classification"='Tom Zirbel' AND "points_classification"='Thomas Soladay';
## Task Generate a SQL query to answer the following question: `Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "youth_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who won the race with Tom Zirbel as Mountains Classification and Thomas Soladay as Points Classification?`: ```sql
SELECT "mountains_classification" FROM "classification_leadership_progress_table" WHERE "youth_classification"='Nick Frey' AND "points_classification"='Tom Zirbel';
## Task Generate a SQL query to answer the following question: `Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "youth_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was Mountains Classification in the race with Nick Frey as Youth Classification and Tom Zirbel as Points Classification?`: ```sql
SELECT COUNT("mountains_classification") FROM "classification_leadership_progress_table" WHERE "youth_classification"='Mike Northey';
## Task Generate a SQL query to answer the following question: `How many Mountains Classifications were in the race with Mike Northey as Youth Classification?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "classification_leadership_progress_table" ( "stage" real, "winner" text, "general_classification" text, "mountains_classification" text, "points_classification" text, "youth_classification" text, "team_classification" text ); ### SQL Given the database schema, here is the SQL query that answers `How many Mountains Classifications were in the race with Mike Northey as Youth Classification?`: ```sql
SELECT COUNT("foundation") FROM "table1_23143607_1" WHERE "television_channels"='Canal Nou Canal Nou Dos Canal Nou 24 TVVi';
## Task Generate a SQL query to answer the following question: `How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23143607_1" ( "autonomous_community" text, "organization" text, "television_channels" text, "radio_stations" text, "foundation" real ); ### SQL Given the database schema, here is the SQL query that answers `How many foundation dates were there when the television channels is canal nou canal nou dos canal nou 24 tvvi?`: ```sql
SELECT COUNT("television_channels") FROM "table1_23143607_1" WHERE "radio_stations"='Radio Nou Si Radio Radio Nou Música';
## Task Generate a SQL query to answer the following question: `If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23143607_1" ( "autonomous_community" text, "organization" text, "television_channels" text, "radio_stations" text, "foundation" real ); ### SQL Given the database schema, here is the SQL query that answers `If the radio stations is radio nou si radio radio nou música; what were the total number of television channels?`: ```sql
SELECT COUNT("television_channels") FROM "table1_23143607_1" WHERE "radio_stations"='Onda Madrid';
## Task Generate a SQL query to answer the following question: `What is the total number of television channels when one of the radio stations is onda madrid?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23143607_1" ( "autonomous_community" text, "organization" text, "television_channels" text, "radio_stations" text, "foundation" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of television channels when one of the radio stations is onda madrid?`: ```sql
SELECT "radio_stations" FROM "table1_23143607_1" WHERE "organization"='Ente Público Radio Televisión Madrid (EPRTVM)';
## Task Generate a SQL query to answer the following question: `Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23143607_1" ( "autonomous_community" text, "organization" text, "television_channels" text, "radio_stations" text, "foundation" real ); ### SQL Given the database schema, here is the SQL query that answers `Which of the radio stations has the organization of ente público radio televisión madrid (eprtvm)?`: ```sql
SELECT "autonomous_community" FROM "table1_23143607_1" WHERE "television_channels"='TPA TPA2 RTPA Internacional';
## Task Generate a SQL query to answer the following question: `What is the autonomous community with television channels tpa tpa2 rtpa internacional?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23143607_1" ( "autonomous_community" text, "organization" text, "television_channels" text, "radio_stations" text, "foundation" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the autonomous community with television channels tpa tpa2 rtpa internacional?`: ```sql
SELECT "writer" FROM "table1_23170118_2" WHERE "title"='\"Face Off\"';
## Task Generate a SQL query to answer the following question: `Who was the writer of "Face Off"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the writer of "Face Off"?`: ```sql
SELECT "director" FROM "table1_23170118_2" WHERE "writer"='Nathan Cockerill' AND "title"='\"Nano Nits\"';
## Task Generate a SQL query to answer the following question: `Who were the directors of the episode "nano nits" written by nathan cockerill?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the directors of the episode "nano nits" written by nathan cockerill?`: ```sql
SELECT "villains" FROM "table1_23170118_2" WHERE "title"='\"The Others\"';
## Task Generate a SQL query to answer the following question: `Who are the villains in "the others"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `Who are the villains in "the others"?`: ```sql
SELECT "original_airdate" FROM "table1_23170118_2" WHERE "title"='\"Nano Nits\"';
## Task Generate a SQL query to answer the following question: `What was the original air date of the episode "nano nits"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the original air date of the episode "nano nits"?`: ```sql
SELECT COUNT("villains") FROM "table1_23170118_2" WHERE "episode_number"='3 (13)';
## Task Generate a SQL query to answer the following question: `How many villains were in episode 3 (13)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `How many villains were in episode 3 (13)?`: ```sql
SELECT "title" FROM "table1_23170118_2" WHERE "villains"='Reg Lacey (AKA Mr. B)';
## Task Generate a SQL query to answer the following question: `What was the title of the episode where reg lacey (aka mr. b) played the villain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_23170118_2" ( "episode_number" text, "title" text, "villains" text, "director" text, "writer" text, "original_airdate" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the title of the episode where reg lacey (aka mr. b) played the villain?`: ```sql
SELECT MAX("three_pointers") FROM "player_stats" WHERE "player"='DeWanna Bonner';
## Task Generate a SQL query to answer the following question: `Name the most three pointers for dewanna bonner` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most three pointers for dewanna bonner`: ```sql
SELECT MIN("field_goals") FROM "player_stats" WHERE "player"='Chantel Hilliard';
## Task Generate a SQL query to answer the following question: `Name the least field goals for chantel hilliard` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least field goals for chantel hilliard`: ```sql
SELECT MAX("minutes") FROM "player_stats" WHERE "player"='Morgan Jennings';
## Task Generate a SQL query to answer the following question: `Name the most minutes for morgan jennings` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most minutes for morgan jennings`: ```sql
SELECT MAX("free_throws") FROM "player_stats" WHERE "steals"=4;
## Task Generate a SQL query to answer the following question: `Name the most free throws for 4 steals` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most free throws for 4 steals`: ```sql
SELECT "road_record" FROM "conference_standings" WHERE "overall_record"='22-11';
## Task Generate a SQL query to answer the following question: `What is the road record for the team with an overall record of 22-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the road record for the team with an overall record of 22-11?`: ```sql
SELECT COUNT("road_record") FROM "conference_standings" WHERE "team"='Vanderbilt';
## Task Generate a SQL query to answer the following question: `What is the road record for Vanderbilt?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the road record for Vanderbilt?`: ```sql
SELECT "team" FROM "conference_standings" WHERE "overall_record"='22-11';
## Task Generate a SQL query to answer the following question: `What team's overal record is 22-11?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What team's overal record is 22-11?`: ```sql
SELECT "percentage" FROM "conference_standings" WHERE "road_record"='3-4' AND "home_record"='7-0';
## Task Generate a SQL query to answer the following question: `What is the percentage for the team with a road record of 3-4 and a home record of 7-0?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "conference_standings" ( "team" text, "sec_wins" real, "sec_losses" real, "percentage" text, "home_record" text, "road_record" text, "overall_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage for the team with a road record of 3-4 and a home record of 7-0?`: ```sql
SELECT COUNT("three_pointers") FROM "player_stats" WHERE "points"=67;
## Task Generate a SQL query to answer the following question: `Name the number of three pointers for 67` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of three pointers for 67`: ```sql
SELECT MAX("field_goals") FROM "player_stats" WHERE "player"='Alexis Yackley';
## Task Generate a SQL query to answer the following question: `Name the field goals for alexis yackley` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the field goals for alexis yackley`: ```sql
SELECT COUNT("assists") FROM "player_stats" WHERE "minutes"=321;
## Task Generate a SQL query to answer the following question: `Name the number of assists for 321 minutes ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of assists for 321 minutes `: ```sql
SELECT COUNT("player") FROM "player_stats" WHERE "field_goals"=25 AND "blocks"=6;
## Task Generate a SQL query to answer the following question: `Name the number of players for field goals being 25 and blocks is 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "player_stats" ( "player" text, "games_played" real, "minutes" real, "field_goals" real, "three_pointers" real, "free_throws" real, "rebounds" real, "assists" real, "blocks" real, "steals" real, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of players for field goals being 25 and blocks is 6`: ```sql
SELECT "location_attendance" FROM "game_log" WHERE "record"='5-15';
## Task Generate a SQL query to answer the following question: `Name the location attendance of 5-15` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location attendance of 5-15`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Golden State';
## Task Generate a SQL query to answer the following question: `Name the record for golden state` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for golden state`: ```sql
SELECT COUNT("high_points") FROM "game_log" WHERE "record"='5-17';
## Task Generate a SQL query to answer the following question: `Name the number of high points for record 5-17` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of high points for record 5-17`: ```sql
SELECT "record" FROM "game_log" WHERE "team"='Houston';
## Task Generate a SQL query to answer the following question: `Name the record for houston` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "game_log" ( "game" real, "date" text, "team" text, "score" text, "high_points" text, "high_rebounds" text, "high_assists" text, "location_attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for houston`: ```sql
SELECT MIN("cardinal_points") FROM "schedule" WHERE "record"='19-4';
## Task Generate a SQL query to answer the following question: `Name the cardinal points for 19-4 record` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "location" text, "opponent" text, "cardinal_points" real, "opp_points" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the cardinal points for 19-4 record`: ```sql
SELECT "location" FROM "schedule" WHERE "record"='2-1';
## Task Generate a SQL query to answer the following question: `Name the location for 2-1 record` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "date" text, "location" text, "opponent" text, "cardinal_points" real, "opp_points" real, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the location for 2-1 record`: ```sql
SELECT COUNT("step_6") FROM "base_salary" WHERE "gs_grade"=11;
## Task Generate a SQL query to answer the following question: `Name the total number of step 6 for 11 gs grade` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "base_salary" ( "gs_grade" real, "step_1" text, "step_2" text, "step_3" text, "step_4" text, "step_5" text, "step_6" text, "step_7" text, "step_8" text, "step_9" text, "step_10" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of step 6 for 11 gs grade`: ```sql
SELECT "score_in_final" FROM "wta_tier_i" WHERE "championship"='Moscow';
## Task Generate a SQL query to answer the following question: `such as are entire the rating of closing where championship is moscow` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tier_i" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `such as are entire the rating of closing where championship is moscow`: ```sql
SELECT COUNT("score_in_final") FROM "wta_tier_i" WHERE "opponents_in_final"='Alexandra Fusai Nathalie Tauziat';
## Task Generate a SQL query to answer the following question: `as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tier_i" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `as is the quantity variety of score between ultimate the place opponents between remaining is alexandra fusai nathalie tauziat`: ```sql
SELECT "opponents_in_final" FROM "wta_tier_i" WHERE "championship"='Zürich';
## Task Generate a SQL query to answer the following question: `what are every one of the rivals in conclusive where title is zürich` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tier_i" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `what are every one of the rivals in conclusive where title is zürich`: ```sql
SELECT "score_in_final" FROM "wta_tier_i" WHERE "championship"='Rome';
## Task Generate a SQL query to answer the following question: `what are all the score in conclusive where title is rome` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "wta_tier_i" ( "outcome" text, "year" real, "championship" text, "surface" text, "partner" text, "opponents_in_final" text, "score_in_final" text ); ### SQL Given the database schema, here is the SQL query that answers `what are all the score in conclusive where title is rome`: ```sql
SELECT MIN("num") FROM "import" WHERE "10_3_bbl_day_2006"=5097;
## Task Generate a SQL query to answer the following question: `At what # does 10 3 bbl/day (2006) equal 5097?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "import" ( "num" real, "importing_nation" text, "10_3_bbl_day_2011" real, "10_3_m_3_day_2011" real, "10_3_bbl_day_2009" real, "10_3_m_3_day_2009" real, "10_3_bbl_day_2006" real, "10_3_m_3_day_2006" real ); ### SQL Given the database schema, here is the SQL query that answers `At what # does 10 3 bbl/day (2006) equal 5097?`: ```sql
SELECT COUNT("importing_nation") FROM "import" WHERE "10_3_m_3_day_2006"=150;
## Task Generate a SQL query to answer the following question: `In how many importing nations is 10 3 m 3 /day (2006) equivalent to 150? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "import" ( "num" real, "importing_nation" text, "10_3_bbl_day_2011" real, "10_3_m_3_day_2011" real, "10_3_bbl_day_2009" real, "10_3_m_3_day_2009" real, "10_3_bbl_day_2006" real, "10_3_m_3_day_2006" real ); ### SQL Given the database schema, here is the SQL query that answers `In how many importing nations is 10 3 m 3 /day (2006) equivalent to 150? `: ```sql
SELECT MAX("10_3_m_3_day_2011") FROM "import" WHERE "10_3_bbl_day_2006"=787;
## Task Generate a SQL query to answer the following question: `What is the highest number in 10 3 m 3 /day (2011) where 10 3 bbl/day (2006) is equivalent to 787?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "import" ( "num" real, "importing_nation" text, "10_3_bbl_day_2011" real, "10_3_m_3_day_2011" real, "10_3_bbl_day_2009" real, "10_3_m_3_day_2009" real, "10_3_bbl_day_2006" real, "10_3_m_3_day_2006" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number in 10 3 m 3 /day (2011) where 10 3 bbl/day (2006) is equivalent to 787?`: ```sql
SELECT MAX("10_3_bbl_d_2008") FROM "production" WHERE "present_share"='1.7%';
## Task Generate a SQL query to answer the following question: `Name the most 10 3 bbl/d (2008) for present share being 1.7%` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "num" real, "producing_nation" text, "10_3_bbl_d_2006" text, "10_3_bbl_d_2007" real, "10_3_bbl_d_2008" real, "10_3_bbl_d_2009" real, "present_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the most 10 3 bbl/d (2008) for present share being 1.7%`: ```sql
SELECT "present_share" FROM "production" WHERE "producing_nation"='Australia';
## Task Generate a SQL query to answer the following question: `Name the present share for australia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "num" real, "producing_nation" text, "10_3_bbl_d_2006" text, "10_3_bbl_d_2007" real, "10_3_bbl_d_2008" real, "10_3_bbl_d_2009" real, "present_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the present share for australia`: ```sql
SELECT "10_3_bbl_d_2009" FROM "production" WHERE "10_3_bbl_d_2007"=180;
## Task Generate a SQL query to answer the following question: `Name the 10 3 bbl/d (2009) when 10 3 bbl/d (2007) is 180` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "production" ( "num" real, "producing_nation" text, "10_3_bbl_d_2006" text, "10_3_bbl_d_2007" real, "10_3_bbl_d_2008" real, "10_3_bbl_d_2009" real, "present_share" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 10 3 bbl/d (2009) when 10 3 bbl/d (2007) is 180`: ```sql