question
stringlengths 12
243
| answer
stringlengths 18
557
| context
stringlengths 27
489
|
---|---|---|
If the episode was directed by Michael Offer, how many US Viewers watched it? | SELECT us_viewers__in_millions_ FROM table_25084227_1 WHERE directed_by = "Michael Offer" | CREATE TABLE table_25084227_1 (us_viewers__in_millions_ VARCHAR, directed_by VARCHAR) |
What song has a draw more than 4 in 1st place? | SELECT song FROM table_name_65 WHERE draw > 4 AND place = "1st" | CREATE TABLE table_name_65 (song VARCHAR, draw VARCHAR, place VARCHAR) |
Which club has 565 points? | SELECT club FROM table_13758945_1 WHERE points_for = "565" | CREATE TABLE table_13758945_1 (club VARCHAR, points_for VARCHAR) |
What is the Kashmiri word for the Indonesian word senin? | SELECT kashmiri FROM table_name_90 WHERE indonesian = "senin" | CREATE TABLE table_name_90 (kashmiri VARCHAR, indonesian VARCHAR) |
What team placed second during the season where Western Australia placed fifth, South Australia placed sixth, and Tasmania placed fourth? | SELECT second FROM table_name_2 WHERE fifth = "western australia" AND sixth = "south australia" AND fourth = "tasmania" | CREATE TABLE table_name_2 (second VARCHAR, fourth VARCHAR, fifth VARCHAR, sixth VARCHAR) |
What was the score for the game that had an end result of 5-2? | SELECT score FROM table_name_68 WHERE result = "5-2" | CREATE TABLE table_name_68 (score VARCHAR, result VARCHAR) |
Who constructed the I Italian Republic Grand Prix? | SELECT constructor FROM table_1140088_6 WHERE race_name = "I Italian Republic Grand Prix" | CREATE TABLE table_1140088_6 (constructor VARCHAR, race_name VARCHAR) |
Which club has a try bonus of 9 and 43 tries against? | SELECT club FROM table_name_38 WHERE tries_against = "43" AND try_bonus = "9" | CREATE TABLE table_name_38 (club VARCHAR, tries_against VARCHAR, try_bonus VARCHAR) |
Which race had a distance of 4 miles where the runner-up was not known? | SELECT race_name FROM table_name_22 WHERE dist__miles_ = "4" AND runner_up = "not known" | CREATE TABLE table_name_22 (race_name VARCHAR, dist__miles_ VARCHAR, runner_up VARCHAR) |
Who was the winning driver in the race that was 3:04:09 long? | SELECT driver FROM table_2266762_1 WHERE race_time = "3:04:09" | CREATE TABLE table_2266762_1 (driver VARCHAR, race_time VARCHAR) |
What is Runner(s)-Up when Margin of Victory is 6 Strokes? | SELECT runner_s__up FROM table_name_87 WHERE margin_of_victory = "6 strokes" | CREATE TABLE table_name_87 (runner_s__up VARCHAR, margin_of_victory VARCHAR) |
What is the lowest draw with rank 4? | SELECT MIN(draw) FROM table_name_94 WHERE rank = 4 | CREATE TABLE table_name_94 (draw INTEGER, rank VARCHAR) |
At what latitude can the name origin of yuzut-arkh fossae be found? | SELECT latitude FROM table_16799784_11 WHERE name = "Yuzut-Arkh Fossae" | CREATE TABLE table_16799784_11 (latitude VARCHAR, name VARCHAR) |
What is the name of the home captain when the result was Aus by 32 runs? | SELECT home_captain FROM table_name_55 WHERE result = "aus by 32 runs" | CREATE TABLE table_name_55 (home_captain VARCHAR, result VARCHAR) |
Which music is jive? | SELECT music FROM table_name_20 WHERE style = "jive" | CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR) |
What's the date when Stu Harris was the Runner-up? | SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris" | CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR) |
Name the average points for dallara 3087 lola t88/50 and year before 1988 | SELECT AVG(points) FROM table_name_63 WHERE chassis = "dallara 3087 lola t88/50" AND year < 1988 | CREATE TABLE table_name_63 (points INTEGER, chassis VARCHAR, year VARCHAR) |
What is the type where the country is esp? | SELECT type FROM table_11891841_2 WHERE country = "ESp" | CREATE TABLE table_11891841_2 (type VARCHAR, country VARCHAR) |
Which date has china as the venue? | SELECT date FROM table_name_25 WHERE venue = "china" | CREATE TABLE table_name_25 (date VARCHAR, venue VARCHAR) |
Name the outgoing manager for 10 june 2009 | SELECT COUNT(outgoing_manager) FROM table_22848931_3 WHERE date_of_vacancy = "10 June 2009" | CREATE TABLE table_22848931_3 (outgoing_manager VARCHAR, date_of_vacancy VARCHAR) |
what is the name of the episode when the production code is 11.01? | SELECT title FROM table_2226817_12 WHERE production_code = "11.01" | CREATE TABLE table_2226817_12 (title VARCHAR, production_code VARCHAR) |
What is the date of the game where South Melbourne was the away team? | SELECT date FROM table_name_58 WHERE away_team = "south melbourne" | CREATE TABLE table_name_58 (date VARCHAR, away_team VARCHAR) |
What is the highest position of the Bangor City team? | SELECT MAX(position) FROM table_17366952_1 WHERE team = "Bangor City" | CREATE TABLE table_17366952_1 (position INTEGER, team VARCHAR) |
Which district is republican? | SELECT district FROM table_1341663_44 WHERE party = "Republican" | CREATE TABLE table_1341663_44 (district VARCHAR, party VARCHAR) |
Can you tell me the Years that has the Name of arapohue school? | SELECT years FROM table_name_70 WHERE name = "arapohue school" | CREATE TABLE table_name_70 (years VARCHAR, name VARCHAR) |
Which Week has an Opponent of pittsburgh steelers, and an Attendance larger than 47,727? | SELECT MIN(week) FROM table_name_69 WHERE opponent = "pittsburgh steelers" AND attendance > 47 OFFSET 727 | CREATE TABLE table_name_69 (week INTEGER, opponent VARCHAR, attendance VARCHAR) |
Show name and salary for all employees sorted by salary. | SELECT name, salary FROM Employee ORDER BY salary | CREATE TABLE Employee (name VARCHAR, salary VARCHAR) |
Who was the visiting team on November 10? | SELECT visiting_team FROM table_name_28 WHERE date = "november 10" | CREATE TABLE table_name_28 (visiting_team VARCHAR, date VARCHAR) |
What are the other awards for 1995? | SELECT other_awards FROM table_name_77 WHERE year = 1995 | CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR) |
How many silvers have a gold greater than 2, a bronze less than 35, china as the nation, with a total greater than 26? | SELECT COUNT(silver) FROM table_name_43 WHERE gold > 2 AND bronze < 35 AND nation = "china" AND total > 26 | CREATE TABLE table_name_43 (silver VARCHAR, total VARCHAR, nation VARCHAR, gold VARCHAR, bronze VARCHAR) |
Find the last and first name of students who are playing Football or Lacrosse. | SELECT T2.lname, T2.fname FROM SportsInfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.SportName = "Football" OR T1.SportName = "Lacrosse" | CREATE TABLE SportsInfo (StuID VARCHAR, SportName VARCHAR); CREATE TABLE Student (lname VARCHAR, fname VARCHAR, StuID VARCHAR) |
Name the manufacturer for 2011 | SELECT manufacturer FROM table_24193494_3 WHERE order_year = 2011 | CREATE TABLE table_24193494_3 (manufacturer VARCHAR, order_year VARCHAR) |
Which Capacity is the lowest one that has a City of brisbane, and a Rank smaller than 1? | SELECT MIN(capacity) FROM table_name_96 WHERE city = "brisbane" AND rank < 1 | CREATE TABLE table_name_96 (capacity INTEGER, city VARCHAR, rank VARCHAR) |
What venue was the match against the guest team, FK ibar, played at? | SELECT venue FROM table_name_65 WHERE guest = "fk ibar" | CREATE TABLE table_name_65 (venue VARCHAR, guest VARCHAR) |
What is Distance, when Venue is "Belgrade"? | SELECT distance FROM table_name_39 WHERE venue = "belgrade" | CREATE TABLE table_name_39 (distance VARCHAR, venue VARCHAR) |
How many members gained university status in 1900? | SELECT COUNT(research_funding__) AS £, 000 AS _ FROM table_142950_1 WHERE gained_university_status = 1900 | CREATE TABLE table_142950_1 (research_funding__ VARCHAR, gained_university_status VARCHAR) |
Name the latitude for deer lake | SELECT latitude FROM table_18600760_4 WHERE township = "Deer Lake" | CREATE TABLE table_18600760_4 (latitude VARCHAR, township VARCHAR) |
What was the language for the movie "Late Bloomers"? | SELECT language_s_ FROM table_22034853_1 WHERE film_title_used_in_nomination = "Late Bloomers" | CREATE TABLE table_22034853_1 (language_s_ VARCHAR, film_title_used_in_nomination VARCHAR) |
What player has money of (£) 159,500, and france is the country? | SELECT player FROM table_name_99 WHERE money___£__ = "159,500" AND country = "france" | CREATE TABLE table_name_99 (player VARCHAR, money___£__ VARCHAR, country VARCHAR) |
What was the order of succession for the department of education? | SELECT order_of_succession FROM table_name_87 WHERE department = "education" | CREATE TABLE table_name_87 (order_of_succession VARCHAR, department VARCHAR) |
How many people attended the away league competition with a date of 22? | SELECT attendance FROM table_name_61 WHERE competition = "league" AND venue = "away" AND date = 22 | CREATE TABLE table_name_61 (attendance VARCHAR, date VARCHAR, competition VARCHAR, venue VARCHAR) |
For all games with calgary as home, what is the average number of attendees? | SELECT AVG(attendance) FROM table_name_1 WHERE home = "calgary" | CREATE TABLE table_name_1 (attendance INTEGER, home VARCHAR) |
What is the average number of rooms of apartments with type code "Studio"? | SELECT AVG(room_count) FROM Apartments WHERE apt_type_code = "Studio" | CREATE TABLE Apartments (room_count INTEGER, apt_type_code VARCHAR) |
What is the highest extra total before 2003 at the Meeting of all africa games? | SELECT MAX(extra) FROM table_name_51 WHERE meeting = "all africa games" AND year < 2003 | CREATE TABLE table_name_51 (extra INTEGER, meeting VARCHAR, year VARCHAR) |
Who is the director of Last Window: The Secret of Cape West 3? | SELECT director FROM table_name_93 WHERE title = "last window: the secret of cape west 3" | CREATE TABLE table_name_93 (director VARCHAR, title VARCHAR) |
What is the total number of byes when the wins were 9? | SELECT COUNT(byes) FROM table_name_59 WHERE wins = 9 | CREATE TABLE table_name_59 (byes VARCHAR, wins VARCHAR) |
what is the 1st round when team 2 is usl dunkerque (d2)? | SELECT 1 AS st_round FROM table_name_73 WHERE team_2 = "usl dunkerque (d2)" | CREATE TABLE table_name_73 (team_2 VARCHAR) |
What is the highest amount of games played in the 2003-04 season? | SELECT MAX(played) FROM table_name_25 WHERE season = "2003-04" | CREATE TABLE table_name_25 (played INTEGER, season VARCHAR) |
What is the title of the episode written by daniel sackheim? | SELECT title FROM table_2618061_1 WHERE directed_by = "Daniel Sackheim" | CREATE TABLE table_2618061_1 (title VARCHAR, directed_by VARCHAR) |
Which landfall was in category 1 for Saffir-Simpson in 1999? | SELECT landfall FROM table_name_85 WHERE saffir_simpson_category = 1 AND year = 1999 | CREATE TABLE table_name_85 (landfall VARCHAR, saffir_simpson_category VARCHAR, year VARCHAR) |
What is the highest League Cup with a Player that is steed malbranque? | SELECT MAX(league_cup) FROM table_name_95 WHERE player = "steed malbranque" | CREATE TABLE table_name_95 (league_cup INTEGER, player VARCHAR) |
What Result has a Date of october 14, 1967? | SELECT result FROM table_name_86 WHERE date = "october 14, 1967" | CREATE TABLE table_name_86 (result VARCHAR, date VARCHAR) |
Show the average share count of transactions each each investor, ordered by average share count. | SELECT investor_id, AVG(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY AVG(share_count) | CREATE TABLE TRANSACTIONS (investor_id VARCHAR, share_count INTEGER) |
How many party were listed for district oklahoma 5? | SELECT COUNT(party) FROM table_1341423_36 WHERE district = "Oklahoma 5" | CREATE TABLE table_1341423_36 (party VARCHAR, district VARCHAR) |
Which Format is listed that has a Region of China? | SELECT format FROM table_name_93 WHERE region = "china" | CREATE TABLE table_name_93 (format VARCHAR, region VARCHAR) |
Which Elimination Move is listed at Elimination 8 for Team Batista? | SELECT elimination AS Move FROM table_name_90 WHERE team = "team batista" AND elimination = "8" | CREATE TABLE table_name_90 (elimination VARCHAR, team VARCHAR) |
How many players came from Los Angeles? | SELECT COUNT(name) FROM table_24055352_1 WHERE hometown = "Los Angeles" | CREATE TABLE table_24055352_1 (name VARCHAR, hometown VARCHAR) |
What date has the opponent competing in the final of john mcenroe? | SELECT date FROM table_name_94 WHERE opponent_in_final = "john mcenroe" | CREATE TABLE table_name_94 (date VARCHAR, opponent_in_final VARCHAR) |
Which Location/Attendance has High rebounds of lennox (7)? | SELECT location_attendance FROM table_name_29 WHERE high_rebounds = "lennox (7)" | CREATE TABLE table_name_29 (location_attendance VARCHAR, high_rebounds VARCHAR) |
What was the label in the region of Canada? | SELECT label FROM table_name_57 WHERE region = "canada" | CREATE TABLE table_name_57 (label VARCHAR, region VARCHAR) |
What is the smallest district that had 33.25 in animals | SELECT MIN(district) FROM table_20403667_2 WHERE animal__in_lakh__ = "33.25" | CREATE TABLE table_20403667_2 (district INTEGER, animal__in_lakh__ VARCHAR) |
what is the runner-up for the intercontinental cup | SELECT intercontinental_cup_1998 FROM table_name_67 WHERE copa_mercosur_1998 = "runner-up" | CREATE TABLE table_name_67 (intercontinental_cup_1998 VARCHAR, copa_mercosur_1998 VARCHAR) |
What is the Time/Retired for Grid 6? | SELECT time_retired FROM table_name_4 WHERE grid = 6 | CREATE TABLE table_name_4 (time_retired VARCHAR, grid VARCHAR) |
Display the first and last name, and salary for those employees whose first name is ending with the letter m. | SELECT first_name, last_name, salary FROM employees WHERE first_name LIKE '%m' | CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary VARCHAR) |
What is the grid total associated with 18 laps? | SELECT COUNT(grid) FROM table_name_35 WHERE laps = 18 | CREATE TABLE table_name_35 (grid VARCHAR, laps VARCHAR) |
What is the To par of the Player with a Score of 69-70=139? | SELECT to_par FROM table_name_59 WHERE score = 69 - 70 = 139 | CREATE TABLE table_name_59 (to_par VARCHAR, score VARCHAR) |
Which tournament had a clay surface and a score of 6–1, 3–6, 6–2? | SELECT tournament FROM table_name_76 WHERE surface = "clay" AND score_in_the_final = "6–1, 3–6, 6–2" | CREATE TABLE table_name_76 (tournament VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) |
What is the result in 91-92 for the team with a 1.053 average? | SELECT 1991 AS _92 FROM table_14368332_1 WHERE average = "1.053" | CREATE TABLE table_14368332_1 (average VARCHAR) |
Which Score has a To par of –4, and a Player of duffy waldorf? | SELECT score FROM table_name_30 WHERE to_par = "–4" AND player = "duffy waldorf" | CREATE TABLE table_name_30 (score VARCHAR, to_par VARCHAR, player VARCHAR) |
What date was the game with a score of 5–2, and a Loss of lilly (9–9)? | SELECT date FROM table_name_98 WHERE score = "5–2" AND loss = "lilly (9–9)" | CREATE TABLE table_name_98 (date VARCHAR, score VARCHAR, loss VARCHAR) |
Which vehicle had a class of CM14? | SELECT vehicle FROM table_name_8 WHERE class = "cm14" | CREATE TABLE table_name_8 (vehicle VARCHAR, class VARCHAR) |
What is the class with 1 quantity? | SELECT class FROM table_name_6 WHERE quantity = "1" | CREATE TABLE table_name_6 (class VARCHAR, quantity VARCHAR) |
What is the Sweet Potato amount when the soybean amount is 1.65? | SELECT sweet_potato_[g_] FROM table_name_92 WHERE soybean__green__[f_] = "1.65" | CREATE TABLE table_name_92 (sweet_potato_ VARCHAR, g_ VARCHAR, soybean__green__ VARCHAR, f_ VARCHAR) |
What place did Phil Rodgers finish? | SELECT place FROM table_name_61 WHERE player = "phil rodgers" | CREATE TABLE table_name_61 (place VARCHAR, player VARCHAR) |
What is the average Year, when Date is "04.01 April 1"? | SELECT AVG(year) FROM table_name_64 WHERE date = "04.01 april 1" | CREATE TABLE table_name_64 (year INTEGER, date VARCHAR) |
What is the design when quantity is 5,000,000? | SELECT design FROM table_25468520_1 WHERE quantity = "5,000,000" | CREATE TABLE table_25468520_1 (design VARCHAR, quantity VARCHAR) |
What is the Height (m/ft) for bucharest Built in 2009, and a Rank of 13? | SELECT height__m_ft_ FROM table_name_47 WHERE city = "bucharest" AND built = 2009 AND rank = 13 | CREATE TABLE table_name_47 (height__m_ft_ VARCHAR, rank VARCHAR, city VARCHAR, built VARCHAR) |
Find the name of the makers that produced some cars in the year of 1970? | SELECT DISTINCT T1.Maker FROM CAR_MAKERS AS T1 JOIN MODEL_LIST AS T2 ON T1.Id = T2.Maker JOIN CAR_NAMES AS T3 ON T2.model = T3.model JOIN CARS_DATA AS T4 ON T3.MakeId = T4.id WHERE T4.year = '1970' | CREATE TABLE MODEL_LIST (Maker VARCHAR, model VARCHAR); CREATE TABLE CAR_MAKERS (Maker VARCHAR, Id VARCHAR); CREATE TABLE CARS_DATA (id VARCHAR, year VARCHAR); CREATE TABLE CAR_NAMES (model VARCHAR, MakeId VARCHAR) |
Which Adelaide has an Auckland of no and a Melbourne of no? | SELECT adelaide FROM table_name_76 WHERE auckland = "no" AND melbourne = "no" | CREATE TABLE table_name_76 (adelaide VARCHAR, auckland VARCHAR, melbourne VARCHAR) |
Who was the manufacturer for the race on grid 12? | SELECT manufacturer FROM table_name_49 WHERE grid = 12 | CREATE TABLE table_name_49 (manufacturer VARCHAR, grid VARCHAR) |
How many teams won $2,089,556? | SELECT COUNT(wins) FROM table_1929755_1 WHERE winnings = "$2,089,556" | CREATE TABLE table_1929755_1 (wins VARCHAR, winnings VARCHAR) |
What was Gary Player's highest total when his To par was over 15? | SELECT MAX(total) FROM table_name_41 WHERE player = "gary player" AND to_par > 15 | CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR) |
Name the team classification for stage of 20 | SELECT team_classification FROM table_name_92 WHERE stage = "20" | CREATE TABLE table_name_92 (team_classification VARCHAR, stage VARCHAR) |
What were the blocks per game in the selection where the field goal percentage was .594 (2nd)? | SELECT blocks_per_game FROM table_25774493_3 WHERE field_goal_percentage = ".594 (2nd)" | CREATE TABLE table_25774493_3 (blocks_per_game VARCHAR, field_goal_percentage VARCHAR) |
what's the doubles w-l for player seol jae-min (none) | SELECT doubles_w_l FROM table_10023387_1 WHERE player = "Seol Jae-Min (none)" | CREATE TABLE table_10023387_1 (doubles_w_l VARCHAR, player VARCHAR) |
What is the entrant of a chassis maserati 250f, also has 6 points and older than year 1957? | SELECT entrant FROM table_name_42 WHERE chassis = "maserati 250f" AND points = "6" AND year < 1957 | CREATE TABLE table_name_42 (entrant VARCHAR, year VARCHAR, chassis VARCHAR, points VARCHAR) |
what is the numbe of provincial captial where the population is 1162900? | SELECT COUNT(provincial_capital) FROM table_17416221_1 WHERE population__2013_ = 1162900 | CREATE TABLE table_17416221_1 (provincial_capital VARCHAR, population__2013_ VARCHAR) |
What is the Time/Retired of Carlos Reutemann who was driving a brabham - Alfa Romeo? | SELECT time_retired FROM table_name_69 WHERE constructor = "brabham - alfa romeo" AND driver = "carlos reutemann" | CREATE TABLE table_name_69 (time_retired VARCHAR, constructor VARCHAR, driver VARCHAR) |
Which Year is the highest one that has a Bronze of south korea, and a Silver of philippines? | SELECT MAX(year) FROM table_name_27 WHERE bronze = "south korea" AND silver = "philippines" | CREATE TABLE table_name_27 (year INTEGER, bronze VARCHAR, silver VARCHAR) |
What is the branding for the station with a frequency of 93.1mhz and a coverage of Zamboanga? | SELECT branding FROM table_name_45 WHERE frequency = "93.1mhz" AND coverage = "zamboanga" | CREATE TABLE table_name_45 (branding VARCHAR, frequency VARCHAR, coverage VARCHAR) |
What is the lowest Bronze with a 17 Rank and a Total less than 5 | SELECT MIN(bronze) FROM table_name_30 WHERE rank = "17" AND total < 5 | CREATE TABLE table_name_30 (bronze INTEGER, rank VARCHAR, total VARCHAR) |
What is the name for Malay with a foundation in Iptura? | SELECT name_in_malay FROM table_name_55 WHERE foundation = "iptura" | CREATE TABLE table_name_55 (name_in_malay VARCHAR, foundation VARCHAR) |
How many districts does Ed Jones represent? | SELECT COUNT(district) FROM table_1341718_43 WHERE incumbent = "Ed Jones" | CREATE TABLE table_1341718_43 (district VARCHAR, incumbent VARCHAR) |
how many highest with team being forfar athletic | SELECT COUNT(highest) FROM table_14003108_1 WHERE team = "Forfar Athletic" | CREATE TABLE table_14003108_1 (highest VARCHAR, team VARCHAR) |
Which 2012 has a 2008 of grand slam tournaments? | SELECT 2012 FROM table_name_47 WHERE 2008 = "grand slam tournaments" | CREATE TABLE table_name_47 (Id VARCHAR) |
What is the name of the team from Derbyshire county? | SELECT team FROM table_18461635_1 WHERE county = "Derbyshire" | CREATE TABLE table_18461635_1 (team VARCHAR, county VARCHAR) |
What's the smallest season number? | SELECT MIN(no_in_season) FROM table_28561455_1 | CREATE TABLE table_28561455_1 (no_in_season INTEGER) |
Which Score has a December smaller than 14, and a Game of 12? | SELECT score FROM table_name_93 WHERE december < 14 AND game = 12 | CREATE TABLE table_name_93 (score VARCHAR, december VARCHAR, game VARCHAR) |
What was the date when the home team was Essendon? | SELECT date FROM table_name_9 WHERE home_team = "essendon" | CREATE TABLE table_name_9 (date VARCHAR, home_team VARCHAR) |
To which party does Robert W. Edgar belong? | SELECT party FROM table_1341598_39 WHERE incumbent = "Robert W. Edgar" | CREATE TABLE table_1341598_39 (party VARCHAR, incumbent VARCHAR) |
Subsets and Splits