answer
stringlengths 32
484
| context
stringlengths 27
489
| question
stringlengths 12
244
|
---|---|---|
SELECT venue FROM table_name_26 WHERE year < 2006 AND position = "10th" | CREATE TABLE table_name_26 (venue VARCHAR, year VARCHAR, position VARCHAR) | What was the venue before 2006, with the position of 10th? |
SELECT notes FROM table_name_62 WHERE venue = "turin, italy" | CREATE TABLE table_name_62 (notes VARCHAR, venue VARCHAR) | What were the notes when the Venue was Turin, Italy? |
SELECT secondary_military_speciality FROM table_name_21 WHERE real_name = "gareth morgan" | CREATE TABLE table_name_21 (secondary_military_speciality VARCHAR, real_name VARCHAR) | What is Gareth Morgan's Secondary Military Specialty? |
SELECT code_name FROM table_name_81 WHERE birthplace = "hawaii" | CREATE TABLE table_name_81 (code_name VARCHAR, birthplace VARCHAR) | What is the Code Name of the figure born in Hawaii? |
SELECT last_title FROM table_name_9 WHERE area_province = "greater buenos aires" AND first_season = "1920" | CREATE TABLE table_name_9 (last_title VARCHAR, area_province VARCHAR, first_season VARCHAR) | Name the last title for greater buenos aires and first season of 1920 |
SELECT area_province FROM table_name_64 WHERE district = "córdoba" | CREATE TABLE table_name_64 (area_province VARCHAR, district VARCHAR) | Name the area for District of córdoba |
SELECT last_title FROM table_name_36 WHERE club = "quilmes" | CREATE TABLE table_name_36 (last_title VARCHAR, club VARCHAR) | Name the last title for club of quilmes |
SELECT last_title FROM table_name_11 WHERE club = "newell's old boys" | CREATE TABLE table_name_11 (last_title VARCHAR, club VARCHAR) | Name the last time for club of newell's old boys |
SELECT AVG(scored) FROM table_name_64 WHERE competition = "2011 long teng cup" AND date = "2 october 2011" | CREATE TABLE table_name_64 (scored INTEGER, competition VARCHAR, date VARCHAR) | Name the averag scored for 2011 long teng cup and 2 october 2011 |
SELECT barrel_twist FROM table_name_63 WHERE barrel_length = "11.5 in." | CREATE TABLE table_name_63 (barrel_twist VARCHAR, barrel_length VARCHAR) | Can you tell me the Barrel twist that has the Barrel lenght of 11.5 in.? |
SELECT AVG(year) FROM table_name_27 WHERE inglewood < 2 OFFSET 575 | CREATE TABLE table_name_27 (year INTEGER, inglewood INTEGER) | What is the average year that had a value less than 2,575 in Inglewood? |
SELECT nature_of_incident FROM table_name_62 WHERE location = "kabul" AND date = "2004-01-28" | CREATE TABLE table_name_62 (nature_of_incident VARCHAR, location VARCHAR, date VARCHAR) | What is the nature of the incident in Kabul on 2004-01-28? |
SELECT nature_of_incident FROM table_name_69 WHERE circumstances = "bomb attack" | CREATE TABLE table_name_69 (nature_of_incident VARCHAR, circumstances VARCHAR) | What is the nature of the incident that's a bomb attack? |
SELECT nature_of_incident FROM table_name_93 WHERE casualties = "3 wia" AND circumstances = "ied" | CREATE TABLE table_name_93 (nature_of_incident VARCHAR, casualties VARCHAR, circumstances VARCHAR) | What is the nature of the incident with Casualties of 3 wia, and Circumstances of ied? |
SELECT casualties FROM table_name_24 WHERE location = "kunduz" AND circumstances = "suicide" | CREATE TABLE table_name_24 (casualties VARCHAR, location VARCHAR, circumstances VARCHAR) | Which Casualties have a Location of kunduz, and Circumstances of suicide? |
SELECT casualties FROM table_name_67 WHERE nature_of_incident = "hostile" AND circumstances = "mortar attack" | CREATE TABLE table_name_67 (casualties VARCHAR, nature_of_incident VARCHAR, circumstances VARCHAR) | Which Casualties have a hostile Nature of incident and Circumstances of mortar attack? |
SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health" | CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR) | When was the delegate who has previous experience as a commissioner of health born? |
SELECT airport FROM table_name_85 WHERE city = "kota kinabalu" | CREATE TABLE table_name_85 (airport VARCHAR, city VARCHAR) | What is the name of the airport in the city of Kota Kinabalu? |
SELECT iata FROM table_name_23 WHERE city = "amsterdam" | CREATE TABLE table_name_23 (iata VARCHAR, city VARCHAR) | What is the IATA for the city of Amsterdam? |
SELECT country FROM table_name_3 WHERE iata = "jfk" | CREATE TABLE table_name_3 (country VARCHAR, iata VARCHAR) | Which country has an IATA of JFK? |
SELECT city FROM table_name_42 WHERE iata = "auh" | CREATE TABLE table_name_42 (city VARCHAR, iata VARCHAR) | Which city has an IATA of AUH? |
SELECT airport FROM table_name_39 WHERE iata = "ams" | CREATE TABLE table_name_39 (airport VARCHAR, iata VARCHAR) | Which airport has an IATA of AMS? |
SELECT city FROM table_name_59 WHERE icao = "kiah" | CREATE TABLE table_name_59 (city VARCHAR, icao VARCHAR) | Which city has an ICAO of Kiah? |
SELECT genre FROM table_name_88 WHERE directed_by = "sándor simó" | CREATE TABLE table_name_88 (genre VARCHAR, directed_by VARCHAR) | What Genre did Sándor Simó direct? |
SELECT genre FROM table_name_12 WHERE original_title = "malina (ger.-aus.-fr.)" | CREATE TABLE table_name_12 (genre VARCHAR, original_title VARCHAR) | What is the Genre for Malina (ger.-aus.-fr.), an Original Title? |
SELECT original_title FROM table_name_91 WHERE title_in_english = "the last metro" | CREATE TABLE table_name_91 (original_title VARCHAR, title_in_english VARCHAR) | The Last Metro refers to which Original Title? |
SELECT genre FROM table_name_48 WHERE role = "episode actor" AND original_title = "franciska vasárnapjai (hungarian)" | CREATE TABLE table_name_48 (genre VARCHAR, role VARCHAR, original_title VARCHAR) | What original title, Franciska Vasárnapjai (hungarian), had an Episode Actor role which was Directed by Géza Bereményi? |
SELECT original_title FROM table_name_59 WHERE role = "episode actor" AND directed_by = "géza bereményi" | CREATE TABLE table_name_59 (original_title VARCHAR, role VARCHAR, directed_by VARCHAR) | What is the Original title for an Episode Actor role which was Directed by Géza Bereményi? |
SELECT AVG(round) FROM table_name_13 WHERE name = "bob randall" | CREATE TABLE table_name_13 (round INTEGER, name VARCHAR) | What is the round for bob randall? |
SELECT position FROM table_name_96 WHERE signed = "yes" AND round < 24 AND name = "charlie hough" | CREATE TABLE table_name_96 (position VARCHAR, name VARCHAR, signed VARCHAR, round VARCHAR) | what is the position when signed is yes, round is less than 24 and name is charlie hough? |
SELECT school FROM table_name_26 WHERE signed = "no" AND round = 50 | CREATE TABLE table_name_26 (school VARCHAR, signed VARCHAR, round VARCHAR) | what is the school when signed is no and round is 50? |
SELECT school FROM table_name_68 WHERE round = 8 | CREATE TABLE table_name_68 (school VARCHAR, round VARCHAR) | what is the school for round 8? |
SELECT position FROM table_name_25 WHERE name = "robert johnson" | CREATE TABLE table_name_25 (position VARCHAR, name VARCHAR) | what is the position for robert johnson? |
SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" | CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR) | Was position ss from carson city high school signed? |
SELECT AVG(yards) FROM table_name_46 WHERE starts > 12 | CREATE TABLE table_name_46 (yards INTEGER, starts INTEGER) | What was the average number of yards Michael Henig had in a year when he had more than 12 starts/ |
SELECT AVG(starts) FROM table_name_54 WHERE yards > 1201 | CREATE TABLE table_name_54 (starts INTEGER, yards INTEGER) | What was the average number of starts Michael Henig had in a year when he had more than 1201 yards? |
SELECT airport FROM table_name_64 WHERE iata = "cxb" | CREATE TABLE table_name_64 (airport VARCHAR, iata VARCHAR) | Name the airport with IATA of cxb |
SELECT airport FROM table_name_74 WHERE iata = "dmk" | CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR) | Name the airport with IATA of dmk |
SELECT city FROM table_name_15 WHERE airport = "singapore changi airport" | CREATE TABLE table_name_15 (city VARCHAR, airport VARCHAR) | Name the city that has singapore changi airport |
SELECT icao FROM table_name_22 WHERE iata = "zyl" | CREATE TABLE table_name_22 (icao VARCHAR, iata VARCHAR) | Name the ICAO for when IATA is zyl |
SELECT icao FROM table_name_69 WHERE iata = "rgn" | CREATE TABLE table_name_69 (icao VARCHAR, iata VARCHAR) | Name the ICAO for IATA of rgn |
SELECT icao FROM table_name_62 WHERE iata = "ccu" | CREATE TABLE table_name_62 (icao VARCHAR, iata VARCHAR) | Name the ICAO for IATA of ccu |
SELECT MAX(gold) FROM table_name_90 WHERE total > 16 | CREATE TABLE table_name_90 (gold INTEGER, total INTEGER) | What is the largest gold with a Total larger than 16? |
SELECT MAX(silver) FROM table_name_79 WHERE total < 2 AND bronze < 1 AND nation = "yugoslavia" | CREATE TABLE table_name_79 (silver INTEGER, nation VARCHAR, total VARCHAR, bronze VARCHAR) | What is the largest silver with a Total smaller than 2, a Bronze smaller than 1, and a Nation of yugoslavia? |
SELECT MIN(bronze) FROM table_name_58 WHERE nation = "west germany" AND gold > 0 | CREATE TABLE table_name_58 (bronze INTEGER, nation VARCHAR, gold VARCHAR) | What is the smallest bronze with a Nation of west germany, and a Gold larger than 0? |
SELECT record FROM table_name_34 WHERE date = "july 2" | CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR) | What was the record on July 2? |
SELECT MAX(silver) FROM table_name_63 WHERE gold < 0 | CREATE TABLE table_name_63 (silver INTEGER, gold INTEGER) | What is the largest silver with less than 0 gold? |
SELECT AVG(total_viewers) FROM table_name_96 WHERE share = "17.6%" | CREATE TABLE table_name_96 (total_viewers INTEGER, share VARCHAR) | What's the average total viewers that has 17.6% Share? |
SELECT share FROM table_name_84 WHERE episode_no = 1 | CREATE TABLE table_name_84 (share VARCHAR, episode_no VARCHAR) | What's the share of Episode 1? |
SELECT quantity_made FROM table_name_97 WHERE withdrawn = "1913" | CREATE TABLE table_name_97 (quantity_made VARCHAR, withdrawn VARCHAR) | How many locomotives were made that were withdrawn in 1913? |
SELECT date_made FROM table_name_9 WHERE type = "0-4-2" | CREATE TABLE table_name_9 (date_made VARCHAR, type VARCHAR) | What is the date of creation for the locomotive having a type of 0-4-2 |
SELECT date_made FROM table_name_31 WHERE type = "0-6-0" AND gsr_class = "441" | CREATE TABLE table_name_31 (date_made VARCHAR, type VARCHAR, gsr_class VARCHAR) | What is the date of creation of the locomotive of type 0-6-0 and GSR class of 441? |
SELECT venue FROM table_name_20 WHERE round = "19" AND player = "tony lockett" | CREATE TABLE table_name_20 (venue VARCHAR, round VARCHAR, player VARCHAR) | In Round 19, where did Tony Lockett play? |
SELECT opponent FROM table_name_17 WHERE year = "1992" | CREATE TABLE table_name_17 (opponent VARCHAR, year VARCHAR) | Who is the opponent in 1992? |
SELECT club FROM table_name_87 WHERE score = "18.1" | CREATE TABLE table_name_87 (club VARCHAR, score VARCHAR) | What club had a score of 18.1? |
SELECT COUNT(built) FROM table_name_51 WHERE withdrawn = 1967 AND br_sr_no = "w27" AND to_iow < 1926 | CREATE TABLE table_name_51 (built VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, br_sr_no VARCHAR) | What is the number for year built of W27 that was withdrawn in 1967 with a To LoW year earlier than 1926? |
SELECT COUNT(withdrawn) FROM table_name_19 WHERE lswr_no > 210 AND to_iow = 1923 | CREATE TABLE table_name_19 (withdrawn VARCHAR, lswr_no VARCHAR, to_iow VARCHAR) | What is the number of the year withdrawn for a LSWR number greater than 210 and a To LoW year of 1923? |
SELECT br_sr_no FROM table_name_25 WHERE withdrawn = 1967 AND built < 1892 AND to_iow > 1927 AND sr_name = "freshwater" | CREATE TABLE table_name_25 (br_sr_no VARCHAR, sr_name VARCHAR, to_iow VARCHAR, withdrawn VARCHAR, built VARCHAR) | What is the BR/SR number of Freshwater which was withdrawn in 1967 and built before 1892 with a To LoW year after 1927? |
SELECT engine FROM table_name_76 WHERE year < 1977 | CREATE TABLE table_name_76 (engine VARCHAR, year INTEGER) | Name the engine for year less than 1977 |
SELECT start FROM table_name_70 WHERE year < 1977 | CREATE TABLE table_name_70 (start VARCHAR, year INTEGER) | Name the start for year less than 1977 |
SELECT MIN(year) FROM table_name_13 WHERE start = "17th" | CREATE TABLE table_name_13 (year INTEGER, start VARCHAR) | Name the least year for start of 17th |
SELECT start FROM table_name_39 WHERE finish = "21st" | CREATE TABLE table_name_39 (start VARCHAR, finish VARCHAR) | Name the start for finish being 21st |
SELECT call_sign FROM table_name_52 WHERE network = "omni television" AND digital_psip = 14.1 | CREATE TABLE table_name_52 (call_sign VARCHAR, network VARCHAR, digital_psip VARCHAR) | What is the Call sign of the Omni television network with a Digitial PSIP of 14.1? |
SELECT COUNT(rogers_cable__ottawa_) FROM table_name_58 WHERE digital_psip > 9.1 AND vidéotron__gatineau_ = 14 | CREATE TABLE table_name_58 (rogers_cable__ottawa_ VARCHAR, digital_psip VARCHAR, vidéotron__gatineau_ VARCHAR) | What's the total number of Rogers Cable (Ottawa) channels that have a Digital PSIP greater than 9.1, and a Vidéotron (Gatineau) of channel 14? |
SELECT network FROM table_name_26 WHERE vidéotron__gatineau_ < 8 AND rogers_cable__ottawa_ < 8 AND call_sign = "cjoh-dt" | CREATE TABLE table_name_26 (network VARCHAR, call_sign VARCHAR, vidéotron__gatineau_ VARCHAR, rogers_cable__ottawa_ VARCHAR) | Which Network is on a Vidéotron (Gatineau) channel lower than 8 and a Rogers Cable (Ottawa) channel lower than 8 and has a Call Sign of cjoh-dt? |
SELECT record FROM table_name_35 WHERE time = "8:17" | CREATE TABLE table_name_35 (record VARCHAR, time VARCHAR) | What was the record after the fight that lasted 8:17? |
SELECT res FROM table_name_27 WHERE opponent = "tony halme" | CREATE TABLE table_name_27 (res VARCHAR, opponent VARCHAR) | What was the result of the fight with Tony Halme? |
SELECT opponent FROM table_name_44 WHERE date = "august 26" | CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR) | Who did they play on August 26? |
SELECT SUM(attendance) FROM table_name_74 WHERE date = "august 16" | CREATE TABLE table_name_74 (attendance INTEGER, date VARCHAR) | What was the attendance for the game on August 16? |
SELECT opponent FROM table_name_60 WHERE loss = "johnson (11-7)" | CREATE TABLE table_name_60 (opponent VARCHAR, loss VARCHAR) | What team did Johnson (11-7) play for? |
SELECT MAX(pts) FROM table_name_51 WHERE engine = "cosworth straight-4" | CREATE TABLE table_name_51 (pts INTEGER, engine VARCHAR) | What is the highest number of points the cosworth straight-4 engine scored? |
SELECT MAX(year) FROM table_name_13 WHERE entrant = "shadow racing team" AND pts > 0 | CREATE TABLE table_name_13 (year INTEGER, entrant VARCHAR, pts VARCHAR) | What is the latest year that shadow racing team scored more than 0 points? |
SELECT round FROM table_name_43 WHERE location = "palavas-les-flots , herault , france" | CREATE TABLE table_name_43 (round VARCHAR, location VARCHAR) | What round was held in palavas-les-flots , herault , france? |
SELECT 2 AS nd_leg FROM table_name_33 WHERE team_2 = "valencia" | CREATE TABLE table_name_33 (team_2 VARCHAR) | What is the second leg that Valencia was on? |
SELECT loss FROM table_name_68 WHERE record = "14-19" | CREATE TABLE table_name_68 (loss VARCHAR, record VARCHAR) | Name the loss with record of 14-19 |
SELECT score FROM table_name_6 WHERE record = "17-27" | CREATE TABLE table_name_6 (score VARCHAR, record VARCHAR) | Name the score with record of 17-27 |
SELECT opponent FROM table_name_20 WHERE record = "12-18" | CREATE TABLE table_name_20 (opponent VARCHAR, record VARCHAR) | Name the opponent with record of 12-18 |
SELECT general_classification FROM table_name_90 WHERE winner = "pascal richard" | CREATE TABLE table_name_90 (general_classification VARCHAR, winner VARCHAR) | Who was the General classification when Pascal Richard was the winner? |
SELECT points_classification FROM table_name_20 WHERE stage = "13" | CREATE TABLE table_name_20 (points_classification VARCHAR, stage VARCHAR) | Who had the Points classification for Stage 13? |
SELECT stage FROM table_name_71 WHERE mountains_classification = "pascal richard" AND winner = "vladimir poulnikov" | CREATE TABLE table_name_71 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) | What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won? |
SELECT SUM(score) FROM table_name_39 WHERE player = "danny edwards" | CREATE TABLE table_name_39 (score INTEGER, player VARCHAR) | What's the total score of Danny Edwards? |
SELECT place FROM table_name_20 WHERE score = 70 AND country = "australia" | CREATE TABLE table_name_20 (place VARCHAR, score VARCHAR, country VARCHAR) | Where was the place in Australia that had a score of 70? |
SELECT episode FROM table_name_28 WHERE entrepreneur_s_ = "adam weaver" | CREATE TABLE table_name_28 (episode VARCHAR, entrepreneur_s_ VARCHAR) | The entrepreneur Adam Weaver was featured in which episode? |
SELECT episode FROM table_name_60 WHERE entrepreneur_s_ = "layla bennett" | CREATE TABLE table_name_60 (episode VARCHAR, entrepreneur_s_ VARCHAR) | The entrepreneur Layla Bennett was featured in which episode? |
SELECT MAX(population) FROM table_name_29 WHERE rank > 9 | CREATE TABLE table_name_29 (population INTEGER, rank INTEGER) | What is the highest population of the region with a rank bigger than 9? |
SELECT AVG(population) FROM table_name_24 WHERE density__pop_per_km_2__ < 487 AND rank = 9 AND area__km_2__ > 377 OFFSET 944 | CREATE TABLE table_name_24 (population INTEGER, area__km_2__ VARCHAR, density__pop_per_km_2__ VARCHAR, rank VARCHAR) | What is the average population of the region with a density less than 487, a rank of 9, and an area larger than 377,944? |
SELECT COUNT(tdp___w__) FROM table_name_3 WHERE codename = "sb850" | CREATE TABLE table_name_3 (tdp___w__ VARCHAR, codename VARCHAR) | What is the TDP (w) of the chipset with a codename sb850? |
SELECT round FROM table_name_46 WHERE score < 21.5 | CREATE TABLE table_name_46 (round VARCHAR, score INTEGER) | Which round is a lower score than 21.5? |
SELECT round FROM table_name_25 WHERE status = "in" AND song = "叶良俊 - 爱你不是爱给别人看" | CREATE TABLE table_name_25 (round VARCHAR, status VARCHAR, song VARCHAR) | Which round status is in with this song: 叶良俊 - 爱你不是爱给别人看? |
SELECT status FROM table_name_94 WHERE score = 21.5 | CREATE TABLE table_name_94 (status VARCHAR, score VARCHAR) | Which status accompanies the score 21.5? |
SELECT name FROM table_name_86 WHERE score > 22 AND song = "林俊杰 - 木乃伊" | CREATE TABLE table_name_86 (name VARCHAR, score VARCHAR, song VARCHAR) | Wjat score is greater than 22 with this song: 林俊杰 - 木乃伊? |
SELECT round FROM table_name_18 WHERE song = "陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你" | CREATE TABLE table_name_18 (round VARCHAR, song VARCHAR) | What round has this song: 陶喆、蔡依林 - 今天你要嫁给我/曹格 - 世界唯一的你? |
SELECT artist FROM table_name_88 WHERE draw < 2 | CREATE TABLE table_name_88 (artist VARCHAR, draw INTEGER) | What is the artist with less than a 2 draw? |
SELECT AVG(issue_price) FROM table_name_73 WHERE special_notes = "from toronto maple leafs gift set" AND mintage = "3527" | CREATE TABLE table_name_73 (issue_price INTEGER, special_notes VARCHAR, mintage VARCHAR) | What is the average issue price with from Toronto maple leafs gift set, and a Mintage of 3527? |
SELECT theme FROM table_name_91 WHERE mintage = "3527" | CREATE TABLE table_name_91 (theme VARCHAR, mintage VARCHAR) | What theme has a mintage of 3527? |
SELECT MAX(year) FROM table_name_45 WHERE mintage = "1264" AND issue_price > 24.95 | CREATE TABLE table_name_45 (year INTEGER, mintage VARCHAR, issue_price VARCHAR) | When was a mintage of 1264 with more than 24.95 issued? |
SELECT MAX(year) FROM table_name_96 WHERE entrant = "team motul brm" AND chassis = "brm p201" AND points < 0 | CREATE TABLE table_name_96 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR) | Name the most year for team motul brm and chassis of brm p201 and points less than 0 |
SELECT entrant FROM table_name_25 WHERE year = 1975 AND chassis = "hill gh1" | CREATE TABLE table_name_25 (entrant VARCHAR, year VARCHAR, chassis VARCHAR) | Name the entrant for 1975 and chassis of hill gh1 |
SELECT chassis FROM table_name_49 WHERE engine = "brm v12" | CREATE TABLE table_name_49 (chassis VARCHAR, engine VARCHAR) | Name the chassis for engine of brm v12 |
SELECT MAX(year) FROM table_name_96 WHERE points > 0 | CREATE TABLE table_name_96 (year INTEGER, points INTEGER) | Name the most year for points more than 0 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.