question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the 1985 value for the year when GDP as of 2012 after PPP was 369.38?
CREATE TABLE table_30133_3 (gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ VARCHAR)
SELECT 1985 FROM table_30133_3 WHERE gdp_as_of_2012_after_purchasing_power_parity__ppp__calculations__usd_billions_ = "369.38"
What is Hungary's highest Rank?
CREATE TABLE table_name_38 (rank INTEGER, country VARCHAR)
SELECT MAX(rank) FROM table_name_38 WHERE country = "hungary"
Is the right halfback player a starter?
CREATE TABLE table_25517718_3 (starter VARCHAR, position VARCHAR)
SELECT starter FROM table_25517718_3 WHERE position = "Right halfback"
What is the time of the swimmer in rank 40?
CREATE TABLE table_name_47 (time VARCHAR, rank VARCHAR)
SELECT time FROM table_name_47 WHERE rank = 40
Find the name and hours of project that has the most number of scientists.
CREATE TABLE assignedto (project VARCHAR); CREATE TABLE projects (name VARCHAR, hours VARCHAR, code VARCHAR)
SELECT T1.name, T1.hours FROM projects AS T1 JOIN assignedto AS T2 ON T1.code = T2.project GROUP BY T2.project ORDER BY COUNT(*) DESC LIMIT 1
What is the Total for 1953–1964?
CREATE TABLE table_name_26 (total VARCHAR, years VARCHAR)
SELECT total FROM table_name_26 WHERE years = "1953–1964"
Name the 3 dart average for michael van gerwen
CREATE TABLE table_18317531_1 (player VARCHAR)
SELECT 3 AS _dart_average FROM table_18317531_1 WHERE player = "Michael van Gerwen"
What was the win loss record the lady who appeard in 1969?
CREATE TABLE table_25820584_7 (win_loss VARCHAR, year_s_ VARCHAR)
SELECT win_loss FROM table_25820584_7 WHERE year_s_ = "1969"
What is the maximum total amount paid by a customer? List the customer id and amount.
CREATE TABLE Payments (customer_id VARCHAR, amount_paid INTEGER)
SELECT customer_id, SUM(amount_paid) FROM Payments GROUP BY customer_id ORDER BY SUM(amount_paid) DESC LIMIT 1
Name the area for german
CREATE TABLE table_26519486_1 (area__km²_ VARCHAR, languages VARCHAR)
SELECT area__km²_ FROM table_26519486_1 WHERE languages = "German"
Find the id, forename and number of races of all drivers who have at least participated in two races?
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR); CREATE TABLE races (raceid VARCHAR); CREATE TABLE results (driverid VARCHAR, raceid VARCHAR)
SELECT T1.driverid, T1.forename, COUNT(*) FROM drivers AS T1 JOIN results AS T2 ON T1.driverid = T2.driverid JOIN races AS T3 ON T2.raceid = T3.raceid GROUP BY T1.driverid HAVING COUNT(*) >= 2
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 writer FROM table_name_15 WHERE year < 2008 AND notes = "short film" AND title = "wallace & gromit: a close shave"
On what day did Dirk Nowitzki (14) have a high rebound?
CREATE TABLE table_17288869_7 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_17288869_7 WHERE high_rebounds = "Dirk Nowitzki (14)"
Who were the candidates when Noah M. Mason was incumbent?
CREATE TABLE table_1342249_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1342249_13 WHERE incumbent = "Noah M. Mason"
What is the rnag for kippure transmitter?
CREATE TABLE table_18475946_2 (rnag__mhz_ VARCHAR, transmitter VARCHAR)
SELECT rnag__mhz_ FROM table_18475946_2 WHERE transmitter = "Kippure"
Name the least overall for tony baker
CREATE TABLE table_name_15 (overall INTEGER, name VARCHAR)
SELECT MIN(overall) FROM table_name_15 WHERE name = "tony baker"
What's the lost when there were more than 16 points and had a drawn less than 1?
CREATE TABLE table_name_18 (lost INTEGER, points VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_18 WHERE points > 16 AND drawn < 1
Which Release date has a Production Num larger than 5888, and a Director of hugh harman and friz freleng?
CREATE TABLE table_name_69 (release_date VARCHAR, production_num VARCHAR, director VARCHAR)
SELECT release_date FROM table_name_69 WHERE production_num > 5888 AND director = "hugh harman and friz freleng"
Which school did Dahntay Jones graduate from?
CREATE TABLE table_name_24 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_24 WHERE player = "dahntay jones"
What was the team where series is formula renault 2.0 nec?
CREATE TABLE table_10420426_1 (team VARCHAR, series VARCHAR)
SELECT team FROM table_10420426_1 WHERE series = "Formula Renault 2.0 NEC"
What is the earliest game in November with more than 22 Games and Toronto Maple Leafs as the Opponent?
CREATE TABLE table_name_69 (november INTEGER, game VARCHAR, opponent VARCHAR)
SELECT MIN(november) FROM table_name_69 WHERE game > 22 AND opponent = "toronto maple leafs"
Who was the 2nd member of the parliament that was assembled on 3 november 1529?
CREATE TABLE table_name_37 (assembled VARCHAR)
SELECT 2 AS nd_member FROM table_name_37 WHERE assembled = "3 november 1529"
What is the score of the game where the Rangers record was 16-8-4?
CREATE TABLE table_name_81 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_81 WHERE record = "16-8-4"
Who was the successor for the Kentucky 2nd district?
CREATE TABLE table_224794_3 (successor VARCHAR, district VARCHAR)
SELECT successor FROM table_224794_3 WHERE district = "Kentucky 2nd"
How many Times have a Reaction Time larger than 0.17500000000000002, and a Lane of 3?
CREATE TABLE table_name_62 (time VARCHAR, reaction_time VARCHAR, lane VARCHAR)
SELECT COUNT(time) FROM table_name_62 WHERE reaction_time > 0.17500000000000002 AND lane = 3
When are all dates with a score of 205 (–8) in Australia?
CREATE TABLE table_15315816_1 (dates VARCHAR, score VARCHAR, country VARCHAR)
SELECT dates FROM table_15315816_1 WHERE score = "205 (–8)" AND country = "Australia"
who directed s01e13
CREATE TABLE table_20360535_2 (directed_by VARCHAR, television_order VARCHAR)
SELECT directed_by FROM table_20360535_2 WHERE television_order = "S01E13"
Name the assists for 157 games
CREATE TABLE table_17309500_1 (assists VARCHAR, games VARCHAR)
SELECT assists FROM table_17309500_1 WHERE games = 157
Who won the mens singles when lau sui fei won the womens singles?
CREATE TABLE table_28138035_26 (mens_singles VARCHAR, womens_singles VARCHAR)
SELECT mens_singles FROM table_28138035_26 WHERE womens_singles = "Lau Sui Fei"
For a country of Spain, place of t6, what is the Money ($)?
CREATE TABLE table_name_44 (money___$__ VARCHAR, place VARCHAR, country VARCHAR)
SELECT money___$__ FROM table_name_44 WHERE place = "t6" AND country = "spain"
what is the average place when lost is more than 12?
CREATE TABLE table_name_13 (place INTEGER, lost INTEGER)
SELECT AVG(place) FROM table_name_13 WHERE lost > 12
What is the lowest points for 36th rank?
CREATE TABLE table_name_18 (points INTEGER, rank VARCHAR)
SELECT MIN(points) FROM table_name_18 WHERE rank = "36th"
How would an Italian say the Andalusian word coche?
CREATE TABLE table_name_78 (italian VARCHAR, andalusian VARCHAR)
SELECT italian FROM table_name_78 WHERE andalusian = "coche"
Which Surface has a Place of lappeenranta?
CREATE TABLE table_name_54 (surface VARCHAR, place VARCHAR)
SELECT surface FROM table_name_54 WHERE place = "lappeenranta"
What's the total loss for a GP-GS of 8-8 and a gain less than 416?
CREATE TABLE table_name_43 (loss INTEGER, gp_gs VARCHAR, gain VARCHAR)
SELECT SUM(loss) FROM table_name_43 WHERE gp_gs = "8-8" AND gain < 416
What was the lowest week at Ralph Wilson Stadium on October 7, 2001?
CREATE TABLE table_name_72 (week INTEGER, game_site VARCHAR, date VARCHAR)
SELECT MIN(week) FROM table_name_72 WHERE game_site = "ralph wilson stadium" AND date = "october 7, 2001"
Who won at the Circuit of lakeside international raceway?
CREATE TABLE table_name_89 (winner VARCHAR, circuit VARCHAR)
SELECT winner FROM table_name_89 WHERE circuit = "lakeside international raceway"
How many polls taken on different dates show an undecided percentage of 25%?
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR)
SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "25%"
What is the sum of the pe draw of team plaza amador, who has less than 6 pg won?
CREATE TABLE table_name_28 (draw__pe_ INTEGER, team__equipo_ VARCHAR, won__pg_ VARCHAR)
SELECT SUM(draw__pe_) FROM table_name_28 WHERE team__equipo_ = "plaza amador" AND won__pg_ < 6
On what Date were the Results¹ 4:0?
CREATE TABLE table_name_47 (date VARCHAR, results¹ VARCHAR)
SELECT date FROM table_name_47 WHERE results¹ = "4:0"
What is the name of episode number 12 of the season?
CREATE TABLE table_27832075_2 (title VARCHAR, episode__number VARCHAR)
SELECT title FROM table_27832075_2 WHERE episode__number = "12"
HOW MANY GAMES HAD BONUS POINTS OF 6?
CREATE TABLE table_12807904_3 (points_for VARCHAR, try_bonus VARCHAR)
SELECT points_for FROM table_12807904_3 WHERE try_bonus = "6"
Which Tie is from everton?
CREATE TABLE table_name_89 (tie_no VARCHAR, home_team VARCHAR)
SELECT tie_no FROM table_name_89 WHERE home_team = "everton"
Which cyclist has UCI ProTour points of 40?
CREATE TABLE table_name_96 (cyclist VARCHAR, uci_protour_points VARCHAR)
SELECT cyclist FROM table_name_96 WHERE uci_protour_points = 40
How many original air dates were there for episode 17?
CREATE TABLE table_15430813_1 (original_air_date VARCHAR, no_in_season VARCHAR)
SELECT COUNT(original_air_date) FROM table_15430813_1 WHERE no_in_season = 17
What is the average number scored in a friendly at kryoia soveto, moscow?
CREATE TABLE table_name_24 (scored INTEGER, competition VARCHAR, venue VARCHAR)
SELECT AVG(scored) FROM table_name_24 WHERE competition = "friendly" AND venue = "kryoia soveto, moscow"
What country is charley hoffman from?
CREATE TABLE table_28498999_4 (country VARCHAR, player VARCHAR)
SELECT country FROM table_28498999_4 WHERE player = "Charley Hoffman"
What was the gross revenue (1986) when there were tickets sold/available of 24,000 / 24,000 (100%)?
CREATE TABLE table_name_83 (gross_revenue__1986_ VARCHAR, tickets_sold___available VARCHAR)
SELECT gross_revenue__1986_ FROM table_name_83 WHERE tickets_sold___available = "24,000 / 24,000 (100%)"
What was the margin of victory for the win with a score of 71-69-71-70=281?
CREATE TABLE table_name_38 (margin_of_victory VARCHAR, winning_score VARCHAR)
SELECT margin_of_victory FROM table_name_38 WHERE winning_score = 71 - 69 - 71 - 70 = 281
What penalties has P.I.M. of 34.5?
CREATE TABLE table_name_88 (penalties VARCHAR, pim VARCHAR)
SELECT penalties FROM table_name_88 WHERE pim = "34.5"
Name the most minutes and starts being 12
CREATE TABLE table_24477075_1 (minutes INTEGER, starts VARCHAR)
SELECT MAX(minutes) FROM table_24477075_1 WHERE starts = 12
Who was firest elected in 2002 in a district larger than 41?
CREATE TABLE table_name_4 (member_senator VARCHAR, first_elected VARCHAR, district VARCHAR)
SELECT member_senator FROM table_name_4 WHERE first_elected = 2002 AND district > 41
What is on the reverse side of the ₩500 coin?
CREATE TABLE table_298883_5 (reverse VARCHAR, value VARCHAR)
SELECT reverse FROM table_298883_5 WHERE value = "₩500"
Which player's college is Saskatchewan?
CREATE TABLE table_10960039_1 (player VARCHAR, college VARCHAR)
SELECT player FROM table_10960039_1 WHERE college = "Saskatchewan"
What year did Coenraad Breytenbach have their Int'l Debut?
CREATE TABLE table_name_92 (year VARCHAR, player VARCHAR)
SELECT year FROM table_name_92 WHERE player = "coenraad breytenbach"
What result does the project Once Upon A Time In The West, directed by Sergio Leone have?
CREATE TABLE table_name_40 (result VARCHAR, director VARCHAR, project VARCHAR)
SELECT result FROM table_name_40 WHERE director = "sergio leone" AND project = "once upon a time in the west"
Which player scored 71?
CREATE TABLE table_name_4 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_4 WHERE score = 71
I want the sum of NGC number for spiral galaxy and right acension of 08h14m40.4s
CREATE TABLE table_name_31 (ngc_number INTEGER, object_type VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT SUM(ngc_number) FROM table_name_31 WHERE object_type = "spiral galaxy" AND right_ascension___j2000__ = "08h14m40.4s"
What was the Attendance at Jobing.com Arena?
CREATE TABLE table_name_48 (attendance VARCHAR, arena VARCHAR)
SELECT COUNT(attendance) FROM table_name_48 WHERE arena = "jobing.com arena"
What is the displacement when the fuel system is carburettor, and a power of ps (kw; hp), and also has a model of 2000?
CREATE TABLE table_name_20 (displacement VARCHAR, model VARCHAR, fuel_system VARCHAR, power VARCHAR)
SELECT displacement FROM table_name_20 WHERE fuel_system = "carburettor" AND power = "ps (kw; hp)" AND model = "2000"
What is the lowest Attendance at a game with the Result of w 25-17?
CREATE TABLE table_name_58 (attendance INTEGER, result VARCHAR)
SELECT MIN(attendance) FROM table_name_58 WHERE result = "w 25-17"
What is the score for Darren Clarke?
CREATE TABLE table_name_73 (score VARCHAR, player VARCHAR)
SELECT score FROM table_name_73 WHERE player = "darren clarke"
How many games did the team play when they were 1-3?
CREATE TABLE table_13619053_4 (score VARCHAR, record VARCHAR)
SELECT COUNT(score) FROM table_13619053_4 WHERE record = "1-3"
what is the highest qualifying rank where the competition is olympic trials, the final-rank is 4 and qualifying score is 15.100?
CREATE TABLE table_13114949_3 (qualifying_rank INTEGER, qualifying_score VARCHAR, competition VARCHAR, final_rank VARCHAR)
SELECT MAX(qualifying_rank) FROM table_13114949_3 WHERE competition = "Olympic Trials" AND final_rank = "4" AND qualifying_score = "15.100"
How many digital terrestrial channels are there for channel 4?
CREATE TABLE table_182410_10 (digital_terrestrial_channel VARCHAR, channel VARCHAR)
SELECT COUNT(digital_terrestrial_channel) FROM table_182410_10 WHERE channel = "channel 4"
I want the circuit for jim clark
CREATE TABLE table_name_25 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_name_25 WHERE fastest_lap = "jim clark"
What was John Watson's time/retired?
CREATE TABLE table_name_46 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_46 WHERE driver = "john watson"
Which Road Team has a Home Team of boston, and a Result of 124-101?
CREATE TABLE table_name_91 (road_team VARCHAR, home_team VARCHAR, result VARCHAR)
SELECT road_team FROM table_name_91 WHERE home_team = "boston" AND result = "124-101"
What is the stadium when the date of the game is December 14?
CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR)
SELECT stadium FROM table_name_12 WHERE date = "december 14"
What was the score of the game that had a loss of Coates (0–2)?
CREATE TABLE table_name_25 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_25 WHERE loss = "coates (0–2)"
In the 21.40km Santa Rosa 1 Stage, what was the Time?
CREATE TABLE table_name_38 (time VARCHAR, length VARCHAR, name VARCHAR)
SELECT time FROM table_name_38 WHERE length = "21.40km" AND name = "santa rosa 1"
What is the political party of Jackie Goldberg?
CREATE TABLE table_name_85 (party VARCHAR, name VARCHAR)
SELECT party FROM table_name_85 WHERE name = "jackie goldberg"
What country has a Youth (15-24) Literacy Rate Total of 99%, and a Youth Men of 98%?
CREATE TABLE table_name_50 (country VARCHAR, youth__15_24__literacy_rate_total VARCHAR, youth_men VARCHAR)
SELECT country FROM table_name_50 WHERE youth__15_24__literacy_rate_total = "99%" AND youth_men = "98%"
What player was picked earlier than 126 by the Houston Oilers?
CREATE TABLE table_name_3 (player VARCHAR, pick VARCHAR, team VARCHAR)
SELECT player FROM table_name_3 WHERE pick < 126 AND team = "houston oilers"
How many positions have a total time of 1:30.4135?
CREATE TABLE table_23018775_3 (pos VARCHAR, total_time VARCHAR)
SELECT COUNT(pos) FROM table_23018775_3 WHERE total_time = "1:30.4135"
IN WHAT ISSUE OF PLAYBOY WAS SHEPARD SMITH INTERVIEWED?
CREATE TABLE table_1566852_7 (date VARCHAR, interview_subject VARCHAR)
SELECT date FROM table_1566852_7 WHERE interview_subject = "Shepard Smith"
What is the sum of the population in millions that has an influence less than 2.91, a MEP smaller than 13, a member of Latvia, and more than 286,875 inhabitants per MEP?
CREATE TABLE table_name_49 (population_millions INTEGER, inhabitants_per_mep VARCHAR, member_state VARCHAR, influence VARCHAR, meps VARCHAR)
SELECT SUM(population_millions) FROM table_name_49 WHERE influence < 2.91 AND meps < 13 AND member_state = "latvia" AND inhabitants_per_mep > 286 OFFSET 875
Which city has an opponent of England?
CREATE TABLE table_name_99 (city VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_99 WHERE opponent = "england"
How many head coaches did Kent state golden flashes have?
CREATE TABLE table_28418916_3 (opponents_head_coach VARCHAR, fbs_opponent VARCHAR)
SELECT COUNT(opponents_head_coach) FROM table_28418916_3 WHERE fbs_opponent = "Kent State Golden Flashes"
How many have a kilometers of 233?
CREATE TABLE table_16654785_2 (number VARCHAR, kilometer VARCHAR)
SELECT number FROM table_16654785_2 WHERE kilometer = 233
What is the highest average for teams ranked higher than 9?
CREATE TABLE table_name_30 (avg INTEGER, rank INTEGER)
SELECT MAX(avg) FROM table_name_30 WHERE rank > 9
How many different college/junior/club teams had player John Dzikowski?
CREATE TABLE table_2850912_6 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT COUNT(college_junior_club_team) FROM table_2850912_6 WHERE player = "John Dzikowski"
What is the highest number of titles won by the Järve club before 2013?
CREATE TABLE table_name_9 (titles INTEGER, current_run_since VARCHAR, club VARCHAR)
SELECT MAX(titles) FROM table_name_9 WHERE current_run_since < 2013 AND club = "järve"
Overall pick 240 was a pick in which round?
CREATE TABLE table_10360823_1 (round VARCHAR, overall VARCHAR)
SELECT round FROM table_10360823_1 WHERE overall = 240
what game took place on september 14
CREATE TABLE table_name_34 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_34 WHERE date = "september 14"
what builder launched the name minerva
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR)
SELECT launched FROM table_name_97 WHERE name = "minerva"
Which Tie number was played on 9 January 1956?
CREATE TABLE table_name_69 (tie_no VARCHAR, date VARCHAR)
SELECT tie_no FROM table_name_69 WHERE date = "9 january 1956"
Find the names of programs that are never broadcasted in the morning.
CREATE TABLE broadcast (program_id VARCHAR, Time_of_day VARCHAR); CREATE TABLE program (name VARCHAR, program_id VARCHAR); CREATE TABLE program (name VARCHAR)
SELECT name FROM program EXCEPT SELECT t1.name FROM program AS t1 JOIN broadcast AS t2 ON t1.program_id = t2.program_id WHERE t2.Time_of_day = "Morning"
what is the meet when the event is flying 200 m time trial?
CREATE TABLE table_name_99 (meet VARCHAR, event VARCHAR)
SELECT meet FROM table_name_99 WHERE event = "flying 200 m time trial"
Which bronze has a Nation of poland?
CREATE TABLE table_name_85 (bronze VARCHAR, nation VARCHAR)
SELECT bronze FROM table_name_85 WHERE nation = "poland"
What was the type of ballot measures if the % of yes vote is 32.47%?
CREATE TABLE table_256286_8 (type VARCHAR, _percentage_yes VARCHAR)
SELECT type FROM table_256286_8 WHERE _percentage_yes = "32.47%"
What is Case Suffix (Case), when Postposition is "-mde (drops d)"?
CREATE TABLE table_name_94 (case_suffix__case_ VARCHAR, postposition VARCHAR)
SELECT case_suffix__case_ FROM table_name_94 WHERE postposition = "-mde (drops d)"
How many people were first elected with an incument of diane watson?
CREATE TABLE table_1805191_6 (first_elected VARCHAR, incumbent VARCHAR)
SELECT COUNT(first_elected) FROM table_1805191_6 WHERE incumbent = "Diane Watson"
How many laps did Innes Ireland make when he had a grid more than 15?
CREATE TABLE table_name_60 (laps VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_60 WHERE grid > 15 AND driver = "innes ireland"
What is the lowest numbered game on the list?
CREATE TABLE table_13762472_5 (game INTEGER)
SELECT MIN(game) FROM table_13762472_5
What is the largest byes with lost games of 4 and Ballarat FL of Melton and the against less than 1819?
CREATE TABLE table_name_3 (byes INTEGER, against VARCHAR, losses VARCHAR, ballarat_fl VARCHAR)
SELECT MAX(byes) FROM table_name_3 WHERE losses = 4 AND ballarat_fl = "melton" AND against < 1819
what opponent has the record of 78-63?
CREATE TABLE table_name_25 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_25 WHERE record = "78-63"
What was the address of the building with architects Edmund Woolley and Andrew Hamilton?
CREATE TABLE table_name_13 (street_address VARCHAR, architect VARCHAR)
SELECT street_address FROM table_name_13 WHERE architect = "edmund woolley and andrew hamilton"
How many cop apps in the season with fewer than 12 league apps?
CREATE TABLE table_name_48 (cup_apps INTEGER, league_apps INTEGER)
SELECT SUM(cup_apps) FROM table_name_48 WHERE league_apps < 12
What was the average attendance when the decision was price and montreal were the visitors?
CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR)
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price"