output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "08_00_pm" FROM "night" WHERE "time"='Thursday';
## Task Generate a SQL query to answer the following question: `Name the 8 pm when time is thursday` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "night" ( "time" text, "06_00_pm" text, "07_00_pm" text, "08_00_pm" text, "09_00_pm" text, "10_00_pm" text, "10_30_pm" text, "11_00_pm" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the 8 pm when time is thursday`: ```sql
SELECT "channel_tv_dt" FROM "television_stations" WHERE "station"='KPIX';
## Task Generate a SQL query to answer the following question: `What channel tv (dt) plays the KPIX station?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `What channel tv (dt) plays the KPIX station?`: ```sql
SELECT "city_of_license_market" FROM "television_stations" WHERE "channel_tv_dt"='3 (26)';
## Task Generate a SQL query to answer the following question: `Which city of license/market has 3 (26) as their channel tv (dt)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city of license/market has 3 (26) as their channel tv (dt)?`: ```sql
SELECT "channel_tv_dt" FROM "television_stations" WHERE "city_of_license_market"='San Francisco - Oakland - San Jose';
## Task Generate a SQL query to answer the following question: `Which channel tv (dt) plays in San Francisco - Oakland - San Jose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which channel tv (dt) plays in San Francisco - Oakland - San Jose?`: ```sql
SELECT COUNT("years_owned") FROM "television_stations" WHERE "station"='KPIX';
## Task Generate a SQL query to answer the following question: `How many years has station KPIX been owned?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `How many years has station KPIX been owned?`: ```sql
SELECT "city_of_license_market" FROM "television_stations" WHERE "channel_tv_dt"='3 (26)';
## Task Generate a SQL query to answer the following question: `Which city of license/market plays 3 (26)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `Which city of license/market plays 3 (26)?`: ```sql
SELECT "current_affiliation" FROM "television_stations" WHERE "city_of_license_market"='San Francisco - Oakland - San Jose';
## Task Generate a SQL query to answer the following question: `Who currently affiliates in San Francisco - Oakland - San Jose?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "television_stations" ( "city_of_license_market" text, "station" text, "channel_tv_dt" text, "years_owned" text, "current_affiliation" text ); ### SQL Given the database schema, here is the SQL query that answers `Who currently affiliates in San Francisco - Oakland - San Jose?`: ```sql
SELECT "condition" FROM "laboratory_findings_in_various_platelet_" WHERE "bleeding_time"='Prolonged' AND "prothrombin_time"='Unaffected';
## Task Generate a SQL query to answer the following question: `In which condition(s) is bleeding time prolonged and prothrombin time unaffected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `In which condition(s) is bleeding time prolonged and prothrombin time unaffected?`: ```sql
SELECT COUNT("prothrombin_time") FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased or unaffected';
## Task Generate a SQL query to answer the following question: `How many entries for prothrombin time are there where platelet count is "decreased or unaffected"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `How many entries for prothrombin time are there where platelet count is "decreased or unaffected"?`: ```sql
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "platelet_count"='Decreased' AND "prothrombin_time"='Unaffected';
## Task Generate a SQL query to answer the following question: `How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `How is the bleeding time wherein platelet count is decreased and prothrombin time is unaffected?`: ```sql
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "prothrombin_time"='Unaffected' AND "platelet_count"='Unaffected';
## Task Generate a SQL query to answer the following question: `What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What are all the possible bleeding time results where prothrombin time and platelet count are both unaffected?`: ```sql
SELECT "percentage_of_land_area" FROM "table1_15555661_2" WHERE "percentage_protected"='7.96';
## Task Generate a SQL query to answer the following question: `What is the percentage of land area in the ecozone that the percentage protected is 7.96?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of land area in the ecozone that the percentage protected is 7.96?`: ```sql
SELECT "percentage_of_total_area" FROM "table1_15555661_2" WHERE "percentage_of_land_area"='2.2';
## Task Generate a SQL query to answer the following question: `What is the percentage of total area in the ecozone that the percentage of land area is 2.2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of total area in the ecozone that the percentage of land area is 2.2?`: ```sql
SELECT "percentage_of_total_area" FROM "table1_15555661_2" WHERE "percentage_protected"='8.06';
## Task Generate a SQL query to answer the following question: `What is the percentage of total area in the ecozone that the percentage protected is 8.06?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of total area in the ecozone that the percentage protected is 8.06?`: ```sql
SELECT "percentage_of_land_area" FROM "table1_15555661_2" WHERE "percentage_protected"='15.28';
## Task Generate a SQL query to answer the following question: `What is the percentage of land area in the ecozone that the percentage protected is 15.28?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of land area in the ecozone that the percentage protected is 15.28?`: ```sql
SELECT COUNT("area_km") FROM "table1_15555661_2" WHERE "ecozone"='Boreal Shield';
## Task Generate a SQL query to answer the following question: `How large is the Boreal Shield in km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `How large is the Boreal Shield in km2?`: ```sql
SELECT "percentage_of_total_area" FROM "table1_15555661_2" WHERE "area_km"=1782252;
## Task Generate a SQL query to answer the following question: `What is the percentage of total area in the ecozone that the area is 1782252 km2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15555661_2" ( "ecozone" text, "area_km" real, "percentage_of_total_area" text, "percentage_of_land_area" text, "percentage_protected" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the percentage of total area in the ecozone that the area is 1782252 km2?`: ```sql
SELECT "platelet_count" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Hemophilia';
## Task Generate a SQL query to answer the following question: `What is the condition of the platelet counts in hemophilia?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the condition of the platelet counts in hemophilia?`: ```sql
SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Von Willebrand disease';
## Task Generate a SQL query to answer the following question: `What is the prothrombin time in Von willebrand disease?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the prothrombin time in Von willebrand disease?`: ```sql
SELECT "prothrombin_time" FROM "laboratory_findings_in_various_platelet_" WHERE "partial_thromboplastin_time"='Prolonged' AND "bleeding_time"='Prolonged';
## Task Generate a SQL query to answer the following question: `If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `If the partial thromboplastin and bleeding time is prolonged, what is the prothrombin time?`: ```sql
SELECT "bleeding_time" FROM "laboratory_findings_in_various_platelet_" WHERE "condition"='Bernard-Soulier syndrome';
## Task Generate a SQL query to answer the following question: `What is the bleeding time in Bernard-soulier syndrome?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "laboratory_findings_in_various_platelet_" ( "condition" text, "prothrombin_time" text, "partial_thromboplastin_time" text, "bleeding_time" text, "platelet_count" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the bleeding time in Bernard-soulier syndrome?`: ```sql
SELECT "ring_name" FROM "list" WHERE "current_rank"='f0 Jūryō 3 West';
## Task Generate a SQL query to answer the following question: `Which ring names are currently ranked f0 jūryō 3 west?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "ring_name" text, "current_rank" text, "debut" text, "stable" text, "birthplace" text, "career_and_other_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Which ring names are currently ranked f0 jūryō 3 west?`: ```sql
SELECT COUNT("career_and_other_notes") FROM "list" WHERE "birthplace"='Nara';
## Task Generate a SQL query to answer the following question: `How many wrestlers were born in nara, and have a completed 'career and other notes' section?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "ring_name" text, "current_rank" text, "debut" text, "stable" text, "birthplace" text, "career_and_other_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `How many wrestlers were born in nara, and have a completed 'career and other notes' section?`: ```sql
SELECT "debut" FROM "list" WHERE "birthplace"='Nara';
## Task Generate a SQL query to answer the following question: `What are the debut year for wrestlers born in Nara?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "ring_name" text, "current_rank" text, "debut" text, "stable" text, "birthplace" text, "career_and_other_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the debut year for wrestlers born in Nara?`: ```sql
SELECT "birthplace" FROM "list" WHERE "debut"='2002-7';
## Task Generate a SQL query to answer the following question: `Where were the wrestlers born who debuted in 2002-7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "ring_name" text, "current_rank" text, "debut" text, "stable" text, "birthplace" text, "career_and_other_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `Where were the wrestlers born who debuted in 2002-7?`: ```sql
SELECT "career_and_other_notes" FROM "list" WHERE "stable"='Oguruma';
## Task Generate a SQL query to answer the following question: `What are the career and other notes for wrestlers whose stable is oguruma?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list" ( "ring_name" text, "current_rank" text, "debut" text, "stable" text, "birthplace" text, "career_and_other_notes" text ); ### SQL Given the database schema, here is the SQL query that answers `What are the career and other notes for wrestlers whose stable is oguruma?`: ```sql
SELECT "kinship" FROM "kinship_terms" WHERE "proto_malayo_polynesian"='*t-ina';
## Task Generate a SQL query to answer the following question: `Name the kinship for *t-ina` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kinship_terms" ( "kinship" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "proto_oceanic" text, "proto_polynesian" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the kinship for *t-ina`: ```sql
SELECT COUNT("proto_austronesian") FROM "kinship_terms" WHERE "proto_oceanic"='*natu';
## Task Generate a SQL query to answer the following question: `Name the number of proto austronesian for *natu` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kinship_terms" ( "kinship" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "proto_oceanic" text, "proto_polynesian" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of proto austronesian for *natu`: ```sql
SELECT "proto_austronesian" FROM "kinship_terms" WHERE "kinship"='father';
## Task Generate a SQL query to answer the following question: `Name the ptor-austronesian for father` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kinship_terms" ( "kinship" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "proto_oceanic" text, "proto_polynesian" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the ptor-austronesian for father`: ```sql
SELECT "proto_oceanic" FROM "kinship_terms" WHERE "proto_polynesian"='*fafine';
## Task Generate a SQL query to answer the following question: `Name the proto oceanic for *fafine` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kinship_terms" ( "kinship" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "proto_oceanic" text, "proto_polynesian" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the proto oceanic for *fafine`: ```sql
SELECT "proto_austronesian" FROM "kinship_terms" WHERE "proto_oceanic"='*pine, *papine';
## Task Generate a SQL query to answer the following question: `Name the proto-austrronesian for *pine, *papine` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "kinship_terms" ( "kinship" text, "proto_austronesian" text, "proto_malayo_polynesian" text, "proto_oceanic" text, "proto_polynesian" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the proto-austrronesian for *pine, *papine`: ```sql
SELECT "written_by" FROM "table1_15584067_4" WHERE "no_in_series"=47;
## Task Generate a SQL query to answer the following question: `Name who wrote number 47` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15584067_4" ( "no_in_series" real, "no_in_season" real, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who wrote number 47`: ```sql
SELECT MAX("mass_kg") FROM "early_u_s_unmanned_lunar_missions_1958_1";
## Task Generate a SQL query to answer the following question: `What is the largest mass(kg)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "early_u_s_unmanned_lunar_missions_1958_1" ( "u_s_mission" text, "mass_kg" real, "launch_vehicle" text, "launched" text, "mission_goal" text, "mission_result" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest mass(kg)?`: ```sql
SELECT "college" FROM "table1_15582870_1" WHERE "choice"=143;
## Task Generate a SQL query to answer the following question: `Which college did draft pick #143 attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15582870_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college did draft pick #143 attend?`: ```sql
SELECT "weight" FROM "table1_15582870_1" WHERE "college"='Arkansas';
## Task Generate a SQL query to answer the following question: `How heavy were the players who attended Arkansas?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15582870_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How heavy were the players who attended Arkansas?`: ```sql
SELECT "college" FROM "table1_15582870_1" WHERE "weight"=207;
## Task Generate a SQL query to answer the following question: `Which college did the player weighing 207 pounds attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15582870_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which college did the player weighing 207 pounds attend?`: ```sql
SELECT "written_by" FROM "table1_15584067_7" WHERE "u_s_viewers_million"='1.81';
## Task Generate a SQL query to answer the following question: `Name who wrote the episode when the viewers was 1.81` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15584067_7" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who wrote the episode when the viewers was 1.81`: ```sql
SELECT "directed_by" FROM "table1_15584067_7" WHERE "no_in_series"='114';
## Task Generate a SQL query to answer the following question: `Name who directed the 114 episode in the series` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15584067_7" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who directed the 114 episode in the series`: ```sql
SELECT COUNT("original_air_date") FROM "table1_15584067_7" WHERE "no_in_series"='102';
## Task Generate a SQL query to answer the following question: `Name the total number of air dates for 102 episode` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15584067_7" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the total number of air dates for 102 episode`: ```sql
SELECT "written_by" FROM "table1_15584067_7" WHERE "no_in_season"='11';
## Task Generate a SQL query to answer the following question: `Name who wrote the 11 number in the season` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15584067_7" ( "no_in_series" text, "no_in_season" text, "title" text, "directed_by" text, "written_by" text, "original_air_date" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Name who wrote the 11 number in the season`: ```sql
SELECT "award_name" FROM "recent_winners" WHERE "team_name"='BLACK OCEAN CURRENT';
## Task Generate a SQL query to answer the following question: `Name the award name for black ocean current` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "recent_winners" ( "year_theme" text, "award_name" text, "team_name" text, "team_number" real, "city_state_country" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the award name for black ocean current`: ```sql
SELECT "position" FROM "table1_15592941_1" WHERE "college"='Florida State';
## Task Generate a SQL query to answer the following question: `What position(s) do players from florida state play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15592941_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What position(s) do players from florida state play?`: ```sql
SELECT "weight" FROM "table1_15592941_1" WHERE "player_name"='Geno Hayes';
## Task Generate a SQL query to answer the following question: `How much does geno hayes weigh?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15592941_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `How much does geno hayes weigh?`: ```sql
SELECT "college" FROM "table1_15592941_1" WHERE "player_name"='Jeremy Zuttah';
## Task Generate a SQL query to answer the following question: `What college did jeremy zuttah attend?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_15592941_1" ( "round" real, "choice" real, "player_name" text, "position" text, "height" text, "weight" real, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `What college did jeremy zuttah attend?`: ```sql
SELECT "pf" FROM "round_robin_standings" WHERE "skip"='Brian Rafuse';
## Task Generate a SQL query to answer the following question: `What was brian rafuse's pf?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `What was brian rafuse's pf?`: ```sql
SELECT MAX("pa") FROM "round_robin_standings" WHERE "stolen_ends"=5;
## Task Generate a SQL query to answer the following question: `When the stolen ends equal 5 whats the amount of pa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "round_robin_standings" ( "locale" text, "skip" text, "w" real, "l" real, "pf" real, "pa" real, "ends_won" real, "ends_lost" real, "blank_ends" real, "stolen_ends" real, "shot_pct" real ); ### SQL Given the database schema, here is the SQL query that answers `When the stolen ends equal 5 whats the amount of pa?`: ```sql
SELECT "position_in_2013" FROM "current_clubs_2014_season" WHERE "first_season"=2014;
## Task Generate a SQL query to answer the following question: `What position is the player whose first year is 2014` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" text ); ### SQL Given the database schema, here is the SQL query that answers `What position is the player whose first year is 2014`: ```sql
SELECT "position_in_2013" FROM "current_clubs_2014_season" WHERE "number_of_seasons_in_second_tier"='29';
## Task Generate a SQL query to answer the following question: `What was the players position in 2013 who had 29 seasons in the second tier` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the players position in 2013 who had 29 seasons in the second tier`: ```sql
SELECT "first_season" FROM "current_clubs_2014_season" WHERE "club"='Syrianska FC';
## Task Generate a SQL query to answer the following question: `What was the first season for Syrianska FC` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the first season for Syrianska FC`: ```sql
SELECT MIN("first_season") FROM "current_clubs_2014_season";
## Task Generate a SQL query to answer the following question: `What was the earliest season recorded for any team` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "current_clubs_2014_season" ( "club" text, "position_in_2013" text, "first_season" real, "first_season_of_current_spell" real, "number_of_seasons_in_superettan" real, "number_of_seasons_in_second_tier" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the earliest season recorded for any team`: ```sql
SELECT MAX("points_for") FROM "schedule" WHERE "date"='October 11';
## Task Generate a SQL query to answer the following question: `Name the number of points for october 11` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of points for october 11`: ```sql
SELECT "date" FROM "schedule" WHERE "week"=9;
## Task Generate a SQL query to answer the following question: `Name the date for week 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for week 9`: ```sql
SELECT "points_against" FROM "schedule" WHERE "date"='November 7';
## Task Generate a SQL query to answer the following question: `Name the points against for november 7` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the points against for november 7`: ```sql
SELECT "points_against" FROM "schedule" WHERE "date"='November 14';
## Task Generate a SQL query to answer the following question: `Name the points against for november 14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the points against for november 14`: ```sql
SELECT "first_downs" FROM "schedule" WHERE "points_against"=0;
## Task Generate a SQL query to answer the following question: `Name the first downs for points against being 0` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the first downs for points against being 0`: ```sql
SELECT "record" FROM "schedule" WHERE "opponent"='New York Giants';
## Task Generate a SQL query to answer the following question: `Name the record for new york giants` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "result" text, "record" text, "opponent" text, "points_for" real, "points_against" real, "first_downs" real, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the record for new york giants`: ```sql
SELECT MIN("purse_us") FROM "winners" WHERE "year"=2011;
## Task Generate a SQL query to answer the following question: `Name the least purse for 2011` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "winners" ( "year" real, "dates" text, "champion" text, "country" text, "score" text, "margin_of_victory" text, "tournament_location" text, "purse_us" real, "winners_share" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least purse for 2011`: ```sql
SELECT COUNT("wheel_arrangement") FROM "lner" WHERE "class"='D14';
## Task Generate a SQL query to answer the following question: `Name the number of wheel arrangement when class is d14` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_pyewipe" real, "number_at_march" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of wheel arrangement when class is d14`: ```sql
SELECT MAX("number_at_pyewipe") FROM "lner";
## Task Generate a SQL query to answer the following question: `Name the most number of pyewipe` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_pyewipe" real, "number_at_march" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most number of pyewipe`: ```sql
SELECT "number_at_march" FROM "lner" WHERE "class"='J66';
## Task Generate a SQL query to answer the following question: `Name the number at march when class is j66` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_pyewipe" real, "number_at_march" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the number at march when class is j66`: ```sql
SELECT "railway" FROM "lner" WHERE "class"='J19';
## Task Generate a SQL query to answer the following question: `Name the railway when class is j19` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_pyewipe" real, "number_at_march" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the railway when class is j19`: ```sql
SELECT "railway" FROM "lner" WHERE "class"='J15';
## Task Generate a SQL query to answer the following question: `Name the railway when class is j15` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "lner" ( "class" text, "wheel_arrangement" text, "railway" text, "number_at_doncaster" real, "number_at_pyewipe" real, "number_at_march" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the railway when class is j15`: ```sql
SELECT "years_in_orlando" FROM "a" WHERE "school_club_team"='Penn State';
## Task Generate a SQL query to answer the following question: `Name the years in orlando for penn state` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the years in orlando for penn state`: ```sql
SELECT "nationality" FROM "a" WHERE "no"=9;
## Task Generate a SQL query to answer the following question: `Name the nationality of number 9` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "a" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the nationality of number 9`: ```sql
SELECT "years_in_orlando" FROM "k" WHERE "position"='Forward';
## Task Generate a SQL query to answer the following question: `Name the years in orlando for forward` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the years in orlando for forward`: ```sql
SELECT COUNT("player") FROM "k" WHERE "school_club_team"='Arizona';
## Task Generate a SQL query to answer the following question: `Name the number of players from arizona` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of players from arizona`: ```sql
SELECT "years_in_orlando" FROM "k" WHERE "school_club_team"='Concord HS';
## Task Generate a SQL query to answer the following question: `Name the years in orlando that the player from concord hs was in` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "k" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the years in orlando that the player from concord hs was in`: ```sql
SELECT COUNT("player") FROM "o" WHERE "school_club_team"='Louisiana State';
## Task Generate a SQL query to answer the following question: `Name the number of players for louisiana state` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the number of players for louisiana state`: ```sql
SELECT "school_club_team" FROM "o" WHERE "player"='Kevin Ollie';
## Task Generate a SQL query to answer the following question: `Name the school/club team for kevin ollie` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the school/club team for kevin ollie`: ```sql
SELECT "school_club_team" FROM "o" WHERE "player"='Jawann Oldham';
## Task Generate a SQL query to answer the following question: `Name the school/club team for jawann oldham` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the school/club team for jawann oldham`: ```sql
SELECT "player" FROM "o" WHERE "school_club_team"='Seattle';
## Task Generate a SQL query to answer the following question: `Name the player for seattle` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "o" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the player for seattle`: ```sql
SELECT "nationality" FROM "r" WHERE "school_club_team"='Clemson';
## Task Generate a SQL query to answer the following question: `What is the nationality of th player who's school is Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the nationality of th player who's school is Clemson?`: ```sql
SELECT "years_in_orlando" FROM "r" WHERE "school_club_team"='Clemson';
## Task Generate a SQL query to answer the following question: `What years did the player who's school is Clemson spend in Orlando?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did the player who's school is Clemson spend in Orlando?`: ```sql
SELECT MAX("no") FROM "r" WHERE "school_club_team"='Delta State';
## Task Generate a SQL query to answer the following question: `What is the number of the player who attended Delta State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "r" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of the player who attended Delta State?`: ```sql
SELECT "player" FROM "b" WHERE "position"='Forward-Center';
## Task Generate a SQL query to answer the following question: `Who plays the position of forward-center?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "b" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `Who plays the position of forward-center?`: ```sql
SELECT "years_in_orlando" FROM "c" WHERE "player"='Chris Corchiani';
## Task Generate a SQL query to answer the following question: `During what years did Chris Corchiani play in Orlando?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c" ( "player" text, "no" real, "nationality" text, "position" text, "years_in_orlando" text, "school_club_team" text ); ### SQL Given the database schema, here is the SQL query that answers `During what years did Chris Corchiani play in Orlando?`: ```sql
SELECT "date_of_issue" FROM "the_sheets" WHERE "face_value"='42¢';
## Task Generate a SQL query to answer the following question: `When the face value is 42¢, what was the issue's date?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_sheets" ( "ecosystem" text, "date_of_issue" text, "place_of_issue" text, "no_stamps_in_sheet" real, "face_value" text, "printer" text ); ### SQL Given the database schema, here is the SQL query that answers `When the face value is 42¢, what was the issue's date?`: ```sql
SELECT "place_of_issue" FROM "the_sheets" WHERE "ecosystem"='Kelp Forest';
## Task Generate a SQL query to answer the following question: `Which location has the ecosystem of kelp forest?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_sheets" ( "ecosystem" text, "date_of_issue" text, "place_of_issue" text, "no_stamps_in_sheet" real, "face_value" text, "printer" text ); ### SQL Given the database schema, here is the SQL query that answers `Which location has the ecosystem of kelp forest?`: ```sql
SELECT COUNT("no_stamps_in_sheet") FROM "the_sheets" WHERE "face_value"='37¢' AND "printer"='Banknote Corporation of America';
## Task Generate a SQL query to answer the following question: `How many stamps have a face value of 37¢ and were printed in the banknote corporation of america?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_sheets" ( "ecosystem" text, "date_of_issue" text, "place_of_issue" text, "no_stamps_in_sheet" real, "face_value" text, "printer" text ); ### SQL Given the database schema, here is the SQL query that answers `How many stamps have a face value of 37¢ and were printed in the banknote corporation of america?`: ```sql
SELECT "printer" FROM "the_sheets" WHERE "place_of_issue"='Estes Park, Colorado';
## Task Generate a SQL query to answer the following question: `Who was the printer of Estes Park, Colorado?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_sheets" ( "ecosystem" text, "date_of_issue" text, "place_of_issue" text, "no_stamps_in_sheet" real, "face_value" text, "printer" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the printer of Estes Park, Colorado?`: ```sql
SELECT "printer" FROM "the_sheets" WHERE "face_value"='39¢';
## Task Generate a SQL query to answer the following question: `The stamp was 39¢, who was the printer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_sheets" ( "ecosystem" text, "date_of_issue" text, "place_of_issue" text, "no_stamps_in_sheet" real, "face_value" text, "printer" text ); ### SQL Given the database schema, here is the SQL query that answers `The stamp was 39¢, who was the printer?`: ```sql
SELECT "attendance" FROM "summary_table" WHERE "location"='El Paso, TX';
## Task Generate a SQL query to answer the following question: `What are values of attendance for the El Paso, TX location?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What are values of attendance for the El Paso, TX location?`: ```sql
SELECT COUNT("result") FROM "summary_table" WHERE "attendance"='74,111';
## Task Generate a SQL query to answer the following question: `How many values for result correspond to attendance of 74,111?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values for result correspond to attendance of 74,111?`: ```sql
SELECT COUNT("location") FROM "summary_table" WHERE "stadium"='Sun Life Stadium';
## Task Generate a SQL query to answer the following question: `How many locations have the Sun Life Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many locations have the Sun Life Stadium?`: ```sql
SELECT MAX("season") FROM "summary_table" WHERE "bowl_game"='1993 Independence Bowl';
## Task Generate a SQL query to answer the following question: `What is the highest season for a bowl game of the 1993 Independence Bowl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest season for a bowl game of the 1993 Independence Bowl?`: ```sql
SELECT MIN("num") FROM "summary_table" WHERE "location"='Atlanta, GA' AND "opponent"='Georgia Bulldogs';
## Task Generate a SQL query to answer the following question: `What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest # in Atlanta, GA with the Georgia Bulldogs as an opponent?`: ```sql
SELECT COUNT("attendance") FROM "summary_table" WHERE "bowl_game"='1986 Peach Bowl';
## Task Generate a SQL query to answer the following question: `How many values for attendance correspond to the 1986 Peach Bowl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary_table" ( "num" real, "season" real, "bowl_game" text, "result" text, "opponent" text, "stadium" text, "location" text, "attendance" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values for attendance correspond to the 1986 Peach Bowl?`: ```sql
SELECT "interview_subject" FROM "table1_1566848_7" WHERE "date"='2-86';
## Task Generate a SQL query to answer the following question: `Who was the interview subject in the 2-86 issue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the interview subject in the 2-86 issue?`: ```sql
SELECT COUNT("pictorials") FROM "table1_1566848_7" WHERE "centerfold_model"='Rebekka Armstrong';
## Task Generate a SQL query to answer the following question: `Who were all the pictorials when the centerfold model was Rebekka Armstrong?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were all the pictorials when the centerfold model was Rebekka Armstrong?`: ```sql
SELECT "pictorials" FROM "table1_1566848_7" WHERE "centerfold_model"='Ava Fabian';
## Task Generate a SQL query to answer the following question: `Who were the pictorials when the centerfold model was Ava Fabian?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who were the pictorials when the centerfold model was Ava Fabian?`: ```sql
SELECT COUNT("interview_subject") FROM "table1_1566848_7" WHERE "centerfold_model"='Sherry Arnett';
## Task Generate a SQL query to answer the following question: `Who was the interview subject when the centerfold model was Sherry Arnett?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the interview subject when the centerfold model was Sherry Arnett?`: ```sql
SELECT "cover_model" FROM "table1_1566848_7" WHERE "date"='7-86';
## Task Generate a SQL query to answer the following question: `Who was the cover model in the 7-86 issue?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the cover model in the 7-86 issue?`: ```sql
SELECT COUNT("date") FROM "table1_1566848_7" WHERE "pictorials"='Female s disk jockey';
## Task Generate a SQL query to answer the following question: `What is the date of the issue where the pictorials is of Female s disk jockey?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566848_7" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the date of the issue where the pictorials is of Female s disk jockey?`: ```sql
SELECT "cover_model" FROM "table1_1566852_3" WHERE "centerfold_model"='Shallan Meiers';
## Task Generate a SQL query to answer the following question: `WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566852_3" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `WHO WAS THE COVER MODEL OF PLAYBOY WHERE THE CENTERFOLD MODEL WAS SHALLAN MEIERS?`: ```sql
SELECT "centerfold_model" FROM "table1_1566852_3" WHERE "20_questions"='Oscar de la Hoya';
## Task Generate a SQL query to answer the following question: `WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE OSCAR DE LA HOYA ANSWERED THE 20 QUESTIONS?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566852_3" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `WHO WAS THE CENTERFOLD MODEL IN THE ISSUE WHERE OSCAR DE LA HOYA ANSWERED THE 20 QUESTIONS?`: ```sql
SELECT "interview_subject" FROM "table1_1566852_3" WHERE "centerfold_model"='Nicole Narain';
## Task Generate a SQL query to answer the following question: `IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566852_3" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `IN THE ISSUE WHERE NICOLE NARAIN WAS THE CENTERFOLD MODEL, WHO WAS THE INTERVIEW SUBJECT?`: ```sql
SELECT COUNT("pictorials") FROM "table1_1566852_3" WHERE "20_questions"='Lenny Kravitz';
## Task Generate a SQL query to answer the following question: `IN THE ISSUE WHERE LENNY KRAVITZ ANSWERED THE 20 QUESTIONS, HOW MANY PICTORIALS WERE IN THE MAGAZINE?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566852_3" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `IN THE ISSUE WHERE LENNY KRAVITZ ANSWERED THE 20 QUESTIONS, HOW MANY PICTORIALS WERE IN THE MAGAZINE?`: ```sql
SELECT COUNT("date") FROM "table1_1566852_3" WHERE "interview_subject"='Harrison Ford';
## Task Generate a SQL query to answer the following question: `IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_1566852_3" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `IN HOW MANY ISSUES WAS HARRISON FORD THE INTERVIEW SUBJECT?`: ```sql
SELECT "20_questions" FROM "2003" WHERE "interview_subject"='Mike Piazza';
## Task Generate a SQL query to answer the following question: `Who was featured in 20 questions when the subject of the interview was Mike Piazza?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was featured in 20 questions when the subject of the interview was Mike Piazza?`: ```sql
SELECT "20_questions" FROM "2003" WHERE "date"='4-03';
## Task Generate a SQL query to answer the following question: `Who was featured in 20 questions on 4-03?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2003" ( "date" text, "cover_model" text, "centerfold_model" text, "interview_subject" text, "20_questions" text, "pictorials" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was featured in 20 questions on 4-03?`: ```sql