question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
What is the destination when the train number is 16526?
CREATE TABLE table_29202276_2 (destination VARCHAR, train_number VARCHAR)
SELECT destination FROM table_29202276_2 WHERE train_number = 16526
Name the sprint classification for michael barry
CREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR)
SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"
What are the details of all products?
CREATE TABLE products (product_details VARCHAR)
SELECT DISTINCT product_details FROM products
In how many years did Pat Bradley became the champion?
CREATE TABLE table_229059_2 (year VARCHAR, champion VARCHAR)
SELECT COUNT(year) FROM table_229059_2 WHERE champion = "Pat Bradley"
what's the na -350- with title and source being paper wars: cannon fodder
CREATE TABLE table_13663434_1 (na__350_ VARCHAR, title_and_source VARCHAR)
SELECT na__350_ FROM table_13663434_1 WHERE title_and_source = "Paper Wars: Cannon Fodder"
Who was the away team when North Melbourne was the home team?
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "north melbourne"
What is the heat number of the athlete who finished in 2:23.95?
CREATE TABLE table_name_99 (heat INTEGER, time VARCHAR)
SELECT AVG(heat) FROM table_name_99 WHERE time = "2:23.95"
what is the callsign for independent affiliation?
CREATE TABLE table_name_69 (callsign VARCHAR, affiliation VARCHAR)
SELECT callsign FROM table_name_69 WHERE affiliation = "independent"
What was the score of the game when the attendance was 1,644?
CREATE TABLE table_name_38 (score VARCHAR, attendance VARCHAR)
SELECT score FROM table_name_38 WHERE attendance = "1,644"
What is the Constituency Number of Total:?
CREATE TABLE table_name_73 (constituency_number VARCHAR, name VARCHAR)
SELECT constituency_number FROM table_name_73 WHERE name = "total:"
What is average SiO 2, when Na 2 O is 7.53, and when Al 2 O 3 is less than 2.13?
CREATE TABLE table_name_42 (sio_2 INTEGER, na_2_o VARCHAR, al_2_o_3 VARCHAR)
SELECT AVG(sio_2) FROM table_name_42 WHERE na_2_o = 7.53 AND al_2_o_3 < 2.13
What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?
CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR)
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174
In which category did Nick Jonas win at the Kids' Choice Awards Mexico?
CREATE TABLE table_name_9 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR)
SELECT category FROM table_name_9 WHERE recipient_s_ = "nick jonas" AND award = "kids' choice awards mexico"
What's listed for Elevatated that has Cardinalatial title of Priest of SS. XII Apostoli?
CREATE TABLE table_name_77 (elevated VARCHAR, cardinalatial_title VARCHAR)
SELECT elevated FROM table_name_77 WHERE cardinalatial_title = "priest of ss. xii apostoli"
What is the smallest number of assists with 70 Pims and less than 19 goals?
CREATE TABLE table_name_71 (assists INTEGER, pims VARCHAR, goals VARCHAR)
SELECT MIN(assists) FROM table_name_71 WHERE pims = 70 AND goals < 19
Who had a score of 68-67=135?
CREATE TABLE table_name_98 (player VARCHAR, score VARCHAR)
SELECT player FROM table_name_98 WHERE score = 68 - 67 = 135
What are the highest points that Emmitt Smith had?
CREATE TABLE table_name_96 (points INTEGER, player VARCHAR)
SELECT MAX(points) FROM table_name_96 WHERE player = "emmitt smith"
Name the country with polák
CREATE TABLE table_name_4 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_4 WHERE name = "polák"
Which Advisor has most of students? List advisor and the number of students.
CREATE TABLE Student (Advisor VARCHAR)
SELECT Advisor, COUNT(*) FROM Student GROUP BY Advisor ORDER BY COUNT(Advisor) DESC LIMIT 1
How many games was Damien Wilkins (27) the high scorer?
CREATE TABLE table_11964154_2 (game INTEGER, high_points VARCHAR)
SELECT MIN(game) FROM table_11964154_2 WHERE high_points = "Damien Wilkins (27)"
What is the Phoenician letter for the Hangul of ㄹ?
CREATE TABLE table_name_77 (phoenician VARCHAR, hangul VARCHAR)
SELECT phoenician FROM table_name_77 WHERE hangul = "ㄹ"
Which TV season has Households (in millions) of 30.503 (34.9 rating)?
CREATE TABLE table_name_80 (tv_season VARCHAR, households__in_millions_ VARCHAR)
SELECT tv_season FROM table_name_80 WHERE households__in_millions_ = "30.503 (34.9 rating)"
What is the percentage of the liberal party with less than 25 percent of seats?
CREATE TABLE table_name_20 (percentage VARCHAR, party VARCHAR, percent_of_seats VARCHAR)
SELECT COUNT(percentage) FROM table_name_20 WHERE party = "liberal" AND percent_of_seats < 25
What is the Late Middle English equivalent of the Anglian æg, ǣg?
CREATE TABLE table_28177800_5 (late_middle_english VARCHAR, late_old_english__anglian_ VARCHAR)
SELECT late_middle_english FROM table_28177800_5 WHERE late_old_english__anglian_ = "æg, ǣg"
Where is the player Raymond Floyd?
CREATE TABLE table_name_47 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_47 WHERE player = "raymond floyd"
What's the location when the record was 6-0-1?
CREATE TABLE table_name_17 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_17 WHERE record = "6-0-1"
Which Label has a Date smaller than 2008, and a Catalog of fall cd 006?
CREATE TABLE table_name_82 (label VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT label FROM table_name_82 WHERE date < 2008 AND catalog = "fall cd 006"
What was the away team score when the home team was the Brisbane Lions?
CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team AS score FROM table_name_83 WHERE home_team = "brisbane lions"
In what place(s) did the player(s) with a total less than 282 finish?
CREATE TABLE table_name_33 (finish VARCHAR, total INTEGER)
SELECT finish FROM table_name_33 WHERE total < 282
Name the frequency for part number of ac80566ue041dw
CREATE TABLE table_16729930_11 (frequency VARCHAR, part_number_s_ VARCHAR)
SELECT frequency FROM table_16729930_11 WHERE part_number_s_ = "AC80566UE041DW"
What is the rank of Si Sa Ket province with less than 14 bronze medals?
CREATE TABLE table_name_85 (rank VARCHAR, province VARCHAR, bronze VARCHAR)
SELECT COUNT(rank) FROM table_name_85 WHERE province = "si sa ket" AND bronze < 14
Which opponent had 38,642 attendance?
CREATE TABLE table_name_69 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_69 WHERE attendance = "38,642"
What is the name of the driver with a rotax max engine, in the rotax heavy class, with arrow as chassis and on the TWR Raceline Seating team?
CREATE TABLE table_name_32 (driver VARCHAR, team VARCHAR, chassis VARCHAR, engine VARCHAR, class VARCHAR)
SELECT driver FROM table_name_32 WHERE engine = "rotax max" AND class = "rotax heavy" AND chassis = "arrow" AND team = "twr raceline seating"
what is the number of the episode in the season that had 7.19 millions of north american viewers?
CREATE TABLE table_27914606_1 (season__number VARCHAR, us_viewers__millions_ VARCHAR)
SELECT season__number FROM table_27914606_1 WHERE us_viewers__millions_ = "7.19"
What are the names of schools with the top 3 largest size?
CREATE TABLE college (cName VARCHAR, enr VARCHAR)
SELECT cName FROM college ORDER BY enr DESC LIMIT 3
What was the rank of BBC 2 in 2005?
CREATE TABLE table_name_53 (bbc_two_rank VARCHAR, year VARCHAR)
SELECT bbc_two_rank FROM table_name_53 WHERE year = "2005"
Which sign has a red border?
CREATE TABLE table_name_42 (text_symbol VARCHAR, border VARCHAR)
SELECT text_symbol FROM table_name_42 WHERE border = "red"
Which Record has an Opponent of pittsburgh pirates, and a Date of may 5?
CREATE TABLE table_name_79 (record VARCHAR, opponent VARCHAR, date VARCHAR)
SELECT record FROM table_name_79 WHERE opponent = "pittsburgh pirates" AND date = "may 5"
Which Date has a Game site of shea stadium, and a Week of 5?
CREATE TABLE table_name_18 (date VARCHAR, game_site VARCHAR, week VARCHAR)
SELECT date FROM table_name_18 WHERE game_site = "shea stadium" AND week = 5
What team was home team when south Melbourne was the away team?
CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_88 WHERE away_team = "south melbourne"
How many games had Montreal Canadiens as an opponent?
CREATE TABLE table_name_24 (game INTEGER, opponent VARCHAR)
SELECT SUM(game) FROM table_name_24 WHERE opponent = "montreal canadiens"
For the team whose shirt sponsor is Evonik, who is the kitmaker?
CREATE TABLE table_name_54 (kitmaker VARCHAR, shirt_sponsor VARCHAR)
SELECT kitmaker FROM table_name_54 WHERE shirt_sponsor = "evonik"
What was the date of the game played after week 15?
CREATE TABLE table_name_86 (date VARCHAR, week INTEGER)
SELECT date FROM table_name_86 WHERE week > 15
Who is every high rebound when the team is Mount St. Mary's?
CREATE TABLE table_29846807_4 (high_rebounds VARCHAR, team VARCHAR)
SELECT high_rebounds FROM table_29846807_4 WHERE team = "Mount St. Mary's"
What is the average sales in billions of the company headquartered in France with more than 2,539.1 billion in assets?
CREATE TABLE table_name_65 (sales__billion_ INTEGER, headquarters VARCHAR, assets__billion_$_ VARCHAR)
SELECT AVG(sales__billion_) AS $_ FROM table_name_65 WHERE headquarters = "france" AND assets__billion_$_ > 2 OFFSET 539.1
What was the nationality of a point guard position in 1999-2001?
CREATE TABLE table_name_89 (nationality VARCHAR, position VARCHAR, years_for_grizzlies VARCHAR)
SELECT nationality FROM table_name_89 WHERE position = "point guard" AND years_for_grizzlies = "1999-2001"
what's the title with original air date being september23,1995
CREATE TABLE table_14637853_3 (title VARCHAR, original_air_date VARCHAR)
SELECT title FROM table_14637853_3 WHERE original_air_date = "September23,1995"
what is the nationality of the ship appam?
CREATE TABLE table_name_24 (nationality VARCHAR, ship VARCHAR)
SELECT nationality FROM table_name_24 WHERE ship = "appam"
Find the location and all games score of the school that has Clemson as its team name.
CREATE TABLE basketball_match (All_Games VARCHAR, school_id VARCHAR); CREATE TABLE university (location VARCHAR, school_id VARCHAR)
SELECT t2.All_Games, t1.location FROM university AS t1 JOIN basketball_match AS t2 ON t1.school_id = t2.school_id WHERE team_name = 'Clemson'
How many averages for the province with evening gown score of 8.00
CREATE TABLE table_15081939_4 (average VARCHAR, evening_gown VARCHAR)
SELECT COUNT(average) FROM table_15081939_4 WHERE evening_gown = "8.00"
What was the average ranking of Saudi Arabia in the years of 2000–?
CREATE TABLE table_name_53 (ranking INTEGER, nationality VARCHAR, years VARCHAR)
SELECT AVG(ranking) FROM table_name_53 WHERE nationality = "saudi arabia" AND years = "2000–"
What is the sum of the to par for the United States in the winning year of 1967, and has a total of more than 146?
CREATE TABLE table_name_38 (to_par INTEGER, total VARCHAR, country VARCHAR, year_s__won VARCHAR)
SELECT SUM(to_par) FROM table_name_38 WHERE country = "united states" AND year_s__won = "1967" AND total > 146
what's the turing complete with name being atanasoff–berry computer (us)
CREATE TABLE table_13636_1 (turing_complete VARCHAR, name VARCHAR)
SELECT turing_complete FROM table_13636_1 WHERE name = "Atanasoff–Berry Computer (US)"
What was the theme for the Top 11 week?
CREATE TABLE table_name_59 (theme VARCHAR, week VARCHAR)
SELECT theme FROM table_name_59 WHERE week = "top 11"
What incumbent won the district of texas 22?
CREATE TABLE table_1341598_44 (incumbent VARCHAR, district VARCHAR)
SELECT incumbent FROM table_1341598_44 WHERE district = "Texas 22"
How many successors are from the georgia 2nd district?
CREATE TABLE table_1446600_4 (successor VARCHAR, district VARCHAR)
SELECT COUNT(successor) FROM table_1446600_4 WHERE district = "Georgia 2nd"
What is Moving To, when Name is "Leon Andreasen"?
CREATE TABLE table_name_18 (moving_to VARCHAR, name VARCHAR)
SELECT moving_to FROM table_name_18 WHERE name = "leon andreasen"
What position does the player from texas a&m play?
CREATE TABLE table_name_32 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_32 WHERE school = "texas a&m"
Show all publishers which do not have a book in 1989.
CREATE TABLE book_club (publisher VARCHAR, YEAR VARCHAR)
SELECT publisher FROM book_club EXCEPT SELECT publisher FROM book_club WHERE YEAR = 1989
Who was the opponent in a week below 14 on October 10, 1993?
CREATE TABLE table_name_18 (opponent VARCHAR, week VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_18 WHERE week < 14 AND date = "october 10, 1993"
What activities do we have?
CREATE TABLE Activity (activity_name VARCHAR)
SELECT activity_name FROM Activity
Who is week 5 if week 2 is Jenna Jordan?
CREATE TABLE table_name_68 (week_5 VARCHAR, week_2 VARCHAR)
SELECT week_5 FROM table_name_68 WHERE week_2 = "jenna jordan"
Which team plays their home matches at the mcg Venue?
CREATE TABLE table_name_16 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_16 WHERE venue = "mcg"
What is the Country when the IATA shows cju?
CREATE TABLE table_name_98 (country VARCHAR, iata VARCHAR)
SELECT country FROM table_name_98 WHERE iata = "cju"
What is the average rank when the bronze is larger than 1, and silver is less than 0?
CREATE TABLE table_name_52 (rank INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT AVG(rank) FROM table_name_52 WHERE bronze > 1 AND silver < 0
Show the description of transaction type with code "PUR".
CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)
SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = "PUR"
Who was the interview subject when the centerfold model was Sherry Arnett?
CREATE TABLE table_1566848_7 (interview_subject VARCHAR, centerfold_model VARCHAR)
SELECT COUNT(interview_subject) FROM table_1566848_7 WHERE centerfold_model = "Sherry Arnett"
What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?
CREATE TABLE Countries (countryId VARCHAR, CountryName VARCHAR, CountryId VARCHAR); CREATE TABLE CAR_MAKERS (Country VARCHAR, Id VARCHAR); CREATE TABLE MODEL_LIST (Maker VARCHAR, Model VARCHAR)
SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country GROUP BY T1.countryId HAVING COUNT(*) > 3 UNION SELECT T1.countryId, T1.CountryName FROM Countries AS T1 JOIN CAR_MAKERS AS T2 ON T1.CountryId = T2.Country JOIN MODEL_LIST AS T3 ON T2.Id = T3.Maker WHERE T3.Model...
Which Year has a Date of 5–6 february?
CREATE TABLE table_name_12 (year INTEGER, date VARCHAR)
SELECT AVG(year) FROM table_name_12 WHERE date = "5–6 february"
What model has a total produced more than 5 and a prime move of 12-251c?
CREATE TABLE table_name_15 (model VARCHAR, total_produced VARCHAR, prime_mover VARCHAR)
SELECT model FROM table_name_15 WHERE total_produced > 5 AND prime_mover = "12-251c"
What date did the institution that left in 2013 and that is nicknamed Corsairs, join?
CREATE TABLE table_261927_2 (joined VARCHAR, left VARCHAR, nickname VARCHAR)
SELECT joined FROM table_261927_2 WHERE left = "2013" AND nickname = "Corsairs"
What is the oder part number for the model with 10x mult. 1?
CREATE TABLE table_27277284_28 (order_part_number VARCHAR, mult_1 VARCHAR)
SELECT order_part_number FROM table_27277284_28 WHERE mult_1 = "10x"
What is the tyres for Didier pironi?
CREATE TABLE table_name_10 (tyres VARCHAR, driver VARCHAR)
SELECT tyres FROM table_name_10 WHERE driver = "didier pironi"
What soap opera was on 1960–1965, 1965–1983, 1984–2010?
CREATE TABLE table_name_33 (soap_opera VARCHAR, years VARCHAR)
SELECT soap_opera FROM table_name_33 WHERE years = "1960–1965, 1965–1983, 1984–2010"
When sylvania, oh is the location what is the team nickname?
CREATE TABLE table_28211213_2 (team_nickname VARCHAR, location VARCHAR)
SELECT team_nickname FROM table_28211213_2 WHERE location = "Sylvania, OH"
What is the sources for Bandung?
CREATE TABLE table_name_37 (sources_of_pop___area VARCHAR, city VARCHAR)
SELECT sources_of_pop___area FROM table_name_37 WHERE city = "bandung"
Tell me the highest wins for year less than 2000 and best finish of 4 and tournaments played less than 3
CREATE TABLE table_name_42 (wins INTEGER, tournaments_played VARCHAR, year VARCHAR, best_finish VARCHAR)
SELECT MAX(wins) FROM table_name_42 WHERE year < 2000 AND best_finish = "4" AND tournaments_played < 3
Who did Winfield Scott have an allegiance with?
CREATE TABLE table_name_28 (allegiance VARCHAR, name VARCHAR)
SELECT allegiance FROM table_name_28 WHERE name = "winfield scott"
Who is the opponent in the final on a hard surface with a score of 6–3 7–6(5)?
CREATE TABLE table_name_69 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponent_in_the_final FROM table_name_69 WHERE surface = "hard" AND score = "6–3 7–6(5)"
For week of top 9, what were the results?
CREATE TABLE table_22736523_1 (result VARCHAR, week__number VARCHAR)
SELECT result FROM table_22736523_1 WHERE week__number = "Top 9"
Who is the champion if the national trophy/rookie is not held?
CREATE TABLE table_25563779_4 (champion VARCHAR, national_trophy_rookie VARCHAR)
SELECT champion FROM table_25563779_4 WHERE national_trophy_rookie = "not held"
What attendance does 1-6 record have?
CREATE TABLE table_name_46 (attendance INTEGER, record VARCHAR)
SELECT SUM(attendance) FROM table_name_46 WHERE record = "1-6"
What is the highest rebounds for game 81?
CREATE TABLE table_name_58 (high_rebounds VARCHAR, game VARCHAR)
SELECT high_rebounds FROM table_name_58 WHERE game = 81
what is the start source when started on 2 february?
CREATE TABLE table_name_47 (start_source VARCHAR, started VARCHAR)
SELECT start_source FROM table_name_47 WHERE started = "2 february"
What is the Top that has a 66-71-66=203 score and a place of t1?
CREATE TABLE table_name_23 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT to_par FROM table_name_23 WHERE place = "t1" AND score = 66 - 71 - 66 = 203
Having 429 points against, what is the Tries Against?
CREATE TABLE table_name_24 (tries_against VARCHAR, points_against VARCHAR)
SELECT tries_against FROM table_name_24 WHERE points_against = "429"
How many picks for round 12?
CREATE TABLE table_name_5 (pick__number VARCHAR, round VARCHAR)
SELECT COUNT(pick__number) FROM table_name_5 WHERE round = 12
What is the number of Games for the player in Rank 3?
CREATE TABLE table_name_21 (games INTEGER, rank VARCHAR)
SELECT MAX(games) FROM table_name_21 WHERE rank = 3
When Saginaw's fare is $470.47, what was the fare to Grand Rapids?
CREATE TABLE table_1637981_7 (grand_rapids__grr_ VARCHAR, saginaw__mbs_ VARCHAR)
SELECT grand_rapids__grr_ FROM table_1637981_7 WHERE saginaw__mbs_ = "$470.47"
How many matches where played with Jim Pugh?
CREATE TABLE table_1028356_3 (opponents VARCHAR, partner VARCHAR)
SELECT COUNT(opponents) FROM table_1028356_3 WHERE partner = "Jim Pugh"
What is the highest value for Points, when Games is 21, and when Rank is greater than 2?
CREATE TABLE table_name_52 (points INTEGER, games VARCHAR, rank VARCHAR)
SELECT MAX(points) FROM table_name_52 WHERE games = 21 AND rank > 2
How many episodes did Eve Weston write?
CREATE TABLE table_27462177_1 (no_in_series VARCHAR, written_by VARCHAR)
SELECT COUNT(no_in_series) FROM table_27462177_1 WHERE written_by = "Eve Weston"
What date was the 1988 world group i edition with a result of 7–6 (7–5) , 6–3?
CREATE TABLE table_name_69 (date VARCHAR, edition VARCHAR, result VARCHAR)
SELECT date FROM table_name_69 WHERE edition = "1988 world group i" AND result = "7–6 (7–5) , 6–3"
What was the French title of the story published in 1968?
CREATE TABLE table_23963073_1 (french_title VARCHAR, date_of_publication VARCHAR)
SELECT french_title FROM table_23963073_1 WHERE date_of_publication = 1968
How many upstream speeds are there for downstream of 20 mbit/s and bandwidth of 40 gb?
CREATE TABLE table_17304621_14 (upstream VARCHAR, downstream VARCHAR, bandwidth VARCHAR)
SELECT COUNT(upstream) FROM table_17304621_14 WHERE downstream = "20 Mbit/s" AND bandwidth = "40 GB"
Name the tournament for grass surface and opponent in the final being paul baccanello
CREATE TABLE table_name_11 (tournament VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT tournament FROM table_name_11 WHERE surface = "grass" AND opponent_in_the_final = "paul baccanello"
Which authority has a rocket launch called rehbar-5?
CREATE TABLE table_11869952_1 (derivatives VARCHAR, rocket_launch VARCHAR)
SELECT COUNT(derivatives) FROM table_11869952_1 WHERE rocket_launch = "Rehbar-5"
When collingwood played as the away team what did they score?
CREATE TABLE table_name_3 (away_team VARCHAR)
SELECT away_team AS score FROM table_name_3 WHERE away_team = "collingwood"
Which player went to Pittsburg State
CREATE TABLE table_15353123_1 (player VARCHAR, college VARCHAR)
SELECT player FROM table_15353123_1 WHERE college = "Pittsburg State"
What date was the game score w 104-98?
CREATE TABLE table_27882867_9 (date VARCHAR, score VARCHAR)
SELECT date FROM table_27882867_9 WHERE score = "W 104-98"