answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT team FROM table_name_38 WHERE number = 14 AND years_with_franchise = "1993-2000"
Which team is number 14 and had a franchise in 1993-2000?
CREATE TABLE table_name_38 (team VARCHAR, number VARCHAR, years_with_franchise VARCHAR)
SELECT alternate_title_translation FROM table_name_40 WHERE series_premiere = "december 12, 2006"
What is the alternate title/translation of the series that premiered on December 12, 2006?
CREATE TABLE table_name_40 (alternate_title_translation VARCHAR, series_premiere VARCHAR)
SELECT 2 AS nd_leg FROM table_name_62 WHERE team__number1 = "ldu quito"
What is the 2nd leg with ldu quito as team 1?
CREATE TABLE table_name_62 (team__number1 VARCHAR)
SELECT name FROM table_name_83 WHERE overall < 175 AND college = "georgia"
What is Name, when Overall is less than 175, and when College is "Georgia"?
CREATE TABLE table_name_83 (name VARCHAR, overall VARCHAR, college VARCHAR)
SELECT fastest_lap FROM table_name_74 WHERE name = "stoh's 200"
What time was the fastest lap during Stoh's 200 in 1982?
CREATE TABLE table_name_74 (fastest_lap VARCHAR, name VARCHAR)
SELECT driver FROM table_name_39 WHERE laps = "29"
Who was the driver with 29 laps?
CREATE TABLE table_name_39 (driver VARCHAR, laps VARCHAR)
SELECT SUM(year) FROM table_name_39 WHERE winner = "new york jets" AND result = "24–17" AND location = "giants stadium"
What is the year when the Winner was the new york jets, with a Result of 24–17, played at giants stadium?
CREATE TABLE table_name_39 (year INTEGER, location VARCHAR, winner VARCHAR, result VARCHAR)
SELECT english FROM table_name_26 WHERE dutch = "tong"
Which English has Dutch of tong?
CREATE TABLE table_name_26 (english VARCHAR, dutch VARCHAR)
SELECT free_agent_type FROM table_name_2 WHERE player = "bryant johnson"
What is the Free Agent Type for player bryant johnson?
CREATE TABLE table_name_2 (free_agent_type VARCHAR, player VARCHAR)
SELECT timeslot FROM table_11274401_3 WHERE air_date = "May 12, 2009"
What was the timeslot for the episode that aired on May 12, 2009?
CREATE TABLE table_11274401_3 (timeslot VARCHAR, air_date VARCHAR)
SELECT career_w_l FROM table_name_82 WHERE 1976 = "a"
What is theW-L of the tournament listed as A for 1976?
CREATE TABLE table_name_82 (career_w_l VARCHAR)
SELECT COUNT(losses) FROM table_name_23 WHERE geelong_fl = "newtown & chilwell" AND wins > 11
How many Losses have a Geelong FL of newtown & chilwell, and more than 11 wins?
CREATE TABLE table_name_23 (losses VARCHAR, geelong_fl VARCHAR, wins VARCHAR)
SELECT COUNT(high_assists) FROM table_15873014_3 WHERE team = "New Jersey"
How many players had the most assists against New Jersey?
CREATE TABLE table_15873014_3 (high_assists VARCHAR, team VARCHAR)
SELECT romaji_title FROM table_name_24 WHERE episodes = 11 AND tv_station = "fuji tv" AND average_ratings = "14.9%"
Which Romaji Title has 11 Episodes, and a TV Station of fuji tv, and Average Ratings of 14.9%?
CREATE TABLE table_name_24 (romaji_title VARCHAR, average_ratings VARCHAR, episodes VARCHAR, tv_station VARCHAR)
SELECT MAX(touchdowns) FROM table_25711913_2 WHERE position = "Left guard"
How many touchdowns did the left guard took?
CREATE TABLE table_25711913_2 (touchdowns INTEGER, position 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 COUNT(first_title) FROM table_name_41 WHERE wins < 8 AND country = "canada"
Which First title has Wins smaller than 8 and in Canada?
CREATE TABLE table_name_41 (first_title VARCHAR, wins VARCHAR, country VARCHAR)
SELECT SUM(earnings__) AS $__ FROM table_name_39 WHERE rank = 3
What is the sum of the earnings for rank 3?
CREATE TABLE table_name_39 (earnings__ INTEGER, rank VARCHAR)
SELECT COUNT(barony) FROM table_30120559_1 WHERE townland = "Kilmore"
Name the total number of barony for kilmore
CREATE TABLE table_30120559_1 (barony VARCHAR, townland VARCHAR)
SELECT season_1 FROM table_name_5 WHERE season_7 = "david chilton"
Which Season 1 has a Season 7 of david chilton?
CREATE TABLE table_name_5 (season_1 VARCHAR, season_7 VARCHAR)
SELECT headquarters FROM table_1682026_3 WHERE sales__billion_$_ = "69.2"
Where are the headquarters of the company whose sales were 69.2 billion?
CREATE TABLE table_1682026_3 (headquarters VARCHAR, sales__billion_$_ VARCHAR)
SELECT runner_s__up FROM table_name_70 WHERE tournament = "kemper open"
What is the Runner(s)-up of the Kemper Open Tournament?
CREATE TABLE table_name_70 (runner_s__up VARCHAR, tournament VARCHAR)
SELECT MIN(derby_county) AS Goals FROM table_15201666_3
Name the minimum derby county goals
CREATE TABLE table_15201666_3 (derby_county INTEGER)
SELECT independents FROM table_name_73 WHERE labour_party = "26 (+3)"
What is the number of Independents elected in the year Labour won 26 (+3) seats?
CREATE TABLE table_name_73 (independents VARCHAR, labour_party VARCHAR)
SELECT T2.Lname FROM Sportsinfo AS T1 JOIN Student AS T2 ON T1.StuID = T2.StuID WHERE T1.onscholarship = 'Y'
Show last names for all student who are on scholarship.
CREATE TABLE Student (Lname VARCHAR, StuID VARCHAR); CREATE TABLE Sportsinfo (StuID VARCHAR, onscholarship VARCHAR)
SELECT fuel_delivery FROM table_11167610_1 WHERE power = "hp (kW) @6500 rpm"
what's the fuel delivery where power is hp (kw) @6500 rpm
CREATE TABLE table_11167610_1 (fuel_delivery VARCHAR, power VARCHAR)
SELECT fluency FROM table_2088_1 WHERE type_of_aphasia = "Transcortical sensory aphasia"
Name the fluency for transcortical sensory aphasia
CREATE TABLE table_2088_1 (fluency VARCHAR, type_of_aphasia VARCHAR)
SELECT SUM(laps) FROM table_name_80 WHERE year = "1958"
How many laps were in 1958?
CREATE TABLE table_name_80 (laps INTEGER, year VARCHAR)
SELECT MIN(touchdowns) FROM table_14342480_7
What is the least amount of touchdowns scored on the chart?
CREATE TABLE table_14342480_7 (touchdowns INTEGER)
SELECT MIN(fa_cup) FROM table_name_3 WHERE total = "0 2" AND league_cup < 0
How many FA cups were there without any league cups, but a total of 0 2?
CREATE TABLE table_name_3 (fa_cup INTEGER, total VARCHAR, league_cup VARCHAR)
SELECT result FROM table_name_36 WHERE year = 1994
What is the result in 1994?
CREATE TABLE table_name_36 (result VARCHAR, year VARCHAR)
SELECT total_viewers FROM table_name_30 WHERE bbc_one_weekly_ranking > 7 AND episode_no < 4
What was the total viewership for BBC One weekly rankings larger than 7, before episode 4?
CREATE TABLE table_name_30 (total_viewers VARCHAR, bbc_one_weekly_ranking VARCHAR, episode_no VARCHAR)
SELECT COUNT(location) FROM table_1973816_1 WHERE institution = "Saint Joseph's College of Maine"
On how many locations is the Saint Joseph's College of Maine located?
CREATE TABLE table_1973816_1 (location VARCHAR, institution VARCHAR)
SELECT COUNT(rank) FROM table_name_31 WHERE notes = "fb" AND time = "7:20.32"
What is the Rank of the Player with a Time of 7:20.32 and Notes of FB?
CREATE TABLE table_name_31 (rank VARCHAR, notes VARCHAR, time VARCHAR)
SELECT SUM(gold) FROM table_name_17 WHERE silver < 32 AND bronze = 25 AND overall < 67
How many gold when silver is less than 32, bronze is 25, and overall is less than 67?
CREATE TABLE table_name_17 (gold INTEGER, overall VARCHAR, silver VARCHAR, bronze VARCHAR)
SELECT attendance FROM table_name_4 WHERE visitor = "warriors" AND date = "2007-04-07"
What is the attendance of the game on 2007-04-07 with the Warriors as the visitor team?
CREATE TABLE table_name_4 (attendance VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT SUM(attendance) FROM table_name_83 WHERE loss = "clement (5–7)"
What is the sum of the people in attendance when there was a Loss of clement (5–7)?
CREATE TABLE table_name_83 (attendance INTEGER, loss VARCHAR)
SELECT COUNT(*), T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code = T2.dept_code GROUP BY T1.school_code
What is the number of professors for different school?
CREATE TABLE department (school_code VARCHAR, dept_code VARCHAR); CREATE TABLE professor (dept_code VARCHAR)
SELECT venue FROM table_name_7 WHERE competition = "world race walking cup" AND position = "3rd"
In which venue did he place 3rd in the World Race Walking Cup?
CREATE TABLE table_name_7 (venue VARCHAR, competition VARCHAR, position VARCHAR)
SELECT name FROM table_name_46 WHERE street_address = "980 n. michigan avenue"
Street Address of 980 n. michigan avenue is what name?
CREATE TABLE table_name_46 (name VARCHAR, street_address VARCHAR)
SELECT player FROM table_name_48 WHERE country = "united states" AND total = "154"
What is Player, when Country is "United States", and when Total is "154"?
CREATE TABLE table_name_48 (player VARCHAR, country VARCHAR, total VARCHAR)
SELECT reference FROM table_name_92 WHERE release_date = "1996/10/10"
Which Reference has a Release date of 1996/10/10?
CREATE TABLE table_name_92 (reference VARCHAR, release_date VARCHAR)
SELECT date FROM table_name_80 WHERE week = 6
What date was the week 6 game played on?
CREATE TABLE table_name_80 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_12 WHERE venue = "arden street oval"
What date did the game at Arden Street Oval take place?
CREATE TABLE table_name_12 (date VARCHAR, venue VARCHAR)
SELECT score FROM table_17103729_8 WHERE game = 25
Name the score for game for 25
CREATE TABLE table_17103729_8 (score VARCHAR, game VARCHAR)
SELECT director_s_ FROM table_name_45 WHERE rank = "nominated" AND film = "blood on his hands"
Who directed the nominated film 'blood on his hands'?
CREATE TABLE table_name_45 (director_s_ VARCHAR, rank VARCHAR, film VARCHAR)
SELECT report FROM table_name_92 WHERE constructor = "ferrari" AND circuit = "monza"
What is the report status of the race with Ferrari as the constructor and a monza circuit?
CREATE TABLE table_name_92 (report VARCHAR, constructor VARCHAR, circuit VARCHAR)
SELECT COUNT(decile) FROM table_name_55 WHERE area = "whitby" AND name = "samuel marsden collegiate school" AND roll > 163
What was the decile of Samuel Marsden Collegiate School in Whitby, when it had a roll higher than 163?
CREATE TABLE table_name_55 (decile VARCHAR, roll VARCHAR, area VARCHAR, name VARCHAR)
SELECT home_team FROM table_name_97 WHERE away_team = "convoy sun hei team b"
Who was the home team in the match that had an away team of Convoy Sun Hei Team B?
CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR)
SELECT MAX(year_left) FROM table_name_81 WHERE school = "danville"
What's the highest Year Left for the School of Danville?
CREATE TABLE table_name_81 (year_left INTEGER, school VARCHAR)
SELECT attendance FROM table_name_42 WHERE date = "11/10/1928"
What is the Attendance on 11/10/1928?
CREATE TABLE table_name_42 (attendance VARCHAR, date VARCHAR)
SELECT wins FROM table_name_20 WHERE class = "500cc" AND year = 1979
How many wins did the 500cc class have in 1979?
CREATE TABLE table_name_20 (wins VARCHAR, class VARCHAR, year VARCHAR)
SELECT series FROM table_26223231_1 WHERE points = "6"
How many championships are there when there are 6 points
CREATE TABLE table_26223231_1 (series VARCHAR, points VARCHAR)
SELECT MIN(Severe) AS tropical_cyclones FROM table_name_61 WHERE season = "1992–93" AND tropical_lows < 6
What is the least amount of severe tropical cyclones for the 1992–93 season and the tropical Lows smaller than 6?
CREATE TABLE table_name_61 (Severe INTEGER, season VARCHAR, tropical_lows VARCHAR)
SELECT year FROM table_name_97 WHERE category = "best costume design"
What year was best costume design the award category?
CREATE TABLE table_name_97 (year VARCHAR, category VARCHAR)
SELECT club FROM table_13758945_1 WHERE points_for = "565"
Which club has 565 points?
CREATE TABLE table_13758945_1 (club VARCHAR, points_for VARCHAR)
SELECT player FROM table_name_78 WHERE round < 6 AND pick = 69
What is Player, when Round is less than 6, and when Pick is "69"?
CREATE TABLE table_name_78 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT area__km²_ FROM table_26321719_1 WHERE population_density = "100.8"
What is every value for area for population density of 100.8?
CREATE TABLE table_26321719_1 (area__km²_ VARCHAR, population_density VARCHAR)
SELECT AVG(debut_year) FROM table_name_44 WHERE player = "bob hayton" AND games < 2
Which Debut year has a Player of bob hayton, and Games smaller than 2?
CREATE TABLE table_name_44 (debut_year INTEGER, player VARCHAR, games VARCHAR)
SELECT lifespan FROM table_name_28 WHERE state = "pennsylvania" AND representative = "harry p. o'neill"
What was the lifespan of Representative Harry P. O'neill from the state of Pennsylvania?
CREATE TABLE table_name_28 (lifespan VARCHAR, state VARCHAR, representative VARCHAR)
SELECT position FROM table_name_71 WHERE venue = "lyon"
What was the position at the venue of lyon?
CREATE TABLE table_name_71 (position VARCHAR, venue VARCHAR)
SELECT MAX(enrollment) FROM table_16734640_1 WHERE nickname = "Hawks"
Name the most enrollment when nickname is hawks
CREATE TABLE table_16734640_1 (enrollment INTEGER, nickname VARCHAR)
SELECT original_airdate FROM table_26866299_1 WHERE writer = "Michael Glassberg"
What was the original air date of the episode written by michael glassberg?
CREATE TABLE table_26866299_1 (original_airdate VARCHAR, writer VARCHAR)
SELECT MIN(introduced) FROM table_1081459_1 WHERE region = "Departmental"
What is the minimum introduced value for the Departmental region?
CREATE TABLE table_1081459_1 (introduced INTEGER, region VARCHAR)
SELECT date FROM table_name_6 WHERE margin_of_victory = "4 strokes"
What is the date of the 4 strokes margin of victory?
CREATE TABLE table_name_6 (date VARCHAR, margin_of_victory VARCHAR)
SELECT AVG(starts) FROM table_name_35 WHERE podiums > 0 AND stage_wins > 39 AND points > 456
what is the average starts when the podiums is more than 0, stage wins is more than 39 and points is more than 456?
CREATE TABLE table_name_35 (starts INTEGER, points VARCHAR, podiums VARCHAR, stage_wins VARCHAR)
SELECT COUNT(*), SUM(student_capacity), gender FROM dorm GROUP BY gender
Find the number of dorms and total capacity for each gender.
CREATE TABLE dorm (gender VARCHAR, student_capacity INTEGER)
SELECT home_team FROM table_name_88 WHERE away_team = "south melbourne"
What team was home team when south Melbourne was the away team?
CREATE TABLE table_name_88 (home_team VARCHAR, away_team VARCHAR)
SELECT score FROM table_name_88 WHERE losing_semifinalists = "toluca unam"
What was the Score when the Losing Semifinalists were Toluca Unam?
CREATE TABLE table_name_88 (score VARCHAR, losing_semifinalists VARCHAR)
SELECT AVG(gold) FROM table_name_19 WHERE total = 8 AND bronze > 4
What is the gold number when the total is 8 and bronze is more than 4?
CREATE TABLE table_name_19 (gold INTEGER, total VARCHAR, bronze VARCHAR)
SELECT place FROM table_name_33 WHERE score = 75 - 71 - 72 - 70 = 288
What is Place, when Score is "75-71-72-70=288"?
CREATE TABLE table_name_33 (place VARCHAR, score VARCHAR)
SELECT team_c FROM table_name_44 WHERE team_e = "dhez javier"
Who is team c when dhez javier is team e?
CREATE TABLE table_name_44 (team_c VARCHAR, team_e VARCHAR)
SELECT COUNT(*) FROM Rooms
How many rooms are there?
CREATE TABLE Rooms (Id VARCHAR)
SELECT date FROM table_name_58 WHERE runner_up_skip = "stu harris"
What's the date when Stu Harris was the Runner-up?
CREATE TABLE table_name_58 (date VARCHAR, runner_up_skip VARCHAR)
SELECT leading_scorer FROM table_name_34 WHERE date = "april 9, 2008"
Who was the leading scorer on April 9, 2008?
CREATE TABLE table_name_34 (leading_scorer VARCHAR, date VARCHAR)
SELECT MIN(median_income___intl) AS $__ FROM table_25042332_16 WHERE region = "Maule"
What is the median income of Maule?
CREATE TABLE table_25042332_16 (median_income___intl INTEGER, region VARCHAR)
SELECT time_retired FROM table_name_74 WHERE laps = "21" AND manufacturer = "yamaha" AND grid = "1"
What is the time/retired for the rider with the manufacturuer yamaha, grod of 1 and 21 total laps?
CREATE TABLE table_name_74 (time_retired VARCHAR, grid VARCHAR, laps VARCHAR, manufacturer VARCHAR)
SELECT COUNT(speed_rank) FROM table_181892_4 WHERE car_number = 92
How many years was he car number 92?
CREATE TABLE table_181892_4 (speed_rank VARCHAR, car_number VARCHAR)
SELECT MAX(poles) FROM table_3005915_3
What is the maximum number of poles?
CREATE TABLE table_3005915_3 (poles INTEGER)
SELECT manufacturer FROM table_name_21 WHERE finish < 42 AND start = 19
Who was the maufacturer of the vehicle during the race where Cale Yarborough started at 19 and finished earlier than 42?
CREATE TABLE table_name_21 (manufacturer VARCHAR, finish VARCHAR, start VARCHAR)
SELECT MIN(laps) FROM table_name_5 WHERE driver = "rubens barrichello" AND grid < 12
what is the least laps when the driver is rubens barrichello and the grid is less than 12?
CREATE TABLE table_name_5 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT year__ceremony_ FROM table_name_62 WHERE original_title = "ganito kami noon, paano kayo ngayon"
What is the ceremony year when Ganito Kami Noon, Paano Kayo Ngayon was the original title?
CREATE TABLE table_name_62 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 12
What day was Australia the opposing team and the against 12?
CREATE TABLE table_name_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR)
SELECT date FROM table_name_78 WHERE record = "9–5–2"
What was the date of the game when the record was 9–5–2?
CREATE TABLE table_name_78 (date VARCHAR, record VARCHAR)
SELECT MAX(weight), petType FROM pets GROUP BY petType
Find the maximum weight for each type of pet. List the maximum weight and pet type.
CREATE TABLE pets (petType VARCHAR, weight INTEGER)
SELECT MIN(date) FROM table_name_51 WHERE competition = "league" AND venue = "away" AND opponent = "swindon wildcats" AND attendance > 1 OFFSET 201
Whihc Date is the lowest one that has a Competition of league, and a Venue of away, and an Opponent of swindon wildcats, and an Attendance larger than 1,201?
CREATE TABLE table_name_51 (date INTEGER, attendance VARCHAR, opponent VARCHAR, competition VARCHAR, venue VARCHAR)
SELECT director FROM table_26555737_1 WHERE result = "Nominee"
When nominee is the result who is the director?
CREATE TABLE table_26555737_1 (director VARCHAR, result VARCHAR)
SELECT result FROM table_name_75 WHERE match = "napoli-roma"
What was the result of the napoli-roma match?
CREATE TABLE table_name_75 (result VARCHAR, match VARCHAR)
SELECT MAX(score) FROM table_name_93 WHERE player = "bernhard langer"
What was Bernhard Langer's highest score?
CREATE TABLE table_name_93 (score INTEGER, player VARCHAR)
SELECT Nationality FROM HOST GROUP BY Nationality ORDER BY COUNT(*) DESC LIMIT 1
Show the most common nationality of hosts.
CREATE TABLE HOST (Nationality VARCHAR)
SELECT incumbent FROM table_name_18 WHERE party = "democratic" AND first_elected = 1998
Which Democratic incumbent was first elected in 1998?
CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR)
SELECT DISTINCT source_system_code FROM cmi_cross_references WHERE source_system_code LIKE '%en%'
Which distinct source system code includes the substring 'en'?
CREATE TABLE cmi_cross_references (source_system_code VARCHAR)
SELECT home_team AS score FROM table_name_15 WHERE venue = "princes park"
What did the home team score at Princes Park?
CREATE TABLE table_name_15 (home_team VARCHAR, venue VARCHAR)
SELECT platforms FROM table_name_38 WHERE hazmat = "–" AND type = "urban & rural" AND brigade = "lara"
Which Platforms have a Hazmat of –, and a Type of urban & rural, and a Brigade of lara?
CREATE TABLE table_name_38 (platforms VARCHAR, brigade VARCHAR, hazmat VARCHAR, type VARCHAR)
SELECT record FROM table_27537518_4 WHERE date = "October 16"
What was the record for the October 16 game?
CREATE TABLE table_27537518_4 (record VARCHAR, date VARCHAR)
SELECT date FROM table_28178756_1 WHERE driver = "Tommy Ellis"
On what day did tommy ellis drive?
CREATE TABLE table_28178756_1 (date VARCHAR, driver VARCHAR)
SELECT COUNT(voted_yes) FROM table_name_49 WHERE jurisdiction = "newfoundland" AND voted_no < 77 OFFSET 881
What is the total number of yes votes in Newfoundland, which had less than 77,881 vote no?
CREATE TABLE table_name_49 (voted_yes VARCHAR, jurisdiction VARCHAR, voted_no VARCHAR)
SELECT type FROM table_name_11 WHERE model = "6cm"
What type of car has the model 6cm?
CREATE TABLE table_name_11 (type VARCHAR, model VARCHAR)
SELECT SUM(attendance) FROM table_name_49 WHERE date = "september 8"
What is the sum of people in attendance on September 8?
CREATE TABLE table_name_49 (attendance INTEGER, date VARCHAR)
SELECT event FROM table_name_57 WHERE olympics = "1952 summer olympics"
Which event is in the 1952 summer olympics?
CREATE TABLE table_name_57 (event VARCHAR, olympics VARCHAR)