output stringlengths 27 479 | instruction stringlengths 407 1.39k |
|---|---|
SELECT "primary_conference" FROM "division_ii" WHERE "institution"='Gonzaga University'; |
## Task
Generate a SQL query to answer the following question:
`What conference does Gonzaga University play in?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affiliation" t... |
SELECT COUNT("founded") FROM "division_ii" WHERE "location"='Tacoma, Washington'; |
## Task
Generate a SQL query to answer the following question:
`How many Universities were founded in Tacoma, Washington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affil... |
SELECT "institution" FROM "division_ii" WHERE "team_nickname"='Wildcats'; |
## Task
Generate a SQL query to answer the following question:
`Which school's team has the nickname of the Wildcats?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"affiliati... |
SELECT MIN("founded") FROM "division_ii" WHERE "location"='Ellensburg, Washington'; |
## Task
Generate a SQL query to answer the following question:
`What year was the university that is located in Ellensburg, Washington established?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
... |
SELECT "location" FROM "division_ii" WHERE "team_nickname"='Wolves'; |
## Task
Generate a SQL query to answer the following question:
`Where is the university located that's nicknamed the Wolves?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "division_ii" (
"institution" text,
"location" text,
"founded" real,
"af... |
SELECT COUNT("viewers") FROM "u_s_standard_ratings" WHERE "share"=7 AND "weekly_rank"='64'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of viewers where the share is 7 and the week rank is 64?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_standard_ratings" (
"num" real,
"air_date" text,
... |
SELECT COUNT("num") FROM "u_s_standard_ratings" WHERE "share">7.0; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have a share bigger than 7.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_standard_ratings" (
"num" real,
"air_date" text,
"timeslot" text,
"rating" text,... |
SELECT COUNT("num") FROM "u_s_standard_ratings" WHERE "weekly_rank"='TBA' AND "timeslot"='8:00 P.M.'; |
## Task
Generate a SQL query to answer the following question:
`How many episodes have a weekly rank tba and are broadcast at 8:00 p.m.?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_standard_ratings" (
"num" real,
"air_date" text,
"timeslo... |
SELECT "timeslot" FROM "u_s_standard_ratings" WHERE "air_date"='February 22, 2008'; |
## Task
Generate a SQL query to answer the following question:
`What are the timeslot(s) for broadcast on February 22, 2008?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_standard_ratings" (
"num" real,
"air_date" text,
"timeslot" text,
"... |
SELECT COUNT("air_date") FROM "u_s_standard_ratings" WHERE "weekly_rank"='73'; |
## Task
Generate a SQL query to answer the following question:
`What broadcast dates have a weekly rank of 73?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "u_s_standard_ratings" (
"num" real,
"air_date" text,
"timeslot" text,
"rating" text,
... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "team"='St. Johnstone'; |
## Task
Generate a SQL query to answer the following question:
`When was the date of appointment for St. Johnstone's manager? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_... |
SELECT "outgoing_manager" FROM "managerial_changes" WHERE "team"='Aberdeen'; |
## Task
Generate a SQL query to answer the following question:
`Who was the outgoing manager for Aberdeen? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"manner_of_departure" text,
... |
SELECT "date_of_appointment" FROM "managerial_changes" WHERE "outgoing_manager"='Wim Jansen'; |
## Task
Generate a SQL query to answer the following question:
`When was the date of appointment for the manager replacing Wim Jansen? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "managerial_changes" (
"team" text,
"outgoing_manager" text,
"m... |
SELECT COUNT("citrate") FROM "usage" WHERE "species"='Salmonella spp.'; |
## Task
Generate a SQL query to answer the following question:
`What is the result for salmonella spp. if you use citrate?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "usage" (
"species" text,
"indole" text,
"methyl_red" text,
"voges_proskau... |
SELECT "species" FROM "usage" WHERE "voges_proskauer"='Negative' AND "indole"='Negative'; |
## Task
Generate a SQL query to answer the following question:
`Which species show a negative result with both voges-proskauer and indole?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "usage" (
"species" text,
"indole" text,
"methyl_red" text,
... |
SELECT "voges_proskauer" FROM "usage" WHERE "citrate"='Positive'; |
## Task
Generate a SQL query to answer the following question:
`What are the results for testing the species with voges-proskauer when citrate yields a positive result?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "usage" (
"species" text,
"indol... |
SELECT "indole" FROM "usage" WHERE "species"='Proteus mirabilis'; |
## Task
Generate a SQL query to answer the following question:
`What is the result of proteus mirabilis tested with indole?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "usage" (
"species" text,
"indole" text,
"methyl_red" text,
"voges_proska... |
SELECT "originalairdate" FROM "table1_16090262_1" WHERE "tv_broadcast"='S07E04'; |
## Task
Generate a SQL query to answer the following question:
`When was the show originally aired that had a TV broadcast of S07E04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16090262_1" (
"no_in_series" real,
"no_in_season" real,
"... |
SELECT "title" FROM "table1_16090262_1" WHERE "no_in_season"=4; |
## Task
Generate a SQL query to answer the following question:
`Which title was No. 4 in season?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16090262_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
"directed_by" text,
... |
SELECT "directed_by" FROM "table1_16090262_1" WHERE "tv_broadcast"='S07E04'; |
## Task
Generate a SQL query to answer the following question:
`Who directed the show that had a TV broadcast of S07E04?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16090262_1" (
"no_in_series" real,
"no_in_season" real,
"title" text,
... |
SELECT "season" FROM "by_season" WHERE "3rd_place"='Unicaja Málaga'; |
## Task
Generate a SQL query to answer the following question:
`What seasons did unicaja málaga finish in 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,
"... |
SELECT "3rd_place" FROM "by_season" WHERE "4th_place"='Limoges'; |
## Task
Generate a SQL query to answer the following question:
`What teams finished 3rd when limoges finished 4th?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" text,... |
SELECT "1st_place" FROM "by_season" WHERE "3rd_place"='TAU Cerámica'; |
## Task
Generate a SQL query to answer the following question:
`What team finished in 1st when tau cerámica was in 3rd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" text,
"3rd_place" ... |
SELECT "3rd_place" FROM "by_season" WHERE "2nd_place"='Panathinaikos'; |
## Task
Generate a SQL query to answer the following question:
`What teams finished in 3rd when panathinaikos finished 2nd?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "by_season" (
"season" text,
"1st_place" text,
"2nd_place" text,
"3rd_pla... |
SELECT "mid_atlantic_south_washington_d_c" FROM "table1_16105186_2" WHERE "alaska_juneau"='90 g/mi (56 g/km)' AND "california_san_francisco"='110 g/mi (68 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in Mid-Atlantic South for the vehicle that was rated 90 g/mi (56 g/km) in Alaska and 110 g/mi (68 g/km) in California?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE... |
SELECT "mid_atlantic_south_washington_d_c" FROM "table1_16105186_2" WHERE "midwest_des_moines"='300 g/mi (186 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in Mid-Atlantic South for the vehicle that was rated 300 g/mi (186 g/km) in the Midwest?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16105186_2" (
... |
SELECT "u_s_national_average_electric_mix" FROM "table1_16105186_2" WHERE "midwest_des_moines"='280 g/mi (174 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`What was the US national average electric mix rating for the vehicle that was rated 280 g/mi (174 g/km) in the Midwest?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16105186_2" (... |
SELECT COUNT("california_san_francisco") FROM "table1_16105186_2" WHERE "vehicle"='Ford Focus Electric'; |
## Task
Generate a SQL query to answer the following question:
`How many Ford Focus electric vehicle emission test scores were recorded in California?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16105186_2" (
"vehicle" text,
"epa_rated_a... |
SELECT "california_san_francisco" FROM "table1_16105186_2" WHERE "alaska_juneau"='80 g/mi (50 g/km)' AND "southeast_atlanta"='250 g/mi (155 g/km)'; |
## Task
Generate a SQL query to answer the following question:
`What was the emission rating in California for the vehicle that was rated 80 g/mi (50 g/km) in Alaska and 250 g/mi (155 g/km) in the Southeast ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TA... |
SELECT MIN("attendance") FROM "game_log"; |
## Task
Generate a SQL query to answer the following question:
`What was the lowest no. of attendance on record?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
"score" text,... |
SELECT "date" FROM "game_log" WHERE "attendance"<6427.0; |
## Task
Generate a SQL query to answer the following question:
`When was the game played if the attendance is less than 6427.0?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
... |
SELECT "attendance" FROM "game_log" WHERE "date"='January 9, 1988'; |
## Task
Generate a SQL query to answer the following question:
`How many were in attendance during the game on January 9, 1988?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "game_log" (
"num" real,
"date" text,
"at_vs" text,
"opponent" text,
... |
SELECT "headquarters" FROM "external_links" WHERE "code"='HY'; |
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of the place whose abbreviation is hy?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"code" text,
"district" text,
"headquarters" text,
... |
SELECT "headquarters" FROM "external_links" WHERE "population_2011"=3811738; |
## Task
Generate a SQL query to answer the following question:
`Where is the headquarters of the place whose population in 2011 was 3811738?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"code" text,
"district" text,
"headquar... |
SELECT MIN("population_2011") FROM "external_links" WHERE "district"='Prakasam'; |
## Task
Generate a SQL query to answer the following question:
`What was the minimum population in 2011 of the district of Prakasam?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"code" text,
"district" text,
"headquarters" te... |
SELECT "code" FROM "external_links" WHERE "district"='Mahbubnagar'; |
## Task
Generate a SQL query to answer the following question:
`What is the abbreviation of the district of Mahbubnagar?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"code" text,
"district" text,
"headquarters" text,
"popul... |
SELECT "population_2011" FROM "external_links" WHERE "district"='East Godavari'; |
## Task
Generate a SQL query to answer the following question:
`What is the 2011 population of the district of East Godavari?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "external_links" (
"code" text,
"district" text,
"headquarters" text,
"... |
SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "gdp_per_capita_nominal"=2874; |
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the nominal GDP per capita is 2874?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,
"gdp_a... |
SELECT "gdp_per_capita_adjusted" FROM "table1_1610496_3" WHERE "population_millions"='37.376'; |
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP per capita when the population is 37.376 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,... |
SELECT MIN("gdp_per_capita_nominal") FROM "table1_1610496_3" WHERE "population_millions"='63.056'; |
## Task
Generate a SQL query to answer the following question:
`What is the nominal GDP per capita when the population is 63.056 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,
... |
SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "population_millions"='5.141'; |
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the population is 5.141 million?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,
"gdp_adju... |
SELECT "population_millions" FROM "table1_1610496_3" WHERE "gdp_adjusted_billions"='492'; |
## Task
Generate a SQL query to answer the following question:
`What is the population in millions when the adjusted GDP is 492 billion?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,
... |
SELECT "gdp_adjusted_billions" FROM "table1_1610496_3" WHERE "gdp_nominal_billions"='8.43'; |
## Task
Generate a SQL query to answer the following question:
`What is the adjusted GDP when the nominal GDP is 8.43 (in billions)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1610496_3" (
"year" real,
"gdp_nominal_billions" text,
"gd... |
SELECT "operating_profit_s_m" FROM "singapore_airlines_group_financial_highl" WHERE "expenditure_s_m"='12,127.8'; |
## Task
Generate a SQL query to answer the following question:
`What was the opearint profit (s$m) associated with an expenditure (s$m) of 12,127.8?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore_airlines_group_financial_highl" (
"year_end... |
SELECT "expenditure_s_m" FROM "singapore_airlines_group_financial_highl" WHERE "operating_profit_s_m"='717.1'; |
## Task
Generate a SQL query to answer the following question:
`What was the expenditure (s$m) associated with an operating profit (s$m) of 717.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore_airlines_group_financial_highl" (
"year_ended... |
SELECT COUNT("profit_before_taxation_s_m") FROM "singapore_airlines_group_financial_highl" WHERE "operating_profit_s_m"='717.1'; |
## Task
Generate a SQL query to answer the following question:
`How many years was the operating profit (s$m) 717.1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "singapore_airlines_group_financial_highl" (
"year_ended" text,
"revenue_s_m" text,
... |
SELECT "simplified_characters" FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='ch''ing-yüan … i-ma'; |
## Task
Generate a SQL query to answer the following question:
`Name the simplified characters for wade giles is ch'ing-yüan … i-ma`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" t... |
SELECT "pinyin" FROM "development_of_chinese_mind_monkey_terms" WHERE "date_ce"='657'; |
## Task
Generate a SQL query to answer the following question:
`Name the pinyin for 657 date`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" text,
"simplified_characters" text,
... |
SELECT "text" FROM "development_of_chinese_mind_monkey_terms" WHERE "simplified_characters"='心猿意马'; |
## Task
Generate a SQL query to answer the following question:
`Name the text for 心猿意马`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" text,
"simplified_characters" text,
"tradi... |
SELECT "simplified_characters" FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='hsin-yüan … i-ma'; |
## Task
Generate a SQL query to answer the following question:
`Name the simplified charaacters being hsin-yüan … i-ma`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" text,
"simpl... |
SELECT COUNT("pinyin") FROM "development_of_chinese_mind_monkey_terms" WHERE "wade_giles"='hsin-yüan-i-ma'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of pinyin for hsin-yüan-i-ma`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" text,
"simplifie... |
SELECT "date_ce" FROM "development_of_chinese_mind_monkey_terms" WHERE "pinyin"='qíngyuán … yìmǎ'; |
## Task
Generate a SQL query to answer the following question:
`Name the date for qíngyuán … yìmǎ`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "development_of_chinese_mind_monkey_terms" (
"date_ce" text,
"text" text,
"simplified_characters" tex... |
SELECT "line" FROM "services" WHERE "service_pattern"='Fast to Norwood Junction'; |
## Task
Generate a SQL query to answer the following question:
`Which line offers Fast to Norwood Junction?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pat... |
SELECT "operator" FROM "services" WHERE "destination"='Highbury & Islington'; |
## Task
Generate a SQL query to answer the following question:
`Who is the operator to Highbury & Islington?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"service_pa... |
SELECT COUNT("frequency_per_hour") FROM "services" WHERE "service_pattern"='Next station'; |
## Task
Generate a SQL query to answer the following question:
`How many frequency figures are given for next station service pattern?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destin... |
SELECT "operator" FROM "services" WHERE "destination"='Dalston Junction'; |
## Task
Generate a SQL query to answer the following question:
`Who is the operator to destination Dalston Junction?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "services" (
"platform" real,
"frequency_per_hour" real,
"destination" text,
"se... |
SELECT COUNT("no") FROM "table1_1615980_4" WHERE "tournament"='Volvo Masters Andalucia'; |
## Task
Generate a SQL query to answer the following question:
`How many tournament wins were at Volvo Masters Andalucia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1615980_4" (
"no" real,
"date" text,
"tournament" text,
"winning_sc... |
SELECT "runner_s_up" FROM "table1_1615980_4" WHERE "tournament"='Volvo Masters Andalucia'; |
## Task
Generate a SQL query to answer the following question:
`Who was the runner up at the Volvo Masters Andalucia?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1615980_4" (
"no" real,
"date" text,
"tournament" text,
"winning_score"... |
SELECT "tournament" FROM "table1_1615980_4" WHERE "winning_score"='68-67-65-66=266'; |
## Task
Generate a SQL query to answer the following question:
`In what tournament was the winning score 68-67-65-66=266?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_1615980_4" (
"no" real,
"date" text,
"tournament" text,
"winning_sc... |
SELECT "joined" FROM "former_conference_members" WHERE "nickname"='Blue Hose'; |
## Task
Generate a SQL query to answer the following question:
`Name the joined for blue hose`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_conference_members" (
"institution" text,
"location" text,
"founded" real,
"type" text,
"enro... |
SELECT MAX("founded") FROM "former_conference_members" WHERE "nickname"='Blue Hose'; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum founded for blue hose`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_conference_members" (
"institution" text,
"location" text,
"founded" real,
"type" text... |
SELECT MAX("enrollment") FROM "former_conference_members" WHERE "institution"='St. Andrews University'; |
## Task
Generate a SQL query to answer the following question:
`Name the maximum enrollment for st. andrews university`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_conference_members" (
"institution" text,
"location" text,
"founded" rea... |
SELECT "current_conference" FROM "former_conference_members" WHERE "left"='1974, 1989'; |
## Task
Generate a SQL query to answer the following question:
`Name the current conference for 1974, 1989`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "former_conference_members" (
"institution" text,
"location" text,
"founded" real,
"type" ... |
SELECT COUNT("series_num") FROM "table1_16175064_3" WHERE "writer_s"='Alexa Wyatt'; |
## Task
Generate a SQL query to answer the following question:
`What is the total number of episodes where alexa wyatt is the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175064_3" (
"season_num" real,
"series_num" real,
"titl... |
SELECT "director_s" FROM "table1_16175064_3" WHERE "writer_s"='Chris Hawkshaw'; |
## Task
Generate a SQL query to answer the following question:
`Who is the director when Chris Hawkshaw is the writer?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175064_3" (
"season_num" real,
"series_num" real,
"title" text,
"dir... |
SELECT "season_num" FROM "table1_16175064_3" WHERE "director_s"='Donald Crombie' AND "series_num"=40; |
## Task
Generate a SQL query to answer the following question:
`What is the season number of the episode directed by Donald Crombie and the series number is 40?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175064_3" (
"season_num" real,
... |
SELECT "released_date" FROM "i_que_ds" WHERE "western_title"='Super Mario 64 DS'; |
## Task
Generate a SQL query to answer the following question:
`What is the released date for Super Mario 64 DS?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_ds" (
"western_title" text,
"chinese_title" text,
"pinyin" text,
"released_da... |
SELECT "game_modes" FROM "i_que_ds" WHERE "released_date"='2007'; |
## Task
Generate a SQL query to answer the following question:
`What are the game modes for the game released in 2007?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_ds" (
"western_title" text,
"chinese_title" text,
"pinyin" text,
"relea... |
SELECT COUNT("western_title") FROM "i_que_ds" WHERE "chinese_title"='摸摸耀西-云中漫步'; |
## Task
Generate a SQL query to answer the following question:
`How many games share their western title with the Chinese title of 摸摸耀西-云中漫步 ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_ds" (
"western_title" text,
"chinese_title" text,
... |
SELECT "released_date" FROM "i_que_ds" WHERE "western_title"='Polarium'; |
## Task
Generate a SQL query to answer the following question:
`What was the released date of Polarium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_ds" (
"western_title" text,
"chinese_title" text,
"pinyin" text,
"released_date" text,... |
SELECT "game_modes" FROM "i_que_ds" WHERE "pinyin"='Zhígǎn Yī Bǐ'; |
## Task
Generate a SQL query to answer the following question:
`What game modes are there when the pinyin is zhígǎn yī bǐ ?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "i_que_ds" (
"western_title" text,
"chinese_title" text,
"pinyin" text,
"... |
SELECT "donor_payment" FROM "table1_16175217_1" WHERE "children_per_donor"='6 children' AND "allowed_recipients"='no data'; |
## Task
Generate a SQL query to answer the following question:
`What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1... |
SELECT "donor_payment" FROM "table1_16175217_1" WHERE "children_per_donor"='12 children to 6 families (2 per family)'; |
## Task
Generate a SQL query to answer the following question:
`What are donor payments in the country where there are 12 children to 6 families (2 per family)?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1" (
"country" text,
"d... |
SELECT "donor_payment" FROM "table1_16175217_1" WHERE "country"='Belgium'; |
## Task
Generate a SQL query to answer the following question:
`What is the donor payment in Belgium?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1" (
"country" text,
"donor_payment" text,
"children_per_donor" text,
"donor_a... |
SELECT "country" FROM "table1_16175217_1" WHERE "children_per_donor"='8 children' AND "donor_payment"='no data'; |
## Task
Generate a SQL query to answer the following question:
`What is the country where there are 8 children per donor and no data for donor payments?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1" (
"country" text,
"donor_pay... |
SELECT "children_per_donor" FROM "table1_16175217_1" WHERE "allowed_recipients"='Married or in cohabitation'; |
## Task
Generate a SQL query to answer the following question:
`What are the children per donor in the country where the allowed recipients are married or in cohabitation?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1" (
"country"... |
SELECT "children_per_donor" FROM "table1_16175217_1" WHERE "allowed_recipients"='no data'; |
## Task
Generate a SQL query to answer the following question:
`List the possible children per donor levels for countries where the allowed recipients is no data.`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "table1_16175217_1" (
"country" text,
... |
SELECT "missouri_vs" FROM "record_vs_other_opponents_at_least_15_ga" WHERE "at_neutral_site"='MU, 2-1'; |
## Task
Generate a SQL query to answer the following question:
`Against which team does Missouri Tigers have a record of mu, 2-1 at a neutral site?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_other_opponents_at_least_15_ga" (
"missouri_... |
SELECT "missouri_vs" FROM "record_vs_other_opponents_at_least_15_ga" WHERE "at_opponents_venue"='UI, 4-1'; |
## Task
Generate a SQL query to answer the following question:
`Which is the team against which Missouri Tigers have a record of ui, 4-1 at the opponent's venue?How`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_other_opponents_at_least_15_g... |
SELECT COUNT("last_5_meetings") FROM "record_vs_other_opponents_at_least_15_ga" WHERE "overall_record"='MU, 21-19'; |
## Task
Generate a SQL query to answer the following question:
`How many times did the team achieve an overrall record of mu, 21-19?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_other_opponents_at_least_15_ga" (
"missouri_vs" text,
"ov... |
SELECT "at_neutral_site" FROM "record_vs_other_opponents_at_least_15_ga" WHERE "overall_record"='UI, 27-16'; |
## Task
Generate a SQL query to answer the following question:
`What is the record at the neutral site for when the overall record is ui, 27-16?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_other_opponents_at_least_15_ga" (
"missouri_vs"... |
SELECT "at_opponents_venue" FROM "record_vs_other_opponents_at_least_15_ga" WHERE "last_5_meetings"='MU, 4-1' AND "at_neutral_site"='Tied, 0-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the record at the opponent's venue against the team for which the record for the last 5 meetings is mu, 4-1 and the record at the neutral site is tied, 0-0?`
### Database Schema
This query will run on a database whose schema is represented in thi... |
SELECT "stamp_duty_reserve_tax" FROM "revenues_from_stamp_duties" WHERE "over_total_tax_revenue_in_pct"='0.79'; |
## Task
Generate a SQL query to answer the following question:
`What is the stamp duty reserve tax when the percentage over total tax revenue is 0.79?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "revenues_from_stamp_duties" (
"year" text,
"stamp... |
SELECT "over_gdp_in_pct" FROM "revenues_from_stamp_duties" WHERE "standard_stamp_duty"='367'; |
## Task
Generate a SQL query to answer the following question:
`When the standard stamp duty is 367 what is the percentage over gdp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "revenues_from_stamp_duties" (
"year" text,
"stamp_duty_reserve_tax"... |
SELECT "over_gdp_in_pct" FROM "revenues_from_stamp_duties" WHERE "stamp_duty_reserve_tax"='3,669'; |
## Task
Generate a SQL query to answer the following question:
`When the stamp duty reserve tax is 3,669 what is the percentage over gdp?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "revenues_from_stamp_duties" (
"year" text,
"stamp_duty_reserve... |
SELECT "year" FROM "revenues_from_stamp_duties" WHERE "over_total_tax_revenue_in_pct"='0.65'; |
## Task
Generate a SQL query to answer the following question:
`During what years are the percentage over total tax revenue is 0.65?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "revenues_from_stamp_duties" (
"year" text,
"stamp_duty_reserve_tax"... |
SELECT COUNT("at_opponents_venue") FROM "record_vs_big_12_opponents" WHERE "missouri_vs"='Oklahoma'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of opponets venue for oklahoma`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_big_12_opponents" (
"missouri_vs" text,
"overall_record" text,
"at_colu... |
SELECT COUNT("last_5_meetings") FROM "record_vs_big_12_opponents" WHERE "missouri_vs"='Texas Tech'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of last 5 meetings for texas tech`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_big_12_opponents" (
"missouri_vs" text,
"overall_record" text,
"at_c... |
SELECT COUNT("series_sorted") FROM "series_1" WHERE "released"='April 2010'; |
## Task
Generate a SQL query to answer the following question:
`Name the total number of series sorted for when released is april 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"num" real,
"series_sorted" text,
"title" text,
"... |
SELECT "author" FROM "series_1" WHERE "series_sorted"='6Y/AE'; |
## Task
Generate a SQL query to answer the following question:
`Name the author for 6y/ae`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"num" real,
"series_sorted" text,
"title" text,
"author" text,
"doctor" text,
"featuring" ... |
SELECT "author" FROM "series_1" WHERE "featuring"='Peri' AND "released"='April 2010'; |
## Task
Generate a SQL query to answer the following question:
`Name the author for peri and april 2010`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"num" real,
"series_sorted" text,
"title" text,
"author" text,
"doctor" text,
... |
SELECT "released" FROM "series_1" WHERE "author"='Pat Mills'; |
## Task
Generate a SQL query to answer the following question:
`Name the released for pat mills`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"num" real,
"series_sorted" text,
"title" text,
"author" text,
"doctor" text,
"featu... |
SELECT "featuring" FROM "series_1" WHERE "author"='Pat Mills'; |
## Task
Generate a SQL query to answer the following question:
`Name the featuring for pat mills`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "series_1" (
"num" real,
"series_sorted" text,
"title" text,
"author" text,
"doctor" text,
"feat... |
SELECT "last_5_meetings" FROM "record_vs_sec_opponents" WHERE "overall_record"='UM, 2-1'; |
## Task
Generate a SQL query to answer the following question:
`What are the outcomes of the last 5 meetings where the overall record is UM, 2-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_sec_opponents" (
"missouri_vs" text,
"overal... |
SELECT "overall_record" FROM "record_vs_sec_opponents" WHERE "at_opponents_venue"='UF, 1-0'; |
## Task
Generate a SQL query to answer the following question:
`What is the record of wins/losses that were played at opponents venue (uf, 1-0)`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_sec_opponents" (
"missouri_vs" text,
"overall_... |
SELECT "missouri_vs" FROM "record_vs_sec_opponents" WHERE "overall_record"='MU, 3-1'; |
## Task
Generate a SQL query to answer the following question:
`Who are the opponents of Missouri that have an overall record of MU, 3-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_sec_opponents" (
"missouri_vs" text,
"overall_record... |
SELECT "at_columbia" FROM "record_vs_sec_opponents" WHERE "overall_record"='MU, 3-1'; |
## Task
Generate a SQL query to answer the following question:
`What is the record at Columbia for the team overall record of MU, 3-1?`
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "record_vs_sec_opponents" (
"missouri_vs" text,
"overall_record" t... |
SELECT COUNT("length_feet") FROM "tunnels" WHERE "length_meters"='106.1'; |
## Task
Generate a SQL query to answer the following question:
`How many feet in length are there when the length is 106.1 meters? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tunnels" (
"no" real,
"name" text,
"mi_from_kingston" text,
"km_... |
SELECT MIN("length_feet") FROM "tunnels" WHERE "km_from_kingston"='105.4'; |
## Task
Generate a SQL query to answer the following question:
`When the kilometers from kingston is 105.4 what is the minimum amount of length in feet? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tunnels" (
"no" real,
"name" text,
"mi_from_... |
SELECT "parish" FROM "tunnels" WHERE "length_meters"='51.8'; |
## Task
Generate a SQL query to answer the following question:
`Which parishes have a railroad length of 51.8 meters? `
### Database Schema
This query will run on a database whose schema is represented in this string:
CREATE TABLE "tunnels" (
"no" real,
"name" text,
"mi_from_kingston" text,
"km_from_kingston... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.