output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "country" FROM "references" WHERE "miss_universe"='6';
## Task Generate a SQL query to answer the following question: `Which country has had 6 miss universe's?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "country" text, "miss_universe" text, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country has had 6 miss universe's?`: ```sql
SELECT "country" FROM "references" WHERE "miss_universe"='8';
## Task Generate a SQL query to answer the following question: `Which country has had 8 miss universes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "rank" real, "country" text, "miss_universe" text, "1st_runner_up" real, "2nd_runner_up" real, "3rd_runner_up" real, "4th_runner_up" real, "semifinalists" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which country has had 8 miss universes?`: ```sql
SELECT MIN("points") FROM "relegation" WHERE "average"='1.412';
## Task Generate a SQL query to answer the following question: `What is the minimum number of points for teams averaging 1.412?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the minimum number of points for teams averaging 1.412?`: ```sql
SELECT "2004_05" FROM "relegation" WHERE "2005_06"='56/38';
## Task Generate a SQL query to answer the following question: `What is the 2004-2005 value associated with a 2005-2006 value of 56/38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2004-2005 value associated with a 2005-2006 value of 56/38?`: ```sql
SELECT COUNT("average") FROM "relegation" WHERE "2003_04"='62/38';
## Task Generate a SQL query to answer the following question: `How many averages are associated with a 2003-2004 value of 62/38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `How many averages are associated with a 2003-2004 value of 62/38?`: ```sql
SELECT "2003_04" FROM "relegation" WHERE "average"='1.377';
## Task Generate a SQL query to answer the following question: `What 2003-2004 values are associated with an average of 1.377?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `What 2003-2004 values are associated with an average of 1.377?`: ```sql
SELECT COUNT("team") FROM "relegation" WHERE "2004_05"='49/38';
## Task Generate a SQL query to answer the following question: `How many teams have a 2004-05 value of 49/38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `How many teams have a 2004-05 value of 49/38?`: ```sql
SELECT COUNT("2003_04") FROM "relegation" WHERE "2004_05"='73/38';
## Task Generate a SQL query to answer the following question: `How many 2003-04 values have a 2004-05 value of 73/38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "relegation" ( "team" text, "average" text, "points" real, "played" real, "2003_04" text, "2004_05" text, "2005_06" text ); ### SQL Given the database schema, here is the SQL query that answers `How many 2003-04 values have a 2004-05 value of 73/38?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_2866503_1" WHERE "written_by"='Matthew Okumura';
## Task Generate a SQL query to answer the following question: `How many millions of viewers are listed where the writer is Matthew Okumura?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many millions of viewers are listed where the writer is Matthew Okumura?`: ```sql
SELECT "u_s_air_date" FROM "table1_2866503_1" WHERE "title"='\"Calling\"';
## Task Generate a SQL query to answer the following question: `What is the U.S air date when the title is "calling"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the U.S air date when the title is "calling"?`: ```sql
SELECT "u_s_air_date" FROM "table1_2866503_1" WHERE "u_s_viewers_million"='7.5';
## Task Generate a SQL query to answer the following question: `What is the U.S. air date when the U.S. viewers are 7.5 million?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866503_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the U.S. air date when the U.S. viewers are 7.5 million?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_2866456_1" WHERE "num"=6;
## Task Generate a SQL query to answer the following question: `How many u.s. viewers (million) have 6 as the #?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `How many u.s. viewers (million) have 6 as the #?`: ```sql
SELECT "directed_by" FROM "table1_2866456_1" WHERE "title"='\"Fade\"';
## Task Generate a SQL query to answer the following question: `Who is directed by when "fade" is the title?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is directed by when "fade" is the title?`: ```sql
SELECT "directed_by" FROM "table1_2866456_1" WHERE "production_code"='2T6404';
## Task Generate a SQL query to answer the following question: `Who is the directed by when 2t6404 is the production code?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866456_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" text, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the directed by when 2t6404 is the production code?`: ```sql
SELECT "no" FROM "table1_2866509_1" WHERE "u_s_viewers_million"='5.60';
## Task Generate a SQL query to answer the following question: `what is the number of the episode in the season that had 5.60 millions of north american spectors?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866509_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the number of the episode in the season that had 5.60 millions of north american spectors?`: ```sql
SELECT "written_by" FROM "table1_2866509_1" WHERE "production_code"=176206;
## Task Generate a SQL query to answer the following question: `who are the writers of the episode whose production code is 176206? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2866509_1" ( "no" real, "num" real, "title" text, "directed_by" text, "written_by" text, "u_s_air_date" text, "production_code" real, "u_s_viewers_million" text ); ### SQL Given the database schema, here is the SQL query that answers `who are the writers of the episode whose production code is 176206? `: ```sql
SELECT "stadium" FROM "see_also" WHERE "home_team"='FK Rudar';
## Task Generate a SQL query to answer the following question: `What stadium does FK Rudar play in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What stadium does FK Rudar play in?`: ```sql
SELECT "city_town" FROM "see_also" WHERE "stadium"='Stadion Zlatica';
## Task Generate a SQL query to answer the following question: `What town holds Stadion Zlatica?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What town holds Stadion Zlatica?`: ```sql
SELECT "stadium" FROM "see_also" WHERE "home_team"='FK Jedinstvo';
## Task Generate a SQL query to answer the following question: `What stadium does FK Jedinstvo play in?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "num" real, "stadium" text, "capacity" real, "opened" text, "city_town" text, "home_team" text ); ### SQL Given the database schema, here is the SQL query that answers `What stadium does FK Jedinstvo play in?`: ```sql
SELECT MIN("tor_fl_ysvik") FROM "week_6" WHERE "karianne_gulliksen"=6;
## Task Generate a SQL query to answer the following question: `What is listed in tor floysvik when karianne gulliksen is 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed in tor floysvik when karianne gulliksen is 6?`: ```sql
SELECT COUNT("music") FROM "week_6" WHERE "tor_fl_ysvik"=3;
## Task Generate a SQL query to answer the following question: `How many music entries are there when tor floysvik is 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many music entries are there when tor floysvik is 3?`: ```sql
SELECT MIN("christer_tornell") FROM "week_6" WHERE "karianne_gulliksen"=7;
## Task Generate a SQL query to answer the following question: `What is listed under chister tornell when karianne gulliksen is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under chister tornell when karianne gulliksen is 7?`: ```sql
SELECT MIN("tor_fl_ysvik") FROM "week_6" WHERE "couple"='Maria & Asmund';
## Task Generate a SQL query to answer the following question: `What is listed under tor floysvik when couple is maria & asmund?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_6" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is listed under tor floysvik when couple is maria & asmund?`: ```sql
SELECT COUNT("date_of_commissioning") FROM "installed_capacity" WHERE "unit_number"=2;
## Task Generate a SQL query to answer the following question: `What are Unit 2's dates of commissioning?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "installed_capacity" ( "stage" text, "unit_number" real, "installed_capacity_mw" text, "date_of_commissioning" text, "status" text, "tg_set_provider" text, "boiler_provider" text ); ### SQL Given the database schema, here is the SQL query that answers `What are Unit 2's dates of commissioning?`: ```sql
SELECT "boiler_provider" FROM "installed_capacity" WHERE "tg_set_provider"='BHEL, India';
## Task Generate a SQL query to answer the following question: `What is the boiler provider for Bhel, India's TG Set provider?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "installed_capacity" ( "stage" text, "unit_number" real, "installed_capacity_mw" text, "date_of_commissioning" text, "status" text, "tg_set_provider" text, "boiler_provider" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the boiler provider for Bhel, India's TG Set provider?`: ```sql
SELECT MIN("trine_dehli_cleve") FROM "week_10" WHERE "style"='English Waltz';
## Task Generate a SQL query to answer the following question: `Name the trine dehli cleve for english waltz` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the trine dehli cleve for english waltz`: ```sql
SELECT "style" FROM "week_10" WHERE "total"=39;
## Task Generate a SQL query to answer the following question: `Name the style for 39 ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the style for 39 `: ```sql
SELECT "style" FROM "week_10" WHERE "total"=27;
## Task Generate a SQL query to answer the following question: `Name the style for 27` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the style for 27`: ```sql
SELECT MAX("tor_fl_ysvik") FROM "week_10" WHERE "karianne_gulliksen"=8;
## Task Generate a SQL query to answer the following question: `Name the most for fløysvik for 8` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_10" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most for fløysvik for 8`: ```sql
SELECT COUNT("tor_fl_ysvik") FROM "week_7" WHERE "christer_tornell"=7;
## Task Generate a SQL query to answer the following question: `how many for floysvik and christer tornell is 7?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_7" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `how many for floysvik and christer tornell is 7?`: ```sql
SELECT COUNT("christer_tornell") FROM "week_7" WHERE "total"=30;
## Task Generate a SQL query to answer the following question: `how many for christer tornell where the total is 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_7" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `how many for christer tornell where the total is 30?`: ```sql
SELECT "karianne_gulliksen" FROM "week_12" WHERE "music"='\" La Cumparsita \"— Tango Argentino';
## Task Generate a SQL query to answer the following question: `What score did Karianne Gulliksen give to the couple that danced to " la cumparsita "— tango argentino?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What score did Karianne Gulliksen give to the couple that danced to " la cumparsita "— tango argentino?`: ```sql
SELECT "couple" FROM "week_12" WHERE "total"=38;
## Task Generate a SQL query to answer the following question: `What is the couple that received a total score of 38?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the couple that received a total score of 38?`: ```sql
SELECT MAX("total") FROM "week_12" WHERE "couple"='Aylar & Egor' AND "karianne_gulliksen"=8;
## Task Generate a SQL query to answer the following question: `What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the greatest total score received by aylar & egor when karianne Gulliksen gave an 8?`: ```sql
SELECT MAX("total") FROM "week_12" WHERE "music"='\" YMCA \"— Village People';
## Task Generate a SQL query to answer the following question: `What is the total score received by the couple that danced to " ymca "— village people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total score received by the couple that danced to " ymca "— village people?`: ```sql
SELECT COUNT("christer_tornell") FROM "week_12" WHERE "music"='\" Song Triste \"— Charlie Chaplin';
## Task Generate a SQL query to answer the following question: `How many different scores did Christer Tornell give to the couple that danced to " song triste "— charlie chaplin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_12" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many different scores did Christer Tornell give to the couple that danced to " song triste "— charlie chaplin?`: ```sql
SELECT MAX("trine_dehli_cleve") FROM "week_1";
## Task Generate a SQL query to answer the following question: `What is the largest number for trine dehli cleve?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number for trine dehli cleve?`: ```sql
SELECT COUNT("couple") FROM "week_1" WHERE "music"='\" I Wonder Why \"— Curtis Stigers';
## Task Generate a SQL query to answer the following question: `How many couples are there for the song " i wonder why "— curtis stigers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many couples are there for the song " i wonder why "— curtis stigers?`: ```sql
SELECT MAX("karianne_gulliksen") FROM "week_1";
## Task Generate a SQL query to answer the following question: `What is the largest number for karianne gulliksen?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the largest number for karianne gulliksen?`: ```sql
SELECT COUNT("christer_tornell") FROM "week_1" WHERE "music"='\" You Light Up My Life \"— Whitney Houston';
## Task Generate a SQL query to answer the following question: `How many entries arr there for christer tornell for the song " you light up my life "— whitney houston?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_1" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many entries arr there for christer tornell for the song " you light up my life "— whitney houston?`: ```sql
SELECT COUNT("style") FROM "week_5" WHERE "total"=33;
## Task Generate a SQL query to answer the following question: `How many styles had a total score of exactly 33?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many styles had a total score of exactly 33?`: ```sql
SELECT "style" FROM "week_5" WHERE "tor_fl_ysvik"=8;
## Task Generate a SQL query to answer the following question: `Which style led to a score given by Tor Floysvik of 8?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `Which style led to a score given by Tor Floysvik of 8?`: ```sql
SELECT MIN("total") FROM "week_5" WHERE "style"='Pasodoble';
## Task Generate a SQL query to answer the following question: `What is the smallest total score for the Pasodoble style?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "week_5" ( "couple" text, "style" text, "music" text, "trine_dehli_cleve" real, "tor_fl_ysvik" real, "karianne_gulliksen" real, "christer_tornell" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the smallest total score for the Pasodoble style?`: ```sql
SELECT "directed_by" FROM "table1_28680377_2" WHERE "title"='\"Playing the Cancer Car\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Playing the Cancer Car"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_2" ( "no_in_series" 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 `Who directed the episode titled "Playing the Cancer Car"?`: ```sql
SELECT "title" FROM "table1_28680377_2" WHERE "u_s_viewers_million"='0.88';
## Task Generate a SQL query to answer the following question: `What is the title of the episode watched by 0.88 million U.S. viewers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_2" ( "no_in_series" 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 `What is the title of the episode watched by 0.88 million U.S. viewers?`: ```sql
SELECT "u_s_viewers_million" FROM "table1_28680377_2" WHERE "title"='\"New Beginnings\"';
## Task Generate a SQL query to answer the following question: `How many millions of U.S. viewers watched the episode titled "New Beginnings"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_2" ( "no_in_series" 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 `How many millions of U.S. viewers watched the episode titled "New Beginnings"?`: ```sql
SELECT "directed_by" FROM "table1_28680377_2" WHERE "title"='\"Everything That Rises Must Converge\"';
## Task Generate a SQL query to answer the following question: `Who directed the episode titled "Everything That Rises Must Converge"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_2" ( "no_in_series" 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 `Who directed the episode titled "Everything That Rises Must Converge"?`: ```sql
SELECT "original_air_date" FROM "table1_28680377_2" WHERE "u_s_viewers_million"='0.88';
## Task Generate a SQL query to answer the following question: `What is the original air date of the episode that was watched by 0.88 million U.S. viewers? ` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_2" ( "no_in_series" 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 `What is the original air date of the episode that was watched by 0.88 million U.S. viewers? `: ```sql
SELECT "u_s_viewers_million" FROM "table1_28680377_3" WHERE "title"='\"Musical Chairs\"';
## Task Generate a SQL query to answer the following question: `How many million U.S. viewers watched "musical chairs"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_3" ( "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 `How many million U.S. viewers watched "musical chairs"?`: ```sql
SELECT COUNT("no_in_series") FROM "table1_28680377_3" WHERE "title"='\"A Little Death\"';
## Task Generate a SQL query to answer the following question: `How many episodes in the series were titled "a little death"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_3" ( "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 `How many episodes in the series were titled "a little death"?`: ```sql
SELECT COUNT("directed_by") FROM "table1_28680377_3" WHERE "title"='\"A Little Death\"';
## Task Generate a SQL query to answer the following question: `How many people directed "a little death"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28680377_3" ( "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 `How many people directed "a little death"?`: ```sql
SELECT COUNT("player") FROM "single_game" WHERE "passing_yards"=208;
## Task Generate a SQL query to answer the following question: `How may players have a passing yard score of 208?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); ### SQL Given the database schema, here is the SQL query that answers `How may players have a passing yard score of 208?`: ```sql
SELECT "player" FROM "single_game" WHERE "total_offense"=454;
## Task Generate a SQL query to answer the following question: `What is the name of the player with total offense of 454?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of the player with total offense of 454?`: ```sql
SELECT MAX("rushing_yards") FROM "single_game" WHERE "opponent"='Indiana' AND "player"='Denard Robinson';
## Task Generate a SQL query to answer the following question: `What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of rushing yards when the opponentis Indiana and the player is Denard Robinson?`: ```sql
SELECT MAX("total_offense") FROM "single_game" WHERE "opponent"='Penn State';
## Task Generate a SQL query to answer the following question: `What is the number of total offense when the opponentis Penn State?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of total offense when the opponentis Penn State?`: ```sql
SELECT "rushing_yards" FROM "single_game" WHERE "passing_yards"=244;
## Task Generate a SQL query to answer the following question: `How many rushing yards are listed when the passing yards are 244?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "single_game" ( "rank" real, "player" text, "year" real, "opponent" text, "passing_yards" real, "rushing_yards" real, "total_offense" real ); ### SQL Given the database schema, here is the SQL query that answers `How many rushing yards are listed when the passing yards are 244?`: ```sql
SELECT "drainage_basin_km" FROM "see_also" WHERE "type"='Gravity' AND "reservoir_surface_ha"='34.36';
## Task Generate a SQL query to answer the following question: `What is listed in drainage basin when the type is gravity and the reservoir surface is 34.36?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed in drainage basin when the type is gravity and the reservoir surface is 34.36?`: ```sql
SELECT "drainage_basin_km" FROM "see_also" WHERE "reservoir_surface_ha"='6.14';
## Task Generate a SQL query to answer the following question: `What is the drainage basin when the reservoir suface is 6.14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the drainage basin when the reservoir suface is 6.14?`: ```sql
SELECT "volume_hm" FROM "see_also" WHERE "reservoir"='Tanes';
## Task Generate a SQL query to answer the following question: `What is the volume when the resrvoir is Tanes?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "reservoir" text, "basin" text, "location" text, "type" text, "height_m" text, "length_along_the_top_m" text, "drainage_basin_km" text, "reservoir_surface_ha" text, "volume_hm" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the volume when the resrvoir is Tanes?`: ```sql
SELECT "bi_tone" FROM "table1_2869843_1" WHERE "olive_drab"='No' AND "caliber"='9×19mm Parabellum' AND "model"='XDM 5.25 Competition';
## Task Generate a SQL query to answer the following question: `are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competition` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_2869843_1" ( "model" text, "in" text, "mm" text, "caliber" text, "standard" real, "w_sleeve" text, "black" text, "olive_drab" text, "bi_tone" text, "dark_earth" text ); ### SQL Given the database schema, here is the SQL query that answers `are there bi-tone is there's no olive drab and the caliber is 9×19mm parabellum and model is xdm 5.25 competition`: ```sql
SELECT "family" FROM "modern_constellations" WHERE "genitive"='Lyncis /ˈlɪnsɨs/';
## Task Generate a SQL query to answer the following question: `What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the family of the constellation that has lyncis /ˈlɪnsɨs/ as genitive?`: ```sql
SELECT "origin" FROM "modern_constellations" WHERE "other_abbreviation"='Tele';
## Task Generate a SQL query to answer the following question: `What is the origin of the constellation that can be abbreviated to tele?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the origin of the constellation that can be abbreviated to tele?`: ```sql
SELECT "other_abbreviation" FROM "modern_constellations" WHERE "brightest_star"='β Trianguli';
## Task Generate a SQL query to answer the following question: `What is the other abbreviation of the constellation that has β trianguli as its brightest star?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the other abbreviation of the constellation that has β trianguli as its brightest star?`: ```sql
SELECT "brightest_star" FROM "modern_constellations" WHERE "meaning"='archer';
## Task Generate a SQL query to answer the following question: `What is the brightest star of the constellation that means archer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the brightest star of the constellation that means archer?`: ```sql
SELECT "other_abbreviation" FROM "modern_constellations" WHERE "genitive"='Hydrae /ˈhaɪdriː/';
## Task Generate a SQL query to answer the following question: `What is the other abbreviation of the constellation that has hydrae /ˈhaɪdriː/ as genitive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the other abbreviation of the constellation that has hydrae /ˈhaɪdriː/ as genitive?`: ```sql
SELECT "meaning" FROM "modern_constellations" WHERE "genitive"='Puppis /ˈpʌpɨs/';
## Task Generate a SQL query to answer the following question: `What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "modern_constellations" ( "constellation" text, "iau_abbreviation" text, "other_abbreviation" text, "genitive" text, "family" text, "origin" text, "meaning" text, "brightest_star" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the meaning of the constellation that has puppis /ˈpʌpɨs/ as genitive?`: ```sql
SELECT COUNT("track_no") FROM "out_of_the_blue_discography" WHERE "track"='Song 2';
## Task Generate a SQL query to answer the following question: `How many track numbers were called song 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); ### SQL Given the database schema, here is the SQL query that answers `How many track numbers were called song 2?`: ```sql
SELECT "vocal_percussionist" FROM "out_of_the_blue_discography" WHERE "original_artist"='Stevie Wonder';
## Task Generate a SQL query to answer the following question: `Who was the vocal percussionist when stevie wonder was the original artist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); ### SQL Given the database schema, here is the SQL query that answers `Who was the vocal percussionist when stevie wonder was the original artist?`: ```sql
SELECT "track" FROM "out_of_the_blue_discography" WHERE "soloist_s"='Terry Tamm';
## Task Generate a SQL query to answer the following question: `What track name had Terry Tamm as the soloist?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "out_of_the_blue_discography" ( "track_no" real, "track" text, "original_artist" text, "soloist_s" text, "vocal_percussionist" text, "arranger_s" text ); ### SQL Given the database schema, here is the SQL query that answers `What track name had Terry Tamm as the soloist?`: ```sql
SELECT "date" FROM "bowl_games" WHERE "matchups_results"='Army 16, SMU 14';
## Task Generate a SQL query to answer the following question: `What was the date of the game that had a result of Army 16, SMU 14?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchups_results" text, "attendance" real, "payout_us" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game that had a result of Army 16, SMU 14?`: ```sql
SELECT "city" FROM "bowl_games" WHERE "stadium"='Gerald J. Ford Stadium';
## Task Generate a SQL query to answer the following question: `What was the city whose stadium is Gerald J. Ford Stadium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "bowl_games" ( "bowl_game" text, "date" text, "stadium" text, "city" text, "television" text, "matchups_results" text, "attendance" real, "payout_us" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the city whose stadium is Gerald J. Ford Stadium?`: ```sql
SELECT "category_wise" FROM "width_wise_details_of_government_roads_a" WHERE "multi_lane"=677;
## Task Generate a SQL query to answer the following question: `What is every category wise when the multi lane is 677?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is every category wise when the multi lane is 677?`: ```sql
SELECT MAX("multi_lane") FROM "width_wise_details_of_government_roads_a" WHERE "category_wise"='Major district roads';
## Task Generate a SQL query to answer the following question: `What is the highest value for multi lane if category wise is major district roads?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest value for multi lane if category wise is major district roads?`: ```sql
SELECT MIN("total") FROM "width_wise_details_of_government_roads_a";
## Task Generate a SQL query to answer the following question: `What is the least total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "width_wise_details_of_government_roads_a" ( "sl_no" real, "category_wise" text, "single_lane" real, "intermediate_lane" real, "double_lane" real, "multi_lane" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the least total?`: ```sql
SELECT "te_be_career" FROM "players" WHERE "league_matches"=163;
## Task Generate a SQL query to answer the following question: `What are the years of TeBe career for the players whose league matches are exactly 163?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "player" text, "nation" text, "te_be_career" text, "league_matches" real, "league_goals" real, "cup_matches" real, "cup_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What are the years of TeBe career for the players whose league matches are exactly 163?`: ```sql
SELECT "league_goals" FROM "players" WHERE "league_matches"=10 AND "te_be_career"='2003';
## Task Generate a SQL query to answer the following question: `What is the number of league goals for players with 10 league matches and a TeBe career of 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "players" ( "player" text, "nation" text, "te_be_career" text, "league_matches" real, "league_goals" real, "cup_matches" real, "cup_goals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the number of league goals for players with 10 league matches and a TeBe career of 2003?`: ```sql
SELECT "eliminated" FROM "table1_28742659_2" WHERE "finish"='15th Voted Out 9th Jury Member Day 46';
## Task Generate a SQL query to answer the following question: `What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed in eliminated when the finish is 15th voted out 9th jury Member Day 46?`: ```sql
SELECT "reward" FROM "table1_28742659_2" WHERE "finish"='13th Voted Out 6th Jury Member Day 43';
## Task Generate a SQL query to answer the following question: `What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is listed in reward when the finish is listed at 13th voted out 6th jury Member Day 43?`: ```sql
SELECT "immunity" FROM "table1_28742659_2" WHERE "finish"='3rd Voted Out Day 9';
## Task Generate a SQL query to answer the following question: `What is the name of immunity when the finish is 3rd voted out day 9?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the name of immunity when the finish is 3rd voted out day 9?`: ```sql
SELECT "vote" FROM "table1_28742659_2" WHERE "immunity"='David' AND "reward"='None';
## Task Generate a SQL query to answer the following question: `What is the vote number when immunity listed as David and reward is listed as none?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "table1_28742659_2" ( "first_air_date" text, "reward" text, "immunity" text, "eliminated" text, "vote" text, "finish" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the vote number when immunity listed as David and reward is listed as none?`: ```sql
SELECT "united_fc" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Maratha United';
## Task Generate a SQL query to answer the following question: `what is the united fc wehre pifa colaba is maratha united?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the united fc wehre pifa colaba is maratha united?`: ```sql
SELECT "united_fc" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Sporting Options';
## Task Generate a SQL query to answer the following question: `what is the united fc where pifa colaba is sporting options?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the united fc where pifa colaba is sporting options?`: ```sql
SELECT "dadar_xi_b" FROM "division_two" WHERE "pifa_colaba_fc_u_17"='Sporting Options';
## Task Generate a SQL query to answer the following question: `what is the dadar xi b where pifa colaba is sporting options?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the dadar xi b where pifa colaba is sporting options?`: ```sql
SELECT "athens_xi" FROM "division_two" WHERE "dadar_xi_b"='Strikers FC';
## Task Generate a SQL query to answer the following question: `what is the athens xi where dada xi b is strikers fc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the athens xi where dada xi b is strikers fc?`: ```sql
SELECT "dadar_xi_b" FROM "division_two" WHERE "good_shepherd"='Sea Liner FC';
## Task Generate a SQL query to answer the following question: `what is the dadar xi b where the good shepherd is sea liner fc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "division_two" ( "athens_xi" text, "pifa_colaba_fc_u_17" text, "tata_power" text, "dadar_xi_b" text, "idbi" text, "world_network_services" text, "united_fc" text, "good_shepherd" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the dadar xi b where the good shepherd is sea liner fc?`: ```sql
SELECT "record_at_school" FROM "coaches" WHERE "head_coach"='Tom O''Brien';
## Task Generate a SQL query to answer the following question: `What is the Record at School of Tom O'Brien's team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the Record at School of Tom O'Brien's team?`: ```sql
SELECT COUNT("years_at_school") FROM "coaches" WHERE "team"='Maryland';
## Task Generate a SQL query to answer the following question: `How many values were used to express the years at school of the Maryland team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values were used to express the years at school of the Maryland team?`: ```sql
SELECT "acc_record" FROM "coaches" WHERE "team"='Miami';
## Task Generate a SQL query to answer the following question: `What is the record in the atlantic coast conference for the Miami team?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record in the atlantic coast conference for the Miami team?`: ```sql
SELECT COUNT("overall_record") FROM "coaches" WHERE "head_coach"='Frank Beamer';
## Task Generate a SQL query to answer the following question: `How many values reflect the overall record of the team coached by Frank Beamer?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "coaches" ( "team" text, "head_coach" text, "years_at_school" real, "overall_record" text, "record_at_school" text, "acc_record" text ); ### SQL Given the database schema, here is the SQL query that answers `How many values reflect the overall record of the team coached by Frank Beamer?`: ```sql
SELECT "school_type" FROM "member_schools" WHERE "institution"='Clemson';
## Task Generate a SQL query to answer the following question: `what type over school is Clemson?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); ### SQL Given the database schema, here is the SQL query that answers `what type over school is Clemson?`: ```sql
SELECT MAX("joined_acc") FROM "member_schools" WHERE "institution"='North Carolina';
## Task Generate a SQL query to answer the following question: `what year did north carolina institution join the acc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); ### SQL Given the database schema, here is the SQL query that answers `what year did north carolina institution join the acc?`: ```sql
SELECT "acc_football_titles" FROM "member_schools" WHERE "nickname"='Tar Heels';
## Task Generate a SQL query to answer the following question: `how many acc football titles have been won by the institution nicknamed tar heels?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); ### SQL Given the database schema, here is the SQL query that answers `how many acc football titles have been won by the institution nicknamed tar heels?`: ```sql
SELECT "school_type" FROM "member_schools" WHERE "nickname"='Seminoles';
## Task Generate a SQL query to answer the following question: `what type of school is the institution nicknamed seminoles?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); ### SQL Given the database schema, here is the SQL query that answers `what type of school is the institution nicknamed seminoles?`: ```sql
SELECT "joined_acc" FROM "member_schools" WHERE "location"='Chapel Hill, North Carolina';
## Task Generate a SQL query to answer the following question: `when did the institution at chapel hill, North carolina join acc?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "member_schools" ( "institution" text, "nickname" text, "location" text, "founded" real, "joined_acc" real, "school_type" text, "acc_football_titles" real ); ### SQL Given the database schema, here is the SQL query that answers `when did the institution at chapel hill, North carolina join acc?`: ```sql
SELECT "record" FROM "game_log" WHERE "game"=2;
## Task Generate a SQL query to answer the following question: `What were the supersonics record at game 2?` ### 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 `What were the supersonics record at game 2?`: ```sql
SELECT MAX("game") FROM "game_log";
## Task Generate a SQL query to answer the following question: `What is the most amount of games played this season?` ### 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 `What is the most amount of games played this season?`: ```sql
SELECT "high_assists" FROM "game_log" WHERE "team"='Utah';
## Task Generate a SQL query to answer the following question: `Who had highest assists in game against Utah?` ### 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 `Who had highest assists in game against Utah?`: ```sql
SELECT "regional_page_num" FROM "tbm_regions" WHERE "region_name"='North Central';
## Task Generate a SQL query to answer the following question: `In the North Central region, what are the regional page #'s?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); ### SQL Given the database schema, here is the SQL query that answers `In the North Central region, what are the regional page #'s?`: ```sql
SELECT "state_name" FROM "tbm_regions" WHERE "regional_page_num"='1, 5-7, 9-11, 13-15';
## Task Generate a SQL query to answer the following question: `What states have a regional page # of 1, 5-7, 9-11, 13-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); ### SQL Given the database schema, here is the SQL query that answers `What states have a regional page # of 1, 5-7, 9-11, 13-15?`: ```sql
SELECT "region_name" FROM "tbm_regions" WHERE "regional_page_num"='1-3, 5-7, 9-11, 13-15';
## Task Generate a SQL query to answer the following question: `Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "tbm_regions" ( "region_name" text, "state_name" text, "region_num" real, "page_count" real, "regional_page_num" text ); ### SQL Given the database schema, here is the SQL query that answers `Which region has a regional page # of 1-3, 5-7, 9-11, 13-15?`: ```sql