question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Name the first air date for 9 episode
CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR)
SELECT first_air_date FROM table_20971444_3 WHERE episode = 9
What was the minimum L if the GA is 272?
CREATE TABLE table_2233872_1 (l INTEGER, ga VARCHAR)
SELECT MIN(l) FROM table_2233872_1 WHERE ga = 272
What is the highest rank of the athlete with a Taijiquan higher than 9.64 and a total more than 19.69?
CREATE TABLE table_name_95 (rank INTEGER, taijiquan VARCHAR, total VARCHAR)
SELECT MAX(rank) FROM table_name_95 WHERE taijiquan > 9.64 AND total > 19.69
Which date contained Aubrey O'Day as the cover model?
CREATE TABLE table_1566852_10 (date VARCHAR, cover_model VARCHAR)
SELECT date FROM table_1566852_10 WHERE cover_model = "Aubrey O'Day"
How many laps were there when the Time/Retired was +14.403?
CREATE TABLE table_name_45 (laps VARCHAR, time_retired VARCHAR)
SELECT laps FROM table_name_45 WHERE time_retired = "+14.403"
What Date has a Mach of 0.662?
CREATE TABLE table_name_77 (date VARCHAR, mach VARCHAR)
SELECT date FROM table_name_77 WHERE mach = 0.662
What is the highest number of draws with 14 points and less than 7 games?
CREATE TABLE table_name_39 (drawn INTEGER, points VARCHAR, games VARCHAR)
SELECT MAX(drawn) FROM table_name_39 WHERE points = 14 AND games < 7
Who is the player with a score less than 72 and a to par of +1?
CREATE TABLE table_name_62 (player VARCHAR, score VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_62 WHERE score < 72 AND to_par = "+1"
What is the total for the University of Dublin when 2 are nominated by Taoiseach and the industrial and commercial panel is greater than 0?
CREATE TABLE table_name_71 (university_of_dublin INTEGER, nominated_by_the_taoiseach VARCHAR, industrial_and_commercial_panel VARCHAR)
SELECT SUM(university_of_dublin) FROM table_name_71 WHERE nominated_by_the_taoiseach = 2 AND industrial_and_commercial_panel > 0
What person on team Minardi Team USA with a qual of 1:17.481?
CREATE TABLE table_name_59 (name VARCHAR, team VARCHAR, qual_1 VARCHAR)
SELECT name FROM table_name_59 WHERE team = "minardi team usa" AND qual_1 = "1:17.481"
What is the Name, when the Transfer fee is "loan"?
CREATE TABLE table_name_80 (name VARCHAR, transfer_fee VARCHAR)
SELECT name FROM table_name_80 WHERE transfer_fee = "loan"
Votes of 27,391 has which quotient?
CREATE TABLE table_name_10 (quotient VARCHAR, votes VARCHAR)
SELECT quotient FROM table_name_10 WHERE votes = "27,391"
What was the date of death entry in the row that has a date of inauguration entry of date of inauguration?
CREATE TABLE table_name_76 (date_of_death VARCHAR, date_of_inauguration VARCHAR)
SELECT date_of_death FROM table_name_76 WHERE date_of_inauguration = "date of inauguration"
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR)
SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"
What is the minimum introduced value for the Departmental region?
CREATE TABLE table_1081459_1 (introduced INTEGER, region VARCHAR)
SELECT MIN(introduced) FROM table_1081459_1 WHERE region = "Departmental"
tries against is 55, what is the try bonus?
CREATE TABLE table_name_80 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT try_bonus FROM table_name_80 WHERE tries_against = "55"
Can you tell me the Miss Maja Pilipinas that has the Year of 1969?
CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, year VARCHAR)
SELECT miss_maja_pilipinas FROM table_name_30 WHERE year = 1969
What is the average Lost when the difference is - 3, and a Played is less than 10?
CREATE TABLE table_name_21 (lost INTEGER, difference VARCHAR, played VARCHAR)
SELECT AVG(lost) FROM table_name_21 WHERE difference = "- 3" AND played < 10
What is the D 44 √ when the D 46 √ is r 26?
CREATE TABLE table_name_32 (d_44_√ VARCHAR, d_46_√ VARCHAR)
SELECT d_44_√ FROM table_name_32 WHERE d_46_√ = "r 26"
What is the winning pct % if the goal for are 229?
CREATE TABLE table_2259285_1 (winning_pct__percentage VARCHAR, goals_for VARCHAR)
SELECT winning_pct__percentage FROM table_2259285_1 WHERE goals_for = 229
How many capitals had brest litovsk voivodeship as voivodeship after 1569?
CREATE TABLE table_1784514_1 (capital VARCHAR, voivodeship_after_1569 VARCHAR)
SELECT COUNT(capital) FROM table_1784514_1 WHERE voivodeship_after_1569 = "Brest Litovsk Voivodeship"
How many rounds did the match at GCF: Strength and Honor last?
CREATE TABLE table_name_49 (round INTEGER, event VARCHAR)
SELECT AVG(round) FROM table_name_49 WHERE event = "gcf: strength and honor"
When chauncey billups (4) has the highest amount of assists who has the highest amount of points?
CREATE TABLE table_23285849_10 (high_points VARCHAR, high_assists VARCHAR)
SELECT high_points FROM table_23285849_10 WHERE high_assists = "Chauncey Billups (4)"
What runner(s)-up has 1 (2013) as the champions?
CREATE TABLE table_name_75 (runners_up VARCHAR, champions VARCHAR)
SELECT runners_up FROM table_name_75 WHERE champions = "1 (2013)"
What's the total number of episodes whose original airings were viewed by 1.82 million viewers?
CREATE TABLE table_11274401_3 (air_date VARCHAR, viewers__m_ VARCHAR)
SELECT COUNT(air_date) FROM table_11274401_3 WHERE viewers__m_ = "1.82"
Name the kurdistan democratic party for kurdistan list being 10
CREATE TABLE table_24440361_1 (kurdistan_democratic_party INTEGER, total_kurdistan_list VARCHAR)
SELECT MIN(kurdistan_democratic_party) FROM table_24440361_1 WHERE total_kurdistan_list = 10
What year had a domestic cup of singapore cup?
CREATE TABLE table_name_9 (year VARCHAR, domestic_cup VARCHAR)
SELECT year FROM table_name_9 WHERE domestic_cup = "singapore cup"
Tell me the score on 1978-12-16
CREATE TABLE table_name_91 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_91 WHERE date = "1978-12-16"
What was the score when Tore Torgersen played for Team Europe?
CREATE TABLE table_19072602_1 (score VARCHAR, team_europe VARCHAR)
SELECT score FROM table_19072602_1 WHERE team_europe = "Tore Torgersen"
In the 2008/2009 season one team had 1 losing bonus, How many points did that team score that year?
CREATE TABLE table_13399573_4 (points_for VARCHAR, losing_bonus VARCHAR)
SELECT points_for FROM table_13399573_4 WHERE losing_bonus = "1"
Find the average credit score of the customers who do not have any loan.
CREATE TABLE loan (credit_score INTEGER, cust_id VARCHAR); CREATE TABLE customer (credit_score INTEGER, cust_id VARCHAR)
SELECT AVG(credit_score) FROM customer WHERE NOT cust_id IN (SELECT cust_id FROM loan)
What is the birthdate of Robert Esche?
CREATE TABLE table_name_39 (birthdate VARCHAR, name VARCHAR)
SELECT birthdate FROM table_name_39 WHERE name = "robert esche"
How many values for founded when enrollment is 850?
CREATE TABLE table_22043925_1 (founded VARCHAR, enrolment VARCHAR)
SELECT COUNT(founded) FROM table_22043925_1 WHERE enrolment = 850
In the game against home team Fitzroy, what did the away team score?
CREATE TABLE table_name_57 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_57 WHERE home_team = "fitzroy"
What home team played against Crystal Palace?
CREATE TABLE table_name_68 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_68 WHERE away_team = "crystal palace"
Show different parties of people along with the number of people in each party.
CREATE TABLE people (Party VARCHAR)
SELECT Party, COUNT(*) FROM people GROUP BY Party
what name has a Rank of lieutenant colonel, and a Begin Date of 1904-02-22 22 february 1904?
CREATE TABLE table_name_87 (name VARCHAR, rank VARCHAR, begin_date VARCHAR)
SELECT name FROM table_name_87 WHERE rank = "lieutenant colonel" AND begin_date = "1904-02-22 22 february 1904"
what is the special edition where the english version is nick stewart?
CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR)
SELECT special_edition FROM table_25173505_13 WHERE english_version = "Nick Stewart"
what location has team trek-livestrong?
CREATE TABLE table_27887723_1 (location VARCHAR, team VARCHAR)
SELECT location FROM table_27887723_1 WHERE team = "Trek-Livestrong"
Show the details of all trucks in the order of their license number.
CREATE TABLE trucks (truck_details VARCHAR, truck_licence_number VARCHAR)
SELECT truck_details FROM trucks ORDER BY truck_licence_number
What is the smallest ANSI code for adler township when Longitude is more than -101.333926, GEO ID is less than 3806700900, and Land ( sqmi ) is more than 35.84?
CREATE TABLE table_name_18 (ansi_code INTEGER, land___sqmi__ VARCHAR, township VARCHAR, longitude VARCHAR, geo_id VARCHAR)
SELECT MIN(ansi_code) FROM table_name_18 WHERE longitude > -101.333926 AND geo_id < 3806700900 AND township = "adler" AND land___sqmi__ > 35.84
What is the club the used aykut kocaman as the replacement?
CREATE TABLE table_name_22 (club VARCHAR, replacement VARCHAR)
SELECT club FROM table_name_22 WHERE replacement = "aykut kocaman"
What country did Raymond Floyd play for?
CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_9 WHERE player = "raymond floyd"
How many Decembers have calgary flames as the opponent?
CREATE TABLE table_name_90 (december VARCHAR, opponent VARCHAR)
SELECT COUNT(december) FROM table_name_90 WHERE opponent = "calgary flames"
What team played Essendon?
CREATE TABLE table_name_90 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_90 WHERE away_team = "essendon"
Where did the player place who is from the United States, who made more than $216, and whose score was 74-70-71-69=284?
CREATE TABLE table_name_71 (place VARCHAR, country VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT place FROM table_name_71 WHERE country = "united states" AND money___$__ > 216 AND score = 74 - 70 - 71 - 69 = 284
What is the earliest year in which the result is championship US Open (2)?
CREATE TABLE table_29163303_2 (year INTEGER, championship VARCHAR)
SELECT MIN(year) FROM table_29163303_2 WHERE championship = "US Open (2)"
What is the GDP $IDB in Istanbul?
CREATE TABLE table_name_42 (gdp_in_$id_b VARCHAR, city VARCHAR)
SELECT gdp_in_$id_b FROM table_name_42 WHERE city = "istanbul"
What is the spacecraft with end time of 4 September 04:51?
CREATE TABLE table_name_70 (spacecraft VARCHAR, end_time VARCHAR)
SELECT spacecraft FROM table_name_70 WHERE end_time = "4 september 04:51"
What was the Venue of the 2009 Gulf Cup of Nations?
CREATE TABLE table_name_75 (venue VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_75 WHERE competition = "2009 gulf cup of nations"
What nationality has a ranking less than 7 with tony stenson as the name?
CREATE TABLE table_name_13 (nationality VARCHAR, ranking VARCHAR, name VARCHAR)
SELECT nationality FROM table_name_13 WHERE ranking < 7 AND name = "tony stenson"
What is the tenure of the person whose courtesy title is yamashiro-no-kami?
CREATE TABLE table_name_96 (tenure VARCHAR, courtesy_title VARCHAR)
SELECT tenure FROM table_name_96 WHERE courtesy_title = "yamashiro-no-kami"
What is the Nation when the Athlete was emma george, and a Record of 4.58m(15ft0¼in)?
CREATE TABLE table_name_62 (nation VARCHAR, athlete VARCHAR, record VARCHAR)
SELECT nation FROM table_name_62 WHERE athlete = "emma george" AND record = "4.58m(15ft0¼in)"
What district did the Democratic party incumbent Stephen J. Solarz get first elected to in 1974?
CREATE TABLE table_1341663_33 (district VARCHAR, incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT district FROM table_1341663_33 WHERE party = "Democratic" AND first_elected = 1974 AND incumbent = "Stephen J. Solarz"
List the number of customers that did not have any payment history.
CREATE TABLE Customers (customer_id VARCHAR); CREATE TABLE Customer_Payments (customer_id VARCHAR)
SELECT COUNT(*) FROM Customers WHERE NOT customer_id IN (SELECT customer_id FROM Customer_Payments)
Name the last appearance for music city bowl
CREATE TABLE table_2517159_1 (last_appearance VARCHAR, name_of_bowl VARCHAR)
SELECT last_appearance FROM table_2517159_1 WHERE name_of_bowl = "Music City Bowl"
What is Headquarter, when Type is Government-Owned, and when Newspaper/Magazine is Al-Jumhuriya?
CREATE TABLE table_name_11 (headquarter VARCHAR, type VARCHAR, newspaper_magazine VARCHAR)
SELECT headquarter FROM table_name_11 WHERE type = "government-owned" AND newspaper_magazine = "al-jumhuriya"
What is the sum of Runners-Up, when Champions is greater than 5?
CREATE TABLE table_name_2 (runners_up INTEGER, champions INTEGER)
SELECT SUM(runners_up) FROM table_name_2 WHERE champions > 5
Which Neon has Atomic property of average valence electron energy (avee)?
CREATE TABLE table_name_91 (neon VARCHAR, atomic_property VARCHAR)
SELECT neon FROM table_name_91 WHERE atomic_property = "average valence electron energy (avee)"
What is the lowest Cycle, when Number Of Contestants is 11, and when International Destinations is Paris Gran Canaria?
CREATE TABLE table_name_57 (cycle INTEGER, number_of_contestants VARCHAR, international_destinations VARCHAR)
SELECT MIN(cycle) FROM table_name_57 WHERE number_of_contestants = "11" AND international_destinations = "paris gran canaria"
What is the most number?
CREATE TABLE table_12803263_1 (_number INTEGER)
SELECT MAX(_number) FROM table_12803263_1
WHAT TEAM HAD A 28 PICK?
CREATE TABLE table_name_23 (school_club_team VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_23 WHERE pick = "28"
What is the status of the county that has a 14.7% poverty rate?
CREATE TABLE table_22815568_1 (status VARCHAR, poverty_rate VARCHAR)
SELECT status FROM table_22815568_1 WHERE poverty_rate = "14.7%"
What position for jj gagiano?
CREATE TABLE table_name_3 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_3 WHERE player = "jj gagiano"
What is shown for august 21-22 when november 3 is november 3, 1994?
CREATE TABLE table_25252080_3 (august_21_22 VARCHAR, november_3 VARCHAR)
SELECT august_21_22 FROM table_25252080_3 WHERE november_3 = "november_3, 1994"
What is the average round of the match in the Hero's 9 event with a time of 5:00?
CREATE TABLE table_name_7 (round INTEGER, time VARCHAR, event VARCHAR)
SELECT AVG(round) FROM table_name_7 WHERE time = "5:00" AND event = "hero's 9"
How many fatalities occurred for an unknown tail number?
CREATE TABLE table_name_60 (fatalities VARCHAR, tail_number VARCHAR)
SELECT fatalities FROM table_name_60 WHERE tail_number = "unknown"
List all directors from episodes with viewership of 1.945 million.
CREATE TABLE table_22835602_1 (directed_by VARCHAR, viewers__in_millions_ VARCHAR)
SELECT directed_by FROM table_22835602_1 WHERE viewers__in_millions_ = "1.945"
What date has the competition of uefa euro 2012 qualifying?
CREATE TABLE table_name_77 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_77 WHERE competition = "uefa euro 2012 qualifying"
On which date was the winning driver Alain Prost and and had Damon Hill in the pole position?
CREATE TABLE table_1137703_2 (date VARCHAR, winning_driver VARCHAR, pole_position VARCHAR)
SELECT date FROM table_1137703_2 WHERE winning_driver = "Alain Prost" AND pole_position = "Damon Hill"
What is the Days, hours, minutes for 21 – 26 October?
CREATE TABLE table_name_81 (days VARCHAR, _hours VARCHAR, _minutes VARCHAR, dates VARCHAR)
SELECT days, _hours, _minutes FROM table_name_81 WHERE dates = "21 – 26 october"
How did the election in the Florida 14 district end?
CREATE TABLE table_1341423_9 (results VARCHAR, district VARCHAR)
SELECT results FROM table_1341423_9 WHERE district = "Florida 14"
What is the district with Republican party in place?
CREATE TABLE table_1342198_25 (district VARCHAR, party VARCHAR)
SELECT district FROM table_1342198_25 WHERE party = "Republican"
What is the position of the player born in 1984 with a height of 1.80m?
CREATE TABLE table_name_20 (pos VARCHAR, born VARCHAR, height VARCHAR)
SELECT pos FROM table_name_20 WHERE born = "1984" AND height = "1.80"
Where were the wrestlers born who debuted in 2002-7?
CREATE TABLE table_1557974_1 (birthplace VARCHAR, debut VARCHAR)
SELECT birthplace FROM table_1557974_1 WHERE debut = "2002-7"
Where was held the ceremony for the 12th Pride of Britain Awards?
CREATE TABLE table_13943239_1 (location VARCHAR, episode VARCHAR)
SELECT location FROM table_13943239_1 WHERE episode = "12th Pride of Britain Awards"
What is the name of the player who is a wr and has a weight of 197?
CREATE TABLE table_name_83 (name VARCHAR, position VARCHAR, weight VARCHAR)
SELECT name FROM table_name_83 WHERE position = "wr" AND weight = 197
What is the lowest Floors, when Built is greater than 1970, and when Name is NV Building 3?
CREATE TABLE table_name_90 (floors INTEGER, built VARCHAR, name VARCHAR)
SELECT MIN(floors) FROM table_name_90 WHERE built > 1970 AND name = "nv building 3"
List all the runners-up on 16 October 2012?
CREATE TABLE table_28962227_1 (runners_up VARCHAR, finale VARCHAR)
SELECT runners_up FROM table_28962227_1 WHERE finale = "16 October 2012"
How many districts had an depravity level of 27.7
CREATE TABLE table_13618358_1 (district VARCHAR, income_poverty_f VARCHAR)
SELECT COUNT(district) FROM table_13618358_1 WHERE income_poverty_f = "27.7"
What is the Opponent of the game with a H/A/N of H and Score of 120-99?
CREATE TABLE table_name_89 (opponent VARCHAR, h_a_n VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_89 WHERE h_a_n = "h" AND score = "120-99"
What is the sum of top-10s for events with more than 0 wins?
CREATE TABLE table_name_68 (top_10 INTEGER, wins INTEGER)
SELECT SUM(top_10) FROM table_name_68 WHERE wins > 0
What is the Overall Record for the School in Milford?
CREATE TABLE table_name_28 (overall_record VARCHAR, school VARCHAR)
SELECT overall_record FROM table_name_28 WHERE school = "milford"
Name the number at march when class is j66
CREATE TABLE table_15608800_2 (number_at_march VARCHAR, class VARCHAR)
SELECT number_at_march FROM table_15608800_2 WHERE class = "J66"
What is the result for barney frank?
CREATE TABLE table_1341598_22 (result VARCHAR, incumbent VARCHAR)
SELECT result FROM table_1341598_22 WHERE incumbent = "Barney Frank"
What is the minimum laid down?
CREATE TABLE table_12592074_1 (laid_down INTEGER)
SELECT MIN(laid_down) FROM table_12592074_1
What day did St Kilda play as the away team?
CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_53 WHERE away_team = "st kilda"
Which class is smaller than 5 and the GWR is 1322–1323?
CREATE TABLE table_name_33 (class VARCHAR, quantity VARCHAR, gwr_nos VARCHAR)
SELECT class FROM table_name_33 WHERE quantity < 5 AND gwr_nos = "1322–1323"
What is the lowest number associated with Tonkolili?
CREATE TABLE table_18103265_1 (tonkolili INTEGER)
SELECT MIN(tonkolili) FROM table_18103265_1
What is the name when senior is the year with the # less than 10.0?
CREATE TABLE table_22496344_1 (name VARCHAR, year VARCHAR, _number VARCHAR)
SELECT name FROM table_22496344_1 WHERE year = "Senior" AND _number < 10.0
Name the attendance with date of june 11
CREATE TABLE table_name_92 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_92 WHERE date = "june 11"
What is the opponent of the veterans stadium
CREATE TABLE table_12944805_15 (opponent VARCHAR, game_site VARCHAR)
SELECT opponent FROM table_12944805_15 WHERE game_site = "Veterans Stadium"
What is Quantity Made, when Year Made is "4-4-0 — oooo — american"?
CREATE TABLE table_name_65 (quantity_made VARCHAR, year_made VARCHAR)
SELECT quantity_made FROM table_name_65 WHERE year_made = "4-4-0 — oooo — american"
Who was the author for company Buzz Productions Theater?
CREATE TABLE table_name_18 (author VARCHAR, company VARCHAR)
SELECT author FROM table_name_18 WHERE company = "buzz productions theater"
Name the most free throws for 4 steals
CREATE TABLE table_23183195_5 (free_throws INTEGER, steals VARCHAR)
SELECT MAX(free_throws) FROM table_23183195_5 WHERE steals = 4
Find all the songs produced by artists with first name "Marianne".
CREATE TABLE Songs (Title VARCHAR, SongId VARCHAR); CREATE TABLE Performance (bandmate VARCHAR, SongId VARCHAR); CREATE TABLE Band (id VARCHAR, firstname VARCHAR)
SELECT T3.Title FROM Performance AS T1 JOIN Band AS T2 ON T1.bandmate = T2.id JOIN Songs AS T3 ON T3.SongId = T1.SongId WHERE T2.firstname = "Marianne"
What was the first day cover cancellation for the University of Saskatchewan themed stamp?
CREATE TABLE table_11900773_5 (first_day_cover_cancellation VARCHAR, theme VARCHAR)
SELECT first_day_cover_cancellation FROM table_11900773_5 WHERE theme = "University of Saskatchewan"
With a Mark of 46.47, What is the lowest Heat?
CREATE TABLE table_name_57 (heat INTEGER, mark VARCHAR)
SELECT MIN(heat) FROM table_name_57 WHERE mark = "46.47"
what's the result with district being florida 7
CREATE TABLE table_1341604_10 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341604_10 WHERE district = "Florida 7"
Show the names and ids of tourist attractions that are visited at least two times.
CREATE TABLE VISITS (Tourist_Attraction_ID VARCHAR); CREATE TABLE Tourist_Attractions (Name VARCHAR, Tourist_Attraction_ID VARCHAR)
SELECT T1.Name, T2.Tourist_Attraction_ID FROM Tourist_Attractions AS T1 JOIN VISITS AS T2 ON T1.Tourist_Attraction_ID = T2.Tourist_Attraction_ID GROUP BY T2.Tourist_Attraction_ID HAVING COUNT(*) >= 2