output
stringlengths
27
479
instruction
stringlengths
407
1.39k
SELECT COUNT("roll") FROM "waitaki_district" WHERE "decile"=7 AND "authority"='state' AND "area"='macraes flat';
## Task Generate a SQL query to answer the following question: `What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waitaki_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total roll with a decile less than 7, and an authority of state, in the Macraes Flat area?`: ```sql
SELECT "years" FROM "waitaki_district" WHERE "decile">6 AND "area"='waikouaiti';
## Task Generate a SQL query to answer the following question: `What year has a decile more than 6, in the Waikouaiti area?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "waitaki_district" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" real ); ### SQL Given the database schema, here is the SQL query that answers `What year has a decile more than 6, in the Waikouaiti area?`: ```sql
SELECT "regular_season" FROM "indoor" WHERE "year"='1994/95';
## Task Generate a SQL query to answer the following question: `What place did the Nashville Metros place in the 1994/95 Season?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indoor" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `What place did the Nashville Metros place in the 1994/95 Season?`: ```sql
SELECT "year" FROM "indoor" WHERE "league"='usisl indoor';
## Task Generate a SQL query to answer the following question: `What years did the Nashville Metros have Usisl Indoor League?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indoor" ( "year" text, "division" text, "league" text, "regular_season" text, "playoffs" text ); ### SQL Given the database schema, here is the SQL query that answers `What years did the Nashville Metros have Usisl Indoor League?`: ```sql
SELECT "round" FROM "singles_4_4" WHERE "opponent"='kim eun-ha';
## Task Generate a SQL query to answer the following question: `Which Round has kim eun-ha as an Opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_4_4" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Round has kim eun-ha as an Opponent?`: ```sql
SELECT "edition" FROM "singles_4_4" WHERE "surface"='clay' AND "opponent"='park sung-hee';
## Task Generate a SQL query to answer the following question: `Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_4_4" ( "edition" text, "round" text, "date" text, "surface" text, "opponent" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Which kind of Edition that has a Surface of clay, and Park Sung-Hee as an opponent?`: ```sql
SELECT MAX("gold") FROM "medal_table" WHERE "total">9 AND "silver">10;
## Task Generate a SQL query to answer the following question: `What is the highest gold number count where a county had over 9 golds and 10 silvers?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest gold number count where a county had over 9 golds and 10 silvers?`: ```sql
SELECT SUM("bronze") FROM "medal_table" WHERE "total"=7 AND "silver">5;
## Task Generate a SQL query to answer the following question: `How many bronze medals did the country with 7 medals and over 5 silver medals receive?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "medal_table" ( "rank" text, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many bronze medals did the country with 7 medals and over 5 silver medals receive?`: ```sql
SELECT "date" FROM "south_africa_in_england" WHERE "venue"='lord''s';
## Task Generate a SQL query to answer the following question: `Name the date for venue of lord's` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_africa_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for venue of lord's`: ```sql
SELECT "result" FROM "south_africa_in_england" WHERE "venue"='lord''s';
## Task Generate a SQL query to answer the following question: `Name the result for venue of lord's` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_africa_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the result for venue of lord's`: ```sql
SELECT "date" FROM "south_africa_in_england" WHERE "result"='eng by 23 runs';
## Task Generate a SQL query to answer the following question: `Name the date for result of eng by 23 runs` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_africa_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for result of eng by 23 runs`: ```sql
SELECT "date" FROM "south_africa_in_england" WHERE "result"='draw' AND "venue"='edgbaston';
## Task Generate a SQL query to answer the following question: `Name the date for result of draw, and venue of edgbaston` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "south_africa_in_england" ( "date" text, "home_captain" text, "away_captain" text, "venue" text, "result" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the date for result of draw, and venue of edgbaston`: ```sql
SELECT COUNT("week") FROM "schedule" WHERE "record"='5-5';
## Task Generate a SQL query to answer the following question: `What is the total number of weeks that the Seahawks had a record of 5-5?` ### 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, "game_site" text, "record" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the total number of weeks that the Seahawks had a record of 5-5?`: ```sql
SELECT "name" FROM "match_record" WHERE "wins"='1' AND "losses"='1' AND "matches"='2';
## Task Generate a SQL query to answer the following question: `Who has 1 win, 1 loss, and has played 2 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_record" ( "name" text, "period" text, "matches" text, "wins" text, "draws" text, "losses" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has 1 win, 1 loss, and has played 2 matches?`: ```sql
SELECT "name" FROM "match_record" WHERE "losses"='5' AND "matches"='11';
## Task Generate a SQL query to answer the following question: `Who has 5 losses and has played 11 matches?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_record" ( "name" text, "period" text, "matches" text, "wins" text, "draws" text, "losses" text ); ### SQL Given the database schema, here is the SQL query that answers `Who has 5 losses and has played 11 matches?`: ```sql
SELECT "matches" FROM "match_record" WHERE "wins"='1' AND "name"='mohammad al-shamlan';
## Task Generate a SQL query to answer the following question: `How many matches has Mohammad Al-Shamlan played when there is 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_record" ( "name" text, "period" text, "matches" text, "wins" text, "draws" text, "losses" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matches has Mohammad Al-Shamlan played when there is 1 win?`: ```sql
SELECT "matches" FROM "match_record" WHERE "draws"='1' AND "wins"='1';
## Task Generate a SQL query to answer the following question: `How many matches were played when there was 1 draw and 1 win?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "match_record" ( "name" text, "period" text, "matches" text, "wins" text, "draws" text, "losses" text ); ### SQL Given the database schema, here is the SQL query that answers `How many matches were played when there was 1 draw and 1 win?`: ```sql
SELECT "played" FROM "2010_2011_table" WHERE "lost"='5';
## Task Generate a SQL query to answer the following question: `Name the played with lost of 5` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the played with lost of 5`: ```sql
SELECT "played" FROM "2010_2011_table" WHERE "points_against"='points against';
## Task Generate a SQL query to answer the following question: `Name the played with points against of points against` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the played with points against of points against`: ```sql
SELECT "tries_for" FROM "2010_2011_table" WHERE "tries_against"='38';
## Task Generate a SQL query to answer the following question: `Name the tries with tries against of 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the tries with tries against of 38`: ```sql
SELECT "points_against" FROM "2010_2011_table" WHERE "played"='22' AND "points"='52' AND "tries_against"='51';
## Task Generate a SQL query to answer the following question: `Name the points against when tries against is 51 and points is 52 with played of 22` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the points against when tries against is 51 and points is 52 with played of 22`: ```sql
SELECT "points_against" FROM "2010_2011_table" WHERE "club"='cwmllynfell rfc';
## Task Generate a SQL query to answer the following question: `Name the points against for cwmllynfell rfc` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "2010_2011_table" ( "club" text, "played" text, "drawn" text, "lost" text, "points_for" text, "points_against" text, "tries_for" text, "tries_against" text, "try_bonus" text, "losing_bonus" text, "points" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the points against for cwmllynfell rfc`: ```sql
SELECT "lead" FROM "176_seats_needed_for_a_majority" WHERE "polling_firm"='election results' AND "psoe"='39.6% 175';
## Task Generate a SQL query to answer the following question: `What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "176_seats_needed_for_a_majority" ( "polling_firm" text, "date" text, "link" text, "psoe" text, "others" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is lead for the Election Results polling firm and has a PSOE of 39.6% 175?`: ```sql
SELECT "psoe" FROM "176_seats_needed_for_a_majority" WHERE "polling_firm"='local elections';
## Task Generate a SQL query to answer the following question: `What is the PSOE for the Local Elections polling firm?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "176_seats_needed_for_a_majority" ( "polling_firm" text, "date" text, "link" text, "psoe" text, "others" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the PSOE for the Local Elections polling firm?`: ```sql
SELECT "date" FROM "176_seats_needed_for_a_majority" WHERE "psoe"='36.1%';
## Task Generate a SQL query to answer the following question: `Which date has a PSOE of 36.1%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "176_seats_needed_for_a_majority" ( "polling_firm" text, "date" text, "link" text, "psoe" text, "others" text, "lead" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has a PSOE of 36.1%?`: ```sql
SELECT "height_ft_m" FROM "timeline_of_tallest_buildings" WHERE "floors"=9;
## Task Generate a SQL query to answer the following question: `Name the height with 9 floors` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the height with 9 floors`: ```sql
SELECT "years_as_tallest" FROM "timeline_of_tallest_buildings" WHERE "floors">18;
## Task Generate a SQL query to answer the following question: `Name the years as tallest when floors are larger than 18` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the years as tallest when floors are larger than 18`: ```sql
SELECT "name" FROM "timeline_of_tallest_buildings" WHERE "floors"=17;
## Task Generate a SQL query to answer the following question: `Tell me the name that has 17 floors` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "timeline_of_tallest_buildings" ( "name" text, "street_address" text, "years_as_tallest" text, "height_ft_m" text, "floors" real ); ### SQL Given the database schema, here is the SQL query that answers `Tell me the name that has 17 floors`: ```sql
SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "overall"<254 AND "round"<5 AND "pick_num"<13;
## Task Generate a SQL query to answer the following question: `Which was the position for overall less than 254, round less than 5 and pick number less than 13?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Which was the position for overall less than 254, round less than 5 and pick number less than 13?`: ```sql
SELECT "round" FROM "indianapolis_colts_draft_history" WHERE "overall"=6;
## Task Generate a SQL query to answer the following question: `Name the round having an overall of 6` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the round having an overall of 6`: ```sql
SELECT "position" FROM "indianapolis_colts_draft_history" WHERE "college"='virginia';
## Task Generate a SQL query to answer the following question: `Name the position of the player from college of virginia` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "indianapolis_colts_draft_history" ( "round" real, "pick_num" real, "overall" real, "name" text, "position" text, "college" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the position of the player from college of virginia`: ```sql
SELECT "date" FROM "international_goals" WHERE "goal"=3;
## Task Generate a SQL query to answer the following question: `What was the date of the game that had a goal of 3?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game that had a goal of 3?`: ```sql
SELECT "date" FROM "international_goals" WHERE "goal"=4;
## Task Generate a SQL query to answer the following question: `What was the date of the game that had a goal of 4?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "international_goals" ( "goal" real, "date" text, "score" text, "result" text, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the date of the game that had a goal of 4?`: ```sql
SELECT "score" FROM "the_barclays" WHERE "points">'1,613' AND "to_par"<-14;
## Task Generate a SQL query to answer the following question: `If the points are over 1,613 and a To par under -14, what is the overall score?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "the_barclays" ( "player" text, "country" text, "score" text, "to_par" real, "points" real, "winnings" real ); ### SQL Given the database schema, here is the SQL query that answers `If the points are over 1,613 and a To par under -14, what is the overall score?`: ```sql
SELECT MAX("rank") FROM "semifinal_2" WHERE "lane"=5;
## Task Generate a SQL query to answer the following question: `What is the highest rank of a swimmer in lane 5?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest rank of a swimmer in lane 5?`: ```sql
SELECT MIN("rank") FROM "semifinal_2" WHERE "name"='jens kruppa' AND "lane">2;
## Task Generate a SQL query to answer the following question: `What is the lowest rank of Jens Kruppa in a lane larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the lowest rank of Jens Kruppa in a lane larger than 2?`: ```sql
SELECT "nationality" FROM "semifinal_2" WHERE "rank"<6 AND "lane"=6;
## Task Generate a SQL query to answer the following question: `Which nationality has a lane of 6 and a rank smaller than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "semifinal_2" ( "rank" real, "lane" real, "name" text, "nationality" text, "time" text ); ### SQL Given the database schema, here is the SQL query that answers `Which nationality has a lane of 6 and a rank smaller than 6?`: ```sql
SELECT "total" FROM "missed_the_cut" WHERE "player"='tony jacklin';
## Task Generate a SQL query to answer the following question: `What is Tony Jacklin's total?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What is Tony Jacklin's total?`: ```sql
SELECT "to_par" FROM "missed_the_cut" WHERE "player"='todd hamilton';
## Task Generate a SQL query to answer the following question: `What was Todd Hamilton's to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `What was Todd Hamilton's to par?`: ```sql
SELECT "year_s_won" FROM "missed_the_cut" WHERE "to_par">11;
## Task Generate a SQL query to answer the following question: `When was a game won with more than 11 to par?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "missed_the_cut" ( "player" text, "country" text, "year_s_won" text, "total" real, "to_par" real ); ### SQL Given the database schema, here is the SQL query that answers `When was a game won with more than 11 to par?`: ```sql
SELECT "location" FROM "rjfm_stations" WHERE "callsign"='dwrj-fm';
## Task Generate a SQL query to answer the following question: `Where is the place that has a Callsign of DWRJ-FM?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rjfm_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Where is the place that has a Callsign of DWRJ-FM?`: ```sql
SELECT "power_k_w" FROM "rjfm_stations" WHERE "location"='metro manila';
## Task Generate a SQL query to answer the following question: `Which Power has Location in metro manila` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "rjfm_stations" ( "branding" text, "callsign" text, "frequency" text, "power_k_w" text, "station_type" text, "location" text ); ### SQL Given the database schema, here is the SQL query that answers `Which Power has Location in metro manila`: ```sql
SELECT "tier" FROM "doubles_5" WHERE "tournament"='mont de marson';
## Task Generate a SQL query to answer the following question: `Which tier of the tournament has Mont de Marson in it?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "tier" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which tier of the tournament has Mont de Marson in it?`: ```sql
SELECT "date" FROM "doubles_5" WHERE "opponents_in_the_final"='akgul amanmuradova nina bratchikova';
## Task Generate a SQL query to answer the following question: `Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "tier" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has opponents, Akgul Amanmuradova Nina Bratchikova, in the final?`: ```sql
SELECT "date" FROM "doubles_5" WHERE "opponents_in_the_final"='claire de gubernatis alexandra dulgheru';
## Task Generate a SQL query to answer the following question: `Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "tier" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has opponents, Claire De Gubernatis Alexandra Dulgheru, in the final?`: ```sql
SELECT "score" FROM "doubles_5" WHERE "tournament"='antalya-belek';
## Task Generate a SQL query to answer the following question: `What is the score in the touranament of Antalya-Belek?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "tier" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score in the touranament of Antalya-Belek?`: ```sql
SELECT "date" FROM "doubles_5" WHERE "tier"='itf $10k';
## Task Generate a SQL query to answer the following question: `Which date has the tier of Itf $10k?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "doubles_5" ( "date" text, "tournament" text, "surface" text, "tier" text, "partner" text, "opponents_in_the_final" text, "score" text ); ### SQL Given the database schema, here is the SQL query that answers `Which date has the tier of Itf $10k?`: ```sql
SELECT "vs_zerg" FROM "statistics" WHERE "as_of_september_1_2012"='best streak';
## Task Generate a SQL query to answer the following question: `What is the value vs. Zerg with a September 1, 2012 best streak?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the value vs. Zerg with a September 1, 2012 best streak?`: ```sql
SELECT "vs_all" FROM "statistics" WHERE "vs_terran"='159';
## Task Generate a SQL query to answer the following question: `What is the score vs. all when the score vs. Terran is 159?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score vs. all when the score vs. Terran is 159?`: ```sql
SELECT "vs_protoss" FROM "statistics" WHERE "vs_terran"='10 wins';
## Task Generate a SQL query to answer the following question: `What is the score vs. Protoss when the score vs. Terran is 10 wins?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score vs. Protoss when the score vs. Terran is 10 wins?`: ```sql
SELECT "vs_zerg" FROM "statistics" WHERE "as_of_september_1_2012"='wins';
## Task Generate a SQL query to answer the following question: `What is the score vs. Zerg with wins as of September 1,2012?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score vs. Zerg with wins as of September 1,2012?`: ```sql
SELECT "vs_terran" FROM "statistics" WHERE "vs_zerg"='69';
## Task Generate a SQL query to answer the following question: `What is the score vs. Terran when the score vs. Zerg is 69?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the score vs. Terran when the score vs. Zerg is 69?`: ```sql
SELECT "as_of_september_1_2012" FROM "statistics" WHERE "vs_all"='65.47%';
## Task Generate a SQL query to answer the following question: `What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "statistics" ( "as_of_september_1_2012" text, "vs_protoss" text, "vs_terran" text, "vs_zerg" text, "vs_all" text ); ### SQL Given the database schema, here is the SQL query that answers `What occurrs as of September 1, 2012 when the value for vs. all is 65.47%?`: ```sql
SELECT "record" FROM "season_schedule" WHERE "opponent"='bye';
## Task Generate a SQL query to answer the following question: `What is the record of the opponent that has a bye?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "season_schedule" ( "week" real, "date" text, "opponent" text, "score" text, "result" text, "attendance" text, "record" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the record of the opponent that has a bye?`: ```sql
SELECT AVG("total_medals") FROM "percussion_scholastic_concert_world_clas" WHERE "gold_medals"=0 AND "ensemble"='roland hayes school';
## Task Generate a SQL query to answer the following question: `What was the average total medals received by Roland Hayes School when there were 0 gold medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_scholastic_concert_world_clas" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the average total medals received by Roland Hayes School when there were 0 gold medals?`: ```sql
SELECT COUNT("total_medals") FROM "percussion_scholastic_concert_world_clas" WHERE "ensemble"='james logan high school' AND "silver_medals"<1;
## Task Generate a SQL query to answer the following question: `What was the total number of medals received by James Logan High School when it received less than 1 silver medal?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_scholastic_concert_world_clas" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the total number of medals received by James Logan High School when it received less than 1 silver medal?`: ```sql
SELECT MAX("bronze_medals") FROM "percussion_scholastic_concert_world_clas" WHERE "gold_medals"<0;
## Task Generate a SQL query to answer the following question: `What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "percussion_scholastic_concert_world_clas" ( "ensemble" text, "gold_medals" real, "silver_medals" real, "bronze_medals" real, "total_medals" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the highest number of bronze medals received by an ensemble who received fewer than 0 gold medals?`: ```sql
SELECT "score" FROM "international_goals" WHERE "competition"='2008 africa cup of nations';
## Task Generate a SQL query to answer the following question: `What was the Score of the 2008 Africa Cup of Nations Competition?` ### 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, "competition" text ); ### SQL Given the database schema, here is the SQL query that answers `What was the Score of the 2008 Africa Cup of Nations Competition?`: ```sql
SELECT MAX("goals_for") FROM "final_table" WHERE "losses"<15 AND "position">8 AND "points"='42+4';
## Task Generate a SQL query to answer the following question: `Name the most goals with losses less than 15 and position more than 8 with points of 42+4` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the most goals with losses less than 15 and position more than 8 with points of 42+4`: ```sql
SELECT AVG("goals_against") FROM "final_table" WHERE "draws"=8 AND "losses"<12 AND "wins">22;
## Task Generate a SQL query to answer the following question: `Name the average goals against for draws of 8 and wins more than 22 with losses less than 12` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average goals against for draws of 8 and wins more than 22 with losses less than 12`: ```sql
SELECT MIN("wins") FROM "final_table" WHERE "position"<20 AND "goals_for"=35 AND "goal_difference"<-20;
## Task Generate a SQL query to answer the following question: `Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least wins for goal difference being less than -20 with position less than 20 and goals for of 35`: ```sql
SELECT AVG("losses") FROM "final_table" WHERE "draws">6 AND "played">38;
## Task Generate a SQL query to answer the following question: `Name the average losses for draws larger than 6 and played more than 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the average losses for draws larger than 6 and played more than 38`: ```sql
SELECT MIN("goals_against") FROM "final_table" WHERE "played">38;
## Task Generate a SQL query to answer the following question: `Name the least goals against for played more than 38` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "final_table" ( "position" real, "club" text, "played" real, "points" text, "wins" real, "draws" real, "losses" real, "goals_for" real, "goals_against" real, "goal_difference" real ); ### SQL Given the database schema, here is the SQL query that answers `Name the least goals against for played more than 38`: ```sql
SELECT "entrant" FROM "complete_formula_one_results" WHERE "year">1961 AND "engine"='ferrari v8' AND "points"<23;
## Task Generate a SQL query to answer the following question: `After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `After 1961, who as the Entrant when the engine was a Ferrari v8, and when the points were lower than 23?`: ```sql
SELECT "chassis" FROM "complete_formula_one_results" WHERE "year"=1967;
## Task Generate a SQL query to answer the following question: `What is was the Chassis in 1967?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What is was the Chassis in 1967?`: ```sql
SELECT COUNT("points") FROM "complete_formula_one_results" WHERE "engine"='ferrari v6' AND "year"=1962;
## Task Generate a SQL query to answer the following question: `In 1962, what was the total number of points, when the Engine was Ferrari v6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `In 1962, what was the total number of points, when the Engine was Ferrari v6?`: ```sql
SELECT "chassis" FROM "complete_formula_one_results" WHERE "points"<6 AND "year"=1961;
## Task Generate a SQL query to answer the following question: `In 1961, what was the Chassis when the points were lower than 6?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `In 1961, what was the Chassis when the points were lower than 6?`: ```sql
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "entrant"='scuderia ferrari' AND "chassis"='ferrari 312/66';
## Task Generate a SQL query to answer the following question: `What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the sum of the years, when the entrant was Scuderia Ferrari, and when the Chassis was Ferrari 312/66?`: ```sql
SELECT SUM("year") FROM "complete_formula_one_results" WHERE "entrant"='scuderia centro sud' AND "points"=6;
## Task Generate a SQL query to answer the following question: `What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "complete_formula_one_results" ( "year" real, "entrant" text, "chassis" text, "engine" text, "points" real ); ### SQL Given the database schema, here is the SQL query that answers `What was the sum of the years, when the entrant was Scuderia Centro Sud, and when there were 6 points?`: ```sql
SELECT "authority" FROM "palmerston_north_city" WHERE "gender"='coed' AND "area"='kelvin grove' AND "name"='tkkm o manawatu';
## Task Generate a SQL query to answer the following question: `In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "palmerston_north_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" text ); ### SQL Given the database schema, here is the SQL query that answers `In the tkkm o manawatu coed school in kelvin grove, what is the Authority listed/`: ```sql
SELECT "authority" FROM "palmerston_north_city" WHERE "gender"='coed' AND "decile">4 AND "roll"='150';
## Task Generate a SQL query to answer the following question: `which Authority has a coed school with a decile greater than 4, with a 150 roll?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "palmerston_north_city" ( "name" text, "years" text, "gender" text, "area" text, "authority" text, "decile" real, "roll" text ); ### SQL Given the database schema, here is the SQL query that answers `which Authority has a coed school with a decile greater than 4, with a 150 roll?`: ```sql
SELECT "language" FROM "references" WHERE "original_title"='trotta';
## Task Generate a SQL query to answer the following question: `Name the language for trotta` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the language for trotta`: ```sql
SELECT "original_title" FROM "references" WHERE "director"='luis buñuel';
## Task Generate a SQL query to answer the following question: `Name the original title directed by luis buñuel` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the original title directed by luis buñuel`: ```sql
SELECT "original_title" FROM "references" WHERE "director"='sudhendu roy';
## Task Generate a SQL query to answer the following question: `Name the original title directed by sudhendu roy` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the original title directed by sudhendu roy`: ```sql
SELECT "film_title_used_in_nomination" FROM "references" WHERE "language"='spanish' AND "country"='peru';
## Task Generate a SQL query to answer the following question: `Name the film title that is spanish from peru` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the film title that is spanish from peru`: ```sql
SELECT "language" FROM "references" WHERE "country"='switzerland';
## Task Generate a SQL query to answer the following question: `Name the langauge for switzerland` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "references" ( "country" text, "film_title_used_in_nomination" text, "language" text, "original_title" text, "director" text ); ### SQL Given the database schema, here is the SQL query that answers `Name the langauge for switzerland`: ```sql
SELECT MIN("total") FROM "performances_by_nation" WHERE "rank">2 AND "bronze"=1 AND "silver">0 AND "gold"<0;
## Task Generate a SQL query to answer the following question: `What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `What is the Total with 0 Silver and Gold, 1 Bronze and Rank larger than 2?`: ```sql
SELECT AVG("bronze") FROM "performances_by_nation" WHERE "rank"<5 AND "gold">2 AND "total"=9 AND "silver"<4;
## Task Generate a SQL query to answer the following question: `How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "performances_by_nation" ( "rank" real, "gold" real, "silver" real, "bronze" real, "total" real ); ### SQL Given the database schema, here is the SQL query that answers `How many Bronze medals were received by the nation that Ranked less than 5 and received more than 2 Gold medals, less than 4 Silver medals with a Total of 9 medals?`: ```sql
SELECT "order" FROM "chiroptera" WHERE "family"='vespertilionidae' AND "name"='northern long-eared myotis';
## Task Generate a SQL query to answer the following question: `which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "chiroptera" ( "name" text, "species_authority" text, "order" text, "family" text, "red_list" real ); ### SQL Given the database schema, here is the SQL query that answers `which order of bat belongs to the family of vespertilionidae and includes the northern long-eared myotis?`: ```sql
SELECT "year" FROM "24_hours_of_le_mans_results" WHERE "class"='wsc';
## Task Generate a SQL query to answer the following question: `What year has WSC class?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "24_hours_of_le_mans_results" ( "year" real, "team" text, "co_drivers" text, "class" text, "laps" real, "pos" text, "class_pos" text ); ### SQL Given the database schema, here is the SQL query that answers `What year has WSC class?`: ```sql
SELECT "race" FROM "1996_97_season_as_a_four_year_old" WHERE "jockey"='d. beadman' AND "result"='4th';
## Task Generate a SQL query to answer the following question: `Which race has D. Beadman for the jockey and a 4th place result?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "1996_97_season_as_a_four_year_old" ( "result" text, "date" text, "race" text, "venue" text, "group" text, "distance" text, "weight_kg" real, "jockey" text, "winner_2nd" text ); ### SQL Given the database schema, here is the SQL query that answers `Which race has D. Beadman for the jockey and a 4th place result?`: ```sql
SELECT "1st_party" FROM "members_of_parliament" WHERE "2nd_member"='charles isaac elton';
## Task Generate a SQL query to answer the following question: `What is the 1st party with Charles Isaac Elton as the 2nd member?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 1st party with Charles Isaac Elton as the 2nd member?`: ```sql
SELECT "election" FROM "members_of_parliament" WHERE "2nd_member"='sir alexander fuller-acland-hood, bt';
## Task Generate a SQL query to answer the following question: `Which election had Sir Alexander Fuller-Acland-Hood, bt as the 2nd member?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Which election had Sir Alexander Fuller-Acland-Hood, bt as the 2nd member?`: ```sql
SELECT "2nd_member" FROM "members_of_parliament" WHERE "1st_party"='conservative' AND "1st_member"='vaughan lee' AND "election"='1874';
## Task Generate a SQL query to answer the following question: `Who is the 2nd member of the conservative 1st party, which had Vaughan Lee as the 1st member, in the election of 1874?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the 2nd member of the conservative 1st party, which had Vaughan Lee as the 1st member, in the election of 1874?`: ```sql
SELECT "2nd_party" FROM "members_of_parliament" WHERE "1st_party"='conservative' AND "1st_member"='charles moody' AND "election"='1851 by-election';
## Task Generate a SQL query to answer the following question: `What is the 2nd party for a conservative 1st party with a 1st member Charles Moody in the election of 1851 by-election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd party for a conservative 1st party with a 1st member Charles Moody in the election of 1851 by-election?`: ```sql
SELECT "1st_member" FROM "members_of_parliament" WHERE "election"='1884 by-election';
## Task Generate a SQL query to answer the following question: `Who is the 1st member in the 1884 by-election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `Who is the 1st member in the 1884 by-election?`: ```sql
SELECT "2nd_party" FROM "members_of_parliament" WHERE "election"='1874';
## Task Generate a SQL query to answer the following question: `What is the 2nd party in the 1874 election?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "members_of_parliament" ( "election" text, "1st_member" text, "1st_party" text, "2nd_member" text, "2nd_party" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2nd party in the 1874 election?`: ```sql
SELECT "school" FROM "january_secondary_phase" WHERE "position"='c';
## Task Generate a SQL query to answer the following question: `Which school had a player who played the C position?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "january_secondary_phase" ( "round" real, "name" text, "position" text, "school" text, "signed" text ); ### SQL Given the database schema, here is the SQL query that answers `Which school had a player who played the C position?`: ```sql
SELECT AVG("game") FROM "summary" WHERE "date"='october 16';
## Task Generate a SQL query to answer the following question: `Which game is on the date October 16?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "summary" ( "game" real, "date" text, "score" text, "location" text, "time" text, "attendance" real ); ### SQL Given the database schema, here is the SQL query that answers `Which game is on the date October 16?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2006"='q1' AND "tournament"='french open';
## Task Generate a SQL query to answer the following question: `What is the 2009 value with a q1 in 2006 in the French Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 value with a q1 in 2006 in the French Open?`: ```sql
SELECT "2010" FROM "singles_performance_timeline" WHERE "2008"='2r' AND "2013"='a';
## Task Generate a SQL query to answer the following question: `What is the 2010 value with a 2r in 2008 and A in 2013?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2010 value with a 2r in 2008 and A in 2013?`: ```sql
SELECT "2007" FROM "singles_performance_timeline" WHERE "2009"='1r' AND "tournament"='us open';
## Task Generate a SQL query to answer the following question: `What is the 2007 value with 1r in 2009 in the US Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2007 value with 1r in 2009 in the US Open?`: ```sql
SELECT "2009" FROM "singles_performance_timeline" WHERE "2011"='grand slam tournaments';
## Task Generate a SQL query to answer the following question: `What is the 2009 value in the 2011 Grand Slam Tournaments?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2009 value in the 2011 Grand Slam Tournaments?`: ```sql
SELECT "2005" FROM "singles_performance_timeline" WHERE "2013"='1r' AND "2011"='q2';
## Task Generate a SQL query to answer the following question: `What is the 2005 value with 1r in 2013 and q2 in 2011?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2005 value with 1r in 2013 and q2 in 2011?`: ```sql
SELECT "2010" FROM "singles_performance_timeline" WHERE "tournament"='australian open';
## Task Generate a SQL query to answer the following question: `What is the 2010 value in the Australian Open?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "singles_performance_timeline" ( "tournament" text, "2005" text, "2006" text, "2007" text, "2008" text, "2009" text, "2010" text, "2011" text, "2012" text, "2013" text ); ### SQL Given the database schema, here is the SQL query that answers `What is the 2010 value in the Australian Open?`: ```sql
SELECT "city_of_license" FROM "low_power_translators" WHERE "frequency_m_hz"<102.3 AND "erp_w"=25;
## Task Generate a SQL query to answer the following question: `what is the city of license for the station with the frequency mhz less than 102.3 abd erp w of 25?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_power_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the city of license for the station with the frequency mhz less than 102.3 abd erp w of 25?`: ```sql
SELECT "class" FROM "low_power_translators" WHERE "call_sign"='w254ah';
## Task Generate a SQL query to answer the following question: `\What is the class of the station with the call sign w254ah?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_power_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `\What is the class of the station with the call sign w254ah?`: ```sql
SELECT "class" FROM "low_power_translators" WHERE "erp_w">30;
## Task Generate a SQL query to answer the following question: `what is the class of the station with erp w more than 30?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_power_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the class of the station with erp w more than 30?`: ```sql
SELECT MAX("frequency_m_hz") FROM "low_power_translators" WHERE "call_sign"='w292cu';
## Task Generate a SQL query to answer the following question: `what is the highest frequency mhz with the call sign w292cu?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "low_power_translators" ( "call_sign" text, "frequency_m_hz" real, "city_of_license" text, "erp_w" real, "class" text, "fcc_info" text ); ### SQL Given the database schema, here is the SQL query that answers `what is the highest frequency mhz with the call sign w292cu?`: ```sql
SELECT "constructor" FROM "drivers_and_constructors" WHERE "chassis"='ej15 ej15b';
## Task Generate a SQL query to answer the following question: `Which constructor makes the ej15 ej15b chassis?` ### Database Schema This query will run on a database whose schema is represented in this string: CREATE TABLE "drivers_and_constructors" ( "entrant" text, "constructor" text, "chassis" text, "engine" text, "tyre" text, "driver" text, "rounds" text ); ### SQL Given the database schema, here is the SQL query that answers `Which constructor makes the ej15 ej15b chassis?`: ```sql