output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "high_assists" FROM "game_log" WHERE "team"='@ Dallas'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high assists @ Dallas?`
### 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_re... |
SELECT "high_assists" FROM "game_log" WHERE "location_attendance"='Toyota Center 18,370'; |
## Task
Generate a SQL query to answer the following question:
`Who had the high assists when the location attendance was Toyota Center 18,370?`
### 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,
"... |
SELECT "record" FROM "game_log" WHERE "high_rebounds"='Nick Collison (11)'; |
## Task
Generate a SQL query to answer the following question:
`What was the record when the high rebounds was from Nick Collison (11)?`
### 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" t... |
SELECT COUNT("record") FROM "game_log" WHERE "score"='L 96–123 (OT)'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the final score l 96–123 (ot)?`
### 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" ... |
SELECT COUNT("score") FROM "game_log" WHERE "high_assists"='Earl Watson (5)' AND "date"='December 2'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the high assists earl watson (5) and the date of the game was december 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,
"te... |
SELECT "team" FROM "game_log" WHERE "game"=25; |
## Task
Generate a SQL query to answer the following question:
`Whom did they play on game number 25?`
### 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... |
SELECT COUNT("leading_scorer") FROM "february" WHERE "attendance"='KeyArena 16,640'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of the leading scorer for keyarena 16,640?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"... |
SELECT COUNT("leading_scorer") FROM "february" WHERE "date"='February 21'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of leading scorer of february 21?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" tex... |
SELECT "leading_scorer" FROM "february" WHERE "date"='February 1'; |
## Task
Generate a SQL query to answer the following question:
`What is the leading scorer on february 1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "february" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leadi... |
SELECT "score" FROM "march" WHERE "record"='35–33'; |
## Task
Generate a SQL query to answer the following question:
` what's the score where record is 35–33`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_sc... |
SELECT "home" FROM "march" WHERE "date"='March 27'; |
## Task
Generate a SQL query to answer the following question:
` what's the home where date is march 27`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_sc... |
SELECT "date" FROM "march" WHERE "visitor"='Phoenix Suns' AND "record"='31–30'; |
## Task
Generate a SQL query to answer the following question:
` what's the date where visitor is phoenix suns and record is 31–30`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
... |
SELECT "home" FROM "march" WHERE "score"='L 80–88'; |
## Task
Generate a SQL query to answer the following question:
` what's the home team where score is l 80–88`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leadi... |
SELECT "leading_scorer" FROM "march" WHERE "date"='March 2'; |
## Task
Generate a SQL query to answer the following question:
` what's the leading scorer on march 2`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" text,
"leading_scor... |
SELECT "leading_scorer" FROM "march" WHERE "home"='Sacramento Kings'; |
## Task
Generate a SQL query to answer the following question:
` what's the leading scorer where home is sacramento kings`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "march" (
"num" real,
"date" text,
"visitor" text,
"score" text,
"home" t... |
SELECT "team" FROM "game_log" WHERE "date"='February 8'; |
## Task
Generate a SQL query to answer the following question:
` what's the team where date is february 8`
### 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,
"... |
SELECT "location_attendance" FROM "game_log" WHERE "high_rebounds"='Nick Collison (14)'; |
## Task
Generate a SQL query to answer the following question:
` what's the location attendance where high rebounds is nick collison (14)`
### 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"... |
SELECT "record" FROM "game_log" WHERE "score"='W 105–92 (OT)'; |
## Task
Generate a SQL query to answer the following question:
` what's the record where score is w 105–92 (ot)`
### 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" tex... |
SELECT "location_attendance" FROM "game_log" WHERE "record"='14–39'; |
## Task
Generate a SQL query to answer the following question:
` what's the location attendance where record is 14–39`
### 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_point... |
SELECT MAX("game") FROM "game_log" WHERE "high_points"='Mickaël Gelabale (21)'; |
## Task
Generate a SQL query to answer the following question:
`what is the maximum game where high points is mickaël gelabale (21)`
### 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,... |
SELECT "record" FROM "game_log" WHERE "location_attendance"='KeyArena 13,627'; |
## Task
Generate a SQL query to answer the following question:
` what's the record where location attendance is keyarena 13,627`
### 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,
"... |
SELECT "score" FROM "playoffs" WHERE "date"='April 29'; |
## Task
Generate a SQL query to answer the following question:
`What is the score for april 29?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebou... |
SELECT MIN("game") FROM "playoffs"; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum game`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text,
"high_rebounds" text,... |
SELECT "high_points" FROM "playoffs" WHERE "location_attendance"='Toyota Center 18,269'; |
## Task
Generate a SQL query to answer the following question:
`Name the high points for toyota center 18,269?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "playoffs" (
"game" real,
"date" text,
"team" text,
"score" text,
"high_points" text... |
SELECT "preliminaries" FROM "scores" WHERE "average"='9.135'; |
## Task
Generate a SQL query to answer the following question:
`what's the preliminaries with average being 9.135`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,... |
SELECT "evening_gown" FROM "scores" WHERE "preliminaries"='9.212'; |
## Task
Generate a SQL query to answer the following question:
`what's the evening gown with preliminaries being 9.212`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" ... |
SELECT "interview" FROM "scores" WHERE "swimsuit"='9.140'; |
## Task
Generate a SQL query to answer the following question:
`what's the interview with swimsuit being 9.140`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,
... |
SELECT "evening_gown" FROM "scores" WHERE "swimsuit"='9.134'; |
## Task
Generate a SQL query to answer the following question:
`what's the evening gown with swimsuit being 9.134`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,... |
SELECT "preliminaries" FROM "scores" WHERE "average"='9.360'; |
## Task
Generate a SQL query to answer the following question:
`what's the preliminaries with average being 9.360`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "scores" (
"country" text,
"preliminaries" text,
"interview" text,
"swimsuit" text,... |
SELECT COUNT("successor") FROM "table1_1199219_2" WHERE "district"='New York 20th'; |
## Task
Generate a SQL query to answer the following question:
`How many successors were seated in the New York 20th district?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1199219_2" (
"district" text,
"vacator" text,
"reason_for_change... |
SELECT "playoffs" FROM "year_by_year" WHERE "reg_season"='1st, Southern'; |
## Task
Generate a SQL query to answer the following question:
`What playoff result happened during the season in which they finished 1st, southern?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"le... |
SELECT COUNT("division") FROM "year_by_year" WHERE "reg_season"='4th'; |
## Task
Generate a SQL query to answer the following question:
`How many teams placed 4th in the regular season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_season" text,
"... |
SELECT "open_cup" FROM "year_by_year" WHERE "reg_season"='4th'; |
## Task
Generate a SQL query to answer the following question:
`What was the result of the open cup when they finished 4th in the regular season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"leagu... |
SELECT COUNT("open_cup") FROM "year_by_year" WHERE "year"=1993; |
## Task
Generate a SQL query to answer the following question:
`How many open cups were hosted in 1993?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_season" text,
"playoffs"... |
SELECT MAX("year") FROM "year_by_year" WHERE "reg_season"='1st, Southern'; |
## Task
Generate a SQL query to answer the following question:
`What year did they finish 1st, southern?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_season" text,
"playoffs... |
SELECT "playoffs" FROM "year_by_year" WHERE "league"='APSL' AND "year"=1992; |
## Task
Generate a SQL query to answer the following question:
`What was the playoff result for theteam in the apsl in 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "year_by_year" (
"year" real,
"division" text,
"league" text,
"reg_seaso... |
SELECT "status" FROM "box_score" WHERE "car_name"='TropArtic'; |
## Task
Generate a SQL query to answer the following question:
`What was the status of tropartic?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
"car_... |
SELECT "status" FROM "box_score" WHERE "entrant"='Joe Gibbs Racing'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of joe gibbs racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
... |
SELECT "laps" FROM "box_score" WHERE "entrant"='Marcis Auto Racing'; |
## Task
Generate a SQL query to answer the following question:
`What is the laops of marcis auto racing?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "box_score" (
"finish" real,
"start" real,
"car_no" real,
"driver" text,
"car_name" text,
... |
SELECT "author_editor_source" FROM "table" WHERE "index_year"='Press Freedom (2007)'; |
## Task
Generate a SQL query to answer the following question:
`what's the author / editor / source with index (year) being press freedom (2007)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text... |
SELECT COUNT("countries_sampled") FROM "table" WHERE "year_of_publication"='2007' AND "ranking_l_a_2"='7th'; |
## Task
Generate a SQL query to answer the following question:
` how many countries sampled with year of publication being 2007 and ranking l.a. (2) being 7th`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"index_year" text,
"author_edito... |
SELECT "author_editor_source" FROM "table" WHERE "world_ranking_1"='73rd'; |
## Task
Generate a SQL query to answer the following question:
`what's the author / editor / source with world ranking (1) being 73rd`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table" (
"index_year" text,
"author_editor_source" text,
"year_o... |
SELECT COUNT("losing_team") FROM "nsl_cup_winners" WHERE "cup_final_date"='20 August 1989'; |
## Task
Generate a SQL query to answer the following question:
`How many losingteams were for the cup finaldate 20 August 1989?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team... |
SELECT COUNT("season") FROM "nsl_cup_winners" WHERE "losing_team"='Adelaide City'; |
## Task
Generate a SQL query to answer the following question:
`How many seasons was the losing team Adelaide City?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team" text,
"s... |
SELECT "winning_team" FROM "nsl_cup_winners" WHERE "season"='1989'; |
## Task
Generate a SQL query to answer the following question:
`Who was the winning team in the 1989 season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "nsl_cup_winners" (
"season" text,
"cup_final_date" text,
"winning_team" text,
"score" t... |
SELECT "womens_doubles" FROM "table1_12027364_1" WHERE "womens_singles"='Wu Jianqui'; |
## Task
Generate a SQL query to answer the following question:
`Who won the womens doubles when wu jianqui won the womens singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" text,
"womens_sing... |
SELECT "mixed_doubles" FROM "table1_12027364_1" WHERE "mens_singles"='Ji Xinpeng'; |
## Task
Generate a SQL query to answer the following question:
`Who won the mixed doubles when ji xinpeng won the mens singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" text,
"womens_singles... |
SELECT COUNT("womens_singles") FROM "table1_12027364_1" WHERE "mens_singles"='Peter Rasmussen'; |
## Task
Generate a SQL query to answer the following question:
`How many womens singles winners were there when peter rasmussen won the mens singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12027364_1" (
"year" real,
"mens_singles" t... |
SELECT "written_by" FROM "table1_12033013_1" WHERE "production_code"='1ADK-03'; |
## Task
Generate a SQL query to answer the following question:
`WHO WROTE THE STORY WITH THE PRODUCTION CODE OF 1ADK-03`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
... |
SELECT "production_code" FROM "table1_12033013_1" WHERE "title"='\"Dave Moves Out\"'; |
## Task
Generate a SQL query to answer the following question:
`WHAT IS "DAVE MOVES OUT" PRODUCTION CODE?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" t... |
SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Dad''s Dead\"'; |
## Task
Generate a SQL query to answer the following question:
`WHO WROTE "DAD'S DEAD"`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"original_ai... |
SELECT "written_by" FROM "table1_12033013_1" WHERE "title"='\"Red Asphalt\"'; |
## Task
Generate a SQL query to answer the following question:
`WHO AUTHORED "RED ASPHALT"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_1" (
"no_in_series" real,
"title" text,
"directed_by" text,
"written_by" text,
"origin... |
SELECT COUNT("title") FROM "table1_12030612_9" WHERE "written_by"='Adam I. Lapidus'; |
## Task
Generate a SQL query to answer the following question:
`Name the number of titles written by adam i. lapidus`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12030612_9" (
"series_num" real,
"season_num" real,
"title" text,
"direc... |
SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Houseboat\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode titled "Houseboat"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" tex... |
SELECT "no_in_season" FROM "table1_12033013_3" WHERE "title"='\"Grad School\"'; |
## Task
Generate a SQL query to answer the following question:
`What's the season number of the episode titled "Grad school"?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" t... |
SELECT "directed_by" FROM "table1_12033013_3" WHERE "production_code"='3ADK-03'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the episode with a production code 3ADK-03?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12033013_3" (
"no_in_series" text,
"no_in_season" text,
"title" text,
... |
SELECT COUNT("simplified") FROM "administration" WHERE "pinyin"='Xīnluó Qū'; |
## Task
Generate a SQL query to answer the following question:
`When pinyin is xīnluó qū, what is the simplified value?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
... |
SELECT "pinyin" FROM "administration" WHERE "english_name"='Wuping County'; |
## Task
Generate a SQL query to answer the following question:
`What is the pinyin for the English name Wuping County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
... |
SELECT "area" FROM "administration" WHERE "english_name"='Shanghang County'; |
## Task
Generate a SQL query to answer the following question:
`What is the area of the English name Shanghang County?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
... |
SELECT "pinyin" FROM "administration" WHERE "population"=374047; |
## Task
Generate a SQL query to answer the following question:
`Which pinyin have a population of 374047?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "administration" (
"english_name" text,
"simplified" text,
"traditional" text,
"pinyin" tex... |
SELECT COUNT("nhl_team_s") FROM "overview_by_city" WHERE "metropolitan_area"='Phoenix, Arizona'; |
## Task
Generate a SQL query to answer the following question:
`How many NHL teams are there in the Phoenix, Arizona area?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
... |
SELECT COUNT("media_market_ranking") FROM "overview_by_city" WHERE "nhl_team_s"='Blackhawks'; |
## Task
Generate a SQL query to answer the following question:
`What is the media market ranking for the Blackhawks?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
"hoste... |
SELECT "nhl_team_s" FROM "overview_by_city" WHERE "nba_team_s"='Nuggets'; |
## Task
Generate a SQL query to answer the following question:
`What is the the name of the NHL team that is in the same market as the NBA team, Nuggets?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
... |
SELECT "nhl_team_s" FROM "overview_by_city" WHERE "media_market_ranking"=7; |
## Task
Generate a SQL query to answer the following question:
`What is the NHL team in the media market ranking number 7?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "overview_by_city" (
"metropolitan_area" text,
"media_market_ranking" real,
... |
SELECT COUNT("net_flow_version") FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches'; |
## Task
Generate a SQL query to answer the following question:
`How many netflow version are there when the vendor and type is enterasys switches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" ... |
SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Alcatel-Lucent routers'; |
## Task
Generate a SQL query to answer the following question:
`What are the comments when the vendor and type is alcatel-lucent routers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
... |
SELECT "comments" FROM "table1_1206114_2" WHERE "vendor_and_type"='Enterasys Switches'; |
## Task
Generate a SQL query to answer the following question:
`What are the comments when vendor and type is enterasys switches?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_flow... |
SELECT "net_flow_version" FROM "table1_1206114_2" WHERE "vendor_and_type"='PC and Servers'; |
## Task
Generate a SQL query to answer the following question:
`What is the netflow version when vendor and type is pc and servers?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"net_fl... |
SELECT "comments" FROM "table1_1206114_2" WHERE "implementation"='Software running on Central Processor Module'; |
## Task
Generate a SQL query to answer the following question:
`What are the comments when the implementation is software running on central processor module?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,... |
SELECT "implementation" FROM "table1_1206114_2" WHERE "net_flow_version"='v5, v8, v9, IPFIX'; |
## Task
Generate a SQL query to answer the following question:
`What is the implementation when the netflow version is v5, v8, v9, ipfix?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1206114_2" (
"vendor_and_type" text,
"models" text,
"... |
SELECT MIN("for_prohibition") FROM "results_of_the_national_referendum_on_pr"; |
## Task
Generate a SQL query to answer the following question:
`Name the minimum for prohibition?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_fo... |
SELECT COUNT("jurisdiction") FROM "results_of_the_national_referendum_on_pr" WHERE "percent_for"='57.3'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of jurisdiction for 57.3 percent?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" ... |
SELECT MAX("for_prohibition") FROM "results_of_the_national_referendum_on_pr"; |
## Task
Generate a SQL query to answer the following question:
`Name the max for prohibition.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent_for" t... |
SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "against_prohibition"=2978; |
## Task
Generate a SQL query to answer the following question:
`What is the percent for when against prohibition is 2978?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibit... |
SELECT "percent_for" FROM "results_of_the_national_referendum_on_pr" WHERE "jurisdiction"='Manitoba'; |
## Task
Generate a SQL query to answer the following question:
`What is the percent for in manitoba?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "results_of_the_national_referendum_on_pr" (
"jurisdiction" text,
"for_prohibition" real,
"percent... |
SELECT COUNT("train_name") FROM "train_services" WHERE "origin"='Puri'; |
## Task
Generate a SQL query to answer the following question:
`How many trains leave from puri?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"frequen... |
SELECT "train_no" FROM "train_services" WHERE "destination"='Amritsar'; |
## Task
Generate a SQL query to answer the following question:
`What train number is heading to amritsar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
... |
SELECT "frequency" FROM "train_services" WHERE "origin"='Sealdah'; |
## Task
Generate a SQL query to answer the following question:
`How often does a train leave sealdah?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"fr... |
SELECT "destination" FROM "train_services" WHERE "train_name"='BG Express'; |
## Task
Generate a SQL query to answer the following question:
`Where does the bg express train end?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
"fre... |
SELECT "train_name" FROM "train_services" WHERE "train_no"='15647/48'; |
## Task
Generate a SQL query to answer the following question:
`What's the name of train number 15647/48?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "train_services" (
"train_no" text,
"train_name" text,
"origin" text,
"destination" text,
... |
SELECT COUNT("nationality") FROM "table1_12086015_7" WHERE "year_s"='1992'; |
## Task
Generate a SQL query to answer the following question:
`What is the number of nationality in 1992?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_12086015_7" (
"player" text,
"nationality" text,
"finals" real,
"win_loss" text,
... |
SELECT "academic_university_affairs" FROM "executive_commissioners" WHERE "human_resources_operations"='N. Charles Hamilton'; |
## Task
Generate a SQL query to answer the following question:
`Who is the academic & University affairs when the Human resources & operations is N. Charles Hamilton?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "executive_commissioners" (
"year" t... |
SELECT "year" FROM "executive_commissioners" WHERE "communications_and_corporate_affairs"='Jeff Rotman'; |
## Task
Generate a SQL query to answer the following question:
`What year was communications and corporate affairs held by Jeff Rotman?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "executive_commissioners" (
"year" text,
"communications_and_corp... |
SELECT "built" FROM "building_and_withdrawal_data" WHERE "name_as_rebuilt"='Knocklayd'; |
## Task
Generate a SQL query to answer the following question:
`What was the built data for Knocklayd rebuild?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt... |
SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1929' AND "scrapped_sold"='Cannot handle non-empty timestamp argument! 1954'; |
## Task
Generate a SQL query to answer the following question:
`How many times does the rebuilt data contain cannot handle non-empty timestamp argument! 1929 and scrapped data contain cannot handle non-empty timestamp argument! 1954?`
### Database Schema
This query will run on a database whose schema is represented ... |
SELECT "built" FROM "building_and_withdrawal_data" WHERE "scrapped_sold"='Cannot handle non-empty timestamp argument! 1947'; |
## Task
Generate a SQL query to answer the following question:
`What is the built data on the scrapped information that is cannot handle non-empty timestamp argument! 1947?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "building_and_withdrawal_data" (... |
SELECT COUNT("number") FROM "building_and_withdrawal_data" WHERE "rebuilt"='Cannot handle non-empty timestamp argument! 1934'; |
## Task
Generate a SQL query to answer the following question:
`How many times was the rebuilt data cannot handle non-empty timestamp argument! 1934?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"bu... |
SELECT "built" FROM "building_and_withdrawal_data" WHERE "number"=34; |
## Task
Generate a SQL query to answer the following question:
`What is the built data for number 34?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
... |
SELECT MAX("number") FROM "building_and_withdrawal_data"; |
## Task
Generate a SQL query to answer the following question:
`What is the highest number listed?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "building_and_withdrawal_data" (
"number" real,
"builder" text,
"built" text,
"rebuilt" text,
"n... |
SELECT "womens_singles" FROM "21st_century" WHERE "mens_singles"='Marc Zwiebler'; |
## Task
Generate a SQL query to answer the following question:
`Who won the womens singles when Marc Zwiebler won the men's singles?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "21st_century" (
"year" real,
"mens_singles" text,
"womens_singles... |
SELECT COUNT("torque_nm_rpm") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec'; |
## Task
Generate a SQL query to answer the following question:
`The 1.6 Duratec model/engine has how many torque formulas?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylinde... |
SELECT "power_rpm" FROM "engines_and_transmissions" WHERE "torque_nm_rpm"='N·m (lb·ft)/*N·m (lb·ft) @1750'; |
## Task
Generate a SQL query to answer the following question:
`For the model with torque of n·m (lb·ft)/*n·m (lb·ft) @1750, what is the power?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capac... |
SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.8 Duratec HE'; |
## Task
Generate a SQL query to answer the following question:
`For the model/engine of 1.8 Duratec HE, what is the torque?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
"cylind... |
SELECT COUNT("capacity") FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec'; |
## Task
Generate a SQL query to answer the following question:
`How many capacities are possible for the 1.6 Duratec model/engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
... |
SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "capacity"='1,753 cc'; |
## Task
Generate a SQL query to answer the following question:
`What is the torque formula for the model/engine which has 1,753 cc capacity?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity... |
SELECT "torque_nm_rpm" FROM "engines_and_transmissions" WHERE "model_engine"='1.6 Duratec Ti-VCT'; |
## Task
Generate a SQL query to answer the following question:
`What is the torque formula for the 1.6 Duratec ti-vct model/engine?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "engines_and_transmissions" (
"model_engine" text,
"capacity" text,
... |
SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='2April1969'; |
## Task
Generate a SQL query to answer the following question:
`what's the date of birth with end of term being 2april1969`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" t... |
SELECT "president" FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979'; |
## Task
Generate a SQL query to answer the following question:
`who is the the president with date of inauguration being 4june1979`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_... |
SELECT COUNT("president") FROM "ghanaian_presidents_ages" WHERE "date_of_inauguration"='4June1979'; |
## Task
Generate a SQL query to answer the following question:
` how many president with date of inauguration being 4june1979`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth... |
SELECT "date_of_birth" FROM "ghanaian_presidents_ages" WHERE "end_of_term"='5July1978'; |
## Task
Generate a SQL query to answer the following question:
`what's the date of birth with end of term being 5july1978`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "ghanaian_presidents_ages" (
"num" real,
"president" text,
"date_of_birth" te... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.