answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_92 WHERE date = "8 sep 1990"
What is the score of the game on 8 Sep 1990?
CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR)
SELECT MIN(game) FROM table_23248869_8 WHERE high_points = "David Lee (30)"
What was the game when high points was david lee (30)
CREATE TABLE table_23248869_8 (game INTEGER, high_points VARCHAR)
SELECT MIN(goals_for) FROM table_name_88 WHERE draw < 5 AND points < 70
What is the lowest goals for value with fewer than 5 draws and under 70 points?
CREATE TABLE table_name_88 (goals_for INTEGER, draw VARCHAR, points VARCHAR)
SELECT MAX(fa_cup_goals) FROM table_name_55 WHERE league_cup_apps > 0 AND name = "trevor cherry"
Which FA Cup Goals have League Cup Apps larger than 0, and a Name of trevor cherry?
CREATE TABLE table_name_55 (fa_cup_goals INTEGER, league_cup_apps VARCHAR, name VARCHAR)
SELECT result FROM table_19753079_41 WHERE incumbent = "Chris Carney"
When chris carney is the incumbent what are the results?
CREATE TABLE table_19753079_41 (result VARCHAR, incumbent VARCHAR)
SELECT MIN(no_result) FROM table_name_57 WHERE year = "2012" AND wins > 10
What is the smallest no result when the year was 2012 and there were more than 10 wins?
CREATE TABLE table_name_57 (no_result INTEGER, year VARCHAR, wins VARCHAR)
SELECT kilometers FROM table_name_87 WHERE station_code = "kuda"
What's the Kilometers listed that also has the Station Code of Kuda?
CREATE TABLE table_name_87 (kilometers VARCHAR, station_code VARCHAR)
SELECT COUNT(federal_state) FROM table_26427332_17 WHERE city = "Lahnstein"
for how many federal states is the city of lahnstein listed in the ranking?
CREATE TABLE table_26427332_17 (federal_state VARCHAR, city VARCHAR)
SELECT COUNT(district) FROM table_1342198_6 WHERE first_elected = 1944
How many districts have an incumbent first elected in 1944?
CREATE TABLE table_1342198_6 (district VARCHAR, first_elected VARCHAR)
SELECT points FROM table_name_64 WHERE played = "20" AND club = "caldicot rfc"
What is Points, when Played is "20", and when Club is "Caldicot RFC"?
CREATE TABLE table_name_64 (points VARCHAR, played VARCHAR, club VARCHAR)
SELECT SUM(game) FROM table_name_26 WHERE date = "wed. nov. 14"
What is the sum of Game, when Date is "Wed. Nov. 14"?
CREATE TABLE table_name_26 (game INTEGER, date VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE home_team = "geelong"
What was the score of the other team that played Geelong?
CREATE TABLE table_name_89 (away_team VARCHAR, home_team VARCHAR)
SELECT masters FROM table_14937957_1 WHERE martial_art_style = "Hapkido"
Which masters fought in hapkido style?
CREATE TABLE table_14937957_1 (masters VARCHAR, martial_art_style VARCHAR)
SELECT location FROM table_name_44 WHERE established = 2000
What is the location of the university that was established in 2000?
CREATE TABLE table_name_44 (location VARCHAR, established VARCHAR)
SELECT winner FROM table_name_52 WHERE trofeo_fast_team = "asics-c.g.a." AND mountains_classification = "mariano piccoli"
Who was the winner from team Asics-c.g.a. and has a mountains classification of Mariano Piccoli?
CREATE TABLE table_name_52 (winner VARCHAR, trofeo_fast_team VARCHAR, mountains_classification VARCHAR)
SELECT MAX(matches) FROM table_name_75 WHERE loses = 2 AND pos < 2
Loses of 2, and a Pos. smaller than 2 had how many highest matches?
CREATE TABLE table_name_75 (matches INTEGER, loses VARCHAR, pos VARCHAR)
SELECT club FROM table_name_38 WHERE tries_against = "43" AND try_bonus = "9"
Which club has a try bonus of 9 and 43 tries against?
CREATE TABLE table_name_38 (club VARCHAR, tries_against VARCHAR, try_bonus VARCHAR)
SELECT tournament FROM table_name_31 WHERE 2008 = "a" AND 2005 = "q1" AND 2004 = "1r"
What tournament has a 2008 value of A, q1 in 2005, and 1r in 2004?
CREATE TABLE table_name_31 (tournament VARCHAR)
SELECT 2008 FROM table_name_44 WHERE tournament = "year end ranking"
What's was the 2008 during the Year End Ranking?
CREATE TABLE table_name_44 (tournament VARCHAR)
SELECT COUNT(season_no) FROM table_21781578_2 WHERE us_viewers__millions_ = "12.30"
What was the number of season number entries that had US Viewers of 12.30 million?
CREATE TABLE table_21781578_2 (season_no VARCHAR, us_viewers__millions_ VARCHAR)
SELECT MIN(version) FROM table_name_85 WHERE code = "u+1034a" AND year > 2001
Name the lowest version with a code of u+1034a that began after 2001.
CREATE TABLE table_name_85 (version INTEGER, code VARCHAR, year VARCHAR)
SELECT first_elected FROM table_name_56 WHERE district = "south carolina 1"
When was the incumbent from the south carolina 1 district first elected?
CREATE TABLE table_name_56 (first_elected VARCHAR, district VARCHAR)
SELECT increase_in_net_assets FROM table_name_16 WHERE total_expenses = "$5,617,236"
What increase in net assets also has $5,617,236 as the total expenses?
CREATE TABLE table_name_16 (increase_in_net_assets VARCHAR, total_expenses VARCHAR)
SELECT title FROM table_11222744_2 WHERE catalog_number = "80809"
The Catalog number is 80809 what is the title?
CREATE TABLE table_11222744_2 (title VARCHAR, catalog_number VARCHAR)
SELECT location_attendance FROM table_name_2 WHERE score = "4-5 (ot)"
What is Location/Attendance, when Score is "4-5 (OT)"?
CREATE TABLE table_name_2 (location_attendance VARCHAR, score VARCHAR)
SELECT country FROM table_27279050_3 WHERE last_current_driver_s__3_november_2013 = "Daniel Abt ( 2012 )"
What is the country when last/current driver(s) 3 november 2013 is daniel abt ( 2012 )?
CREATE TABLE table_27279050_3 (country VARCHAR, last_current_driver_s__3_november_2013 VARCHAR)
SELECT city FROM table_name_23 WHERE date = "may 19, 1976"
Which City has a Date of may 19, 1976?
CREATE TABLE table_name_23 (city VARCHAR, date VARCHAR)
SELECT state FROM table_name_10 WHERE team = "gwangju fc"
What is the State with Gwangju Fc as the team?
CREATE TABLE table_name_10 (state VARCHAR, team VARCHAR)
SELECT AVG(pick) FROM table_name_48 WHERE player = "dominic uy"
What pick was Dominic Uy?
CREATE TABLE table_name_48 (pick INTEGER, player VARCHAR)
SELECT home__2nd_leg_ FROM table_name_19 WHERE aggregate = "2-0"
Which team played at home for the second leg and has aggregate score of 2-0?
CREATE TABLE table_name_19 (home__2nd_leg_ VARCHAR, aggregate VARCHAR)
SELECT COUNT(value__) AS $m_ FROM table_name_36 WHERE rank > 6 AND _percentage_change_on_year = "-27"
What was the total amount of Value ($M), when the Rank was higher than 6, and the % change on year was -27?
CREATE TABLE table_name_36 (value__ VARCHAR, rank VARCHAR, _percentage_change_on_year VARCHAR)
SELECT engine FROM table_11167610_1 WHERE performance = "0–100km/h: 10.5s, VMax km/h (mph)"
what's the engine where performance is 0–100km/h: 10.5s, vmax km/h (mph)
CREATE TABLE table_11167610_1 (engine VARCHAR, performance VARCHAR)
SELECT country FROM table_name_30 WHERE director = "roland verhavert"
Which country is the director Roland Verhavert from?
CREATE TABLE table_name_30 (country VARCHAR, director VARCHAR)
SELECT team FROM table_name_55 WHERE wins = 2 AND season > 1986
Which team had 2 wins and a season later than 1986?
CREATE TABLE table_name_55 (team VARCHAR, wins VARCHAR, season VARCHAR)
SELECT score_in_the_final FROM table_name_29 WHERE date = "august 25, 1996"
What was the final score for the August 25, 1996 match?
CREATE TABLE table_name_29 (score_in_the_final VARCHAR, date VARCHAR)
SELECT record FROM table_name_26 WHERE date = "september 4"
What was the record on September 4?
CREATE TABLE table_name_26 (record VARCHAR, date VARCHAR)
SELECT AVG(year) FROM table_name_61 WHERE points = 142
What is the average year having 142 points?
CREATE TABLE table_name_61 (year INTEGER, points VARCHAR)
SELECT alpha_2_code FROM table_222771_1 WHERE english_short_name__upper_lower_case_ = "Papua New Guinea"
What is the Alpha 2 code for Papua New Guinea?
CREATE TABLE table_222771_1 (alpha_2_code VARCHAR, english_short_name__upper_lower_case_ VARCHAR)
SELECT writer FROM table_name_15 WHERE year < 2008 AND notes = "short film" AND title = "wallace & gromit: a close shave"
Who is the writer of Wallace & Gromit: A Close Shave, a short film from before 2008?
CREATE TABLE table_name_15 (writer VARCHAR, title VARCHAR, year VARCHAR, notes VARCHAR)
SELECT years_for_jazz FROM table_name_48 WHERE player = "milt palacio"
What years does milt palacio play?
CREATE TABLE table_name_48 (years_for_jazz VARCHAR, player VARCHAR)
SELECT MAX(bronze) FROM table_name_99 WHERE total = 4 AND silver = 1 AND gold < 2
What was the highest number of bronze medals when there were a total of 4 medals, 1 silver medals, and less than 2 medals?
CREATE TABLE table_name_99 (bronze INTEGER, gold VARCHAR, total VARCHAR, silver VARCHAR)
SELECT MAX(laps) FROM table_name_54 WHERE rider = "russell holland" AND grid < 10
Which Laps have a Rider of russell holland, and a Grid smaller than 10?
CREATE TABLE table_name_54 (laps INTEGER, rider VARCHAR, grid VARCHAR)
SELECT MIN(avg_g) FROM table_name_86 WHERE effic > 34.36 AND name = "wesley carroll"
What is the lowest avg/g that has an effic greater than 34.36, with wesley carroll as the name?
CREATE TABLE table_name_86 (avg_g INTEGER, effic VARCHAR, name VARCHAR)
SELECT date FROM table_name_6 WHERE opponent = "utah blaze"
On what day was Utah Blaze the opponent?
CREATE TABLE table_name_6 (date VARCHAR, opponent VARCHAR)
SELECT country FROM table_name_48 WHERE to_par = "–2" AND player = "tsuneyuki nakajima"
What is Country, when To Par is "–2", and when Player is "Tsuneyuki Nakajima"?
CREATE TABLE table_name_48 (country VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT ad_freq FROM table_name_84 WHERE show_name = "american top 40"
How often are there ads during American Top 40?
CREATE TABLE table_name_84 (ad_freq VARCHAR, show_name VARCHAR)
SELECT AVG(founded) FROM table_name_13 WHERE suburb_town = "vineyard"
On average, when were vineyard schools founded?
CREATE TABLE table_name_13 (founded INTEGER, suburb_town VARCHAR)
SELECT home_team FROM table_name_77 WHERE venue = "windy hill"
What home team plays at Windy Hill?
CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR)
SELECT tournament FROM table_name_12 WHERE margin_of_victory = "1 point"
What tournament had a 1 point margin of victory?
CREATE TABLE table_name_12 (tournament VARCHAR, margin_of_victory VARCHAR)
SELECT AVG(round) FROM table_name_81 WHERE school = "georgia tech" AND pick > 103
What is the average round for Georgia Tech with a pick greater than 103?
CREATE TABLE table_name_81 (round INTEGER, school VARCHAR, pick VARCHAR)
SELECT type FROM table_name_47 WHERE rank > 6 AND number_of_bearers_2008 > 13.815 AND surname = "eriksen"
What is Type, when Rank is greater than 6, when Number of Bearers 2008 is greater than 13.815, and when Surname is Eriksen?
CREATE TABLE table_name_47 (type VARCHAR, surname VARCHAR, rank VARCHAR, number_of_bearers_2008 VARCHAR)
SELECT player FROM table_name_21 WHERE fg_pct < 45.9 AND def_reb < 43 AND total_reb = 9
Which player has a FG Pct less than 45.9, a def reb less than 43, and a total reb of 9?
CREATE TABLE table_name_21 (player VARCHAR, total_reb VARCHAR, fg_pct VARCHAR, def_reb VARCHAR)
SELECT name FROM table_name_84 WHERE position = "center"
What is the Name of the Center?
CREATE TABLE table_name_84 (name VARCHAR, position VARCHAR)
SELECT county FROM table_20468206_1 WHERE mccain_percentage = "38.78%"
Name the county for mccain being 38.78%
CREATE TABLE table_20468206_1 (county VARCHAR, mccain_percentage VARCHAR)
SELECT percent_defective FROM table_222448_1 WHERE sigma__with_15σ_shift_ = "2.5"
When sigma (with 1.5σ shift) is 2.5, what percent is defective?
CREATE TABLE table_222448_1 (percent_defective VARCHAR, sigma__with_15σ_shift_ VARCHAR)
SELECT MAX(silver) FROM table_name_65 WHERE total = 27
What is the highest silver rank with a total of 27?
CREATE TABLE table_name_65 (silver INTEGER, total VARCHAR)
SELECT school_club_team FROM table_15463188_7 WHERE name = "Norman Gonzales"
Nametheh school team for norman gonzales
CREATE TABLE table_15463188_7 (school_club_team VARCHAR, name VARCHAR)
SELECT SUM(land___sqmi__) FROM table_name_36 WHERE ansi_code < 1036538 AND pop__2010_ < 42 AND longitude > -99.442872 AND water__sqmi_ > 0.882
What is the sum of the land in sq mi with an ansi code less than 1036538, a 2010 population less than 42, a longitude greater than -99.442872, and more than 0.882 sq mi of water?
CREATE TABLE table_name_36 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR, ansi_code VARCHAR, pop__2010_ VARCHAR)
SELECT MIN(position) FROM table_name_29 WHERE points < 7 AND pilot = "didier hauss"
What is the smallest position with less than 7 points piloted by Didier Hauss?
CREATE TABLE table_name_29 (position INTEGER, points VARCHAR, pilot VARCHAR)
SELECT affiliation FROM table_25518547_4 WHERE player = "Kwaku Nyamekye"
What university is kwaku nyamekye affiliated with?
CREATE TABLE table_25518547_4 (affiliation VARCHAR, player VARCHAR)
SELECT head_coach FROM table_2384331_1 WHERE arena = "Altrincham Ice Dome"
Who is the head coach for the team that plays at Altrincham Ice Dome?
CREATE TABLE table_2384331_1 (head_coach VARCHAR, arena VARCHAR)
SELECT name, furniture_id FROM furniture ORDER BY market_rate DESC LIMIT 1
Return the name and id of the furniture with the highest market rate.
CREATE TABLE furniture (name VARCHAR, furniture_id VARCHAR, market_rate VARCHAR)
SELECT captain FROM table_name_61 WHERE year < 1927 AND runner_up = "angaston"
When the Runner-up was Angaston, and the Year was less than 1927, who was the Captain?
CREATE TABLE table_name_61 (captain VARCHAR, year VARCHAR, runner_up VARCHAR)
SELECT date FROM table_name_99 WHERE surface = "clay" AND result = "6–7 (4–7) , 1–6"
what is the date when the surface is clay and the result is 6–7 (4–7) , 1–6?
CREATE TABLE table_name_99 (date VARCHAR, surface VARCHAR, result VARCHAR)
SELECT rank FROM table_name_75 WHERE floors = "96"
What is the rank for the 96 floors?
CREATE TABLE table_name_75 (rank VARCHAR, floors VARCHAR)
SELECT award_name FROM table_15584199_2 WHERE team_number = 679
What award did team 679 win?
CREATE TABLE table_15584199_2 (award_name VARCHAR, team_number VARCHAR)
SELECT SUM(gold) FROM table_name_5 WHERE nation = "lithuania" AND silver < 2
What is the gold total for lithuania with under 2 silvers?
CREATE TABLE table_name_5 (gold INTEGER, nation VARCHAR, silver VARCHAR)
SELECT DISTINCT t1.clubname FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t3.city_code = "BAL"
Find the names of all the clubs that have at least a member from the city with city code "BAL".
CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR); CREATE TABLE club (clubname VARCHAR, clubid VARCHAR); CREATE TABLE student (stuid VARCHAR, city_code VARCHAR)
SELECT result FROM table_name_66 WHERE date = "may 30"
What was the Result on May 30?
CREATE TABLE table_name_66 (result VARCHAR, date VARCHAR)
SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir"
What is the total capacity for the city of Trogir?
CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR)
SELECT finish FROM table_name_54 WHERE year_s__won = "2000"
What was the finish of the winner of the 2000 Masters?
CREATE TABLE table_name_54 (finish VARCHAR, year_s__won VARCHAR)
SELECT place FROM table_name_99 WHERE player = "ben crenshaw"
What is Place, when Player is "Ben Crenshaw"?
CREATE TABLE table_name_99 (place VARCHAR, player VARCHAR)
SELECT record FROM table_name_59 WHERE date = "february 25, 2008"
What is the record of the game on February 25, 2008?
CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR)
SELECT format FROM table_name_99 WHERE catalog = "f4 87199"
What is the Format o Catalog F4 87199?
CREATE TABLE table_name_99 (format VARCHAR, catalog VARCHAR)
SELECT school_club_team FROM table_name_95 WHERE round > 12 AND pick < 342
What was the school/club after round 12, and picked smaller than 342?
CREATE TABLE table_name_95 (school_club_team VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(*), T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY COUNT(*) DESC LIMIT 1
How many problems does the product with the most problems have? List the number of the problems and product name.
CREATE TABLE problems (product_id VARCHAR); CREATE TABLE product (product_name VARCHAR, product_id VARCHAR)
SELECT winner FROM table_1359212_2 WHERE second_place = "United Kingdom"
where is hte second place winner from united kingdom?
CREATE TABLE table_1359212_2 (winner VARCHAR, second_place VARCHAR)
SELECT runner_up FROM table_name_50 WHERE score = "3–6, 6–3, [10–4]"
Who is the runner up when the score was 3–6, 6–3, [10–4]?
CREATE TABLE table_name_50 (runner_up VARCHAR, score VARCHAR)
SELECT place FROM table_name_22 WHERE country = "australia" AND player = "ian baker-finch"
Can you tell me the Place that has the Country of australia, and the Player of ian baker-finch?
CREATE TABLE table_name_22 (place VARCHAR, country VARCHAR, player VARCHAR)
SELECT notes FROM table_name_39 WHERE position = "8th"
What notes have the 8th position?
CREATE TABLE table_name_39 (notes VARCHAR, position VARCHAR)
SELECT population FROM table_name_15 WHERE area = "11"
What is the population of area of 11?
CREATE TABLE table_name_15 (population VARCHAR, area VARCHAR)
SELECT venue FROM table_name_82 WHERE date = "14 november 1998"
What was the venue on 14 november 1998?
CREATE TABLE table_name_82 (venue VARCHAR, date VARCHAR)
SELECT date FROM table_name_86 WHERE record = "6-9"
Which Date has a Record of 6-9?
CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
SELECT game_site FROM table_13259034_2 WHERE date = "October 16, 1977"
Where did the teams play on October 16, 1977?
CREATE TABLE table_13259034_2 (game_site VARCHAR, date VARCHAR)
SELECT MAX(Milliseconds), MIN(Milliseconds) FROM TRACK
What are the durations of the longest and the shortest tracks in milliseconds?
CREATE TABLE TRACK (Milliseconds INTEGER)
SELECT COUNT(party) FROM table_1342292_4 WHERE incumbent = "William B. Cravens"
How many parties does william b. cravens represent?
CREATE TABLE table_1342292_4 (party VARCHAR, incumbent VARCHAR)
SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data"
What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?
CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR)
SELECT nationality FROM table_name_24 WHERE lane > 1 AND rank > 5 AND name = "hsu chi-chieh"
What is the nationality with a lane larger than 1, and a rank larger than 5, for Hsu Chi-Chieh?
CREATE TABLE table_name_24 (nationality VARCHAR, name VARCHAR, lane VARCHAR, rank VARCHAR)
SELECT decision FROM table_name_99 WHERE visitor = "buffalo"
Who had the decision when buffalo was the visitor?
CREATE TABLE table_name_99 (decision VARCHAR, visitor VARCHAR)
SELECT location FROM table_name_87 WHERE began < 1990 AND country = "france"
what is the location when began is before 1990 and the country is france?
CREATE TABLE table_name_87 (location VARCHAR, began VARCHAR, country VARCHAR)
SELECT minutes FROM table_name_8 WHERE goals > 4 AND assists = 3
What is the number of minutes when there are more than 4 goals and 3 assists?
CREATE TABLE table_name_8 (minutes VARCHAR, goals VARCHAR, assists VARCHAR)
SELECT no_8 FROM table_name_76 WHERE no_10 = "hunter"
What is No. 8, when No. 10 is Hunter?
CREATE TABLE table_name_76 (no_8 VARCHAR, no_10 VARCHAR)
SELECT overall_attendance FROM table_2771237_1 WHERE average_attendance = 17148
What is the overall attendance in the places where the average attendance was 17148?
CREATE TABLE table_2771237_1 (overall_attendance VARCHAR, average_attendance VARCHAR)
SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1
What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States?
CREATE TABLE table_name_27 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR)
SELECT COUNT(edges_e) FROM table_name_32 WHERE vertices_v > 20
What is the total number of E edges of the polyhedra with vertices V greater than 20?
CREATE TABLE table_name_32 (edges_e VARCHAR, vertices_v INTEGER)
SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2
How many items were recorded marseille (32 draw) was a 2 seed?
CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR)
SELECT date FROM table_name_43 WHERE away_team = "geelong"
What is the date of the game where Geelong was the away team?
CREATE TABLE table_name_43 (date VARCHAR, away_team VARCHAR)
SELECT college_junior_club_team FROM table_name_94 WHERE position = "left wing" AND nationality = "canada"
What college/junior/club team is a left wing from Canada?
CREATE TABLE table_name_94 (college_junior_club_team VARCHAR, position VARCHAR, nationality VARCHAR)
SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v"
What is the combined consumption of 1.6 16v?
CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR)
SELECT long FROM table_name_17 WHERE avg_g = "160.9"
What is the long value for the year with an average/game of 160.9?
CREATE TABLE table_name_17 (long VARCHAR, avg_g VARCHAR)