answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT score FROM table_name_83 WHERE date = "june 29"
what was the score on june 29?
CREATE TABLE table_name_83 (score VARCHAR, date VARCHAR)
SELECT AVG(laps) FROM table_name_71 WHERE driver = "john watson" AND grid < 11
How many Laps with a Grid smaller than 11 did John Watson have?
CREATE TABLE table_name_71 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT date FROM table_name_18 WHERE away = "victoria"
What was victoria's away date?
CREATE TABLE table_name_18 (date VARCHAR, away VARCHAR)
SELECT position FROM table_name_66 WHERE pick = 174
Which Position has a Pick of 174?
CREATE TABLE table_name_66 (position VARCHAR, pick VARCHAR)
SELECT date FROM table_15299235_1 WHERE circuit = "Indianapolis"
What is the date for the Indianapolis circuit?
CREATE TABLE table_15299235_1 (date VARCHAR, circuit VARCHAR)
SELECT local_title FROM table_13779832_1 WHERE seasons_and_winners = "Series 1, 2006: Lucy Benjamin"
what's the local title with seasons and winners being series 1, 2006: lucy benjamin
CREATE TABLE table_13779832_1 (local_title VARCHAR, seasons_and_winners VARCHAR)
SELECT surface FROM table_name_38 WHERE mountain = "elk garden"
What is the surface of the mountain range that contains the Elk Garden Mountain?
CREATE TABLE table_name_38 (surface VARCHAR, mountain VARCHAR)
SELECT producer_s_ FROM table_name_42 WHERE recipient = "animus films ltd"
Which producer worked for Animus Films LTD?
CREATE TABLE table_name_42 (producer_s_ VARCHAR, recipient VARCHAR)
SELECT result FROM table_name_60 WHERE competition = "algarve cup" AND date = "2006-03-13"
On 2006-03-13 in the algarve cup, who won?
CREATE TABLE table_name_60 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT label FROM table_name_27 WHERE release_date = "december 7, 2012"
What Label was Released on December 7, 2012?
CREATE TABLE table_name_27 (label VARCHAR, release_date VARCHAR)
SELECT opponents_in_the_final FROM table_name_37 WHERE partnering = "bruno soares" AND surface = "clay" AND date = "august 1, 2010"
Who did Bruno Soares and a partner face in the finals on a clay surface on August 1, 2010?
CREATE TABLE table_name_37 (opponents_in_the_final VARCHAR, date VARCHAR, partnering VARCHAR, surface VARCHAR)
SELECT COUNT(1961) FROM table_name_15 WHERE number_1971 = 3325 AND 1991 > 3177
What is the 1961 total of the Macedonian population with a 1971 number of 3325 and a 1991 value greater than 3177?
CREATE TABLE table_name_15 (number_1971 VARCHAR)
SELECT COUNT(golden_tickets) FROM table_22897967_1 WHERE callback_venue = "Rosen Shingle Creek Resort"
Name the total number of golden tickets being rosen shingle creek resort
CREATE TABLE table_22897967_1 (golden_tickets VARCHAR, callback_venue VARCHAR)
SELECT season FROM table_name_84 WHERE champion = "nicolas kiesa"
What season has the champion of Nicolas Kiesa?
CREATE TABLE table_name_84 (season VARCHAR, champion VARCHAR)
SELECT DISTINCT T1.first_name, T1.middle_name, T1.last_name FROM Students AS T1 JOIN Student_Enrolment AS T2 ON T1.student_id = T2.student_id JOIN Degree_Programs AS T3 ON T2.degree_program_id = T3.degree_program_id WHERE T3.degree_summary_name = 'Bachelor'
Who is enrolled in a Bachelor degree program? List the first name, middle name, last name.
CREATE TABLE Degree_Programs (degree_program_id VARCHAR, degree_summary_name VARCHAR); CREATE TABLE Students (first_name VARCHAR, middle_name VARCHAR, last_name VARCHAR, student_id VARCHAR); CREATE TABLE Student_Enrolment (student_id VARCHAR, degree_program_id VARCHAR)
SELECT MAX(gold) FROM table_name_8 WHERE nation = "total" AND "total" < 24
what is the highest gold when the nation is total and the total is less than 24?
CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR)
SELECT second_leg FROM table_name_35 WHERE phase = "group stage" AND round = "matchday 5"
What was the second leg score from the group stage on matchday 5?
CREATE TABLE table_name_35 (second_leg VARCHAR, phase VARCHAR, round VARCHAR)
SELECT uni_number FROM table_name_22 WHERE bats = "r" AND surname = "timms"
What's the Uni# of Timms, who has bats of R?
CREATE TABLE table_name_22 (uni_number VARCHAR, bats VARCHAR, surname VARCHAR)
SELECT street_address FROM table_name_2 WHERE floors = 48
The building with 48 floors has an address in Las Vegas of what?
CREATE TABLE table_name_2 (street_address VARCHAR, floors VARCHAR)
SELECT COUNT(score) FROM table_27734769_9 WHERE date = "January 19"
How many scores where achieved on January 19?
CREATE TABLE table_27734769_9 (score VARCHAR, date VARCHAR)
SELECT MAX(react) FROM table_name_72 WHERE time < 20.58 AND athlete = "christian malcolm"
What is Christian Malcolm´s highest react when his time was below 20.58?
CREATE TABLE table_name_72 (react INTEGER, time VARCHAR, athlete VARCHAR)
SELECT home_team FROM table_name_27 WHERE tie_no = "15" AND away_team = "sheffield united" AND date = "sheffield united"
With Sheffield United as the away team and the date, what home team has a tie no of 15?
CREATE TABLE table_name_27 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR, away_team VARCHAR)
SELECT class FROM table_name_13 WHERE wins > 0 AND points = 42
What class has over 0 wins and 42 points?
CREATE TABLE table_name_13 (class VARCHAR, wins VARCHAR, points VARCHAR)
SELECT total_produced FROM table_name_49 WHERE service = "freight" AND builder’s_model = "u28c"
What is the total amount of freight produced of u28c?
CREATE TABLE table_name_49 (total_produced VARCHAR, service VARCHAR, builder’s_model VARCHAR)
SELECT date FROM table_17340355_7 WHERE team = "Indiana"
What day(s) did the team play indiana?
CREATE TABLE table_17340355_7 (date VARCHAR, team VARCHAR)
SELECT time FROM table_name_44 WHERE team = "triumph" AND rank < 4
What is the time/s of team Triumph in those races in which Triumph ranked higher than 4?
CREATE TABLE table_name_44 (time VARCHAR, team VARCHAR, rank VARCHAR)
SELECT race_name FROM table_name_74 WHERE circuit = "hockenheim"
Which race was at Hockenheim circuit?
CREATE TABLE table_name_74 (race_name VARCHAR, circuit VARCHAR)
SELECT venue FROM table_name_26 WHERE team = "darida"
Which team played in the Darida venue?
CREATE TABLE table_name_26 (venue VARCHAR, team VARCHAR)
SELECT final_venue FROM table_name_17 WHERE winner = "sheffield reserves"
What was the Final Venue having Sheffield Reserves as the Winner?
CREATE TABLE table_name_17 (final_venue VARCHAR, winner VARCHAR)
SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING COUNT(*) >= 2 INTERSECT SELECT T1.name FROM storm AS T1 JOIN affected_region AS T2 ON T1.storm_id = T2.storm_id GROUP BY T1.storm_id HAVING SUM(T2.number_city_affected) >= 10
Show storm name with at least two regions and 10 cities affected.
CREATE TABLE affected_region (storm_id VARCHAR, number_city_affected INTEGER); CREATE TABLE storm (name VARCHAR, storm_id VARCHAR)
SELECT SUM(crowd) FROM table_name_31 WHERE away_team = "geelong"
How big was the crowd at the game the away team geelong played at?
CREATE TABLE table_name_31 (crowd INTEGER, away_team VARCHAR)
SELECT airdate FROM table_name_88 WHERE share = 10 AND rank = "#29"
What is the Airdate of the episode that ranked #29 and had a share greater than 10?
CREATE TABLE table_name_88 (airdate VARCHAR, share VARCHAR, rank VARCHAR)
SELECT semifinalists FROM table_name_28 WHERE tournament = "paris"
WHO ARE THE SEMIFINALISTS FOR TOURNAMENT OF PARIS?
CREATE TABLE table_name_28 (semifinalists VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_79 WHERE partnering = "jordan kerr" AND date = "july 19, 2004"
Name the outcome for jordan kerr july 19, 2004
CREATE TABLE table_name_79 (outcome VARCHAR, partnering VARCHAR, date VARCHAR)
SELECT start_date__1st_night_ FROM table_159359_2 WHERE season = "1966"
When are start dates (1st night) for the season of 1966?
CREATE TABLE table_159359_2 (start_date__1st_night_ VARCHAR, season VARCHAR)
SELECT location FROM table_11934032_1 WHERE station_number = "C11"
what are all the location where station number is c11
CREATE TABLE table_11934032_1 (location VARCHAR, station_number VARCHAR)
SELECT position FROM table_25017530_6 WHERE player = "Michael Warner"
Name the position for michael warner
CREATE TABLE table_25017530_6 (position VARCHAR, player VARCHAR)
SELECT MIN(week) FROM table_name_27 WHERE attendance = "70,225"
Which week had an attendance of 70,225
CREATE TABLE table_name_27 (week INTEGER, attendance VARCHAR)
SELECT previous_team FROM table_name_12 WHERE nba_years_[a_] = "4" AND pick < 16
What is the previous team of the player with 4 NBA years and a pick less than 16?
CREATE TABLE table_name_12 (previous_team VARCHAR, pick VARCHAR, nba_years_ VARCHAR, a_ VARCHAR)
SELECT teams FROM table_28606933_7 WHERE consecutive_starts = 120
What team(s) had 120 consecutive starts?
CREATE TABLE table_28606933_7 (teams VARCHAR, consecutive_starts VARCHAR)
SELECT score FROM table_23284271_10 WHERE game = 78
What is the score for game 78?
CREATE TABLE table_23284271_10 (score VARCHAR, game VARCHAR)
SELECT MAX(number_of_s_eva) FROM table_1558077_8
Name the most number of s eva
CREATE TABLE table_1558077_8 (number_of_s_eva INTEGER)
SELECT COUNT(pick__number) FROM table_name_46 WHERE position = "db"
What is the pick number of the DB?
CREATE TABLE table_name_46 (pick__number VARCHAR, position VARCHAR)
SELECT result FROM table_14954150_1 WHERE date = "October 6, 1974"
What was the result of the game on October 6, 1974?
CREATE TABLE table_14954150_1 (result VARCHAR, date VARCHAR)
SELECT SUM(pick__number) FROM table_name_69 WHERE cfl_team = "edmonton"
Can you tell me the sum of the Pick # that has the CFL Team of edmonton?
CREATE TABLE table_name_69 (pick__number INTEGER, cfl_team VARCHAR)
SELECT aircraft FROM table_name_3 WHERE location = "s of avion"
What aircraft is located at S of Avion?
CREATE TABLE table_name_3 (aircraft VARCHAR, location VARCHAR)
SELECT provider FROM table_3005999_1 WHERE destination = "Liverpool"
Who are all providers with destination of Liverpool?
CREATE TABLE table_3005999_1 (provider VARCHAR, destination VARCHAR)
SELECT outcome FROM table_name_49 WHERE surface = "clay" AND date = "2 may 2009"
What was the outcome when the game was played on clay and on 2 May 2009?
CREATE TABLE table_name_49 (outcome VARCHAR, surface VARCHAR, date VARCHAR)
SELECT position FROM table_12165135_1 WHERE overall_pick__number = 17
What is the position for the pick number 17?
CREATE TABLE table_12165135_1 (position VARCHAR, overall_pick__number VARCHAR)
SELECT COUNT(dismissals) FROM table_19769948_26 WHERE innings = 191
how many dismissals in a game with 191 innings
CREATE TABLE table_19769948_26 (dismissals VARCHAR, innings VARCHAR)
SELECT COUNT(manner_of_departure) FROM table_17327458_1 WHERE date_of_vacancy = "25 May"
How many vacancies happened on 25 May?
CREATE TABLE table_17327458_1 (manner_of_departure VARCHAR, date_of_vacancy VARCHAR)
SELECT theme FROM table_name_93 WHERE week = "final showdown (week 3)"
What was the theme for the final showdown (week 3)?
CREATE TABLE table_name_93 (theme VARCHAR, week VARCHAR)
SELECT transfer_window FROM table_name_16 WHERE name = "habarugira"
What is the transfer period for habarugira?
CREATE TABLE table_name_16 (transfer_window VARCHAR, name VARCHAR)
SELECT COUNT(races) FROM table_25561038_1 WHERE points = "15"
How many series awarded 15 points?
CREATE TABLE table_25561038_1 (races VARCHAR, points VARCHAR)
SELECT surface FROM table_name_5 WHERE date = "20 march 2007"
Name the surface for 20 march 2007
CREATE TABLE table_name_5 (surface VARCHAR, date VARCHAR)
SELECT crowd FROM table_name_3 WHERE home_team = "north melbourne"
How many people were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_3 (crowd VARCHAR, home_team VARCHAR)
SELECT part_1 FROM table_name_99 WHERE part_2 = "fraus"
What is Part 1, when Part 2 is "fraus"?
CREATE TABLE table_name_99 (part_1 VARCHAR, part_2 VARCHAR)
SELECT airdate FROM table_name_62 WHERE bbc_one_weekly_ranking = 14
What date did the episode with a weekly ranking of 14 air?
CREATE TABLE table_name_62 (airdate VARCHAR, bbc_one_weekly_ranking VARCHAR)
SELECT COUNT(18 AS _49) FROM table_name_47 WHERE air_date = "january 7, 2009"
What is the total number of ratings among the 18 to 49 group that was aired on January 7, 2009?
CREATE TABLE table_name_47 (air_date VARCHAR)
SELECT country FROM table_name_81 WHERE year = 2002
Name the country for 2002
CREATE TABLE table_name_81 (country VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_58 WHERE away_team = "carlton"
Which team has an Away team of carlton?
CREATE TABLE table_name_58 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_17 WHERE score = "2–3"
What is the Home team in the game with a Score of 2–3?
CREATE TABLE table_name_17 (home_team VARCHAR, score VARCHAR)
SELECT MAX(round) FROM table_name_46 WHERE team = "baltimore bullets" AND pick > 6
What is the top round for the baltimore bullets with a Pick larger than 6?
CREATE TABLE table_name_46 (round INTEGER, team VARCHAR, pick VARCHAR)
SELECT position_in_1959_1960 FROM table_name_45 WHERE seasons_at_this_level = "14 seasons"
What was the position in 1959-1960 for the club that had 14 seasons at this level?
CREATE TABLE table_name_45 (position_in_1959_1960 VARCHAR, seasons_at_this_level VARCHAR)
SELECT league FROM table_name_7 WHERE player = "ian schultz"
What is the league of player ian schultz?
CREATE TABLE table_name_7 (league VARCHAR, player VARCHAR)
SELECT COUNT(original_airdate) FROM table_24798489_2 WHERE location = "Philadelphia, Pennsylvania"
How many dates originally aired episodes located in Philadelphia, pennsylvania?
CREATE TABLE table_24798489_2 (original_airdate VARCHAR, location VARCHAR)
SELECT COUNT(overall_nt_points) FROM table_14407512_24 WHERE points = "248.9"
Name the number of overall nt points for 248.9
CREATE TABLE table_14407512_24 (overall_nt_points VARCHAR, points VARCHAR)
SELECT attendance FROM table_name_33 WHERE result = "l 31–23"
What was the Attendance when the Result was L 31–23?
CREATE TABLE table_name_33 (attendance VARCHAR, result VARCHAR)
SELECT away_team AS score FROM table_name_84 WHERE venue = "victoria park"
How much did the away team score at Victoria park?
CREATE TABLE table_name_84 (away_team VARCHAR, venue VARCHAR)
SELECT aggregate FROM table_name_65 WHERE opponents = "tauras"
Name the aggregate with opponents of tauras
CREATE TABLE table_name_65 (aggregate VARCHAR, opponents VARCHAR)
SELECT score FROM table_name_17 WHERE round = "1st round" AND club = "union luxembourg"
What is the final score of the 1st round game of club Union Luxembourg?
CREATE TABLE table_name_17 (score VARCHAR, round VARCHAR, club VARCHAR)
SELECT COUNT(total) FROM table_26375386_23 WHERE vote_percentage = "44.8%"
What was the total number when the vote percentage was 44.8%?
CREATE TABLE table_26375386_23 (total VARCHAR, vote_percentage VARCHAR)
SELECT romani FROM table_name_44 WHERE domari = "na"
What is the Romani associated with a Domari of na?
CREATE TABLE table_name_44 (romani VARCHAR, domari VARCHAR)
SELECT illustration FROM table_11900773_5 WHERE theme = "100 Years of Scouting"
Who created the illustration for the stamp that was themed 100 years of scouting?
CREATE TABLE table_11900773_5 (illustration VARCHAR, theme VARCHAR)
SELECT result FROM table_name_90 WHERE game_site = "soldier field"
What is the result of the game that was played at Soldier Field?
CREATE TABLE table_name_90 (result VARCHAR, game_site VARCHAR)
SELECT Country FROM market ORDER BY Number_cities DESC
List all countries of markets in descending order of number of cities.
CREATE TABLE market (Country VARCHAR, Number_cities VARCHAR)
SELECT keys__x_modes_ FROM table_name_55 WHERE supplier = "wolfking"
Which keys (x modes) have a Supplier of wolfking?
CREATE TABLE table_name_55 (keys__x_modes_ VARCHAR, supplier VARCHAR)
SELECT lyrics__l____music__m_ FROM table_name_76 WHERE place = "23"
Who did the Lyrics (l) / Music (m) for the song in 23 Place?
CREATE TABLE table_name_76 (lyrics__l____music__m_ VARCHAR, place VARCHAR)
SELECT nationality FROM table_name_55 WHERE time = 13.21
What is the nationality with a 13.21 time?
CREATE TABLE table_name_55 (nationality VARCHAR, time VARCHAR)
SELECT competition FROM table_name_97 WHERE result = "draw" AND date = "29 november 1997"
What was the competition on 29 November 1997 that resulted in a draw?
CREATE TABLE table_name_97 (competition VARCHAR, result VARCHAR, date VARCHAR)
SELECT MAX(year) FROM table_name_54 WHERE points < 0
What is the latest year with less than 0 points?
CREATE TABLE table_name_54 (year INTEGER, points INTEGER)
SELECT original_air_date FROM table_15431251_1 WHERE directed_by = "Peter Woeste"
What is the original air date for the episode directed by Peter Woeste?
CREATE TABLE table_15431251_1 (original_air_date VARCHAR, directed_by VARCHAR)
SELECT league FROM table_name_20 WHERE nationality = "italy" AND points = "62"
Which league's nationality was Italy when there were 62 points?
CREATE TABLE table_name_20 (league VARCHAR, nationality VARCHAR, points VARCHAR)
SELECT candidates FROM table_2668374_10 WHERE incumbent = "Samuel Riker"
Who were the running candidates when Samuel Riker was the incumbent?
CREATE TABLE table_2668374_10 (candidates VARCHAR, incumbent VARCHAR)
SELECT party FROM table_1342331_43 WHERE incumbent = "Oliver H. Cross"
What party is incumbent Oliver H. Cross?
CREATE TABLE table_1342331_43 (party VARCHAR, incumbent VARCHAR)
SELECT T1.title FROM albums AS T1 JOIN tracks AS T2 ON T1.id = T2.genre_id WHERE T2.name = "Balls to the Wall"
What is title of album which track Balls to the Wall belongs to?
CREATE TABLE tracks (genre_id VARCHAR, name VARCHAR); CREATE TABLE albums (title VARCHAR, id VARCHAR)
SELECT SUM(total__kg_) FROM table_name_26 WHERE snatch < 110 AND clean_ & _jerk > 120
What is the sum Total (kg) associated with a Snatch less than 110, and a Clean & jerk larger than 120?
CREATE TABLE table_name_26 (total__kg_ INTEGER, snatch VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT T1.Airline FROM AIRLINES AS T1 JOIN FLIGHTS AS T2 ON T1.uid = T2.Airline GROUP BY T1.Airline HAVING COUNT(*) < 200
Find all airlines that have fewer than 200 flights.
CREATE TABLE FLIGHTS (Airline VARCHAR); CREATE TABLE AIRLINES (Airline VARCHAR, uid VARCHAR)
SELECT score FROM table_name_89 WHERE visitor = "toronto" AND record = "29-17-8"
Name the score for toronto visitor and record of 29-17-8
CREATE TABLE table_name_89 (score VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT tries_for FROM table_name_57 WHERE points = "48"
How many tries for were there 48 points?
CREATE TABLE table_name_57 (tries_for VARCHAR, points VARCHAR)
SELECT MAX(yards) FROM table_name_12 WHERE average = 9.5
What is the highest amount of yards when the average is 9.5?
CREATE TABLE table_name_12 (yards INTEGER, average VARCHAR)
SELECT opponent FROM table_name_53 WHERE tournament = "leipzig"
Who was the opponent that anke huber played against in the leipzig tournament?
CREATE TABLE table_name_53 (opponent VARCHAR, tournament VARCHAR)
SELECT location FROM table_name_90 WHERE time = "3:24"
Where was the match held that lasted 3:24?
CREATE TABLE table_name_90 (location VARCHAR, time VARCHAR)
SELECT stellar_age__myr_ FROM table_2296507_1 WHERE stellar_classification = "F3V"
Name the stellar age for f3v
CREATE TABLE table_2296507_1 (stellar_age__myr_ VARCHAR, stellar_classification VARCHAR)
SELECT weight, _dimensions FROM table_name_42 WHERE model = "n800"
What is the weight and dimensions of an N800?
CREATE TABLE table_name_42 (weight VARCHAR, _dimensions VARCHAR, model VARCHAR)
SELECT quantity_preserved FROM table_name_76 WHERE quantity_made = "4" AND class = "f-21"
What is the quantity preserved when 4 were made of class F-21?
CREATE TABLE table_name_76 (quantity_preserved VARCHAR, quantity_made VARCHAR, class VARCHAR)
SELECT MIN(rpm) FROM table_19704392_1 WHERE standard_speed__6th_gear_ = "114"
When the standard speed (6th gear) is 114, what is the minimum rpm?
CREATE TABLE table_19704392_1 (rpm INTEGER, standard_speed__6th_gear_ VARCHAR)
SELECT played FROM table_17510803_2 WHERE points_for = "362"
How many have been played for 362 points?
CREATE TABLE table_17510803_2 (played VARCHAR, points_for VARCHAR)
SELECT season FROM table_name_41 WHERE league = "regionalliga süd (iii)"
Which season has the regionalliga süd (iii) league?
CREATE TABLE table_name_41 (season VARCHAR, league VARCHAR)
SELECT home FROM table_name_4 WHERE away = "hispano"
Home for away of hispano?
CREATE TABLE table_name_4 (home VARCHAR, away VARCHAR)