output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT "10_00" FROM "friday" WHERE "9_30"='flashpoint';
## Task Generate a SQL query to answer the following question: `What aired at 10:00 when Flashpoint aired at 9:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text ); #...
SELECT "9_00" FROM "friday" WHERE "8_30"='don''t forget the lyrics';
## Task Generate a SQL query to answer the following question: `When Don't Forget the Lyrics aired at 8:30 what aired at 9:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_0...
SELECT "8_00" FROM "friday" WHERE "8_30"='the goode family';
## Task Generate a SQL query to answer the following question: `What aired at 8:00 when The Goode Family aired at 8:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" text...
SELECT "10_00" FROM "friday" WHERE "8_00"='surviving suburbia';
## Task Generate a SQL query to answer the following question: `When Surviving Suburbia aired at 8:00 what aired at 10:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_00" t...
SELECT "9_30" FROM "friday" WHERE "8_00"='don''t forget the lyrics';
## Task Generate a SQL query to answer the following question: `What aired at 9:30 when Don't Forget the Lyrics aired at 8:00?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "friday" ( "8_00" text, "8_30" text, "9_00" text, "9_30" text, "10_0...
SELECT MIN("span_metres") FROM "completed_bridges" WHERE "year_opened"='2007' AND "country"='china' AND "rank"<13 AND "span_feet"<1378;
## Task Generate a SQL query to answer the following question: `What is the lowest amount of Span metres when the year opened is 2007, the country is China, rank is less than 13, and the span feet is less than 1378?` ### Database Schema This query will run on a database whose schema is represented in this string: CR...
SELECT "country" FROM "completed_bridges" WHERE "material"='concrete' AND "span_metres"<270 AND "span_feet">837 AND "year_opened"='1943';
## Task Generate a SQL query to answer the following question: `Which country's material was concrete when the span metres were less than 270, span feet is more than 837, and the year opened was 1943?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "com...
SELECT "country" FROM "made_the_cut" WHERE "year_s_won"='1993';
## Task Generate a SQL query to answer the following question: `What country won in 1993?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish...
SELECT "finish" FROM "made_the_cut" WHERE "total">286 AND "to_par"='+4' AND "player"='bob tway';
## Task Generate a SQL query to answer the following question: `What was the finish with a total larger than 286, a to par of +4 and Bob Tway played?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "...
SELECT "player" FROM "made_the_cut" WHERE "country"='united states' AND "total"=286 AND "year_s_won"='2003';
## Task Generate a SQL query to answer the following question: `What player in the United States had a total of 286 and won in 2003?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text,...
SELECT "country" FROM "made_the_cut" WHERE "total"=293;
## Task Generate a SQL query to answer the following question: `What country has a total of 293?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, ...
SELECT "player" FROM "made_the_cut" WHERE "country"='fiji';
## Task Generate a SQL query to answer the following question: `What player is from Fiji?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "made_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" text, "finish...
SELECT AVG("year") FROM "macro_economic_trend" WHERE "us_dollar_exchange"='¥88.54' AND "gross_domestic_product">'477,327,134';
## Task Generate a SQL query to answer the following question: `What is the average year that the USD exchange of ¥88.54 had a gross domestic product larger than 477,327,134?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "macro_economic_trend" ( "ye...
SELECT COUNT("year") FROM "macro_economic_trend" WHERE "us_dollar_exchange"='¥225.82' AND "gross_domestic_product">'240,707,315';
## Task Generate a SQL query to answer the following question: `How many years did the USD Exchange have ¥225.82 and a gross domestic product larger than 240,707,315?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "macro_economic_trend" ( "year" real...
SELECT "method" FROM "results" WHERE "weight_class"='welterweight' AND "card"='preliminary';
## Task Generate a SQL query to answer the following question: `Which method was used in the welterweight class with a preliminary card?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, ...
SELECT "method" FROM "results" WHERE "round">3;
## Task Generate a SQL query to answer the following question: `Which method was used in a round greater than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" ...
SELECT "weight_class" FROM "results" WHERE "time"='4:59';
## Task Generate a SQL query to answer the following question: `Which weight class had a time of 4:59?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text ); ##...
SELECT "time" FROM "results" WHERE "round"<3;
## Task Generate a SQL query to answer the following question: `What was the time for a round less than 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "card" text, "weight_class" text, "round" real, "time" text, "method" text )...
SELECT MIN("round") FROM "results" WHERE "weight_class"='welterweight' AND "card"='preliminary';
## Task Generate a SQL query to answer the following question: `What is the smallest round for the welterweight class with a preliminary card?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "card" text, "weight_class" text, "round" re...
SELECT "bulletins_to_all_contacts" FROM "see_also" WHERE "transport_layer_security"='no' AND "license"='proprietary' AND "creator"='microsoft';
## Task Generate a SQL query to answer the following question: `Were there Bulletins to all contacts of the proprietary license created by Microsoft with no transport layer of security?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "pro...
SELECT "bulletins_to_all_contacts" FROM "see_also" WHERE "creator"='gg network';
## Task Generate a SQL query to answer the following question: `Were there Bulletins to all contacts of the license created by GG Network?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "protocol" text, "creator" text, "license" text...
SELECT "license" FROM "see_also" WHERE "creator"='ietf';
## Task Generate a SQL query to answer the following question: `What is the name of the license created by IETF?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "see_also" ( "protocol" text, "creator" text, "license" text, "transport_layer_secur...
SELECT "envelopment" FROM "comparison_table_of_clinically_important" WHERE "family"='rhabdoviridae';
## Task Generate a SQL query to answer the following question: `What is the envelopment for the rhabdoviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text,...
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "virion_shape"='icosahedral' AND "envelopment"='non-enveloped' AND "replication_site"='cytoplasm' AND "family"='astroviridae';
## Task Generate a SQL query to answer the following question: `Which Baltimore group has a viron shape of icosahedral, replicates in the cytoplasm, is non-enveloped, and is from the astroviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "...
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "family"='retroviridae';
## Task Generate a SQL query to answer the following question: `Which Baltimore group is of the retroviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, ...
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "family"='togaviridae';
## Task Generate a SQL query to answer the following question: `Which Baltimore group is of the togaviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, "baltimore_group" text, ...
SELECT "baltimore_group" FROM "comparison_table_of_clinically_important" WHERE "envelopment"='non-enveloped' AND "family"='papillomaviridae';
## Task Generate a SQL query to answer the following question: `Which Baltimore group is non-enveloped and is of the papillomaviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_clinically_important" ( "family" text, ...
SELECT "replication_site" FROM "comparison_table_of_clinically_important" WHERE "envelopment"='enveloped' AND "family"='bunyaviridae';
## Task Generate a SQL query to answer the following question: `What is the replication site when the species is enveloped and is of the bunyaviridae family?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "comparison_table_of_clinically_important" ( ...
SELECT MAX("league_cup") FROM "most_appearances" WHERE "player"='steed malbranque';
## Task Generate a SQL query to answer the following question: `What is the highest League Cup with a Player that is steed malbranque?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "most_appearances" ( "player" text, "position" text, "premier_le...
SELECT "manufacturer" FROM "fleet_statistics" WHERE "fuel_type"='diesel';
## Task Generate a SQL query to answer the following question: `What is the Manufacturer with a Fuel Type that is diesel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "fleet_statistics" ( "manufacturer" text, "model" text, "year_built" real, ...
SELECT "higgins" FROM "opinion_polls" WHERE "scallon"='2%';
## Task Generate a SQL query to answer the following question: `What is the Higgins with a Scallon that is 2%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "...
SELECT "higgins" FROM "opinion_polls" WHERE "davis"='9%';
## Task Generate a SQL query to answer the following question: `What is the Higgins with a Davis that is 9%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "ga...
SELECT "source" FROM "opinion_polls" WHERE "norris"='7%';
## Task Generate a SQL query to answer the following question: `What is the Source with a Norris that is 7%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "opinion_polls" ( "date" text, "source" text, "polling_agency" text, "davis" text, "ga...
SELECT MAX("total") FROM "attendance" WHERE "game_1"='105,011' AND "game_3">'102,989';
## Task Generate a SQL query to answer the following question: `What is the highest total attendance of the team with a game 1 attendance of 105,011 and a game 3 greater than 102,989?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "tea...
SELECT AVG("game_3") FROM "attendance" WHERE "total"<'524,005' AND "game_4"='70,585' AND "game_1"<'70,585';
## Task Generate a SQL query to answer the following question: `What is the average game 3 attendance of the team with a total attendance less than 524,005, a game 4 attendance of 70,585, and a game 1 attendance less than 70,585?` ### Database Schema This query will run on a database whose schema is represented in th...
SELECT SUM("game_2") FROM "attendance" WHERE "total"='759,997';
## Task Generate a SQL query to answer the following question: `What is the game 2 sum attendance of the team with a total attendance of 759,997?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "attendance" ( "team" text, "game_1" real, "game_2" r...
SELECT "position" FROM "nfl_draft" WHERE "player"='barry rose';
## Task Generate a SQL query to answer the following question: `What position does Barry Rose play?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "nfl_draft" ( "round" real, "pick" real, "player" text, "position" text, "college" text ); ### ...
SELECT COUNT("jersey_num") FROM "list_of_united_states_national_ice_hocke" WHERE "height_cm"=183 AND "name"='paul stastny' AND "weight_kg"<93;
## Task Generate a SQL query to answer the following question: `Which Jersey # has a Height (cm) of 183, a Name of paul stastny, and a Weight (kg) smaller than 93?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "list_of_united_states_national_ice_hocke...
SELECT "captain" FROM "premierships" WHERE "year"<1927 AND "runner_up"='angaston';
## Task Generate a SQL query to answer the following question: `When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premierships" ( "year" real, "coach" text, "cap...
SELECT "runner_up" FROM "premierships" WHERE "score"='kapunda 7-7-49 angaston 6-8-44';
## Task Generate a SQL query to answer the following question: `When the Score was kapunda 7-7-49 angaston 6-8-44, who was the Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, ...
SELECT SUM("year") FROM "premierships" WHERE "score"='kapunda 14-13-97 tanunda 5-14-44';
## Task Generate a SQL query to answer the following question: `Which year had a Score of kapunda 14-13-97 tanunda 5-14-44?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premierships" ( "year" real, "coach" text, "captain" text, "runner_up" t...
SELECT "captain" FROM "premierships" WHERE "runner_up"='tanunda' AND "year">1939;
## Task Generate a SQL query to answer the following question: `When the year is later than 1939 and the Runner-up is Tanunda, who is the Captain?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "premierships" ( "year" real, "coach" text, "captain...
SELECT "tournament" FROM "singles_performance_timeline" WHERE "2001"='1r' AND "2011"='a';
## Task Generate a SQL query to answer the following question: `What's the tournamnet name that has a 2001 of 1r and 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text...
SELECT "2001" FROM "singles_performance_timeline" WHERE "2005"='4r';
## Task Generate a SQL query to answer the following question: `What is the 2001 tournament with a 2005 4r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002" text...
SELECT "2010" FROM "singles_performance_timeline" WHERE "2004"='1r' AND "tournament"='french open';
## Task Generate a SQL query to answer the following question: `What french open tournament happened in 2010 and has a 2004 1r?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001"...
SELECT "2002" FROM "singles_performance_timeline" WHERE "2008"='career statistics';
## Task Generate a SQL query to answer the following question: `What 2002 tournament has 2008 career statistics?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2000" text, "2001" text, "2002"...
SELECT "season" FROM "1971_1984" WHERE "staffel_e"='stahl riesa';
## Task Generate a SQL query to answer the following question: `Which season has a Staffel E of Stahl Riesa?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "staffel_c" text, "st...
SELECT "staffel_d" FROM "1971_1984" WHERE "staffel_e"='motor suhl' AND "season"='1983-84';
## Task Generate a SQL query to answer the following question: `What is the Staffel D in the season 1983-84 with a Staffel E of Motor Suhl?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" ...
SELECT "staffel_a" FROM "1971_1984" WHERE "staffel_d"='energie cottbus' AND "staffel_c"='chemie leipzig' AND "staffel_b"='1. fc union berlin';
## Task Generate a SQL query to answer the following question: `What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_...
SELECT "staffel_b" FROM "1971_1984" WHERE "staffel_c"='hallescher fc chemie';
## Task Generate a SQL query to answer the following question: `What is the Staffel B that has Hallescher Fc Chemie as Staffel C?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1971_1984" ( "season" text, "staffel_a" text, "staffel_b" text, "s...
SELECT "week" FROM "schedule" WHERE "date"='september 27, 1953';
## Task Generate a SQL query to answer the following question: `Which week's date was September 27, 1953?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance" real ...
SELECT MAX("attendance") FROM "schedule" WHERE "opponent"='chicago cardinals' AND "week"<4;
## Task Generate a SQL query to answer the following question: `What is the largest attendance number when the Chicago Cardinals were the opponent and the week was less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, ...
SELECT "runner_up" FROM "july" WHERE "tier"='tier ii' AND "winner"='gigi fernández natalia zvereva 6–2, 6–1';
## Task Generate a SQL query to answer the following question: `When Gigi Fernández Natalia Zvereva 6–2, 6–1 won, who was the Tier II Runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text, ...
SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexia dechaume-balleret sandrine testud';
## Task Generate a SQL query to answer the following question: `Who were the semi finalists when Alexia Dechaume-Balleret Sandrine testud was the runner-up?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "july" ( "week_of" text, "tier" text, "win...
SELECT "tier" FROM "july" WHERE "semi_finalists"='sandrine testud mary pierce' AND "runner_up"='lisa raymond';
## Task Generate a SQL query to answer the following question: `What tier had a runner-up of Lisa Raymond and a semifinalist of Sandrine Testud Mary Pierce?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "july" ( "week_of" text, "tier" text, "win...
SELECT "semi_finalists" FROM "july" WHERE "runner_up"='alexandra fusai wiltrud probst';
## Task Generate a SQL query to answer the following question: `Who were the semi finalists when the runner-up was Alexandra Fusai Wiltrud Probst?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "july" ( "week_of" text, "tier" text, "winner" text,...
SELECT "label" FROM "release_history" WHERE "date"='april 7, 1967';
## Task Generate a SQL query to answer the following question: `What is the Label that shows on april 7, 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catal...
SELECT "date" FROM "release_history" WHERE "country"='uk' AND "format"='cd' AND "catalog"='edcd 227';
## Task Generate a SQL query to answer the following question: `What is the Date when the Country shows uk, the Format is cd, and the Catalog of edcd 227?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text,...
SELECT "date" FROM "release_history" WHERE "catalog"='lp 5060';
## Task Generate a SQL query to answer the following question: `What is the Date for Catalog of lp 5060?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text, "catalog" te...
SELECT "date" FROM "release_history" WHERE "country"='japan' AND "label"='sony';
## Task Generate a SQL query to answer the following question: `What Date was the Country of japan, and a Label of sony?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "format" text, "country" text...
SELECT "catalog" FROM "release_history" WHERE "format"='lp' AND "country"='us' AND "label"='sundazed' AND "date"='2006';
## Task Generate a SQL query to answer the following question: `What is the Catalog with a Format of lp, a Country of us, a Label of sundazed, and a Date of 2006?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "labe...
SELECT "label" FROM "release_history" WHERE "country"='uk' AND "catalog"='bpg 62988';
## Task Generate a SQL query to answer the following question: `What is the Label name that has a Country of uk and the Catalog is bpg 62988?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "release_history" ( "date" text, "label" text, "format" t...
SELECT "lyrics_l_music_m" FROM "the_final" WHERE "position">3 AND "place"='1st';
## Task Generate a SQL query to answer the following question: `What were the Lyrics (l) and Music (m) for the Artist who was in a Position higher than 3 and who earned 1st Place?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_final" ( "position...
SELECT MIN("position") FROM "the_final" WHERE "song"='\"if i can''t find my love\"';
## Task Generate a SQL query to answer the following question: `What was the lowest Position for the Song, "If I Can't Find My Love"?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_final" ( "position" real, "artist" text, "song" text, "lyr...
SELECT MAX("rank") FROM "men" WHERE "silver"<1 AND "bronze">1;
## Task Generate a SQL query to answer the following question: `What is the Rank of the Nation with 0 Silver and more than 1 Bronze?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, ...
SELECT COUNT("total") FROM "men" WHERE "silver"=1 AND "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the Total medals for the Nation with 1 Silver and 0 Golds?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "men" ( "rank" real, "nation" text, "gold" real, "silver" real, ...
SELECT "potential" FROM "electrochemistry" WHERE "period"=5 AND "element"='antimony';
## Task Generate a SQL query to answer the following question: `Which potential's period 5 is 4 and has an element of antimony?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "re...
SELECT MIN("period") FROM "electrochemistry" WHERE "element"='ruthenium';
## Task Generate a SQL query to answer the following question: `Which lowest period's element is ruthenium?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "reaction" text, "pot...
SELECT MAX("period") FROM "electrochemistry" WHERE "element"='platinum';
## Task Generate a SQL query to answer the following question: `Which highest period's element is platinum?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "electrochemistry" ( "element" text, "group" real, "period" real, "reaction" text, "pot...
SELECT "venue" FROM "international_goals" WHERE "result"='lost';
## Task Generate a SQL query to answer the following question: `What is the Venue with a Result that is lost?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "date" text, "venue" text, "score" text, "result" text, "comp...
SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"=2 AND "industrial_and_commercial_panel">4;
## Task Generate a SQL query to answer the following question: `What is the highest administrative panel with a cultural and educational panel of 2 plus an industrial and commercial panel larger than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "c...
SELECT COUNT("national_university_of_ireland") FROM "composition_of_the_17th_seanad" WHERE "industrial_and_commercial_panel"<1 AND "cultural_and_educational_panel">0;
## Task Generate a SQL query to answer the following question: `What is the total for National University of Ireland with an industrial and commercial panel less than 1, and the cultural and educational panel bigger than 0?` ### Database Schema This query will run on a database whose schema is represented in this str...
SELECT AVG("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel">1 AND "industrial_and_commercial_panel"<4;
## Task Generate a SQL query to answer the following question: `What is the administrative panel average when the cultural and educational panel is greater than 1 and the industrial and commercial panel less than 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CR...
SELECT MAX("administrative_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach">3 AND "agricultural_panel"=5 AND "cultural_and_educational_panel">2;
## Task Generate a SQL query to answer the following question: `What is the biggest administrative panel with a nominated by the Taoiseach greater than 3 and an argricultural panel of 5, plust a cultural and educational panel larger than 2?` ### Database Schema This query will run on a database whose schema is repres...
SELECT MIN("cultural_and_educational_panel") FROM "composition_of_the_17th_seanad" WHERE "nominated_by_the_taoiseach"<5 AND "total">19;
## Task Generate a SQL query to answer the following question: `What is the smallest cultural and educational panel with a nominated by the Taoiseach less than 5 and the total greater than 19?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition...
SELECT AVG("industrial_and_commercial_panel") FROM "composition_of_the_17th_seanad" WHERE "cultural_and_educational_panel"<0;
## Task Generate a SQL query to answer the following question: `With the cultural and educational panel less than 0 what is the average industrial and commercial panel?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "composition_of_the_17th_seanad" ( ...
SELECT COUNT("silver") FROM "total" WHERE "total"=5 AND "gold">3;
## Task Generate a SQL query to answer the following question: `What is the total number of silver medals for nations with 5 total medals and more than 3 gold medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "total" ( "rank" real, "nation" te...
SELECT "label" FROM "new_zealand" WHERE "date"=1969;
## Task Generate a SQL query to answer the following question: `What was the label in 1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "new_zealand" ( "date" real, "artist" text, "label" text, "cat_num" text, "tracks" text ); ### SQL Give...
SELECT "commissioned" FROM "ships" WHERE "nvr_page"='mcm02';
## Task Generate a SQL query to answer the following question: `What is the Commissioned date of the ship in NVR Page MCM02?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships" ( "ship" text, "hull_no" text, "commissioned" text, "builder" te...
SELECT "nvr_page" FROM "ships" WHERE "home_port"='sasebo, japan';
## Task Generate a SQL query to answer the following question: `What is the NVR Page of the ship with a Home Port of Sasebo, Japan?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "ships" ( "ship" text, "hull_no" text, "commissioned" text, "buil...
SELECT COUNT("week") FROM "schedule" WHERE "attendance"='54,015';
## Task Generate a SQL query to answer the following question: `Which week's game was attended by 54,015 people?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent" text, "result" text, "attendance...
SELECT "date" FROM "schedule" WHERE "week"<4 AND "attendance">'54,015';
## Task Generate a SQL query to answer the following question: `What date was the game that was before week 4 and was attended by over 54,015 people ?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "schedule" ( "week" real, "date" text, "opponent...
SELECT "venue" FROM "england_in_south_africa_1905_6" WHERE "result"='eng by 4 wkts';
## Task Generate a SQL query to answer the following question: `In what venues was the match with a final result of Eng by 4 wkts?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "england_in_south_africa_1905_6" ( "date" text, "home_captain" text, ...
SELECT "running_time" FROM "transmissions" WHERE "channel"='bbc four' AND "date"='23 march 2008';
## Task Generate a SQL query to answer the following question: `What is the running time of the transmission on bbc four channels on 23 March 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "transmissions" ( "date" text, "time" text, "channe...
SELECT "notes" FROM "transmissions" WHERE "channel"='bbc four' AND "time"='22:30';
## Task Generate a SQL query to answer the following question: `What is the notes of the transmission on channel bbc four and a time of 22:30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" te...
SELECT "time" FROM "transmissions" WHERE "running_time"='66 min 21 sec' AND "date"='28 december 2008';
## Task Generate a SQL query to answer the following question: `What is the time of the transmission on 28 December 2008 with a running time of 66 min 21 sec?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "transmissions" ( "date" text, "time" text...
SELECT "channel" FROM "transmissions" WHERE "date"='28 december 2008';
## Task Generate a SQL query to answer the following question: `Which channel was on 28 December 2008?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" tex...
SELECT "channel" FROM "transmissions" WHERE "time"='03:40';
## Task Generate a SQL query to answer the following question: `What is the channel with a 03:40 time?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "transmissions" ( "date" text, "time" text, "channel" text, "running_time" text, "notes" tex...
SELECT "other_b" FROM "top_goalscorers" WHERE "fa_cup"='3 (17)';
## Task Generate a SQL query to answer the following question: `What is the Other b when the FA Cup shows 3 (17)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "l...
SELECT "total" FROM "top_goalscorers" WHERE "league_a"='79 (221)';
## Task Generate a SQL query to answer the following question: `What is the Total when the league shows 79 (221)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "l...
SELECT "name" FROM "top_goalscorers" WHERE "league_cup"='0 (0)' AND "fa_cup"='12 (14)';
## Task Generate a SQL query to answer the following question: `What is the Name when the League Cup shows 0 (0), and the FA Cup is 12 (14)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" ...
SELECT "league_a" FROM "top_goalscorers" WHERE "years"='1952–1960';
## Task Generate a SQL query to answer the following question: `What is the League for 1952–1960?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, "league_cup" text,...
SELECT "league_a" FROM "top_goalscorers" WHERE "fa_cup"='6 (20)';
## Task Generate a SQL query to answer the following question: `What shows for the League when the FA Cup is 6 (20)?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "top_goalscorers" ( "name" text, "years" text, "league_a" text, "fa_cup" text, ...
SELECT "club" FROM "results" WHERE "player"='hristo stoitchkov';
## Task Generate a SQL query to answer the following question: `What club wast he player hristo stoitchkov from?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "results" ( "rank" real, "player" text, "club" text, "nationality" text, "points" ...
SELECT "content" FROM "shopping" WHERE "television_service"='la sorgente sat 3';
## Task Generate a SQL query to answer the following question: `What is the content for la sorgente sat 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" text, "content" text, ...
SELECT "language" FROM "shopping" WHERE "television_service"='telemarket for you';
## Task Generate a SQL query to answer the following question: `What language is telemarket for you?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" text, "content" text, "hdtv...
SELECT "language" FROM "shopping" WHERE "content"='televendita' AND "television_service"='telemarket for you';
## Task Generate a SQL query to answer the following question: `What language is telemarket for you with a content of televendita?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "shopping" ( "television_service" text, "country" text, "language" t...
SELECT "team" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "year">1969;
## Task Generate a SQL query to answer the following question: `Which team has points less than 6 in a year after 1969?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text...
SELECT "wins" FROM "grand_prix_motorcycle_racing_results" WHERE "points"<6 AND "class"='350cc';
## Task Generate a SQL query to answer the following question: `How many wins for the team with points less than 6 and a 350cc class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text,...
SELECT MIN("points") FROM "grand_prix_motorcycle_racing_results" WHERE "rank"='36th';
## Task Generate a SQL query to answer the following question: `What is the lowest points for 36th rank?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "grand_prix_motorcycle_racing_results" ( "year" real, "class" text, "team" text, "points" re...