answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(league_cup_goals) FROM table_name_93 WHERE scorer = "ken houghton" AND fa_cup_goals < 0
Which League Cup goals have a Scorer of ken houghton, and an FA Cup goals smaller than 0?
CREATE TABLE table_name_93 (league_cup_goals INTEGER, scorer VARCHAR, fa_cup_goals VARCHAR)
SELECT COUNT(*) FROM editor
How many editors are there?
CREATE TABLE editor (Id VARCHAR)
SELECT away_team AS score FROM table_name_38 WHERE venue = "moorabbin oval"
What did the away team score at Moorabbin oval?
CREATE TABLE table_name_38 (away_team VARCHAR, venue VARCHAR)
SELECT MIN(enrollment) FROM table_name_46 WHERE capacity > 35 OFFSET 650
What is the enrollment associated with a capacity greater then 35,650?
CREATE TABLE table_name_46 (enrollment INTEGER, capacity INTEGER)
SELECT away_captain FROM table_name_47 WHERE date = "7,8,10,11 feb 1908"
Who is the away captain for the matches dated 7,8,10,11 feb 1908?
CREATE TABLE table_name_47 (away_captain VARCHAR, date VARCHAR)
SELECT COUNT(2007 AS _result) FROM table_13618584_2 WHERE district = "19th"
How many election results are there from the 19th district?
CREATE TABLE table_13618584_2 (district VARCHAR)
SELECT 2007 FROM table_name_48 WHERE 2006 = "4r" AND 2004 = "1r" AND 2009 = "4r"
What is the 2007 value with a 4r in 2006, a 1r in 2004, and a 4r in 2009?
CREATE TABLE table_name_48 (Id VARCHAR)
SELECT rank FROM table_name_69 WHERE player = "james franklin"
What ranking is james franklin?
CREATE TABLE table_name_69 (rank VARCHAR, player VARCHAR)
SELECT COUNT(*) FROM COURSE WHERE Credits > 2
How many courses have more than 2 credits?
CREATE TABLE COURSE (Credits INTEGER)
SELECT record FROM table_name_7 WHERE date = "february 25"
What record has February 25 as the date?
CREATE TABLE table_name_7 (record VARCHAR, date VARCHAR)
SELECT COUNT(no_in_series) FROM table_2791668_1 WHERE production_code = 16016
how many episodes in the series had as a production code 16016?
CREATE TABLE table_2791668_1 (no_in_series VARCHAR, production_code VARCHAR)
SELECT SUM(score) FROM table_name_13 WHERE place = "t2" AND player = "justin leonard"
What is Sum of Score, when Place is T2, and when Player is Justin Leonard?
CREATE TABLE table_name_13 (score INTEGER, place VARCHAR, player VARCHAR)
SELECT trofeo_fast_team FROM table_name_57 WHERE stage = "10"
who is the trofeo fast team in stage 10?
CREATE TABLE table_name_57 (trofeo_fast_team VARCHAR, stage VARCHAR)
SELECT COUNT(*) FROM useracct
How many users are there?
CREATE TABLE useracct (Id VARCHAR)
SELECT team_2 FROM table_name_32 WHERE team_1 = "tatung" AND ground = "national pei men senior high school"
What team was 2 when Tatung was team 1 at National Pei Men Senior High School?
CREATE TABLE table_name_32 (team_2 VARCHAR, team_1 VARCHAR, ground VARCHAR)
SELECT AVG(episode_number) FROM table_name_45 WHERE event_4 = "the wall" AND event_3 = "sumo ball"
What episode had sumo ball for event 3 and the wall for event 4?
CREATE TABLE table_name_45 (episode_number INTEGER, event_4 VARCHAR, event_3 VARCHAR)
SELECT sanskrit FROM table_name_98 WHERE greek = "λέων"
What is the Sanskrit for the Greek word λέων?
CREATE TABLE table_name_98 (sanskrit VARCHAR, greek VARCHAR)
SELECT COUNT(f_laps) FROM table_26794530_1 WHERE points = "170"
How many f/laps were there when he scored 170 points?
CREATE TABLE table_26794530_1 (f_laps VARCHAR, points VARCHAR)
SELECT location___state FROM table_name_82 WHERE team = "castrol perkins motorsport" AND winner = "russell ingall"
Castrol Perkins Motorsport and the winner Russell Ingall was in what location/state?
CREATE TABLE table_name_82 (location___state VARCHAR, team VARCHAR, winner VARCHAR)
SELECT smoke_point FROM table_name_24 WHERE polyunsaturated_fat = "69g (4g in high oleic variety)"
What is the smoke point when the polyunsaturated fat is 69g (4g in high oleic variety)?
CREATE TABLE table_name_24 (smoke_point VARCHAR, polyunsaturated_fat VARCHAR)
SELECT interview FROM table_12094300_1 WHERE preliminaries = "8.425"
What is the score for interview when the preliminaries score is 8.425?
CREATE TABLE table_12094300_1 (interview VARCHAR, preliminaries VARCHAR)
SELECT years_for_grizzlies FROM table_name_62 WHERE school_club_team = "providence"
Which years did the player from Providence play for Memphis?
CREATE TABLE table_name_62 (years_for_grizzlies VARCHAR, school_club_team VARCHAR)
SELECT term_ended FROM table_224672_2 WHERE term_began = "January 3, 2007"
When did the term end that began January 3, 2007?
CREATE TABLE table_224672_2 (term_ended VARCHAR, term_began VARCHAR)
SELECT manager FROM table_name_33 WHERE home_city = "osijek"
What is the name of the manager in the city of Osijek?
CREATE TABLE table_name_33 (manager VARCHAR, home_city VARCHAR)
SELECT abbr FROM table_name_75 WHERE common_english = "zug"
What is the abbr for zug?
CREATE TABLE table_name_75 (abbr VARCHAR, common_english VARCHAR)
SELECT webkit_version FROM table_24257833_4 WHERE major_version = "Safari 3" AND minor_version = "3.1.2"
List all webkit versions when the major version was Safari 3, and the minor version was 3.1.2.
CREATE TABLE table_24257833_4 (webkit_version VARCHAR, major_version VARCHAR, minor_version VARCHAR)
SELECT country FROM table_name_24 WHERE total < 291 AND finish = "4"
What country had a total less than 291 and a 4 Finish?
CREATE TABLE table_name_24 (country VARCHAR, total VARCHAR, finish VARCHAR)
SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009"
What is the region 1 release that has july 20, 2009 as the region 2?
CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR)
SELECT home FROM table_name_73 WHERE date = "november 26"
Who was home on November 26?
CREATE TABLE table_name_73 (home VARCHAR, date VARCHAR)
SELECT destination FROM table_12095519_1 WHERE train_name = "BG Express"
Where does the bg express train end?
CREATE TABLE table_12095519_1 (destination VARCHAR, train_name VARCHAR)
SELECT type FROM table_name_38 WHERE satellite = "gps iif-10"
What is the type of the gps iif-10 satellite?
CREATE TABLE table_name_38 (type VARCHAR, satellite VARCHAR)
SELECT stadium FROM table_name_56 WHERE city = "seoul"
What stadium is in Seoul?
CREATE TABLE table_name_56 (stadium VARCHAR, city VARCHAR)
SELECT rank FROM table_name_41 WHERE lane = 4
What rank was the swimmer in lane 4?
CREATE TABLE table_name_41 (rank VARCHAR, lane VARCHAR)
SELECT horizontal_0_a FROM table_25519358_1 WHERE hypotenuse_0_c = "明弦(RY日月)"
Name the horizontal 0 for 明弦(ry日月)
CREATE TABLE table_25519358_1 (horizontal_0_a VARCHAR, hypotenuse_0_c VARCHAR)
SELECT club FROM table_name_51 WHERE name = "guus hiddink"
What club had Guus Hiddink as outgoing manager?
CREATE TABLE table_name_51 (club VARCHAR, name VARCHAR)
SELECT 2 AS nd_leg FROM table_name_16 WHERE team_2 = "morocco"
What is the 2nd leg result when team 2 is Morocco?
CREATE TABLE table_name_16 (team_2 VARCHAR)
SELECT MAX(no_in_season) FROM table_25604014_9 WHERE directed_by = "Leslie Hill"
Name the most number in season for leslie hill
CREATE TABLE table_25604014_9 (no_in_season INTEGER, directed_by VARCHAR)
SELECT player FROM table_name_93 WHERE date = "july 6, 1949"
Which player is associated with the date July 6, 1949?
CREATE TABLE table_name_93 (player VARCHAR, date VARCHAR)
SELECT time_retired FROM table_name_70 WHERE grid = 19
What is the time for the racer on grid 19?
CREATE TABLE table_name_70 (time_retired VARCHAR, grid VARCHAR)
SELECT team FROM table_name_44 WHERE points > 572 AND games > 29
What team scored more than 572 points and had more than 29 games?
CREATE TABLE table_name_44 (team VARCHAR, points VARCHAR, games VARCHAR)
SELECT SUM(goals_for) FROM table_name_50 WHERE wins < 4 AND losses > 6
How many goals for were scored for the team(s) that won fewer than 4 games and lost more than 6?
CREATE TABLE table_name_50 (goals_for INTEGER, wins VARCHAR, losses VARCHAR)
SELECT 2011 FROM table_name_8 WHERE 2005 = "4.2%"
What is listed for the 2011 that has a 2005 of 4.2%?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT COUNT(games) AS ↑ FROM table_name_58 WHERE position = "wr" AND number > 17
What is the games number when the Position was wr, and a Number larger than 17?
CREATE TABLE table_name_58 (games VARCHAR, position VARCHAR, number VARCHAR)
SELECT tournament_name FROM table_name_80 WHERE runners_up = "gianni ocleppo"
What's the name of the tournament that Gianni Ocleppo was the runner-up?
CREATE TABLE table_name_80 (tournament_name VARCHAR, runners_up VARCHAR)
SELECT time FROM table_name_30 WHERE away_team = "happy valley team b"
What time did the match with an away team of Happy Valley Team B start?
CREATE TABLE table_name_30 (time VARCHAR, away_team VARCHAR)
SELECT noaa FROM table_name_27 WHERE darwin = "m sf"
What is the NOAA of the higher harmonics that have a Darwin of m sf?
CREATE TABLE table_name_27 (noaa VARCHAR, darwin VARCHAR)
SELECT date FROM table_name_95 WHERE score = "5-3" AND loss = "holt (1-1)"
What date has 5-3 as the score, and holt (1-1) as a loss?
CREATE TABLE table_name_95 (date VARCHAR, score VARCHAR, loss VARCHAR)
SELECT aggregate_score FROM table_28068063_2 WHERE winners = "Brive"
What was the aggregate score for the match won by Brive?
CREATE TABLE table_28068063_2 (aggregate_score VARCHAR, winners VARCHAR)
SELECT MAX(points) FROM table_name_94 WHERE november = 7
How many points are there on november 7?
CREATE TABLE table_name_94 (points INTEGER, november VARCHAR)
SELECT SUM(laps) FROM table_name_26 WHERE year = 2012
How many laps were done in 2012?
CREATE TABLE table_name_26 (laps INTEGER, year VARCHAR)
SELECT SUM(wins) FROM table_name_73 WHERE top_10 > 13
what is the number of wins that is in the Top 10 and larger than 13?
CREATE TABLE table_name_73 (wins INTEGER, top_10 INTEGER)
SELECT lost FROM table_name_66 WHERE points_for = "319"
What is the loss with 319 points?
CREATE TABLE table_name_66 (lost VARCHAR, points_for VARCHAR)
SELECT party FROM table_1342379_10 WHERE incumbent = "Charles H. Brand"
what is the affiliation of charles h. brand
CREATE TABLE table_1342379_10 (party VARCHAR, incumbent VARCHAR)
SELECT away_team FROM table_name_67 WHERE tie_no = "40"
What team was the away team when the tie no is 40?
CREATE TABLE table_name_67 (away_team VARCHAR, tie_no VARCHAR)
SELECT Chinese AS name FROM table_name_73 WHERE index = "f10"
What is the Chinese name of the player in Index F10?
CREATE TABLE table_name_73 (Chinese VARCHAR, index VARCHAR)
SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc"
Which Wins have a Year of 1963, and a Class of 50cc?
CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
SELECT challenge FROM table_25531112_2 WHERE circuit = "Albert Park Grand Prix circuit"
Who made the challenge on the Albert Park Grand Prix Circuit?
CREATE TABLE table_25531112_2 (challenge VARCHAR, circuit VARCHAR)
SELECT weapon FROM table_name_48 WHERE battle_of_the_planets = "jason"
Which weapon was used when the Battle of the Planets was Jason?
CREATE TABLE table_name_48 (weapon VARCHAR, battle_of_the_planets VARCHAR)
SELECT MAX(T2.resolution), MIN(T2.resolution) FROM files AS T1 JOIN song AS T2 ON T1.f_id = T2.f_id WHERE T1.duration LIKE "3:%"
What are the maximum and minimum resolution of songs whose duration is 3 minutes?
CREATE TABLE files (f_id VARCHAR, duration VARCHAR); CREATE TABLE song (resolution INTEGER, f_id VARCHAR)
SELECT attendance FROM table_name_61 WHERE opponent = "tampa bay buccaneers"
What was the attendance for the game against tampa bay buccaneers?
CREATE TABLE table_name_61 (attendance VARCHAR, opponent VARCHAR)
SELECT MAX(to_par) FROM table_name_96 WHERE year_s__won = "1977" AND total > 155
Which player who won in 1977 and scored great than 155 was the closest to par?
CREATE TABLE table_name_96 (to_par INTEGER, year_s__won VARCHAR, total VARCHAR)
SELECT MAX(car__number) FROM table_name_40 WHERE sponsor = "post-it / national guard"
What is the highest car number sponsored by Post-It / National Guard?
CREATE TABLE table_name_40 (car__number INTEGER, sponsor VARCHAR)
SELECT color FROM table_name_54 WHERE scientific_name = "chamaeleo calyptratus"
What is the color of the Chamaeleo Calyptratus?
CREATE TABLE table_name_54 (color VARCHAR, scientific_name VARCHAR)
SELECT decision FROM table_name_33 WHERE home = "atlanta"
Who made the decision when atlanta was the home team?
CREATE TABLE table_name_33 (decision VARCHAR, home VARCHAR)
SELECT result FROM table_name_17 WHERE venue = "n" AND attendance > 20 OFFSET 664
I want to see the result for venue of n and attendance more than 20,664
CREATE TABLE table_name_17 (result VARCHAR, venue VARCHAR, attendance VARCHAR)
SELECT japan FROM table_name_88 WHERE total = "1.82 million"
What are the sales in Japan for the release totaling 1.82 million?
CREATE TABLE table_name_88 (japan VARCHAR, total VARCHAR)
SELECT week FROM table_name_34 WHERE opponent = "pittsburgh steelers"
Tell me the week for pittsburgh steelers opponent
CREATE TABLE table_name_34 (week VARCHAR, opponent VARCHAR)
SELECT MAX(year) FROM table_12576536_1 WHERE population__woocoo_ = 2700
Name the most year when population of woocoo is 2700
CREATE TABLE table_12576536_1 (year INTEGER, population__woocoo_ VARCHAR)
SELECT location FROM table_name_31 WHERE altitude__metres_ < 6102
Tell me the location for altitude being less thaan 6102
CREATE TABLE table_name_31 (location VARCHAR, altitude__metres_ INTEGER)
SELECT pop_density__per_km²_ FROM table_216776_2 WHERE municipal_mayor = "Boy Quiat"
How many people per km2 are there in the municipality whose mayor is Boy Quiat?
CREATE TABLE table_216776_2 (pop_density__per_km²_ VARCHAR, municipal_mayor VARCHAR)
SELECT best FROM table_18914438_1 WHERE career = "1971-1984"
What was the Best score during the game played from 1971-1984?
CREATE TABLE table_18914438_1 (best VARCHAR, career VARCHAR)
SELECT album FROM table_name_87 WHERE label = "msb 801"
Which Album has a Label of msb 801?
CREATE TABLE table_name_87 (album VARCHAR, label VARCHAR)
SELECT years FROM table_name_5 WHERE ties > 31
What years did the person coach who had more than 31 ties?
CREATE TABLE table_name_5 (years VARCHAR, ties INTEGER)
SELECT record FROM table_name_17 WHERE date = "march 10"
What is the record for March 10?
CREATE TABLE table_name_17 (record VARCHAR, date VARCHAR)
SELECT tries_against FROM table_12828723_3 WHERE tries_for = "47"
what's the tries against with tries for being 47
CREATE TABLE table_12828723_3 (tries_against VARCHAR, tries_for VARCHAR)
SELECT event FROM table_name_98 WHERE res = "win" AND round = "n/a" AND record = "8-1"
What event had a win, record of 8-1 and n/a round?
CREATE TABLE table_name_98 (event VARCHAR, record VARCHAR, res VARCHAR, round VARCHAR)
SELECT MIN(no) FROM table_23014685_1 WHERE area_damaged = "Islamic University campus"
What number missile led to damage to the Islamic University campus?
CREATE TABLE table_23014685_1 (no INTEGER, area_damaged VARCHAR)
SELECT opponent FROM table_name_17 WHERE date = "september 28"
WHAT OPPONENT HAD A DATE OF SEPTEMBER 28?
CREATE TABLE table_name_17 (opponent VARCHAR, date VARCHAR)
SELECT poll_source FROM table_16751596_2 WHERE dates_administered = "July 12, 2008"
Name the poll source for july 12, 2008
CREATE TABLE table_16751596_2 (poll_source VARCHAR, dates_administered VARCHAR)
SELECT origin_of_programming FROM table_name_98 WHERE network = "ndtv india"
What is the Origin of Programming for the Network NDTV India?
CREATE TABLE table_name_98 (origin_of_programming VARCHAR, network VARCHAR)
SELECT semifinalists FROM table_name_23 WHERE tournament = "stockholm"
Which Semifinalist has a Tournament of stockholm?
CREATE TABLE table_name_23 (semifinalists VARCHAR, tournament VARCHAR)
SELECT COUNT(episode_no) FROM table_24399615_10 WHERE bbc_three_weekly_ranking = "N/A" AND cable_rank = "N/A"
Which episode had bbc ranking and canle ranking of n/a?
CREATE TABLE table_24399615_10 (episode_no VARCHAR, bbc_three_weekly_ranking VARCHAR, cable_rank VARCHAR)
SELECT MIN(total_passengers) FROM table_name_75 WHERE location = "salvador" AND rank > 5
Can you tell me the lowest Total Passengers than has the Location of salvador, and the Rank larger than 5?
CREATE TABLE table_name_75 (total_passengers INTEGER, location VARCHAR, rank VARCHAR)
SELECT song FROM table_name_17 WHERE draw < 20 AND artist = "luca barbarossa"
What Luca Barbarossa song had a draw smaller than 20?
CREATE TABLE table_name_17 (song VARCHAR, draw VARCHAR, artist VARCHAR)
SELECT ihsaa_class AS Football FROM table_name_15 WHERE year_joined = 1968
What is the IHSAA Class for football for the team joining in 1968?
CREATE TABLE table_name_15 (ihsaa_class VARCHAR, year_joined VARCHAR)
SELECT t1.name FROM swimmer AS t1 JOIN record AS t2 ON t1.id = t2.swimmer_id GROUP BY t2.swimmer_id HAVING COUNT(*) >= 2
Find the name of the swimmer who has at least 2 records.
CREATE TABLE record (swimmer_id VARCHAR); CREATE TABLE swimmer (name VARCHAR, id VARCHAR)
SELECT AVG(wins) FROM table_name_31 WHERE teams = "lions" AND percent > 0
What is the average wins when teams is lions and the percent is more than 0?
CREATE TABLE table_name_31 (wins INTEGER, teams VARCHAR, percent VARCHAR)
SELECT poll FROM table_name_10 WHERE wk_10 > 2 AND wk_2 = "12" AND wk_13 = 8
Which poll had a week 10 larger than 2, a week 2 of exactly 12, and a week 13 of 8?
CREATE TABLE table_name_10 (poll VARCHAR, wk_13 VARCHAR, wk_10 VARCHAR, wk_2 VARCHAR)
SELECT l_g FROM table_22542179_3 WHERE player = "Rubio"
Name the l g for rubio
CREATE TABLE table_22542179_3 (l_g VARCHAR, player VARCHAR)
SELECT player FROM table_11545282_10 WHERE no = "22" AND position = "Forward"
Which forward player has the number 22?
CREATE TABLE table_11545282_10 (player VARCHAR, no VARCHAR, position VARCHAR)
SELECT college_junior_club_team FROM table_2840500_8 WHERE player = "Andrej Podkonicky"
Name the college for andrej podkonicky
CREATE TABLE table_2840500_8 (college_junior_club_team VARCHAR, player VARCHAR)
SELECT attendance FROM table_name_13 WHERE score = "4-10"
When the Score was 4-10, what was the Attendance?
CREATE TABLE table_name_13 (attendance VARCHAR, score VARCHAR)
SELECT company_or_product_name FROM table_name_83 WHERE episode = "episode 3" AND investing_dragon_s_ = "deborah meaden"
What is the name of the Company or Product that is Episode 3 and is suppoted by Investing Dragon Deborah Meaden?
CREATE TABLE table_name_83 (company_or_product_name VARCHAR, episode VARCHAR, investing_dragon_s_ VARCHAR)
SELECT AVG(caps) FROM table_name_67 WHERE player = "ryota asano"
What is the mean number of caps for Ryota Asano?
CREATE TABLE table_name_67 (caps INTEGER, player VARCHAR)
SELECT year_s__won FROM table_name_6 WHERE to_par > 11
When was a game won with more than 11 to par?
CREATE TABLE table_name_6 (year_s__won VARCHAR, to_par INTEGER)
SELECT record FROM table_name_96 WHERE opponent = "chris mounce"
What was the record of the match against Chris Mounce?
CREATE TABLE table_name_96 (record VARCHAR, opponent VARCHAR)
SELECT challenge_leader FROM table_29535057_4 WHERE winner = "Boston College (88-76)"
Who were the challenge leaders of the games won by boston college (88-76)?
CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR)
SELECT engine FROM table_name_17 WHERE tyre = "d" AND constructor = "era" AND driver = "bob gerard"
what is the engine when the tyre is d, the constructor is era and the driver is bob gerard?
CREATE TABLE table_name_17 (engine VARCHAR, driver VARCHAR, tyre VARCHAR, constructor VARCHAR)
SELECT COUNT(kenenisa_bekele___eth__) FROM table_24011830_2 WHERE world_record = "African record"
Name the total number of kenesia for african record
CREATE TABLE table_24011830_2 (kenenisa_bekele___eth__ VARCHAR, world_record VARCHAR)
SELECT COUNT(races) FROM table_name_15 WHERE wins > 8
What is the total number of Races when there were more than 8 wins?
CREATE TABLE table_name_15 (races VARCHAR, wins INTEGER)