question
stringlengths
12
244
context
stringlengths
27
489
answer
stringlengths
18
557
Which Position has an Against of 32, and a Difference of 18, and a Drawn larger than 4?
CREATE TABLE table_name_97 (position INTEGER, drawn VARCHAR, against VARCHAR, difference VARCHAR)
SELECT SUM(position) FROM table_name_97 WHERE against = 32 AND difference = "18" AND drawn > 4
what is the name of the episode which the production code is 62015-08-162
CREATE TABLE table_21313498_1 (title VARCHAR, production_code VARCHAR)
SELECT title FROM table_21313498_1 WHERE production_code = "62015-08-162"
The player who had 5 touchdowns had how many extra points?
CREATE TABLE table_25642873_2 (extra_points VARCHAR, touchdowns VARCHAR)
SELECT extra_points FROM table_25642873_2 WHERE touchdowns = 5
Who is the Home Captain for 23,24,25,26 july 1992?
CREATE TABLE table_name_89 (home_captain VARCHAR, date VARCHAR)
SELECT home_captain FROM table_name_89 WHERE date = "23,24,25,26 july 1992"
Who is the head coach when Miami University is the championship game opponent?
CREATE TABLE table_22165661_3 (head_coach VARCHAR, championship_game_opponent VARCHAR)
SELECT head_coach FROM table_22165661_3 WHERE championship_game_opponent = "Miami University"
How many assists for player(s) with over 107 games and ranked less than 2?
CREATE TABLE table_name_20 (total_assists VARCHAR, games VARCHAR, rank VARCHAR)
SELECT COUNT(total_assists) FROM table_name_20 WHERE games > 107 AND rank < 2
What was the location of the home game for Japan?
CREATE TABLE table_name_49 (location VARCHAR, home_team VARCHAR)
SELECT location FROM table_name_49 WHERE home_team = "japan"
What are the mm dimensions of the Plustek Mobileoffice D28 Corporate?
CREATE TABLE table_16409745_1 (dimensions__mm_ VARCHAR, product VARCHAR)
SELECT dimensions__mm_ FROM table_16409745_1 WHERE product = "Plustek MobileOffice D28 Corporate"
What is the comp when the ryds is 2?
CREATE TABLE table_name_83 (comp VARCHAR, ryds VARCHAR)
SELECT comp FROM table_name_83 WHERE ryds = "2"
How many different values of clubs involved were there when the league entering at this round was allsvenskan?
CREATE TABLE table_29566686_1 (clubs_involved VARCHAR, leagues_entering_at_this_round VARCHAR)
SELECT COUNT(clubs_involved) FROM table_29566686_1 WHERE leagues_entering_at_this_round = "Allsvenskan"
What was the lowest total with a finish of t47?
CREATE TABLE table_name_88 (total INTEGER, finish VARCHAR)
SELECT MIN(total) FROM table_name_88 WHERE finish = "t47"
What year was Stephenson the builder?
CREATE TABLE table_name_93 (built VARCHAR, builder VARCHAR)
SELECT built FROM table_name_93 WHERE builder = "stephenson"
what are all the result for New York 6 district
CREATE TABLE table_1341395_33 (result VARCHAR, district VARCHAR)
SELECT result FROM table_1341395_33 WHERE district = "New York 6"
What is the Rank with a Goal number smaller than 66?
CREATE TABLE table_name_29 (rank VARCHAR, goals INTEGER)
SELECT rank FROM table_name_29 WHERE goals < 66
What is China's IATA?
CREATE TABLE table_name_58 (iata VARCHAR, country VARCHAR)
SELECT iata FROM table_name_58 WHERE country = "china"
What is the 2012 with a mini in 2009?
CREATE TABLE table_name_3 (Id VARCHAR)
SELECT 2012 FROM table_name_3 WHERE 2009 = "mini"
Televoting of 9, and a Jury smaller than 10 had what sum of draw?
CREATE TABLE table_name_24 (draw INTEGER, televoting VARCHAR, jury VARCHAR)
SELECT SUM(draw) FROM table_name_24 WHERE televoting = 9 AND jury < 10
Show the names of all high schoolers in grade 10.
CREATE TABLE Highschooler (name VARCHAR, grade VARCHAR)
SELECT name FROM Highschooler WHERE grade = 10
When the venue was brunswick street oval what was the home teams score?
CREATE TABLE table_name_32 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_32 WHERE venue = "brunswick street oval"
What year has John Davies as the runner-up, with warren humphreys as the winner?
CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winner VARCHAR)
SELECT year FROM table_name_3 WHERE runner_up = "john davies" AND winner = "warren humphreys"
Which venue had the result 7-1?
CREATE TABLE table_name_50 (venue VARCHAR, result VARCHAR)
SELECT venue FROM table_name_50 WHERE result = "7-1"
How many lesson does customer with first name Ray took?
CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"
What is the Athlete from Burbank High School?
CREATE TABLE table_name_25 (athlete VARCHAR, school VARCHAR)
SELECT athlete FROM table_name_25 WHERE school = "burbank high school"
What is the area (km²) of Nairnshire county, which has a population less than 11,050?
CREATE TABLE table_name_34 (area__km²_ INTEGER, county VARCHAR, population VARCHAR)
SELECT SUM(area__km²_) FROM table_name_34 WHERE county = "nairnshire" AND population < 11 OFFSET 050
I want to know the tie for drawn of 47
CREATE TABLE table_name_46 (tied VARCHAR, drawn VARCHAR)
SELECT tied FROM table_name_46 WHERE drawn = "47"
When the country is austria germany and the rank is kept under 5, what's the average number of matches played?
CREATE TABLE table_name_91 (matches INTEGER, country VARCHAR, rank VARCHAR)
SELECT AVG(matches) FROM table_name_91 WHERE country = "austria germany" AND rank < 5
When was the game played at Lake Oval?
CREATE TABLE table_name_56 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_56 WHERE venue = "lake oval"
Who is the republican Incumbent for Pennsylvania 9?
CREATE TABLE table_name_10 (incumbent VARCHAR, party VARCHAR, district VARCHAR)
SELECT incumbent FROM table_name_10 WHERE party = "republican" AND district = "pennsylvania 9"
what is the date (from) where the notes are apeldoornsche tramweg-maatschappij?
CREATE TABLE table_12562214_1 (date__from_ VARCHAR, notes VARCHAR)
SELECT date__from_ FROM table_12562214_1 WHERE notes = "Apeldoornsche Tramweg-Maatschappij"
How many years did John Player Lotus used Cosworth v8?
CREATE TABLE table_name_3 (year INTEGER, engine VARCHAR, entrant VARCHAR)
SELECT SUM(year) FROM table_name_3 WHERE engine = "cosworth v8" AND entrant = "john player lotus"
Who was the developer of Call of Duty: Black Ops?
CREATE TABLE table_name_46 (developer_s_ VARCHAR, game VARCHAR)
SELECT developer_s_ FROM table_name_46 WHERE game = "call of duty: black ops"
What was relegated in the 2006 season?
CREATE TABLE table_name_48 (relegated VARCHAR, season VARCHAR)
SELECT relegated FROM table_name_48 WHERE season = "2006"
What is the date for the Operational Livery?
CREATE TABLE table_name_51 (date VARCHAR, livery VARCHAR)
SELECT date FROM table_name_51 WHERE livery = "operational"
Record of 20–4 involved what highest game?
CREATE TABLE table_name_44 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE record = "20–4"
What is the first broadcast date for episode 3x10?
CREATE TABLE table_19930660_3 (first_broadcast VARCHAR, episode VARCHAR)
SELECT first_broadcast FROM table_19930660_3 WHERE episode = "3x10"
How many opponents are there when cowboy points were 10?
CREATE TABLE table_22815265_1 (opponents VARCHAR, cowboys_points VARCHAR)
SELECT opponents FROM table_22815265_1 WHERE cowboys_points = 10
What was the outcome when darija jurak anaïs laurendon was the opponent?
CREATE TABLE table_name_34 (outcome VARCHAR, opponents VARCHAR)
SELECT outcome FROM table_name_34 WHERE opponents = "darija jurak anaïs laurendon"
Which Round has a College of tulsa, and a Pick larger than 61?
CREATE TABLE table_name_78 (round INTEGER, college VARCHAR, pick VARCHAR)
SELECT AVG(round) FROM table_name_78 WHERE college = "tulsa" AND pick > 61
Find the names of furnitures whose prices are lower than the highest price.
CREATE TABLE furniture_manufacte (Furniture_ID VARCHAR, Price_in_Dollar INTEGER); CREATE TABLE furniture (name VARCHAR, Furniture_ID VARCHAR); CREATE TABLE furniture_manufacte (Price_in_Dollar INTEGER)
SELECT t1.name FROM furniture AS t1 JOIN furniture_manufacte AS t2 ON t1.Furniture_ID = t2.Furniture_ID WHERE t2.Price_in_Dollar < (SELECT MAX(Price_in_Dollar) FROM furniture_manufacte)
When is the last week that has a result of a w 34-21?
CREATE TABLE table_name_10 (week INTEGER, result VARCHAR)
SELECT MAX(week) FROM table_name_10 WHERE result = "w 34-21"
List all church names in descending order of opening date.
CREATE TABLE church (name VARCHAR, open_date VARCHAR)
SELECT name FROM church ORDER BY open_date DESC
Who drove 53 laps?
CREATE TABLE table_name_66 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_66 WHERE laps = 53
What Tournament of canada happened in 1998?
CREATE TABLE table_name_97 (tournament VARCHAR)
SELECT 1998 FROM table_name_97 WHERE tournament = "canada"
How many times is the nation [[|]] (19)?
CREATE TABLE table_26677836_1 (against VARCHAR, nation VARCHAR)
SELECT COUNT(against) FROM table_26677836_1 WHERE nation = "[[|]] (19)"
What is the lowest Bronze with a Ranking of 22nd of 32 and Gold larger than 4?
CREATE TABLE table_name_2 (bronze INTEGER, ranking VARCHAR, gold VARCHAR)
SELECT MIN(bronze) FROM table_name_2 WHERE ranking = "22nd of 32" AND gold > 4
Who was the manufacturer in 1990?
CREATE TABLE table_2266976_1 (manufacturer VARCHAR, year VARCHAR)
SELECT manufacturer FROM table_2266976_1 WHERE year = "1990"
Tell me the title for japan august 23, 2012
CREATE TABLE table_name_30 (title VARCHAR, japan VARCHAR)
SELECT title FROM table_name_30 WHERE japan = "august 23, 2012"
What is Time, when Round is less than 2, and when Opponent is "Valentijn Overeem"?
CREATE TABLE table_name_22 (time VARCHAR, round VARCHAR, opponent VARCHAR)
SELECT time FROM table_name_22 WHERE round < 2 AND opponent = "valentijn overeem"
Who was the score composer of the film released in 1967?
CREATE TABLE table_name_5 (score_composer VARCHAR, year VARCHAR)
SELECT score_composer FROM table_name_5 WHERE year = 1967
What is the Award name with a Team name that is cougar robotics team?
CREATE TABLE table_name_53 (award_name VARCHAR, team_name VARCHAR)
SELECT award_name FROM table_name_53 WHERE team_name = "cougar robotics team"
What is the Name of the Players with a Rank of 18?
CREATE TABLE table_name_67 (name VARCHAR, rank VARCHAR)
SELECT name FROM table_name_67 WHERE rank = 18
How many values for earpads correspond to the headphone class Prestige and a US MSRP of $79?
CREATE TABLE table_1601027_1 (earpads VARCHAR, headphone_class VARCHAR, us_msrp VARCHAR)
SELECT COUNT(earpads) FROM table_1601027_1 WHERE headphone_class = "Prestige" AND us_msrp = "$79"
What position has colin scott as game 1?
CREATE TABLE table_name_62 (position VARCHAR, game_1 VARCHAR)
SELECT position FROM table_name_62 WHERE game_1 = "colin scott"
if the bbi is 4/39 what is the average
CREATE TABLE table_28798161_3 (average VARCHAR, bbi VARCHAR)
SELECT average FROM table_28798161_3 WHERE bbi = "4/39"
Can you tell me the Record that has the Visitor of vancouver?
CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_67 WHERE visitor = "vancouver"
How many countries has a gdp (nominal) of $29.9 billion?
CREATE TABLE table_11780179_1 (gdp_per_capita__nominal_ VARCHAR, gdp__nominal_ VARCHAR)
SELECT COUNT(gdp_per_capita__nominal_) FROM table_11780179_1 WHERE gdp__nominal_ = "$29.9 billion"
List the names of all songs that have 4 minute duration or are in English.
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (song_name VARCHAR, f_id VARCHAR); CREATE TABLE song (song_name VARCHAR, languages VARCHAR)
SELECT T2.song_name FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "4:%" UNION SELECT song_name FROM song WHERE languages = "english"
What country are the new orleans shell shockers from?
CREATE TABLE table_28005160_2 (country VARCHAR, sponsored_name VARCHAR)
SELECT country FROM table_28005160_2 WHERE sponsored_name = "New Orleans Shell Shockers"
Show the organizer and name for churches that opened between 1830 and 1840.
CREATE TABLE church (organized_by VARCHAR, name VARCHAR, open_date INTEGER)
SELECT organized_by, name FROM church WHERE open_date BETWEEN 1830 AND 1840
If the Plain stop is ㄷ, what is the Non- stop?
CREATE TABLE table_name_92 (non__stop VARCHAR, plain_stop VARCHAR)
SELECT non__stop FROM table_name_92 WHERE plain_stop = "ㄷ"
What is the high grid for ferrari's with 2 laps?
CREATE TABLE table_name_45 (grid INTEGER, constructor VARCHAR, laps VARCHAR)
SELECT MAX(grid) FROM table_name_45 WHERE constructor = "ferrari" AND laps = 2
What was the position for mauro at the world championships in 1985 during the foil individual event?
CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR, event VARCHAR, competition VARCHAR)
SELECT position FROM table_name_41 WHERE event = "foil individual" AND competition = "world championships" AND year = 1985
What is the frequency of the rail with an origin of Ranchi?
CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR)
SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi"
Which Venue is the one for the footscray Home team?
CREATE TABLE table_name_73 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_73 WHERE home_team = "footscray"
What is the highest diff with drawn of 6 and play larger than 18?
CREATE TABLE table_name_68 (diff INTEGER, drawn VARCHAR, played VARCHAR)
SELECT MAX(diff) FROM table_name_68 WHERE drawn = 6 AND played > 18
Who won on 28 May?
CREATE TABLE table_name_38 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_38 WHERE date = "28 may"
Who were the Opponents in the Match with Partner Rushmi Chakravarthi?
CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR)
SELECT opponents FROM table_name_80 WHERE partner = "rushmi chakravarthi"
What's the against of South Warrnambool when the draw is less than 0?
CREATE TABLE table_name_31 (against INTEGER, club VARCHAR, draws VARCHAR)
SELECT SUM(against) FROM table_name_31 WHERE club = "south warrnambool" AND draws < 0
What is the record of the game played on 2/17/1974?
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_55 WHERE date = "2/17/1974"
What was the D segment for episode 60?
CREATE TABLE table_name_25 (segment_d VARCHAR, episode VARCHAR)
SELECT segment_d FROM table_name_25 WHERE episode = 60
WHo is Winning driver that is in st. petersburg - moscow?
CREATE TABLE table_name_73 (winning_driver VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_73 WHERE name = "st. petersburg - moscow"
Which game at Arden Street Oval had the lowest attendance?
CREATE TABLE table_name_96 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_96 WHERE venue = "arden street oval"
What is the average Total, when Nation is Soviet Union, and when Gold is greater than 9?
CREATE TABLE table_name_33 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_33 WHERE nation = "soviet union" AND gold > 9
What is the average year that the club located in enfield was founded with an unknown coach?
CREATE TABLE table_name_87 (founded INTEGER, coach VARCHAR, location VARCHAR)
SELECT AVG(founded) FROM table_name_87 WHERE coach = "unknown" AND location = "enfield"
What is the goals against listed when the goals scored is 30?
CREATE TABLE table_28848697_4 (goals_against VARCHAR, goals_scored VARCHAR)
SELECT goals_against FROM table_28848697_4 WHERE goals_scored = 30
How long was the instrumental version in 1986?
CREATE TABLE table_name_74 (length VARCHAR, year VARCHAR, version VARCHAR)
SELECT length FROM table_name_74 WHERE year = 1986 AND version = "instrumental"
What is the rate limit when the desired rate (p) is 162?
CREATE TABLE table_25316812_1 (rate_limit__p_ VARCHAR, desired_rate__p_ VARCHAR)
SELECT rate_limit__p_ FROM table_25316812_1 WHERE desired_rate__p_ = "162"
Return all the apartment numbers sorted by the room count in ascending order.
CREATE TABLE Apartments (apt_number VARCHAR, room_count VARCHAR)
SELECT apt_number FROM Apartments ORDER BY room_count
In what week was the Result L 35-10?
CREATE TABLE table_name_76 (week INTEGER, result VARCHAR)
SELECT MIN(week) FROM table_name_76 WHERE result = "l 35-10"
Tell me the date for goal of 5
CREATE TABLE table_name_17 (date VARCHAR, goal VARCHAR)
SELECT date FROM table_name_17 WHERE goal = 5
What is the total for miguel induráin with a Vuelta larger than 1?
CREATE TABLE table_name_33 (total INTEGER, name VARCHAR, vuelta VARCHAR)
SELECT MIN(total) FROM table_name_33 WHERE name = "miguel induráin" AND vuelta > 1
What is the total number with Nov 2012 with a Jun 2013 larger than 542, and a Aug 2011 more than 935?
CREATE TABLE table_name_19 (nov_2012 VARCHAR, jun_2013 VARCHAR, aug_2011 VARCHAR)
SELECT COUNT(nov_2012) FROM table_name_19 WHERE jun_2013 > 542 AND aug_2011 > 935
What is the year that nahete colles was named?
CREATE TABLE table_name_1 (year_named INTEGER, name VARCHAR)
SELECT MAX(year_named) FROM table_name_1 WHERE name = "nahete colles"
What is the largest number for karianne gulliksen?
CREATE TABLE table_28677723_5 (karianne_gulliksen INTEGER)
SELECT MAX(karianne_gulliksen) FROM table_28677723_5
When was there a match in Centurion Park?
CREATE TABLE table_name_49 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_49 WHERE venue = "centurion park"
Which week has the lowest attendance of 48,102?
CREATE TABLE table_name_4 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_4 WHERE attendance = 48 OFFSET 102
Who is the shooter that is the Defending Champion?
CREATE TABLE table_name_63 (shooter VARCHAR, total VARCHAR)
SELECT shooter FROM table_name_63 WHERE total = "defending champion"
How many names have a country of civ?
CREATE TABLE table_22810095_8 (COUnT VARCHAR, country VARCHAR)
SELECT COUnT AS name FROM table_22810095_8 WHERE country = "CIV"
Find the names of customers who ordered both products Latte and Americano.
CREATE TABLE products (product_id VARCHAR, product_details VARCHAR); CREATE TABLE order_items (order_id VARCHAR, product_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE customer_orders (customer_id VARCHAR, order_id VARCHAR)
SELECT t1.customer_name FROM customers AS t1 JOIN customer_orders AS t2 ON t1.customer_id = t2.customer_id JOIN order_items AS t3 ON t2.order_id = t3.order_id JOIN products AS t4 ON t3.product_id = t4.product_id WHERE t4.product_details = 'Latte' INTERSECT SELECT t1.customer_name FROM customers AS t1 JOIN customer_orde...
Who was the player in round 1?
CREATE TABLE table_name_55 (player VARCHAR, round VARCHAR)
SELECT player FROM table_name_55 WHERE round = 1
What was the total score for january 18?
CREATE TABLE table_22883210_7 (score VARCHAR, date VARCHAR)
SELECT COUNT(score) FROM table_22883210_7 WHERE date = "January 18"
What is the chassis for Bruce Mclaren with all rounds and a g tyre?
CREATE TABLE table_name_93 (chassis VARCHAR, driver VARCHAR, rounds VARCHAR, tyre VARCHAR)
SELECT chassis FROM table_name_93 WHERE rounds = "all" AND tyre = "g" AND driver = "bruce mclaren"
What stadium has a final score of 26–21?
CREATE TABLE table_name_8 (stadium VARCHAR, final_score VARCHAR)
SELECT stadium FROM table_name_8 WHERE final_score = "26–21"
Name the location for black, orange
CREATE TABLE table_26466528_1 (location VARCHAR, colors VARCHAR)
SELECT location FROM table_26466528_1 WHERE colors = "Black, Orange"
What is the plural if the singular is nyaqot?
CREATE TABLE table_name_47 (plural VARCHAR, singular VARCHAR)
SELECT plural FROM table_name_47 WHERE singular = "nyaqot"
what is the school for Ivey armstrong?
CREATE TABLE table_name_90 (school VARCHAR, name VARCHAR)
SELECT school FROM table_name_90 WHERE name = "ivey armstrong"
What's the mascot in Anderson for the Independent previous conference?
CREATE TABLE table_name_74 (mascot VARCHAR, previous_conference VARCHAR, location VARCHAR)
SELECT mascot FROM table_name_74 WHERE previous_conference = "independent" AND location = "anderson"
What is the age group for figure skating?
CREATE TABLE table_name_40 (age_groups VARCHAR, sport VARCHAR)
SELECT age_groups FROM table_name_40 WHERE sport = "figure skating"
Where did they play in week 14?
CREATE TABLE table_name_57 (game_site VARCHAR, week VARCHAR)
SELECT game_site FROM table_name_57 WHERE week = "14"
How many tie no have team 1 as borac banja luka?
CREATE TABLE table_19294812_2 (tie_no VARCHAR, team_1 VARCHAR)
SELECT tie_no FROM table_19294812_2 WHERE team_1 = "Borac Banja Luka"