answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT founded FROM table_1974545_2 WHERE location = "Salem, Massachusetts"
When was the school in Salem, Massachusetts located?
CREATE TABLE table_1974545_2 (founded VARCHAR, location VARCHAR)
SELECT AVG(goals_for) FROM table_name_68 WHERE goal_difference < -16 AND club = "real oviedo" AND wins < 9
What was the average number of "goals for", scored in the club Real Oviedo that had a "goal difference" lower than -16 and fewer than 9 wins?
CREATE TABLE table_name_68 (goals_for INTEGER, wins VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT category FROM table_name_44 WHERE result = "nominated" AND year = 2010 AND award = "kids' choice awards mexico" AND recipient_s_ = "joe jonas"
What category was Joe Jonas nominated for at the Kids' Choice Awards Mexico in 2010?
CREATE TABLE table_name_44 (category VARCHAR, recipient_s_ VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
SELECT COUNT(laps) FROM table_name_2 WHERE time = "+7.951"
What was the total number of Laps for the rider whose time was +7.951?
CREATE TABLE table_name_2 (laps VARCHAR, time VARCHAR)
SELECT AVG(year) FROM table_name_13 WHERE mintage < 10 OFFSET 000
What was the average year for a coin that had a mintage smaller than 10,000?
CREATE TABLE table_name_13 (year INTEGER, mintage INTEGER)
SELECT Membership_card FROM member GROUP BY Membership_card HAVING COUNT(*) > 5
Which membership card has more than 5 members?
CREATE TABLE member (Membership_card VARCHAR)
SELECT SUM(heat) FROM table_name_17 WHERE name = "ivet lalova"
What's the sum of all of ivet lalova's Heat stats?
CREATE TABLE table_name_17 (heat INTEGER, name VARCHAR)
SELECT 2006 FROM table_name_70 WHERE 2005 = "jasmine wilson"
Who attended the school in 2006, that Jasmine Wilson attended in 2005?
CREATE TABLE table_name_70 (Id VARCHAR)
SELECT T2.Money_Rank FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Height DESC LIMIT 1
What is the money rank of the tallest poker player?
CREATE TABLE people (People_ID VARCHAR, Height VARCHAR); CREATE TABLE poker_player (Money_Rank VARCHAR, People_ID VARCHAR)
SELECT COUNT(original_airdate) FROM table_12451376_2 WHERE production_code = 208
What is the number of the original airdate with the production code 208.
CREATE TABLE table_12451376_2 (original_airdate VARCHAR, production_code VARCHAR)
SELECT Winners AS group_legs_won FROM table_24334163_1 WHERE player = "Mark Dudbridge"
How many group legs were won with player Mark Dudbridge?
CREATE TABLE table_24334163_1 (Winners VARCHAR, player VARCHAR)
SELECT SUM(games) FROM table_name_80 WHERE rank < 4 AND rebounds < 275 AND team = "bruesa gbc"
Which game did Bruesa GBC play in with fewer than 275 rebounds that is ranked less than 4?
CREATE TABLE table_name_80 (games INTEGER, team VARCHAR, rank VARCHAR, rebounds VARCHAR)
SELECT COUNT(mon_23_aug) FROM table_26986076_1 WHERE fri_27_aug = "19' 38.87 115.219mph"
How many times was the time 19' 38.87 115.219mph on Fri Aug 27?
CREATE TABLE table_26986076_1 (mon_23_aug VARCHAR, fri_27_aug VARCHAR)
SELECT COUNT(silver) FROM table_name_65 WHERE gold > 0 AND rank > 1 AND total < 4
How many silvers did the country with more than 0 gold and a rank above 1 win that had a total less than 4?
CREATE TABLE table_name_65 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT dob FROM table_name_56 WHERE first = "david" AND throws = "l" AND position = "if"
Which DOB has a First of david, and Throws of l, and a Position of if?
CREATE TABLE table_name_56 (dob VARCHAR, position VARCHAR, first VARCHAR, throws VARCHAR)
SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND bleeding_time = "unaffected"
I want the condition that has a partial thromboplastin time of prolonged and unaffected bleeding time
CREATE TABLE table_name_41 (condition VARCHAR, partial_thromboplastin_time VARCHAR, bleeding_time VARCHAR)
SELECT status FROM table_name_64 WHERE founded = 1996
What is the status of the institution that was founded in 1996?
CREATE TABLE table_name_64 (status VARCHAR, founded VARCHAR)
SELECT date FROM table_name_89 WHERE venue = "stade des martyrs, dr congo"
Tell me the date of stade des martyrs, dr congo
CREATE TABLE table_name_89 (date VARCHAR, venue VARCHAR)
SELECT MIN(pick__number) FROM table_name_6 WHERE college = "louisville" AND round < 10
What is the lowest Pick #, when College is "Louisville", and when Round is less than 10?
CREATE TABLE table_name_6 (pick__number INTEGER, college VARCHAR, round VARCHAR)
SELECT time FROM table_name_81 WHERE notes = "sa/b" AND athlete = "frida svensson"
What is the time of frida svensson's race that had sa/b under the notes?
CREATE TABLE table_name_81 (time VARCHAR, notes VARCHAR, athlete VARCHAR)
SELECT COUNT(play_off) FROM table_1059743_1 WHERE points = "813.5"
How many games had a score value of 813.5 in post-season play?
CREATE TABLE table_1059743_1 (play_off VARCHAR, points VARCHAR)
SELECT sound FROM table_name_77 WHERE producer_executive_producer = "jl"
Who was the sound producer that worked under Executive Producer JL?
CREATE TABLE table_name_77 (sound VARCHAR, producer_executive_producer VARCHAR)
SELECT MAX(attendance) FROM table_name_94 WHERE result = "5-1"
What is the highest attendance at a game with a result of 5-1?
CREATE TABLE table_name_94 (attendance INTEGER, result VARCHAR)
SELECT AVG(events_won_by_kcl) FROM table_name_58 WHERE year < 2004
What is the average value for events won by KCL in a year earlier than 2004?
CREATE TABLE table_name_58 (events_won_by_kcl INTEGER, year INTEGER)
SELECT record FROM table_14884844_2 WHERE athletes = "Elzbieta Urbanczik"
What are the records when Elzbieta Urbanczik competed?
CREATE TABLE table_14884844_2 (record VARCHAR, athletes VARCHAR)
SELECT COUNT(attendance) FROM table_name_68 WHERE game > 6
What is the number of people who attended the game later than game 6?
CREATE TABLE table_name_68 (attendance VARCHAR, game INTEGER)
SELECT owner FROM table_name_30 WHERE launch > 1997 AND hanzi = "厦门卫视"
Who is the owner of the object launched after 1997 and a Hanzi of 厦门卫视?
CREATE TABLE table_name_30 (owner VARCHAR, launch VARCHAR, hanzi VARCHAR)
SELECT penalties FROM table_name_88 WHERE pim = "34.5"
What penalties has P.I.M. of 34.5?
CREATE TABLE table_name_88 (penalties VARCHAR, pim VARCHAR)
SELECT opponent FROM table_name_55 WHERE date = "may 21"
What Opponent played on the Date May 21?
CREATE TABLE table_name_55 (opponent VARCHAR, date VARCHAR)
SELECT genre FROM table_name_7 WHERE title = "music in the air"
What genre was Music in the Air?
CREATE TABLE table_name_7 (genre VARCHAR, title VARCHAR)
SELECT loss FROM table_name_24 WHERE attendance = "37,119"
What was the loss of the game attended by 37,119?
CREATE TABLE table_name_24 (loss VARCHAR, attendance VARCHAR)
SELECT COUNT(silver) FROM table_name_13 WHERE gold < 2 AND bronze = 1 AND total > 2
What is the total number of silver medals of the team with less than 2 gold, 1 bronze, and more than 2 total medals?
CREATE TABLE table_name_13 (silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT result FROM table_name_9 WHERE attendance > 71 OFFSET 164
What was the result for the 71,164 in attendance?
CREATE TABLE table_name_9 (result VARCHAR, attendance INTEGER)
SELECT store_id FROM customer GROUP BY store_id ORDER BY COUNT(*) DESC LIMIT 1
Which store has most the customers?
CREATE TABLE customer (store_id VARCHAR)
SELECT city_of_license FROM table_name_56 WHERE status = "owned by coyote communications"
Which city station is owned by Coyote Communications?
CREATE TABLE table_name_56 (city_of_license VARCHAR, status VARCHAR)
SELECT COUNT(b_winning_car) FROM table_27965906_2 WHERE ss_winning_car = "Bobby Archer, Tommy Archer"
Name the total number of b winning car and bobby archer, tommy archer
CREATE TABLE table_27965906_2 (b_winning_car VARCHAR, ss_winning_car VARCHAR)
SELECT AVG(lane) FROM table_name_99 WHERE time = 54.95
Which average lane has 54.95 as a time?
CREATE TABLE table_name_99 (lane INTEGER, time VARCHAR)
SELECT to_par FROM table_name_5 WHERE player = "tiger woods"
What is Tiger Woods' to par?
CREATE TABLE table_name_5 (to_par VARCHAR, player VARCHAR)
SELECT AVG(games) FROM table_name_55 WHERE rank < 1
What is the average number of games of the player with a rank less than 1?
CREATE TABLE table_name_55 (games INTEGER, rank INTEGER)
SELECT MAX(production_in_2010__1), 000 AS _ton_ FROM table_293465_1 WHERE country = "Sweden"
When sweden is the country what is the highest production in 2010 (1,000 ton)?
CREATE TABLE table_293465_1 (production_in_2010__1 INTEGER, country VARCHAR)
SELECT tournament FROM table_name_85 WHERE winning_score = 66 - 68 - 70 - 70 = 274
Which tournament won with a score of 66-68-70-70=274?
CREATE TABLE table_name_85 (tournament VARCHAR, winning_score VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = "6"
Which College/Junior/Club Team (League) did the player in round 6 play for?
CREATE TABLE table_name_98 (college_junior_club_team__league_ VARCHAR, round VARCHAR)
SELECT share_of_seats FROM table_name_79 WHERE european_election__uk_ = 2009
Which Share of seats has a European election (UK) of 2009?
CREATE TABLE table_name_79 (share_of_seats VARCHAR, european_election__uk_ VARCHAR)
SELECT away_team FROM table_name_93 WHERE tie_no = "replay" AND score = "1–2"
Which Away team that has a Tie no of replay, and a Score of 1–2?
CREATE TABLE table_name_93 (away_team VARCHAR, tie_no VARCHAR, score VARCHAR)
SELECT years_as_tallest FROM table_name_53 WHERE floors = "44"
What were the years the building with 44 floors was tallest?
CREATE TABLE table_name_53 (years_as_tallest VARCHAR, floors VARCHAR)
SELECT AVG(heat) FROM table_name_28 WHERE mark = "52.83 sb" AND lane < 4
What is the average heat that has 52.83 sb mark and lane less than 4?
CREATE TABLE table_name_28 (heat INTEGER, mark VARCHAR, lane VARCHAR)
SELECT runner_up FROM table_name_20 WHERE venue = "berlin" AND result = "2-0" AND attendance = "100,000"
Who was runner-up at Berlin when the result was 2-0 with 100,000 fans in attendance?
CREATE TABLE table_name_20 (runner_up VARCHAR, attendance VARCHAR, venue VARCHAR, result VARCHAR)
SELECT episode FROM table_1723080_1 WHERE broadcast_date = "11July1964"
What episode aired on 11july1964?
CREATE TABLE table_1723080_1 (episode VARCHAR, broadcast_date VARCHAR)
SELECT wins FROM table_name_6 WHERE points = 7
What is the number of wins when there are 7 points?
CREATE TABLE table_name_6 (wins VARCHAR, points VARCHAR)
SELECT location FROM table_name_10 WHERE pole_position = "tom pryce"
Where did the team in which Tom Pryce was in Pole Position race?
CREATE TABLE table_name_10 (location VARCHAR, pole_position VARCHAR)
SELECT COUNT(languages) FROM table_22073745_1 WHERE film_title_used_in_nomination = "Refractaire"
How many languages is refractaire as the film title used in nomination?
CREATE TABLE table_22073745_1 (languages VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT engine FROM table_name_87 WHERE model = "2.0 bitdi (cr) dpf" AND torque = "n·m (lb·ft) @ 1500–2000 rpm"
What is the engine for model 2.0 bitdi (cr) dpf, with a Torque of n·m (lb·ft) @ 1500–2000 rpm?
CREATE TABLE table_name_87 (engine VARCHAR, model VARCHAR, torque VARCHAR)
SELECT Total FROM body_builder ORDER BY Total
List the total scores of body builders in ascending order.
CREATE TABLE body_builder (Total VARCHAR)
SELECT artist FROM table_name_29 WHERE finish = "selective gold plating"
Which artist uses a finish of selective gold plating?
CREATE TABLE table_name_29 (artist VARCHAR, finish VARCHAR)
SELECT poles FROM table_27786562_1 WHERE season = 2006
Name the poles for season 2006
CREATE TABLE table_27786562_1 (poles VARCHAR, season VARCHAR)
SELECT dominant_religion__2002_ FROM table_2562572_9 WHERE cyrillic_name_other_names = "Нови Сад"
What is the dominant religion for нови сад in 2002?
CREATE TABLE table_2562572_9 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT player FROM table_name_62 WHERE score = 70 - 75 = 145
Who is the player with a 70-75=145 score?
CREATE TABLE table_name_62 (player VARCHAR, score VARCHAR)
SELECT bird_uniform FROM table_name_78 WHERE rank = "g2"
What is the bird uniform that is associated with the rank of G2?
CREATE TABLE table_name_78 (bird_uniform VARCHAR, rank VARCHAR)
SELECT T1.driverid, T1.forename, T1.surname FROM drivers AS T1 JOIN laptimes AS T2 ON T1.driverid = T2.driverid WHERE POSITION = '1' GROUP BY T1.driverid HAVING COUNT(*) >= 2
What is the id, forname and surname of the driver who had the first position in terms of laptime at least twice?
CREATE TABLE drivers (driverid VARCHAR, forename VARCHAR, surname VARCHAR); CREATE TABLE laptimes (driverid VARCHAR)
SELECT city FROM table_name_6 WHERE date = "5th" AND name = "guelferbytanus b"
I want to know the city for guelferbytanus b and the 5th
CREATE TABLE table_name_6 (city VARCHAR, date VARCHAR, name VARCHAR)
SELECT flight FROM table_name_28 WHERE aircraft = "avro rj-100"
Which flight had the aircraft avro rj-100?
CREATE TABLE table_name_28 (flight VARCHAR, aircraft VARCHAR)
SELECT game FROM table_name_31 WHERE record = "1-2"
Which game number includes a record of 1-2?
CREATE TABLE table_name_31 (game VARCHAR, record VARCHAR)
SELECT COUNT(gold) FROM table_name_64 WHERE nation = "germany (ger)" AND rank < 15
How many gold medals for germany (GER) having a rank less than 15?
CREATE TABLE table_name_64 (gold VARCHAR, nation VARCHAR, rank VARCHAR)
SELECT competition FROM table_name_91 WHERE score = "2-0"
What is the name of the competition that has a score of 2-0?
CREATE TABLE table_name_91 (competition VARCHAR, score VARCHAR)
SELECT nominating_festival FROM table_name_72 WHERE director_s_ = "olga baillif"
Which nominating festival did Olga Baillif enter?
CREATE TABLE table_name_72 (nominating_festival VARCHAR, director_s_ VARCHAR)
SELECT for_shank_type FROM table_28652521_1 WHERE storage_case = "red plastic box"
What's the shank type of the buttonholer with red plastic box as storage case?
CREATE TABLE table_28652521_1 (for_shank_type VARCHAR, storage_case VARCHAR)
SELECT date FROM table_name_91 WHERE label = "simply vinyl"
The release from Simply Vinyl label was on what date?
CREATE TABLE table_name_91 (date VARCHAR, label VARCHAR)
SELECT silver FROM table_name_9 WHERE nation = "mexico"
what is the silver for mexico?
CREATE TABLE table_name_9 (silver VARCHAR, nation VARCHAR)
SELECT team_name FROM table_name_97 WHERE losses = 6 AND games > 18
Who is the team that has played more than 18 games and has 6 losses?
CREATE TABLE table_name_97 (team_name VARCHAR, losses VARCHAR, games VARCHAR)
SELECT COUNT(title) FROM table_23287683_1 WHERE series__number = 95
How many episodes had a series number of 95?
CREATE TABLE table_23287683_1 (title VARCHAR, series__number VARCHAR)
SELECT drawn FROM table_name_79 WHERE points_against = "542"
What is the drawn by the club with 542 points against?
CREATE TABLE table_name_79 (drawn VARCHAR, points_against VARCHAR)
SELECT rank FROM table_name_3 WHERE qual = "141.471"
What is the rank of the qual 141.471?
CREATE TABLE table_name_3 (rank VARCHAR, qual VARCHAR)
SELECT position FROM table_name_83 WHERE jersey__number > 30 AND birthdate = "december 23, 1986"
What is the position of the player with a jersey # greater than 30 and a December 23, 1986 birthdate?
CREATE TABLE table_name_83 (position VARCHAR, jersey__number VARCHAR, birthdate VARCHAR)
SELECT lyricist FROM table_name_14 WHERE film = "mukti"
Who wrote the lyrics for Mukti?
CREATE TABLE table_name_14 (lyricist VARCHAR, film VARCHAR)
SELECT MIN(clock_rate__mhz_) FROM table_142573_1 WHERE designation = "RIMM 4200"
Name the least clock rate mhz when designation is rimm 4200
CREATE TABLE table_142573_1 (clock_rate__mhz_ INTEGER, designation VARCHAR)
SELECT name FROM table_name_47 WHERE creator = "hyriand"
Who is a Creator of hyriand?
CREATE TABLE table_name_47 (name VARCHAR, creator VARCHAR)
SELECT crowd FROM table_name_78 WHERE venue = "moorabbin oval"
What was the attendance at the game played at Moorabbin Oval?
CREATE TABLE table_name_78 (crowd VARCHAR, venue VARCHAR)
SELECT T1.Model FROM CAR_NAMES AS T1 JOIN CARS_DATA AS T2 ON T1.MakeId = T2.Id ORDER BY T2.mpg DESC LIMIT 1
Which model saves the most gasoline? That is to say, have the maximum miles per gallon.
CREATE TABLE CAR_NAMES (Model VARCHAR, MakeId VARCHAR); CREATE TABLE CARS_DATA (Id VARCHAR, mpg VARCHAR)
SELECT opponents_in_the_final FROM table_name_5 WHERE championship = "u.s. championships" AND year > 1945 AND score = "3–6, 6–4, 2–6, 6–3, 20–18"
which opponents in the u.s. championships played after 1945 and had a score of 3–6, 6–4, 2–6, 6–3, 20–18?
CREATE TABLE table_name_5 (opponents_in_the_final VARCHAR, score VARCHAR, championship VARCHAR, year VARCHAR)
SELECT T1.season FROM game AS T1 JOIN injury_accident AS T2 ON T1.id = T2.game_id WHERE T2.player = 'Walter Samuel'
What is the season of the game which causes the player 'Walter Samuel' to get injured?
CREATE TABLE injury_accident (game_id VARCHAR, player VARCHAR); CREATE TABLE game (season VARCHAR, id VARCHAR)
SELECT dates_of_captaincy FROM table_name_14 WHERE _percentage_win_[a_] = 35.71
What dates of captaincy for a win % of 35.71?
CREATE TABLE table_name_14 (dates_of_captaincy VARCHAR, _percentage_win_ VARCHAR, a_ VARCHAR)
SELECT away_team FROM table_name_85 WHERE home_team = "tottenham hotspur"
Who is the away team that tottenham hotspur played?
CREATE TABLE table_name_85 (away_team VARCHAR, home_team VARCHAR)
SELECT DISTINCT TYPE FROM vocals
Find all the vocal types.
CREATE TABLE vocals (TYPE VARCHAR)
SELECT competition FROM table_name_52 WHERE attendance > 914 AND opponent = "wightlink raiders"
What kind of competition had an attendance of more than 914 people and the Wightlink Raiders as an opponent?
CREATE TABLE table_name_52 (competition VARCHAR, attendance VARCHAR, opponent VARCHAR)
SELECT open_cup FROM table_2365150_1 WHERE league = "USL PDL" AND playoffs = "Did not qualify"
Name the open cup for usl pdl for did not qualify
CREATE TABLE table_2365150_1 (open_cup VARCHAR, league VARCHAR, playoffs VARCHAR)
SELECT years FROM table_name_1 WHERE jersey_number_s_ < 3
What years was the jersey number(s) smaller than 3?
CREATE TABLE table_name_1 (years VARCHAR, jersey_number_s_ INTEGER)
SELECT catalog FROM table_name_72 WHERE date > 2004
Tell me the catalog for date larger than 2004
CREATE TABLE table_name_72 (catalog VARCHAR, date INTEGER)
SELECT max_downstream_throughput___mbit_s__ FROM table_2394927_1 WHERE profile = "8b"
List all mbit/s with profiles of 8b.
CREATE TABLE table_2394927_1 (max_downstream_throughput___mbit_s__ VARCHAR, profile VARCHAR)
SELECT city FROM table_name_25 WHERE winner = "ruben visser"
What is the City, when the Winner is Ruben Visser?
CREATE TABLE table_name_25 (city VARCHAR, winner VARCHAR)
SELECT MIN(opponents) FROM table_24560733_1
What was the minimum number for opponents?
CREATE TABLE table_24560733_1 (opponents INTEGER)
SELECT 1 AS st_leg FROM table_name_76 WHERE team__number2 = "emelec"
What is 1st Leg, when Team #2 is "Emelec"?
CREATE TABLE table_name_76 (team__number2 VARCHAR)
SELECT rarotongan FROM table_name_15 WHERE tahitian = "/metua/"
What kind of Rarotongan has a Tahitian of /metua/?
CREATE TABLE table_name_15 (rarotongan VARCHAR, tahitian VARCHAR)
SELECT original_air_date FROM table_24425976_7 WHERE season = 4
What date did episode 4 in the season originally air?
CREATE TABLE table_24425976_7 (original_air_date VARCHAR, season VARCHAR)
SELECT target_version FROM table_name_91 WHERE last_release = "2009-08-09, 1.2.9"
What is Target Version, when Last Release is 2009-08-09, 1.2.9?
CREATE TABLE table_name_91 (target_version VARCHAR, last_release VARCHAR)
SELECT latitude FROM table_18600760_4 WHERE township = "Deer Lake"
Name the latitude for deer lake
CREATE TABLE table_18600760_4 (latitude VARCHAR, township VARCHAR)
SELECT COUNT(points) FROM table_name_62 WHERE year > 1988
with year greater than 1988 what is the total number of points?
CREATE TABLE table_name_62 (points VARCHAR, year INTEGER)
SELECT home_team AS score FROM table_name_39 WHERE venue = "mcg"
What did the home team score at MCG?
CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR)
SELECT home FROM table_name_29 WHERE visitor = "toronto"
Name the home with toronto visiting
CREATE TABLE table_name_29 (home VARCHAR, visitor VARCHAR)
SELECT length FROM table_name_60 WHERE daily_ridership > 414
Daily ridership greater that 414 is associated with which length?
CREATE TABLE table_name_60 (length VARCHAR, daily_ridership INTEGER)
SELECT to_par FROM table_name_35 WHERE country = "south africa"
What is South Africa's to par?
CREATE TABLE table_name_35 (to_par VARCHAR, country VARCHAR)