answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT make FROM table_name_48 WHERE car__number > 59
Which Make has a Car # larger than 59?
CREATE TABLE table_name_48 (make VARCHAR, car__number INTEGER)
SELECT tournament FROM table_name_57 WHERE opponent = "greg rusedski"
What is the tournament with greg rusedski as the opponent?
CREATE TABLE table_name_57 (tournament VARCHAR, opponent VARCHAR)
SELECT train_name FROM table_21716139_1 WHERE category = "Express" AND frequency = "Weekly"
What trains have a category of express and a weekly frequency?
CREATE TABLE table_21716139_1 (train_name VARCHAR, category VARCHAR, frequency VARCHAR)
SELECT MIN(number__map_) FROM table_name_71 WHERE area_in_km² = 9.7 AND population_canada_2011_census > 66 OFFSET 158
Which Number (map) is the lowest one that has a Area in km² of 9.7, and a Population Canada 2011 Census larger than 66,158?
CREATE TABLE table_name_71 (number__map_ INTEGER, area_in_km² VARCHAR, population_canada_2011_census VARCHAR)
SELECT nominee FROM table_name_18 WHERE category = "best theatre choreographer"
Who was nominated for Best Theatre Choreographer?
CREATE TABLE table_name_18 (nominee VARCHAR, category VARCHAR)
SELECT SUM(year) FROM table_name_4 WHERE silver = "japan"
How many years has Japan won silver?
CREATE TABLE table_name_4 (year INTEGER, silver VARCHAR)
SELECT time FROM table_name_39 WHERE lane = 7
What was the time of the person in lane 7?
CREATE TABLE table_name_39 (time VARCHAR, lane VARCHAR)
SELECT COUNT(year) FROM table_name_53 WHERE passenger_change = "+32,9%"
What is the year that saw a passenger change of +32,9%?
CREATE TABLE table_name_53 (year VARCHAR, passenger_change VARCHAR)
SELECT death FROM table_name_74 WHERE birth = 1873 AND rank > 28
What year is the death for a birth of 1873 and higher than rank 28?
CREATE TABLE table_name_74 (death VARCHAR, birth VARCHAR, rank VARCHAR)
SELECT COUNT(year) FROM table_name_97 WHERE champion = "robert coombes" AND date = "may 7"
WHAT YEAR WAS ROBERT COOMBES CHAMPION ON MAY 7?
CREATE TABLE table_name_97 (year VARCHAR, champion VARCHAR, date VARCHAR)
SELECT segment_a FROM table_15187735_16 WHERE netflix = "S08E21"
Whats the name of segment in s08e21
CREATE TABLE table_15187735_16 (segment_a VARCHAR, netflix VARCHAR)
SELECT MIN(top_10) FROM table_name_29 WHERE wins < 4 AND points < 3260 AND top_5 > 0
What is the lowest top 10 with fewer than 4 wins, fewer than 3260 points and more than 0 for top 5?
CREATE TABLE table_name_29 (top_10 INTEGER, top_5 VARCHAR, wins VARCHAR, points VARCHAR)
SELECT date FROM table_name_15 WHERE away_team = "burton albion"
WHAT IS THE DATE WITH AN AWAY TEAM OF BURTON ALBION?
CREATE TABLE table_name_15 (date VARCHAR, away_team VARCHAR)
SELECT nationality² FROM table_24565004_8 WHERE appearances¹ = 29
What is the nationality if the appearance is 29?
CREATE TABLE table_24565004_8 (nationality² VARCHAR, appearances¹ VARCHAR)
SELECT date FROM table_name_27 WHERE week = 9
What date did Week 9 begin?
CREATE TABLE table_name_27 (date VARCHAR, week VARCHAR)
SELECT runners_up FROM table_name_68 WHERE semifinalists = "guillermo pérez-roldán andrea gaudenzi"
Whose Runner-up has a Semifinalist of guillermo pérez-roldán andrea gaudenzi?
CREATE TABLE table_name_68 (runners_up VARCHAR, semifinalists VARCHAR)
SELECT COUNT(crowd) FROM table_name_26 WHERE away_team = "carlton"
How large was the crowd when Carlton was the away team?
CREATE TABLE table_name_26 (crowd VARCHAR, away_team VARCHAR)
SELECT nationality FROM table_name_38 WHERE pick > 129
What nationality has a pick greater than 129?
CREATE TABLE table_name_38 (nationality VARCHAR, pick INTEGER)
SELECT MIN(matches_won) FROM table_29302711_12 WHERE matches_played = 23
how many matches did the player that played 23 matches win
CREATE TABLE table_29302711_12 (matches_won INTEGER, matches_played VARCHAR)
SELECT SUM(attendance) FROM table_name_70 WHERE loss = "roloson (11–5)"
How much attendance has a Loss of roloson (11–5)?
CREATE TABLE table_name_70 (attendance INTEGER, loss VARCHAR)
SELECT record FROM table_name_19 WHERE round = 3 AND event = "fight festival 27"
Which record's round was 3 when the event was fight festival 27?
CREATE TABLE table_name_19 (record VARCHAR, round VARCHAR, event VARCHAR)
SELECT director FROM table_name_77 WHERE original_title = "the king's speech"
Who was the director of the king's speech?
CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR)
SELECT lead FROM table_15125201_1 WHERE socialist = "35.5%"
What is the lead percentage when the socialist is at 35.5%?
CREATE TABLE table_15125201_1 (lead VARCHAR, socialist VARCHAR)
SELECT composer_s_ FROM table_name_93 WHERE chr_chart_peak = 2
Which composer had a CHR chart peak at #2?
CREATE TABLE table_name_93 (composer_s_ VARCHAR, chr_chart_peak VARCHAR)
SELECT result FROM table_name_45 WHERE competition = "league/cup" AND opponent = "swindon wildcats" AND man_of_the_match = "neil liddiard"
What is the result of the league/cup competition with the swindon wildcats as the opponent and neil liddiard as the man of the match?
CREATE TABLE table_name_45 (result VARCHAR, man_of_the_match VARCHAR, competition VARCHAR, opponent VARCHAR)
SELECT MAX(bronze) FROM table_name_61 WHERE rank = "19"
What is the largest number for bronze with a rank of 19?
CREATE TABLE table_name_61 (bronze INTEGER, rank VARCHAR)
SELECT belarusian__bgn_pcgn_ FROM table_name_73 WHERE status = "raion" AND foundation = "1514" AND population__2010_ = "8100"
What Belarusian has a status of Raion a foundation of 1514 and a 2010 population of 8100?
CREATE TABLE table_name_73 (belarusian__bgn_pcgn_ VARCHAR, population__2010_ VARCHAR, status VARCHAR, foundation VARCHAR)
SELECT role_code, street, city, state FROM professionals WHERE city LIKE '%West%'
Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.
CREATE TABLE professionals (role_code VARCHAR, street VARCHAR, city VARCHAR, state VARCHAR)
SELECT MIN(mir_hossein_mousavi) FROM table_23390604_1 WHERE mohsen_rezaee = 44809
Display the lowest score for candidate Mir-Hossein Mousavi when candidate Mohsen Rezaee scored 44809 votes
CREATE TABLE table_23390604_1 (mir_hossein_mousavi INTEGER, mohsen_rezaee VARCHAR)
SELECT diameter FROM table_name_28 WHERE year_of_issue = 1977
Which Diameter has a Year of Issue of 1977?
CREATE TABLE table_name_28 (diameter VARCHAR, year_of_issue VARCHAR)
SELECT record FROM table_name_22 WHERE date = "december 30"
What is Record, when Date is "December 30"?
CREATE TABLE table_name_22 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_11 WHERE date = "july 22"
What is the record as of July 22?
CREATE TABLE table_name_11 (record VARCHAR, date VARCHAR)
SELECT date FROM table_name_44 WHERE week = 6
Which date has a Week of 6?
CREATE TABLE table_name_44 (date VARCHAR, week VARCHAR)
SELECT man_of_the_match FROM table_17120964_5 WHERE date = "24th"
Name the man of the match for 24th
CREATE TABLE table_17120964_5 (man_of_the_match VARCHAR, date VARCHAR)
SELECT date FROM table_name_53 WHERE record = "5-3"
What is the Date of the game with a Record of 5-3?
CREATE TABLE table_name_53 (date VARCHAR, record VARCHAR)
SELECT enrollment FROM table_28243691_1 WHERE affiliation = "Private/ Disciples of Christ"
What is the total enrollment for private/ disciples of christ?
CREATE TABLE table_28243691_1 (enrollment VARCHAR, affiliation VARCHAR)
SELECT type FROM table_name_50 WHERE block = "105/107e" AND year < 1960
What type is the 105/107e Block from a year prior to 1960?
CREATE TABLE table_name_50 (type VARCHAR, block VARCHAR, year VARCHAR)
SELECT tournament FROM table_name_21 WHERE date = "april 20, 1987"
Which tournament has a Date of april 20, 1987?
CREATE TABLE table_name_21 (tournament VARCHAR, date VARCHAR)
SELECT MAX(points) FROM table_name_30 WHERE tyres = "g" AND chassis = "minardi m187"
What is the highest points with g Tyres and Minardi m187?
CREATE TABLE table_name_30 (points INTEGER, tyres VARCHAR, chassis VARCHAR)
SELECT player FROM table_name_74 WHERE games < 201 AND rank = 2 AND years = "2007-2012"
Which player has less than 201 games, is ranked 2, and played between 2007-2012?
CREATE TABLE table_name_74 (player VARCHAR, years VARCHAR, games VARCHAR, rank VARCHAR)
SELECT ihsaa_class__football_ FROM table_name_24 WHERE mascot = "generals"
What IHSAA football class do the Generals play in?
CREATE TABLE table_name_24 (ihsaa_class__football_ VARCHAR, mascot VARCHAR)
SELECT COUNT(*) FROM classroom WHERE building = 'Lamberton' AND capacity < 50
How many rooms whose capacity is less than 50 does the Lamberton building have?
CREATE TABLE classroom (building VARCHAR, capacity VARCHAR)
SELECT total_viewers FROM table_name_12 WHERE share < 8
When the shares were less than 8, how many total viewers were there?
CREATE TABLE table_name_12 (total_viewers VARCHAR, share INTEGER)
SELECT AVG(opening) FROM table_name_20 WHERE stadium = "stadyum samsun" AND capacity < 34 OFFSET 658
What is the average opening at Stadyum Samsun with a capacity smaller than 34,658?
CREATE TABLE table_name_20 (opening INTEGER, stadium VARCHAR, capacity VARCHAR)
SELECT MIN(rank) FROM table_name_91 WHERE name = "maxim podoprigora"
What was Maxim Podoprigora's lowest rank?
CREATE TABLE table_name_91 (rank INTEGER, name VARCHAR)
SELECT MIN(ends) FROM table_name_49 WHERE name = "dani alves"
What is the lowest ends for Dani Alves?
CREATE TABLE table_name_49 (ends INTEGER, name VARCHAR)
SELECT COUNT(record) FROM table_17288869_5 WHERE date = "November 7"
What was the record on November 7?
CREATE TABLE table_17288869_5 (record VARCHAR, date VARCHAR)
SELECT brakes FROM table_250230_2 WHERE wheels = "16x8.0JJ (front) 16x8.0JJ (rear)" AND tyres = "225/50R16 92V(front) 225/50R16 92V(rear)" AND model = "Type RB 4AT"
What kind of brakes for the model type rb 4at with 16x8.0jj (front) 16x8.0jj (rear) wheels and 225/50r16 92v(front) 225/50r16 92v(rear) tyres?
CREATE TABLE table_250230_2 (brakes VARCHAR, model VARCHAR, wheels VARCHAR, tyres VARCHAR)
SELECT score FROM table_11964263_13 WHERE date = "April 29"
What is the score for april 29?
CREATE TABLE table_11964263_13 (score VARCHAR, date VARCHAR)
SELECT MIN(district) FROM table_13833770_3 WHERE incumbent = "Tom Reynolds"
what is the minimum district with incumbent being tom reynolds
CREATE TABLE table_13833770_3 (district INTEGER, incumbent VARCHAR)
SELECT SUM(year) FROM table_name_99 WHERE state = "rhode island"
what is the sum of the year in rhode island
CREATE TABLE table_name_99 (year INTEGER, state VARCHAR)
SELECT settlement FROM table_2562572_46 WHERE cyrillic_name_other_names = "Војводинци (Romanian: Voivodinţ)"
Which settlement has a cyrillic and other name of војводинци (romanian: voivodinţ)?
CREATE TABLE table_2562572_46 (settlement VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT type FROM table_name_65 WHERE species = "unspecified" AND genes < 367
What type has an unspecified species and less than 367 genes?
CREATE TABLE table_name_65 (type VARCHAR, species VARCHAR, genes VARCHAR)
SELECT MIN(points) FROM table_27539535_4
What is the least amount of points?
CREATE TABLE table_27539535_4 (points INTEGER)
SELECT time FROM table_name_87 WHERE country = "denmark"
What did Denmark time at?
CREATE TABLE table_name_87 (time VARCHAR, country VARCHAR)
SELECT player_name FROM table_10361230_1 WHERE college = "Emporia State"
Which player went to Emporia State?
CREATE TABLE table_10361230_1 (player_name VARCHAR, college VARCHAR)
SELECT semimajor_axis___au__ FROM table_name_86 WHERE companion__in_order_from_star_ = "g"
What Semimajor axis (AU) has a Companion (in order from star) of g?
CREATE TABLE table_name_86 (semimajor_axis___au__ VARCHAR, companion__in_order_from_star_ VARCHAR)
SELECT hadeda_ibis FROM table_20042805_2 WHERE whitefaced_duck = "Blacksmith Plover"
What is the Hadeda Ibis when the Whitefaced Duck is Blacksmith Plover?
CREATE TABLE table_20042805_2 (hadeda_ibis VARCHAR, whitefaced_duck VARCHAR)
SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = "S03E20"
What episode in the series is TV broadcast s03e20?
CREATE TABLE table_15861776_1 (no_in_series VARCHAR, tv_broadcast VARCHAR)
SELECT tenure FROM table_name_79 WHERE character = "kerry vincent"
What is Character Kerry Vincent's Tenure?
CREATE TABLE table_name_79 (tenure VARCHAR, character VARCHAR)
SELECT score FROM table_name_99 WHERE home = "toronto maple leafs" AND date = "february 1"
What is the Score of the Toronto Maple Leafs home game on February 1?
CREATE TABLE table_name_99 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT object_type FROM table_name_32 WHERE constellation = "orion" AND ngc_number > 2174 AND declination___j2000__ = "°48′06″"
Which Object type has a Constellation of orion, and an NGC number larger than 2174, and a Declination (J2000) of °48′06″?
CREATE TABLE table_name_32 (object_type VARCHAR, declination___j2000__ VARCHAR, constellation VARCHAR, ngc_number VARCHAR)
SELECT class FROM table_19398910_4 WHERE bout_6 = "Sanchez ( ESP ) W 5-0"
when Sanchez ( esp ) w 5-0 were the bout 6, which were the class?
CREATE TABLE table_19398910_4 (class VARCHAR, bout_6 VARCHAR)
SELECT COUNT(milepost) FROM table_10568553_1 WHERE street_names = "Anne Street"
How many mileposts are there on Anne Street?
CREATE TABLE table_10568553_1 (milepost VARCHAR, street_names VARCHAR)
SELECT nationality FROM table_name_11 WHERE player = "daniel goneau"
What is Nationality of daniel goneau?
CREATE TABLE table_name_11 (nationality VARCHAR, player VARCHAR)
SELECT MIN(gold) FROM table_name_54 WHERE nation = "tanzania" AND bronze < 0
Name the fewest gold for tanzania with bronze less than 0
CREATE TABLE table_name_54 (gold INTEGER, nation VARCHAR, bronze VARCHAR)
SELECT MIN(extra_points) FROM table_25730209_2
What was the least amount of points scored?
CREATE TABLE table_25730209_2 (extra_points INTEGER)
SELECT best FROM table_name_54 WHERE qual_1 = "1:01.043"
What is the best time of the team that had a qualifying 1 time of 1:01.043?
CREATE TABLE table_name_54 (best VARCHAR, qual_1 VARCHAR)
SELECT home_team FROM table_name_38 WHERE away_team = "melbourne"
Who played Melbourne as the home team?
CREATE TABLE table_name_38 (home_team VARCHAR, away_team VARCHAR)
SELECT location_attendance FROM table_11961582_7 WHERE date = "March 17"
What was the attendance on March 17?
CREATE TABLE table_11961582_7 (location_attendance VARCHAR, date VARCHAR)
SELECT postseason FROM table_name_54 WHERE win_percentage > 0.40700000000000003 AND games < 108 AND rank = 1
What postseason has a win% between 0.40700000000000003 and 108 with a rank of 1?
CREATE TABLE table_name_54 (postseason VARCHAR, rank VARCHAR, win_percentage VARCHAR, games VARCHAR)
SELECT COUNT(formed_date) FROM table_275023_1 WHERE province = "Wellington"
How many provinces are named Wellington?
CREATE TABLE table_275023_1 (formed_date VARCHAR, province VARCHAR)
SELECT result FROM table_name_22 WHERE venue = "away" AND game < 43 AND opponent = "bournemouth"
Which Result has a Venue of away, and a Game smaller than 43, and an Opponent of bournemouth?
CREATE TABLE table_name_22 (result VARCHAR, opponent VARCHAR, venue VARCHAR, game VARCHAR)
SELECT game FROM table_name_71 WHERE record = "19-15"
What is the Game with a Record of 19-15?
CREATE TABLE table_name_71 (game VARCHAR, record VARCHAR)
SELECT date FROM table_name_18 WHERE partner = "jodi kenoyer"
What was the date for the match where Tweedie-Yates' partner was jodi kenoyer?
CREATE TABLE table_name_18 (date VARCHAR, partner VARCHAR)
SELECT country FROM table_24598274_20 WHERE presenter_s_ = "Johanna Klum"
Which country did Johanna Klum presented the show?
CREATE TABLE table_24598274_20 (country VARCHAR, presenter_s_ VARCHAR)
SELECT high_rebounds FROM table_13619135_7 WHERE team = "Charlotte"
Who was the high rebounder against charlotte?
CREATE TABLE table_13619135_7 (high_rebounds VARCHAR, team VARCHAR)
SELECT date_successor_seated FROM table_1134091_4 WHERE vacator = "Charles E. Chamberlain (R)"
When was the date successor seated when the vacator was charles e. chamberlain (r)?
CREATE TABLE table_1134091_4 (date_successor_seated VARCHAR, vacator VARCHAR)
SELECT COUNT(high_rebounds) FROM table_27723228_8 WHERE game = 30
How many people are listed for high rebounds on game 30?
CREATE TABLE table_27723228_8 (high_rebounds VARCHAR, game VARCHAR)
SELECT MIN(round) FROM table_name_97 WHERE event = "total combat 15"
Tell me the lowest round for total combat 15
CREATE TABLE table_name_97 (round INTEGER, event VARCHAR)
SELECT lane FROM table_name_84 WHERE react > 0.209 AND rank > 6
What Lane has a 0.209 React entered with a Rank entry that is larger than 6?
CREATE TABLE table_name_84 (lane VARCHAR, react VARCHAR, rank VARCHAR)
SELECT pinyin FROM table_1216675_1 WHERE translation = "Explaining Beasts"
What is the pinyin for explaining beasts?
CREATE TABLE table_1216675_1 (pinyin VARCHAR, translation VARCHAR)
SELECT race FROM table_name_63 WHERE pole_position = "jody scheckter"
What race had Jody Scheckter hold pole position?
CREATE TABLE table_name_63 (race VARCHAR, pole_position VARCHAR)
SELECT opponent FROM table_name_55 WHERE date = "may 21"
What Opponent played on the Date May 21?
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR)
SELECT torque FROM table_name_80 WHERE power = "hp (kw; ps)@5800"
What is the torque on the model with power of hp (kw; ps)@5800?
CREATE TABLE table_name_80 (torque VARCHAR, power VARCHAR)
SELECT home_team FROM table_name_29 WHERE venue = "princes park"
What Home team plays at the princes park Venue?
CREATE TABLE table_name_29 (home_team VARCHAR, venue VARCHAR)
SELECT AVG(lane) FROM table_name_83 WHERE time > 20.5 AND nationality = "trinidad and tobago"
Which Lane has a Time larger than 20.5, and a Nationality of trinidad and tobago?
CREATE TABLE table_name_83 (lane INTEGER, time VARCHAR, nationality VARCHAR)
SELECT club FROM table_name_83 WHERE loses > 1 AND wins = 4 AND points_against < 894
What club has losses greater than 1, 4 for the wins, with points against less than 894?
CREATE TABLE table_name_83 (club VARCHAR, points_against VARCHAR, loses VARCHAR, wins VARCHAR)
SELECT championships__years_ FROM table_name_96 WHERE league = "milb, florida state league" AND venue = "ed smith stadium"
Which Championships (Years) have a League of milb, florida state league, and a Venue of ed smith stadium?
CREATE TABLE table_name_96 (championships__years_ VARCHAR, league VARCHAR, venue VARCHAR)
SELECT regular_season FROM table_name_78 WHERE playoffs = "conference semifinals"
What regular season did the team reach the conference semifinals in the playoffs?
CREATE TABLE table_name_78 (regular_season VARCHAR, playoffs VARCHAR)
SELECT track FROM table_name_79 WHERE year = "1979"
What is the name of the track that hosted the Swedish Grand Prix in 1979?
CREATE TABLE table_name_79 (track VARCHAR, year VARCHAR)
SELECT report FROM table_name_54 WHERE home_team = "townsville crocodiles"
What was the report for the game with the home team of the Townsville Crocodiles?
CREATE TABLE table_name_54 (report VARCHAR, home_team VARCHAR)
SELECT drawn FROM table_20760802_1 WHERE points_against = "129"
How may drawn equal points against at 129?
CREATE TABLE table_20760802_1 (drawn VARCHAR, points_against VARCHAR)
SELECT college FROM table_name_22 WHERE player = "paul seiler"
what college has paul seiler as a player?
CREATE TABLE table_name_22 (college VARCHAR, player VARCHAR)
SELECT COUNT(number_of_editions) FROM table_29788320_2 WHERE concept = "Club Q-BASE"
How many editions did Club Q-base concept have ?
CREATE TABLE table_29788320_2 (number_of_editions VARCHAR, concept VARCHAR)
SELECT score FROM table_name_79 WHERE place = "t9" AND player = "jerry barber"
How much did Jerry Barber score to come in at T9?
CREATE TABLE table_name_79 (score VARCHAR, place VARCHAR, player VARCHAR)
SELECT COUNT(title) FROM table_234886_2 WHERE original_air_date = "November 17, 1998"
How many titles have an original air date of November 17, 1998?
CREATE TABLE table_234886_2 (title VARCHAR, original_air_date VARCHAR)
SELECT date FROM table_name_70 WHERE event = "200m individual medley"
What is the date of the 200m individual medley?
CREATE TABLE table_name_70 (date VARCHAR, event VARCHAR)
SELECT winner FROM table_name_74 WHERE rider_status = "amateur" AND year = 1973
Who was the winner in 1973 with an amateur rider status?
CREATE TABLE table_name_74 (winner VARCHAR, rider_status VARCHAR, year VARCHAR)
SELECT AVG(drawn) FROM table_name_56 WHERE points < 14 AND lost < 4 AND played > 9
Which average Drawn has Points smaller than 14, and a Lost smaller than 4, and a Played larger than 9?
CREATE TABLE table_name_56 (drawn INTEGER, played VARCHAR, points VARCHAR, lost VARCHAR)