answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT high_assists FROM table_11959669_3 WHERE date = "November 4"
Who had the highest assists on November 4
CREATE TABLE table_11959669_3 (high_assists VARCHAR, date VARCHAR)
SELECT player FROM table_name_74 WHERE long = "5" AND yards = "6"
Which Player had a Long of 5 and Yards of 6?
CREATE TABLE table_name_74 (player VARCHAR, long VARCHAR, yards VARCHAR)
SELECT country FROM table_name_61 WHERE place = "t10" AND player = "jay haas"
What country is player jay haas, who is in t10 place, from?
CREATE TABLE table_name_61 (country VARCHAR, place VARCHAR, player VARCHAR)
SELECT institution FROM table_15438337_1 WHERE country = "London, United Kingdom"
Which company was based in London, United Kingdom?
CREATE TABLE table_15438337_1 (institution VARCHAR, country VARCHAR)
SELECT team FROM table_name_48 WHERE competition = "victorian football league"
Tell me the team for victorian football league
CREATE TABLE table_name_48 (team VARCHAR, competition VARCHAR)
SELECT chassis FROM table_name_7 WHERE year = 1951
What chassis has a year of 1951?
CREATE TABLE table_name_7 (chassis VARCHAR, year VARCHAR)
SELECT city FROM table_name_79 WHERE club = "braga"
What City is the Club braga in?
CREATE TABLE table_name_79 (city VARCHAR, club VARCHAR)
SELECT role_description FROM ROLES WHERE role_code = (SELECT role_code FROM users WHERE user_login = 1 GROUP BY role_code ORDER BY COUNT(*) DESC LIMIT 1)
Find the description of the most popular role among the users that have logged in.
CREATE TABLE users (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR); CREATE TABLE ROLES (role_description VARCHAR, role_code VARCHAR, user_login VARCHAR)
SELECT score FROM table_name_91 WHERE home = "washington capitols" AND date = "november 23, 1946"
What is the Score on November 23, 1946 with Washington Capitols Home team?
CREATE TABLE table_name_91 (score VARCHAR, home VARCHAR, date VARCHAR)
SELECT MIN(year_left) FROM table_name_73 WHERE location = "fowler"
When was the first year when Fowler joined?
CREATE TABLE table_name_73 (year_left INTEGER, location VARCHAR)
SELECT MIN(wins) FROM table_name_94 WHERE points = 28 AND year < 1972
Name the lowest Wins which has Points of 28, and a Year smaller than 1972?
CREATE TABLE table_name_94 (wins INTEGER, points VARCHAR, year VARCHAR)
SELECT LNER AS class FROM table_name_86 WHERE class = "3"
What LNER Class has a Class of 3?
CREATE TABLE table_name_86 (LNER VARCHAR, class VARCHAR)
SELECT player FROM table_name_47 WHERE to_par = "–7"
What is the Player that has a To standard of –7?
CREATE TABLE table_name_47 (player VARCHAR, to_par VARCHAR)
SELECT SUM(win__percentage) FROM table_name_55 WHERE drawn > 35
Tell me the sum of win % for drawn being larger than 35
CREATE TABLE table_name_55 (win__percentage INTEGER, drawn INTEGER)
SELECT COUNT(channel) FROM table_2638104_1 WHERE broadcast_area = "Greater Tokyo"
How many channels are there in the Greater Tokyo area?
CREATE TABLE table_2638104_1 (channel VARCHAR, broadcast_area VARCHAR)
SELECT score FROM table_name_58 WHERE tie_no = "6"
What is the score when the tie number is 6?
CREATE TABLE table_name_58 (score VARCHAR, tie_no VARCHAR)
SELECT grand_prix FROM table_name_24 WHERE fastest_lap = "gerhard berger" AND pole_position = "jacques villeneuve"
Which grand prix had gerhard berger in his fastest lap and a jacques villeneuve pole position?
CREATE TABLE table_name_24 (grand_prix VARCHAR, fastest_lap VARCHAR, pole_position VARCHAR)
SELECT set_1 FROM table_name_12 WHERE set_2 = "25-19"
What is the Set 1 with a Set 2 that is 25-19?
CREATE TABLE table_name_12 (set_1 VARCHAR, set_2 VARCHAR)
SELECT tournament FROM table_name_3 WHERE date = "jun 17, 1973"
What was the name of the tournament played on Jun 17, 1973?
CREATE TABLE table_name_3 (tournament VARCHAR, date VARCHAR)
SELECT SUM(Population) FROM country WHERE NOT Name IN (SELECT T1.Name FROM country AS T1 JOIN countrylanguage AS T2 ON T1.Code = T2.CountryCode WHERE T2.Language = "English")
What is the total number of people living in the nations that do not use English?
CREATE TABLE country (Name VARCHAR, Code VARCHAR); CREATE TABLE countrylanguage (CountryCode VARCHAR, Language VARCHAR); CREATE TABLE country (Population INTEGER, Name VARCHAR)
SELECT T1.Customer_Event_ID, T1.property_id FROM Customer_Events AS T1 JOIN Customer_Event_Notes AS T2 ON T1.Customer_Event_ID = T2.Customer_Event_ID GROUP BY T1.customer_event_id HAVING COUNT(*) BETWEEN 1 AND 3
Which events have the number of notes between one and three? List the event id and the property id.
CREATE TABLE Customer_Events (Customer_Event_ID VARCHAR, property_id VARCHAR, customer_event_id VARCHAR); CREATE TABLE Customer_Event_Notes (Customer_Event_ID VARCHAR)
SELECT MAX(year) FROM table_name_22 WHERE pts > 0
What is the latesr year that has more points than 0?
CREATE TABLE table_name_22 (year INTEGER, pts INTEGER)
SELECT fastest_lap FROM table_name_82 WHERE location = "estoril"
What is the fastest lap at estoril?
CREATE TABLE table_name_82 (fastest_lap VARCHAR, location VARCHAR)
SELECT team FROM table_name_54 WHERE rounds = "all" AND engine = "mercedes hwa" AND driver = "sam abay"
what is the team when the rounds is all engine is mercedes hwa and driver is sam abay?
CREATE TABLE table_name_54 (team VARCHAR, driver VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT MIN(bronze) FROM table_name_53 WHERE gold < 0
What is the bronze number for the nation with less than 0 gold?
CREATE TABLE table_name_53 (bronze INTEGER, gold INTEGER)
SELECT player FROM table_name_31 WHERE total < 4 AND scottish_cup = 0 AND league_cup > 0
Who is the player who has a total less than 4, no scottish cups, and a league cup greater than 0?
CREATE TABLE table_name_31 (player VARCHAR, league_cup VARCHAR, total VARCHAR, scottish_cup VARCHAR)
SELECT result FROM table_name_11 WHERE round = "final"
The round that had the final, what was the result?
CREATE TABLE table_name_11 (result VARCHAR, round VARCHAR)
SELECT opponent FROM table_name_40 WHERE result = "w 19–10"
Which Opponent has a Result of w 19–10?
CREATE TABLE table_name_40 (opponent VARCHAR, result VARCHAR)
SELECT title FROM table_2828803_1 WHERE directed_by = "Dennis Smith"
What is the name of the episode that was directed by Dennis Smith?
CREATE TABLE table_2828803_1 (title VARCHAR, directed_by VARCHAR)
SELECT location FROM table_name_15 WHERE opponent = "lyoto machida"
What's the location when the opponent was Lyoto Machida?
CREATE TABLE table_name_15 (location VARCHAR, opponent VARCHAR)
SELECT COUNT(*) FROM customers
Find the number of customers in total.
CREATE TABLE customers (Id VARCHAR)
SELECT T1.FirstName, T1.SupportRepId FROM CUSTOMER AS T1 JOIN EMPLOYEE AS T2 ON T1.SupportRepId = T2.EmployeeId GROUP BY T1.SupportRepId HAVING COUNT(*) >= 10
Please show the employee first names and ids of employees who serve at least 10 customers.
CREATE TABLE CUSTOMER (FirstName VARCHAR, SupportRepId VARCHAR); CREATE TABLE EMPLOYEE (EmployeeId VARCHAR)
SELECT championship FROM table_name_81 WHERE opponent_in_the_final = "francesca schiavone"
What championship had Francesca Schiavone in the finals?
CREATE TABLE table_name_81 (championship VARCHAR, opponent_in_the_final VARCHAR)
SELECT country FROM table_name_97 WHERE rank = 2
What Country is in Rank 2?
CREATE TABLE table_name_97 (country VARCHAR, rank VARCHAR)
SELECT COUNT(subject) FROM table_1216675_1 WHERE pinyin = "Shixun"
How many subjects have the pinyin shixun?
CREATE TABLE table_1216675_1 (subject VARCHAR, pinyin VARCHAR)
SELECT record FROM table_name_14 WHERE date = "april 13"
What is the Record for April 13?
CREATE TABLE table_name_14 (record VARCHAR, date VARCHAR)
SELECT latitude FROM table_name_7 WHERE longitude = "147.1w"
What is the latitude of the point with a longitude of 147.1w?
CREATE TABLE table_name_7 (latitude VARCHAR, longitude VARCHAR)
SELECT team FROM table_27091128_2 WHERE replaced_by = "Ercan Ertemçöz"
What team's manager was replaced by Ercan Ertemçöz?
CREATE TABLE table_27091128_2 (team VARCHAR, replaced_by VARCHAR)
SELECT 2003 AS _result FROM table_name_97 WHERE council = "falkirk"
What's the 2003 result for the falkirk council?
CREATE TABLE table_name_97 (council VARCHAR)
SELECT COUNT(attendance) FROM table_name_39 WHERE record = "86-56"
How many people attended the game with a record of 86-56
CREATE TABLE table_name_39 (attendance VARCHAR, record VARCHAR)
SELECT MAX(per_lift) FROM table_13950065_1
how heavy is the maximum
CREATE TABLE table_13950065_1 (per_lift INTEGER)
SELECT COUNT(lane) FROM table_name_88 WHERE heat = 1 AND nationality = "uzbekistan"
What is the Lane of the swimmer from Uzbekistan in Heat 1?
CREATE TABLE table_name_88 (lane VARCHAR, heat VARCHAR, nationality VARCHAR)
SELECT score FROM table_name_26 WHERE date = "may 9"
What score has may 9 as the date?
CREATE TABLE table_name_26 (score VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_80 WHERE week > 4 AND date = "december 6, 1992"
What is the attendance in a week larter than 4, on December 6, 1992?
CREATE TABLE table_name_80 (attendance VARCHAR, week VARCHAR, date VARCHAR)
SELECT member FROM table_name_64 WHERE state = "nsw" AND first_elected = "1952" AND party = "alp"
Which memeber has nsw as the state, a first elected of 1952, and alp as the party?
CREATE TABLE table_name_64 (member VARCHAR, party VARCHAR, state VARCHAR, first_elected VARCHAR)
SELECT company_name FROM table_237199_1 WHERE world_headquarters = "Nagaokakyo, Kyoto"
Which company name has headquarters in nagaokakyo, kyoto?
CREATE TABLE table_237199_1 (company_name VARCHAR, world_headquarters VARCHAR)
SELECT t1.attribute_name, t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id = t2.attribute_id WHERE t2.attribute_value = 0
Find the name and attribute ID of the attribute definitions with attribute value 0.
CREATE TABLE Catalog_Contents_Additional_Attributes (attribute_id VARCHAR, attribute_value VARCHAR); CREATE TABLE Attribute_Definitions (attribute_name VARCHAR, attribute_id VARCHAR)
SELECT T2.Name, T1.Company FROM entrepreneur AS T1 JOIN people AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Money_Requested
List the names of entrepreneurs and their companies in descending order of money requested?
CREATE TABLE entrepreneur (Company VARCHAR, People_ID VARCHAR, Money_Requested VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT points_difference FROM table_name_96 WHERE points_against = "451"
What is Points Difference, when Points Against is 451?
CREATE TABLE table_name_96 (points_difference VARCHAR, points_against VARCHAR)
SELECT institution FROM table_13759592_2 WHERE founded = 1923
Which institution was founded in 1923?
CREATE TABLE table_13759592_2 (institution VARCHAR, founded VARCHAR)
SELECT date FROM table_name_66 WHERE round = "second round"
What is the date of the second round?
CREATE TABLE table_name_66 (date VARCHAR, round VARCHAR)
SELECT AVG(overall) FROM table_name_26 WHERE pick__number < 15
What is the overall pick average with the pick # lower than 15?
CREATE TABLE table_name_26 (overall INTEGER, pick__number INTEGER)
SELECT SUM(silver) FROM table_name_50 WHERE bronze > 3 AND gold = 16
How many Silver medals were won in total by all those with more than 3 bronze and exactly 16 gold?
CREATE TABLE table_name_50 (silver INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT away_team FROM table_name_46 WHERE score = "1–1" AND home_team = "merthyr tydfil"
What is the Away team of the Merthyr Tydfil Home game with a Score of 1–1?
CREATE TABLE table_name_46 (away_team VARCHAR, score VARCHAR, home_team VARCHAR)
SELECT record FROM table_name_30 WHERE attendance = "28,135"
What is the record of the game with 28,135 people in attendance?
CREATE TABLE table_name_30 (record VARCHAR, attendance VARCHAR)
SELECT SUM(games) FROM table_name_23 WHERE goals = 22 AND debut_year < 1935
How many games had 22 goals before 1935?
CREATE TABLE table_name_23 (games INTEGER, goals VARCHAR, debut_year VARCHAR)
SELECT won FROM table_21489362_2 WHERE rr1_pts = 3
When 3 is the rr1 points what is won score?
CREATE TABLE table_21489362_2 (won VARCHAR, rr1_pts VARCHAR)
SELECT SUM(points) FROM table_name_14 WHERE games > 68 AND tied = "4" AND goals_against > 272
How many points did the team with more than 68 games, 4 ties, and more than 272 goals against have?
CREATE TABLE table_name_14 (points INTEGER, goals_against VARCHAR, games VARCHAR, tied VARCHAR)
SELECT winning_team FROM table_25572118_1 WHERE series = "FR2.0 9"
When fr2.0 9 is the series who is the winning team?
CREATE TABLE table_25572118_1 (winning_team VARCHAR, series VARCHAR)
SELECT median_family_income FROM table_name_76 WHERE median_household_income = "$50,717"
What is Median Family Income, when Median Household Income is "$50,717"?
CREATE TABLE table_name_76 (median_family_income VARCHAR, median_household_income VARCHAR)
SELECT location_attendance FROM table_23281862_5 WHERE team = "Memphis"
Name the location attendance for memphis
CREATE TABLE table_23281862_5 (location_attendance VARCHAR, team VARCHAR)
SELECT MIN(image) FROM table_name_51 WHERE harrison = "20w" AND ashmolean < 20
What is the lowest image with a 20w Harrison, and less than 20 for Ashmolean?
CREATE TABLE table_name_51 (image INTEGER, harrison VARCHAR, ashmolean VARCHAR)
SELECT abbreviation FROM table_name_88 WHERE country = "libya"
What's the abbreviation for libya?
CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR)
SELECT COUNT(*) FROM branch WHERE membership_amount > (SELECT AVG(membership_amount) FROM branch)
How many branches where have more than average number of memberships are there?
CREATE TABLE branch (membership_amount INTEGER)
SELECT length__female_ FROM table_name_15 WHERE common_name = "panther chameleon"
What is the length of the Panther Chameleon?
CREATE TABLE table_name_15 (length__female_ VARCHAR, common_name VARCHAR)
SELECT MIN(overall) FROM table_name_50 WHERE pick = 20
what is the lowest overall when the pick is 20?
CREATE TABLE table_name_50 (overall INTEGER, pick VARCHAR)
SELECT position FROM table_name_80 WHERE date_of_birth__age_ = "2 november 1987"
Name the position for the player born 2 november 1987
CREATE TABLE table_name_80 (position VARCHAR, date_of_birth__age_ VARCHAR)
SELECT score FROM table_name_44 WHERE player = "mark o'meara"
What is Mark O'Meara's Score?
CREATE TABLE table_name_44 (score VARCHAR, player VARCHAR)
SELECT wrestler FROM table_name_3 WHERE team = "team batista" AND eliminated_by = "orton" AND elimination = "8"
Which Wrestler plays for Team Batista which was Elimated by Orton on Elimination 8?
CREATE TABLE table_name_3 (wrestler VARCHAR, elimination VARCHAR, team VARCHAR, eliminated_by VARCHAR)
SELECT MIN(prominence__m_) FROM table_name_87 WHERE elevation__m_ = 3 OFFSET 615
What is the lowest prominence for a peak with elevation of 3,615 meters?
CREATE TABLE table_name_87 (prominence__m_ INTEGER, elevation__m_ VARCHAR)
SELECT DISTINCT (UnitPrice) FROM TRACK
What are the distinct unit prices of all tracks?
CREATE TABLE TRACK (UnitPrice VARCHAR)
SELECT country FROM table_name_52 WHERE player = "jeff sluman"
What country does Jeff Sluman play for?
CREATE TABLE table_name_52 (country VARCHAR, player VARCHAR)
SELECT new_returning_same_network FROM table_name_35 WHERE returning = "april 3" AND show = "shop 'til you drop"
Which network returns april 3, and a Show of shop 'til you drop?
CREATE TABLE table_name_35 (new_returning_same_network VARCHAR, returning VARCHAR, show VARCHAR)
SELECT player FROM table_name_61 WHERE tries = 23
What Player has 23 Tries?
CREATE TABLE table_name_61 (player VARCHAR, tries VARCHAR)
SELECT high_rebounds FROM table_name_4 WHERE high_assists = "deron williams (5)"
Who had the high rebounds of the game that Deron Williams (5) had the high assists?
CREATE TABLE table_name_4 (high_rebounds VARCHAR, high_assists VARCHAR)
SELECT league FROM table_name_48 WHERE date = "5 october 1997"
What is the league on 5 October 1997?
CREATE TABLE table_name_48 (league VARCHAR, date VARCHAR)
SELECT MIN(episode) FROM table_15187735_20 WHERE segment_a = "Thinning Shears"
What episode number is the episode with a segment on thinning shears?
CREATE TABLE table_15187735_20 (episode INTEGER, segment_a VARCHAR)
SELECT AVG(pick) FROM table_name_26 WHERE year = 1983
What is the average pick in 1983?
CREATE TABLE table_name_26 (pick INTEGER, year VARCHAR)
SELECT home_team AS score FROM table_name_49 WHERE away_team = "north melbourne"
What is the home team score when north Melbourne was the away team?
CREATE TABLE table_name_49 (home_team VARCHAR, away_team VARCHAR)
SELECT 2 AS nd_leg FROM table_name_72 WHERE team_2 = "milano"
What is the 2nd leg for the team 2 Milano?
CREATE TABLE table_name_72 (team_2 VARCHAR)
SELECT loss FROM table_name_10 WHERE opponent = "angels"
Name the loss for the angels opponent
CREATE TABLE table_name_10 (loss VARCHAR, opponent VARCHAR)
SELECT to_par FROM table_name_12 WHERE player = "fuzzy zoeller"
What is fuzzy zoeller's to par?
CREATE TABLE table_name_12 (to_par VARCHAR, player VARCHAR)
SELECT margin_of_victory FROM table_name_84 WHERE tournament = "southwest golf classic"
What was the Margin of victory in the southwest golf classic Tournament?
CREATE TABLE table_name_84 (margin_of_victory VARCHAR, tournament VARCHAR)
SELECT driver FROM table_name_64 WHERE laps < 65 AND team = "sigma autosport"
Which driver had less than 65 laps for Sigma Autosport?
CREATE TABLE table_name_64 (driver VARCHAR, laps VARCHAR, team VARCHAR)
SELECT senior__4th_year_ FROM table_13967239_2 WHERE sophomore__grade_8_ = "Intermediate Algebra"
What is after intermediate algebra
CREATE TABLE table_13967239_2 (senior__4th_year_ VARCHAR, sophomore__grade_8_ VARCHAR)
SELECT date FROM table_name_63 WHERE crowd > 23 OFFSET 000
When was there a crowd larger than 23,000?
CREATE TABLE table_name_63 (date VARCHAR, crowd INTEGER)
SELECT SUM(pick__number) FROM table_name_74 WHERE position = "lb" AND cfl_team = "winnipeg"
Name the Pick # which has a Position of lb, and a CFL Team of winnipeg?
CREATE TABLE table_name_74 (pick__number INTEGER, position VARCHAR, cfl_team VARCHAR)
SELECT defective_year FROM table_28985631_1 WHERE numbered_month = "Eighth"
What is the defective year for the eighth numbered month?
CREATE TABLE table_28985631_1 (defective_year VARCHAR, numbered_month VARCHAR)
SELECT saturday FROM table_name_80 WHERE sunday = "yes" AND evening = "yes"
Which Saturday has a Sunday of yes and a Evening of yes?
CREATE TABLE table_name_80 (saturday VARCHAR, sunday VARCHAR, evening VARCHAR)
SELECT date_of_vacancy FROM table_11713303_2 WHERE date_of_appointment = "10 December 2007" AND manner_of_departure = "Quit"
What is the date of vacancy for 10 december 2007 when quit?
CREATE TABLE table_11713303_2 (date_of_vacancy VARCHAR, date_of_appointment VARCHAR, manner_of_departure VARCHAR)
SELECT at_columbia FROM table_16201038_5 WHERE overall_record = "MU, 3-1"
What is the record at Columbia for the team overall record of MU, 3-1?
CREATE TABLE table_16201038_5 (at_columbia VARCHAR, overall_record VARCHAR)
SELECT pens FROM table_name_17 WHERE draw = "0" AND player = "sione mafi pahulu"
What pens have a draw of 0 when the player is sione mafi pahulu?
CREATE TABLE table_name_17 (pens VARCHAR, draw VARCHAR, player VARCHAR)
SELECT final_score FROM table_name_26 WHERE stadium = "robert f. kennedy memorial stadium"
What was the final score in Robert F. Kennedy Memorial Stadium?
CREATE TABLE table_name_26 (final_score VARCHAR, stadium VARCHAR)
SELECT result FROM table_name_52 WHERE week > 5 AND opponent = "st. louis rams"
What is the result of the game after week 5 against the st. louis rams?
CREATE TABLE table_name_52 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_76 WHERE goal = 24
On what date did Goal 24 take place?
CREATE TABLE table_name_76 (date VARCHAR, goal VARCHAR)
SELECT LOCATION FROM shop WHERE Open_Year > 2012 INTERSECT SELECT LOCATION FROM shop WHERE Open_Year < 2008
Show the locations shared by shops with open year later than 2012 and shops with open year before 2008.
CREATE TABLE shop (LOCATION VARCHAR, Open_Year INTEGER)
SELECT SUM(cup_goals) FROM table_name_78 WHERE league_apps > 5 AND cup_apps = 1 AND league_goals < 4
How many cup goals in the season with more than 5 league apps, 1 cup apps and fewer than 4 league goals?
CREATE TABLE table_name_78 (cup_goals INTEGER, league_goals VARCHAR, league_apps VARCHAR, cup_apps VARCHAR)
SELECT MAX(points) FROM table_name_62 WHERE drawn = 0 AND games > 5
Drawn of 0, and a Games larger than 5 has what amount of highest points?
CREATE TABLE table_name_62 (points INTEGER, drawn VARCHAR, games VARCHAR)
SELECT driver FROM table_name_22 WHERE laps > 9 AND grid = 7
What driver raced for more than 9 laps on grid 7?
CREATE TABLE table_name_22 (driver VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT MAX(pole) FROM table_name_88 WHERE class = "125 cc" AND wchmp > 1
What is the highest pole for class 125 cc and a WChmp more than 1?
CREATE TABLE table_name_88 (pole INTEGER, class VARCHAR, wchmp VARCHAR)