answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MIN(year) FROM table_name_13 WHERE title = "wallace & gromit: the curse of the were-rabbit"
What is the earliest year of Wallace & Gromit: The Curse of the Were-Rabbit?
CREATE TABLE table_name_13 (year INTEGER, title VARCHAR)
SELECT player FROM table_name_94 WHERE pick__number < 2
What player is picked before 2?
CREATE TABLE table_name_94 (player VARCHAR, pick__number INTEGER)
SELECT date FROM table_20745706_1 WHERE _number = "5"
What is the date of game 5?
CREATE TABLE table_20745706_1 (date VARCHAR, _number VARCHAR)
SELECT team_1 FROM table_name_2 WHERE team_2 = "la nuova piovese (veneto a)"
Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)?
CREATE TABLE table_name_2 (team_1 VARCHAR, team_2 VARCHAR)
SELECT directed_by FROM table_2400842_1 WHERE prod__number = 109
Who directed the epsiode with production number 109?
CREATE TABLE table_2400842_1 (directed_by VARCHAR, prod__number VARCHAR)
SELECT winning_driver FROM table_name_36 WHERE pole_position = "timo scheider" AND circuit = "oschersleben"
Who is the winning driver of the Oschersleben circuit with Timo Scheider as the pole position?
CREATE TABLE table_name_36 (winning_driver VARCHAR, pole_position VARCHAR, circuit VARCHAR)
SELECT MAX(rank) FROM table_name_38 WHERE country = "uzbekistan" AND time > 11.44
What is the highest rank in Uzbekistan with a time larger than 11.44?
CREATE TABLE table_name_38 (rank INTEGER, country VARCHAR, time VARCHAR)
SELECT position FROM table_25561560_2 WHERE skipper = "Mark Richards"
In what position did skipper Mark Richards place?
CREATE TABLE table_25561560_2 (position VARCHAR, skipper VARCHAR)
SELECT schwaben FROM table_23224961_1 WHERE oberbayern_a = "Wacker Burghausen"
When wacker burghausen is the oberbayern a what is the schwaben?
CREATE TABLE table_23224961_1 (schwaben VARCHAR, oberbayern_a VARCHAR)
SELECT no_3 FROM table_name_72 WHERE no_7 = "logan" AND no_5 = "jackson"
Name the No. 3 which has a No. 7 of logan, and a No. 5 of jackson?
CREATE TABLE table_name_72 (no_3 VARCHAR, no_7 VARCHAR, no_5 VARCHAR)
SELECT attendance FROM table_28211103_1 WHERE hawthorn_score = "18.15.123"
What is the attendance when the hawthorn score is 18.15.123?
CREATE TABLE table_28211103_1 (attendance VARCHAR, hawthorn_score VARCHAR)
SELECT hometown FROM table_name_94 WHERE position = "guard" AND name = "kerri shields"
What is Guard Kerri Shields Hometown?
CREATE TABLE table_name_94 (hometown VARCHAR, position VARCHAR, name VARCHAR)
SELECT party FROM table_1341453_22 WHERE district = "Maryland 6"
What party was the winner in the district Maryland 6?
CREATE TABLE table_1341453_22 (party VARCHAR, district VARCHAR)
SELECT MAX(laps) FROM table_name_27 WHERE manufacturer = "honda" AND grid = 12
What is the highest number of laps when honda is the manufacturer and the grid number is 12?
CREATE TABLE table_name_27 (laps INTEGER, manufacturer VARCHAR, grid VARCHAR)
SELECT years_runner_up FROM table_name_81 WHERE team = "duisburg"
What year(s) was Duisburg runner-up?
CREATE TABLE table_name_81 (years_runner_up VARCHAR, team VARCHAR)
SELECT pop_act FROM table_name_58 WHERE album = "all that you can't leave behind"
Which act's album has a name of All That You Can't Leave Behind?
CREATE TABLE table_name_58 (pop_act VARCHAR, album VARCHAR)
SELECT MAX(league_cup_apps) FROM table_name_81 WHERE league_cup_goals = 0 AND fa_cup_apps = 2 AND league_goals = 4
What is the highest league cup appearances for the player with league cup goals of 0, and FA cup appearances of 2, and 4 league goals?
CREATE TABLE table_name_81 (league_cup_apps INTEGER, league_goals VARCHAR, league_cup_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT date FROM table_name_23 WHERE scorers = "parkinson"
what is the date when scorers is parkinson?
CREATE TABLE table_name_23 (date VARCHAR, scorers VARCHAR)
SELECT mccain_percentage FROM table_20684390_1 WHERE county = "Jerome"
What is the McCain vote percentage in Jerome county?
CREATE TABLE table_20684390_1 (mccain_percentage VARCHAR, county VARCHAR)
SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code = "PUR"
Show the description of transaction type with code "PUR".
CREATE TABLE Ref_Transaction_Types (transaction_type_description VARCHAR, transaction_type_code VARCHAR)
SELECT series FROM table_10705060_1 WHERE points = 62
Which series with 62 points?
CREATE TABLE table_10705060_1 (series VARCHAR, points VARCHAR)
SELECT directed_by FROM table_23492454_1 WHERE written_by = "Shonda Rhimes"
who directed the episode written by Shonda Rhimes?
CREATE TABLE table_23492454_1 (directed_by VARCHAR, written_by VARCHAR)
SELECT movie_title FROM table_name_75 WHERE year = 1957
What movie was made in 1957?
CREATE TABLE table_name_75 (movie_title VARCHAR, year VARCHAR)
SELECT MIN(position) FROM table_name_95 WHERE goals_for > 95
For a team having goals for more than 95, what is the lowest position?
CREATE TABLE table_name_95 (position INTEGER, goals_for INTEGER)
SELECT MIN(opponents) FROM table_18847692_2
What is the minimum number of opponents?
CREATE TABLE table_18847692_2 (opponents INTEGER)
SELECT position FROM table_name_9 WHERE round = 3
what is the position in round 3?
CREATE TABLE table_name_9 (position VARCHAR, round VARCHAR)
SELECT vineyard_surface__2010_ FROM table_name_94 WHERE village = "gevrey-chambertin" AND grand_cru = "latricières-chambertin"
What is the Vineyeard surface (2010) with a Village of Gevrey-Chambertin, and Grand Cru of Latricières-Chambertin?
CREATE TABLE table_name_94 (vineyard_surface__2010_ VARCHAR, village VARCHAR, grand_cru VARCHAR)
SELECT COUNT(winner) FROM table_17111812_1 WHERE fourth = "Plan B"
How many times was Plan B 4th place?
CREATE TABLE table_17111812_1 (winner VARCHAR, fourth VARCHAR)
SELECT name FROM table_name_38 WHERE college = "cincinnati"
Who is from the College of Cincinnati?
CREATE TABLE table_name_38 (name VARCHAR, college VARCHAR)
SELECT one_mora FROM table_name_29 WHERE three_mora_word = "/˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]"
What is the one mora for the three-mora word /˩haruꜜ/ [hàɽɯ́ ~ hàɽɯ̂]?
CREATE TABLE table_name_29 (one_mora VARCHAR, three_mora_word VARCHAR)
SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 195
What dat did episode 195 in the series originally air?
CREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT tournament FROM table_name_36 WHERE date = "oct 23"
What is the name of the Tournament on oct 23?
CREATE TABLE table_name_36 (tournament VARCHAR, date VARCHAR)
SELECT year FROM table_15409403_1 WHERE playoffs = "Conference Finals"
When did the playoffs reached Conference Finals?
CREATE TABLE table_15409403_1 (year VARCHAR, playoffs VARCHAR)
SELECT division_north FROM table_17881033_1 WHERE season = "2007–08"
what is the division north in 2007–08
CREATE TABLE table_17881033_1 (division_north VARCHAR, season VARCHAR)
SELECT chip_model, screen_mode FROM phone WHERE Hardware_Model_name = "LG-P760"
What are the chip model and screen mode of the phone with hardware model name "LG-P760"?
CREATE TABLE phone (chip_model VARCHAR, screen_mode VARCHAR, Hardware_Model_name VARCHAR)
SELECT since_beginning_of_big_12 FROM table_name_28 WHERE last_10_meetings = "ou, 7-3" AND at_neutral_site = "ou, 2-1" AND last_5_meetings = "bu, 3-2"
what is the since beginning of big 12 when last 10 meetings is ou, 7-3, neutral site is ou, 2-1, and last 5 meetings is bu, 3-2?
CREATE TABLE table_name_28 (since_beginning_of_big_12 VARCHAR, last_5_meetings VARCHAR, last_10_meetings VARCHAR, at_neutral_site VARCHAR)
SELECT population_est__2012_ FROM table_name_61 WHERE capital = "santa fe"
What is the 2012 population for the state whose capital is Santa Fe?
CREATE TABLE table_name_61 (population_est__2012_ VARCHAR, capital VARCHAR)
SELECT report FROM table_10707142_2 WHERE circuit = "Nazareth Speedway"
what is the report called where the circuit took place at the nazareth speedway?
CREATE TABLE table_10707142_2 (report VARCHAR, circuit VARCHAR)
SELECT years FROM table_name_93 WHERE total = "1" AND sport = "softball"
For a total of 1 and the sport of softball what were the years?
CREATE TABLE table_name_93 (years VARCHAR, total VARCHAR, sport VARCHAR)
SELECT home_team AS score FROM table_16388398_1 WHERE away_team = "Sydney"
What was the score for the home team when the away team was Sydney?
CREATE TABLE table_16388398_1 (home_team VARCHAR, away_team VARCHAR)
SELECT SUM(year_2007) FROM table_name_23 WHERE year_2005 > 29 OFFSET 377
What is the sum of Year 2007(s), when the Year 2005 is greater than 29,377?
CREATE TABLE table_name_23 (year_2007 INTEGER, year_2005 INTEGER)
SELECT winner FROM table_name_72 WHERE points_classification = "tony rominger" AND stage = "17"
Which winner has a points classification of Tony Rominger at stage 17?
CREATE TABLE table_name_72 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR)
SELECT entrant FROM table_name_79 WHERE engine = "toyota rvx-07 2.4 v8"
What team used the toyota rvx-07 2.4 v8 engine
CREATE TABLE table_name_79 (entrant VARCHAR, engine VARCHAR)
SELECT school FROM table_name_96 WHERE player = "bo jackson"
What school did bo jackson attend?
CREATE TABLE table_name_96 (school VARCHAR, player VARCHAR)
SELECT record FROM table_name_99 WHERE score = "100-105"
Can you tell me the Record that has the Score of 100-105?
CREATE TABLE table_name_99 (record VARCHAR, score VARCHAR)
SELECT MAX(losses) FROM table_26200568_16 WHERE club = "Central Blues"
How many losses does Central Blues have?
CREATE TABLE table_26200568_16 (losses INTEGER, club VARCHAR)
SELECT tie_no FROM table_name_52 WHERE home_team = "portsmouth"
what is the tie number that has Portsmouth Home team
CREATE TABLE table_name_52 (tie_no VARCHAR, home_team VARCHAR)
SELECT COUNT(pop__2001_) FROM table_2134521_1 WHERE pop__1996_ = 880859
How many different results of the population count in 2001 are there for the census division whose population in 1996 is 880859?
CREATE TABLE table_2134521_1 (pop__2001_ VARCHAR, pop__1996_ VARCHAR)
SELECT name FROM table_name_9 WHERE capacity__mw_ = 25
What is the Name of the power station with a Capacity of 25 MW?
CREATE TABLE table_name_9 (name VARCHAR, capacity__mw_ VARCHAR)
SELECT COUNT(converted) FROM table_name_71 WHERE number = "35" AND withdrawn < 1952
How much Converted has a Number of 35, and a Withdrawn smaller than 1952?
CREATE TABLE table_name_71 (converted VARCHAR, number VARCHAR, withdrawn VARCHAR)
SELECT role FROM table_name_70 WHERE year = 1961
What were the roles in 1961?
CREATE TABLE table_name_70 (role VARCHAR, year VARCHAR)
SELECT home_team FROM table_name_69 WHERE date = "18 february 1956" AND tie_no = "3"
What is Home Team, when Date is 18 February 1956, and when Tie No is 3?
CREATE TABLE table_name_69 (home_team VARCHAR, date VARCHAR, tie_no VARCHAR)
SELECT nfl_team FROM table_2508633_11 WHERE position = "Linebacker" AND player = "Danny Triplett"
What NFL Team has the player Danny Triplett with the position linebacker?
CREATE TABLE table_2508633_11 (nfl_team VARCHAR, position VARCHAR, player VARCHAR)
SELECT MAX(three_pointers) FROM table_23183195_5 WHERE player = "DeWanna Bonner"
Name the most three pointers for dewanna bonner
CREATE TABLE table_23183195_5 (three_pointers INTEGER, player VARCHAR)
SELECT director FROM table_25800134_11 WHERE series__number = 422
Who directed series # 422?
CREATE TABLE table_25800134_11 (director VARCHAR, series__number VARCHAR)
SELECT title FROM table_25740548_4 WHERE us_viewers__million_ = "2.75"
Which episode had 2.75 million viewers in the U.S.?
CREATE TABLE table_25740548_4 (title VARCHAR, us_viewers__million_ VARCHAR)
SELECT COUNT(year) FROM table_name_48 WHERE rank = "31"
with rank of 31 what is the year?
CREATE TABLE table_name_48 (year VARCHAR, rank VARCHAR)
SELECT nosawa_rongai FROM table_name_97 WHERE block_a = "petey williams"
Name the NOSAWA Rongai for petey williams
CREATE TABLE table_name_97 (nosawa_rongai VARCHAR, block_a VARCHAR)
SELECT yacht AS Type FROM table_name_94 WHERE loa__metres_ = 15.15
What type of yacht has a LOA of 15.15 metres?
CREATE TABLE table_name_94 (yacht VARCHAR, loa__metres_ VARCHAR)
SELECT d_50 FROM table_name_77 WHERE d_43 = "r 43"
What is the D 50 when the D 43 is r 43?
CREATE TABLE table_name_77 (d_50 VARCHAR, d_43 VARCHAR)
SELECT incumbent FROM table_1341453_37 WHERE first_elected = 1972
Which incumbent was first elected in 1972?
CREATE TABLE table_1341453_37 (incumbent VARCHAR, first_elected VARCHAR)
SELECT record FROM table_name_61 WHERE game < 76
Can you tell me the Record that has the Game smaller than 76?
CREATE TABLE table_name_61 (record VARCHAR, game INTEGER)
SELECT MIN(draws) FROM table_name_91 WHERE points < 15 AND conceded > 10 AND position > 8 AND wins = 1
Which Draws has Points smaller than 15, and a Conceded larger than 10, and a Position larger than 8, and Wins of 1?
CREATE TABLE table_name_91 (draws INTEGER, wins VARCHAR, position VARCHAR, points VARCHAR, conceded VARCHAR)
SELECT MAX(games) FROM table_name_33 WHERE draws > 0 AND lost = 11
What is the highest number of games with more than 0 draws and 11 losses?
CREATE TABLE table_name_33 (games INTEGER, draws VARCHAR, lost VARCHAR)
SELECT away_team FROM table_name_77 WHERE home_team = "south melbourne"
What was the away team when the home team was South Melbourne?
CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR)
SELECT Weight FROM people ORDER BY Height LIMIT 1
What is the weight of the shortest person?
CREATE TABLE people (Weight VARCHAR, Height VARCHAR)
SELECT original_title FROM table_15277629_1 WHERE director = "Suzana Amaral"
Name the original title of the Suzana Amaral film
CREATE TABLE table_15277629_1 (original_title VARCHAR, director VARCHAR)
SELECT position FROM table_name_42 WHERE channel = "channel 4"
What is the position when the channel shows channel 4?
CREATE TABLE table_name_42 (position VARCHAR, channel VARCHAR)
SELECT team FROM table_17355716_5 WHERE date = "November 5"
Name the team for november 5
CREATE TABLE table_17355716_5 (team VARCHAR, date VARCHAR)
SELECT home FROM table_11964047_9 WHERE score = "L 80–88"
what's the home team where score is l 80–88
CREATE TABLE table_11964047_9 (home VARCHAR, score VARCHAR)
SELECT MAX(tie_no) FROM table_name_45 WHERE home_team = "bolton wanderers" AND date = "middlesbrough"
What was the highest Tie no when the home team was the Bolton Wanderers, and the date was Middlesbrough?
CREATE TABLE table_name_45 (tie_no INTEGER, home_team VARCHAR, date VARCHAR)
SELECT memory FROM table_name_93 WHERE socket = "socket g1" AND turbo = "1/1/6/9"
What is the memory with a socket g1 and a 1/1/6/9 turbo?
CREATE TABLE table_name_93 (memory VARCHAR, socket VARCHAR, turbo VARCHAR)
SELECT prime_mover FROM table_name_16 WHERE model = "fa-2"
What is the prime mover of the locomotive with a fa-2 model?
CREATE TABLE table_name_16 (prime_mover VARCHAR, model VARCHAR)
SELECT team FROM table_name_92 WHERE year = 2005
What Team was in 2005?
CREATE TABLE table_name_92 (team VARCHAR, year VARCHAR)
SELECT AVG(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith"
Find the average grade point of student whose last name is Smith.
CREATE TABLE ENROLLED_IN (Grade VARCHAR, StuID VARCHAR); CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE GRADECONVERSION (gradepoint INTEGER, lettergrade VARCHAR)
SELECT AVG(game) FROM table_name_6 WHERE points = 53 AND opponent = "@ minnesota north stars" AND december > 30
Which Game has Points of 53, and an Opponent of @ minnesota north stars, and a December larger than 30?
CREATE TABLE table_name_6 (game INTEGER, december VARCHAR, points VARCHAR, opponent VARCHAR)
SELECT gname FROM Plays_games AS T1 JOIN Video_games AS T2 ON T1.gameid = T2.gameid GROUP BY T1.gameid ORDER BY SUM(hours_played) DESC LIMIT 1
Show the game name that has most number of hours played.
CREATE TABLE Plays_games (gameid VARCHAR); CREATE TABLE Video_games (gameid VARCHAR)
SELECT bowl_game FROM table_name_42 WHERE season > 1968 AND location = "san francisco, ca"
What was the Bowl game in San Francisco, CA after 1968?
CREATE TABLE table_name_42 (bowl_game VARCHAR, season VARCHAR, location VARCHAR)
SELECT region FROM table_name_51 WHERE format_s_ = "cd" AND label = "toshiba emi"
What region is the toshiba emi label with a cd format?
CREATE TABLE table_name_51 (region VARCHAR, format_s_ VARCHAR, label VARCHAR)
SELECT couple FROM table_name_82 WHERE result = "third place" AND style = "cha-cha-cha"
Which Couple has a Result of third place, and a Style of cha-cha-cha?
CREATE TABLE table_name_82 (couple VARCHAR, result VARCHAR, style VARCHAR)
SELECT result FROM table_name_23 WHERE week < 9 AND attendance = "49,970"
What was the result of the game prior to week 9 with an attendance of 49,970?
CREATE TABLE table_name_23 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT COUNT(title) FROM table_2156758_4 WHERE written_by = "Don Shank and Genndy Tartakovsky"
How many titles were written by Don Shank and Genndy Tartakovsky?
CREATE TABLE table_2156758_4 (title VARCHAR, written_by VARCHAR)
SELECT position FROM table_14655985_1 WHERE college = "USC"
what's the position with college being usc
CREATE TABLE table_14655985_1 (position VARCHAR, college VARCHAR)
SELECT original_airdate FROM table_29039942_1 WHERE writer = "Daisuke Habara" AND director = "Akimitsu Sasaki"
What was the original airdate for the episode written by daisuke habara and directed by akimitsu sasaki
CREATE TABLE table_29039942_1 (original_airdate VARCHAR, writer VARCHAR, director VARCHAR)
SELECT name FROM table_name_59 WHERE location = "aston"
What is the name of the building at Aston?
CREATE TABLE table_name_59 (name VARCHAR, location VARCHAR)
SELECT MAX(earnings___) AS $__ FROM table_name_90 WHERE wins > 37
What is the highest earnings for the golfer who has more than 37 wins?
CREATE TABLE table_name_90 (earnings___ INTEGER, wins INTEGER)
SELECT SUM(copa_del_rey) FROM table_name_63 WHERE name = "guti" AND fifa_club_world_championship < 0
Which Copa del Rey has a Name of guti, and a FIFA Club World Championship smaller than 0?
CREATE TABLE table_name_63 (copa_del_rey INTEGER, name VARCHAR, fifa_club_world_championship VARCHAR)
SELECT tournament FROM table_name_41 WHERE 2009 = "grand slam tournaments"
What is Tournament, when 2009 is "Grand Slam Tournaments"?
CREATE TABLE table_name_41 (tournament VARCHAR)
SELECT COUNT(year) FROM table_name_73 WHERE award = "venice film festival" AND title = "lust, caution"
How many years have an Award of venice film festival, and a Title of lust, caution?
CREATE TABLE table_name_73 (year VARCHAR, award VARCHAR, title VARCHAR)
SELECT date FROM table_name_46 WHERE result = "l 38-14"
On what date was the Result l 38-14?
CREATE TABLE table_name_46 (date VARCHAR, result VARCHAR)
SELECT AVG(2006) FROM table_name_26 WHERE 2010 = 417.9 AND 2011 > 426.7
What is the average 2006 value with a 2010 value of 417.9 and a 2011 value greater than 426.7?
CREATE TABLE table_name_26 (Id VARCHAR)
SELECT opponent FROM table_name_67 WHERE winner = "bc 2"
Tell me the opponent for winner of bc 2
CREATE TABLE table_name_67 (opponent VARCHAR, winner VARCHAR)
SELECT competition FROM table_name_51 WHERE year > 1980 AND score = "0:5" AND location = "jerusalem"
Which competition occurred after 1980 with a score of 0:5 in Jerusalem?
CREATE TABLE table_name_51 (competition VARCHAR, location VARCHAR, year VARCHAR, score VARCHAR)
SELECT competing_entities FROM table_name_4 WHERE first_held < 1970
Can you tell me the Competing entities that has the First held smaller than 1970?
CREATE TABLE table_name_4 (competing_entities VARCHAR, first_held INTEGER)
SELECT season FROM table_name_72 WHERE head_coach = "jonas kazlauskas" AND europe = "champions cup group stage"
WHAT SEASON HAD COACH JONAS KAZLAUSKAS AT champions cup group stage?
CREATE TABLE table_name_72 (season VARCHAR, head_coach VARCHAR, europe VARCHAR)
SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400
At Balmoor Stadium, what's the total average having a greater than 400 lowest?
CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR)
SELECT iata FROM table_name_28 WHERE city = "jeddah"
Name the IATA for jeddah
CREATE TABLE table_name_28 (iata VARCHAR, city VARCHAR)
SELECT spi FROM table_16731248_1 WHERE number_on_cyl = "7"
Are there SPI on the number 7 cylinder?
CREATE TABLE table_16731248_1 (spi VARCHAR, number_on_cyl VARCHAR)
SELECT COUNT(erp_w) FROM table_name_2 WHERE frequency_mhz > 97.7
What's the sum of ERP W with a Frequency MHz that larger than 97.7?
CREATE TABLE table_name_2 (erp_w VARCHAR, frequency_mhz INTEGER)
SELECT party FROM table_1341738_34 WHERE incumbent = "Lawrence H. Fountain"
Which party is Lawrence H. Fountain part of?
CREATE TABLE table_1341738_34 (party VARCHAR, incumbent VARCHAR)