answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT reunion_weight FROM table_28654454_5 WHERE lbs_lost_reunion = 52
What is the reunion weight of the contestant that lost 52 lbs at the reunion?
CREATE TABLE table_28654454_5 (reunion_weight VARCHAR, lbs_lost_reunion VARCHAR)
SELECT COUNT(moto2_winner) FROM table_27948565_1 WHERE circuit = "Laguna Seca"
Name the total number of moto2 winners for laguna seca
CREATE TABLE table_27948565_1 (moto2_winner VARCHAR, circuit VARCHAR)
SELECT T1.department_id, T1.name, COUNT(*) FROM management AS T2 JOIN department AS T1 ON T1.department_id = T2.department_id GROUP BY T1.department_id HAVING COUNT(*) > 1
Which department has more than 1 head at a time? List the id, name and the number of heads.
CREATE TABLE management (department_id VARCHAR); CREATE TABLE department (department_id VARCHAR, name VARCHAR)
SELECT ground FROM table_name_65 WHERE match = 8
Where was match 8 played?
CREATE TABLE table_name_65 (ground VARCHAR, match VARCHAR)
SELECT AVG(goals_against) FROM table_name_50 WHERE drawn > 9 AND lost > 15 AND position = 24 AND played < 46
Which Goals Against has a Drawn larger than 9, a Lost larger than 15, a Position of 24, and a Played smaller than 46?
CREATE TABLE table_name_50 (goals_against INTEGER, played VARCHAR, position VARCHAR, drawn VARCHAR, lost VARCHAR)
SELECT to_par FROM table_name_39 WHERE country = "argentina"
What is the To par of the Player from Argentina?
CREATE TABLE table_name_39 (to_par VARCHAR, country VARCHAR)
SELECT no10 FROM table_name_10 WHERE no8 = "diana"
What was the No. 10 team that has No. 8 of Diana?
CREATE TABLE table_name_10 (no10 VARCHAR, no8 VARCHAR)
SELECT COUNT(average) FROM table_name_99 WHERE matches < 52 AND runs < 4564 AND wickets < 265
Name the total number of average for wickets less than 265, runs less than 4564 and matches less than 52
CREATE TABLE table_name_99 (average VARCHAR, wickets VARCHAR, matches VARCHAR, runs VARCHAR)
SELECT viewers__in_millions_ FROM table_1849243_1 WHERE run_time = "23:55"
How many viewers in millions watched the episode 23:55 minutes long?
CREATE TABLE table_1849243_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR)
SELECT SUM(e_score) FROM table_name_7 WHERE total = 19.466
What was the sum of the E scores when the total score was 19.466?
CREATE TABLE table_name_7 (e_score INTEGER, total VARCHAR)
SELECT player FROM table_name_71 WHERE nationality = "united states" AND position = "small forward" AND years_for_grizzlies = "1999-2002"
Who was the 1999-2002 Years for Grizzlies small forward Player who was from the United States?
CREATE TABLE table_name_71 (player VARCHAR, years_for_grizzlies VARCHAR, nationality VARCHAR, position VARCHAR)
SELECT AVG(year) FROM table_name_14 WHERE team = "montreal expos"
What is the average year of the montreal expos?
CREATE TABLE table_name_14 (year INTEGER, team VARCHAR)
SELECT theme_song_s_ FROM table_name_64 WHERE romaji_title = "yukan club"
What is the Theme Song of the Yukan Club?
CREATE TABLE table_name_64 (theme_song_s_ VARCHAR, romaji_title VARCHAR)
SELECT location FROM table_1973842_2 WHERE nickname = "Tigers"
Where is the school with nickname Tigers located?
CREATE TABLE table_1973842_2 (location VARCHAR, nickname VARCHAR)
SELECT player FROM table_197638_6 WHERE french_open = 1999
Who won the French Open in 1999?
CREATE TABLE table_197638_6 (player VARCHAR, french_open VARCHAR)
SELECT AVG(crowd) FROM table_name_32 WHERE venue = "brunswick street oval"
What is the average crowd size for Brunswick street oval?
CREATE TABLE table_name_32 (crowd INTEGER, venue VARCHAR)
SELECT college FROM table_name_11 WHERE round > 1 AND pick > 163
What is College, when Round is greater than 1, and when Pick is greater than 163?
CREATE TABLE table_name_11 (college VARCHAR, round VARCHAR, pick VARCHAR)
SELECT COUNT(DISTINCT customer_id) FROM Accounts
How many customers have an account?
CREATE TABLE Accounts (customer_id VARCHAR)
SELECT team_2 FROM table_name_6 WHERE team_1 = "turnovo"
What is the team 2 with turnovo as team 1?
CREATE TABLE table_name_6 (team_2 VARCHAR, team_1 VARCHAR)
SELECT MIN(year) FROM table_name_11 WHERE venue = "edmonton, canada" AND weight_class__kg_ > 100
What is the lowest year that has edmonton, canada as the venue with a weight class (kg) greater than 100?
CREATE TABLE table_name_11 (year INTEGER, venue VARCHAR, weight_class__kg_ VARCHAR)
SELECT date FROM table_name_40 WHERE surface = "hard" AND opponent = "eva hrdinová"
What date was the surface hard and Eva Hrdinová was the opponent?
CREATE TABLE table_name_40 (date VARCHAR, surface VARCHAR, opponent VARCHAR)
SELECT car FROM table_28046929_2 WHERE driver = "Mark Higgins"
what is the type of vehicle driven by mark higgins
CREATE TABLE table_28046929_2 (car VARCHAR, driver VARCHAR)
SELECT week_6 FROM table_name_85 WHERE week_3 = "25" AND week_7 = "eliminated"
Name the week 6 when week 3 is 25 and week 7 is eliminated
CREATE TABLE table_name_85 (week_6 VARCHAR, week_3 VARCHAR, week_7 VARCHAR)
SELECT away_team FROM table_name_63 WHERE home_team = "solon"
What is the away team when solon was the home team?
CREATE TABLE table_name_63 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(location_s_) FROM table_19897294_10 WHERE family_families = "The Bailey Family"
In how many locations was the episode with the Bailey family filmed?
CREATE TABLE table_19897294_10 (location_s_ VARCHAR, family_families VARCHAR)
SELECT dob FROM table_26847237_2 WHERE club = "Inglewood"
What is the date of birth for the player in the Inglewood club?
CREATE TABLE table_26847237_2 (dob VARCHAR, club VARCHAR)
SELECT MAX(against) FROM table_name_55 WHERE peel = "waroona" AND byes > 0
Which Against has a Peel of waroona, and a Byes larger than 0?
CREATE TABLE table_name_55 (against INTEGER, peel VARCHAR, byes VARCHAR)
SELECT COUNT(team_s_) FROM table_2182562_2 WHERE avg_start = "12.9"
How many different teams had an average start of 12.9?
CREATE TABLE table_2182562_2 (team_s_ VARCHAR, avg_start VARCHAR)
SELECT date FROM table_name_61 WHERE tournament = "u.s. women's open"
What is the date of the U.S. Women's open?
CREATE TABLE table_name_61 (date VARCHAR, tournament VARCHAR)
SELECT die_size__mm_2___[1] FROM table_1439045_5 WHERE model = "SGX531"
What is the die size(mm 2) for model sgx531?
CREATE TABLE table_1439045_5 (die_size__mm_2___ VARCHAR, model VARCHAR)
SELECT record FROM table_name_48 WHERE date = "january 10"
What's the record for january 10?
CREATE TABLE table_name_48 (record VARCHAR, date VARCHAR)
SELECT MAX(no_in_series) FROM table_21164557_1 WHERE directed_by = "John Behring"
What episode number in the series was directed by John Behring?
CREATE TABLE table_21164557_1 (no_in_series INTEGER, directed_by VARCHAR)
SELECT college_junior_club_team FROM table_name_91 WHERE nationality = "united states"
What was the College/junior/club team of the player with the united states nationality?
CREATE TABLE table_name_91 (college_junior_club_team VARCHAR, nationality VARCHAR)
SELECT AVG(independent) FROM table_name_35 WHERE green > 7 AND conservative < 0
Name the average Independent with a Green larger than 7, and a Conservative smaller than 0?
CREATE TABLE table_name_35 (independent INTEGER, green VARCHAR, conservative VARCHAR)
SELECT march FROM table_name_53 WHERE august = "gianna amore"
Who is the March playmate with an August playmate Gianna Amore?
CREATE TABLE table_name_53 (march VARCHAR, august VARCHAR)
SELECT COUNT(premio) FROM table_27501971_2 WHERE categoría = "Artist of the Year"
How many premio are there when "Artist of the Year" was the categoria?
CREATE TABLE table_27501971_2 (premio VARCHAR, categoría VARCHAR)
SELECT location FROM table_name_11 WHERE event = "conquista fight 1"
What is the location of the Conquista Fight 1?
CREATE TABLE table_name_11 (location VARCHAR, event VARCHAR)
SELECT Name FROM mountain WHERE Height > 5000 OR Prominence > 1000
Show the names of mountains with height more than 5000 or prominence more than 1000.
CREATE TABLE mountain (Name VARCHAR, Height VARCHAR, Prominence VARCHAR)
SELECT COUNT(rd__number) FROM table_name_24 WHERE reg_gp = 0 AND pick__number = 150
What is the rd number where the reg GP is 0 and the pick is 150?
CREATE TABLE table_name_24 (rd__number VARCHAR, reg_gp VARCHAR, pick__number VARCHAR)
SELECT prince_devitt FROM table_name_49 WHERE block_a = "yamato"
What is the Prince Devitt when Block A is Yamato?
CREATE TABLE table_name_49 (prince_devitt VARCHAR, block_a VARCHAR)
SELECT 2005 AS _film FROM table_26436_2 WHERE original_broadway_cast = "Jesse L. Martin"
who was in the 2005 role when the original broadway cast was played by jesse l. martin?
CREATE TABLE table_26436_2 (original_broadway_cast VARCHAR)
SELECT pali FROM table_name_54 WHERE english = "mindfulness of breathing"
Which Pali has an English of mindfulness of breathing?
CREATE TABLE table_name_54 (pali VARCHAR, english VARCHAR)
SELECT margin FROM table_name_26 WHERE winning_score = –7(71 - 72 - 67 - 71 = 281)
Which Margin has a Winning score of –7 (71-72-67-71=281)?
CREATE TABLE table_name_26 (margin VARCHAR, winning_score VARCHAR)
SELECT group FROM table_1358608_2 WHERE weight__kg_ = "56.5"
What group info is available for the 56.5 kg weight?
CREATE TABLE table_1358608_2 (group VARCHAR, weight__kg_ VARCHAR)
SELECT date FROM table_name_99 WHERE home = "platense"
What is the date for the game where Platense was the home side?
CREATE TABLE table_name_99 (date VARCHAR, home VARCHAR)
SELECT name FROM table_name_51 WHERE points > 167.5
Who has points larger than 167.5?
CREATE TABLE table_name_51 (name VARCHAR, points INTEGER)
SELECT production FROM table_name_67 WHERE result = "nominated" AND year = 2009 AND award_ceremony = "helpmann awards"
Which Production in 2009 had a Result of Nominated at the Helpmann awards Award Ceremony?
CREATE TABLE table_name_67 (production VARCHAR, award_ceremony VARCHAR, result VARCHAR, year VARCHAR)
SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science"
Find the last names of faculties who are members of computer science department.
CREATE TABLE DEPARTMENT (DNO VARCHAR, DName VARCHAR); CREATE TABLE MEMBER_OF (DNO VARCHAR, FacID VARCHAR); CREATE TABLE FACULTY (Lname VARCHAR, FacID VARCHAR)
SELECT engine FROM table_name_37 WHERE driver = "ken downing" AND entrant = "connaught engineering"
what was the engine when ken downing drove an entrant from connaught engineering?
CREATE TABLE table_name_37 (engine VARCHAR, driver VARCHAR, entrant VARCHAR)
SELECT opponent FROM table_name_31 WHERE date = "december 18, 2005"
Who were the Opponents on December 18, 2005?
CREATE TABLE table_name_31 (opponent VARCHAR, date VARCHAR)
SELECT AVG(heat_rank) FROM table_name_48 WHERE lane = 2 AND time < 27.66
Tell me the average heat rank with a lane of 2 and time less than 27.66
CREATE TABLE table_name_48 (heat_rank INTEGER, lane VARCHAR, time VARCHAR)
SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3
How many golds for nations with over 0 silvers, over 1 total, and over 3 bronze?
CREATE TABLE table_name_40 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR)
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 result FROM table_name_79 WHERE offer_team = "new york rangers" AND player = "adam graves"
What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player?
CREATE TABLE table_name_79 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
SELECT AVG(lost) FROM table_name_33 WHERE diff > -16 AND points = 19 AND against > 24
What is the average number lost with a difference of -16, 19 points, and more than 24 against?
CREATE TABLE table_name_33 (lost INTEGER, against VARCHAR, diff VARCHAR, points VARCHAR)
SELECT COUNT(tries_against) FROM table_14058433_4 WHERE lost = "11"
how many tries against with lost being 11
CREATE TABLE table_14058433_4 (tries_against VARCHAR, lost VARCHAR)
SELECT jockey FROM table_name_44 WHERE horse = "mad rush"
Who rode mad rush?
CREATE TABLE table_name_44 (jockey VARCHAR, horse VARCHAR)
SELECT COUNT(years_for_rockets) FROM table_11734041_20 WHERE school_club_team_country = "Baylor"
what is the total number of years for rockets where school/club team/country is baylor
CREATE TABLE table_11734041_20 (years_for_rockets VARCHAR, school_club_team_country VARCHAR)
SELECT venue FROM table_name_56 WHERE away_team = "hawthorn"
Hawthorn played as an Away team in which venue?
CREATE TABLE table_name_56 (venue VARCHAR, away_team VARCHAR)
SELECT new_entries_this_round FROM table_name_90 WHERE matches > 16 AND round = "third round qualifying"
How many new entries this round are there with more than 16 matches and a third round qualifying?
CREATE TABLE table_name_90 (new_entries_this_round VARCHAR, matches VARCHAR, round VARCHAR)
SELECT MAX(goals) FROM table_name_3 WHERE points < 0
What is the largest amount of goals when the points are less than 0?
CREATE TABLE table_name_3 (goals INTEGER, points INTEGER)
SELECT director FROM table_name_93 WHERE year__ceremony_ = 2001
What was the Director with a Ceremony of 2001?
CREATE TABLE table_name_93 (director VARCHAR, year__ceremony_ VARCHAR)
SELECT first_game FROM table_name_89 WHERE lost > 4
When was the first game associated with over 4 losses?
CREATE TABLE table_name_89 (first_game VARCHAR, lost INTEGER)
SELECT date FROM table_name_75 WHERE home_team = "collingwood"
What date did Collingwood play as the home team?
CREATE TABLE table_name_75 (date VARCHAR, home_team VARCHAR)
SELECT MIN(week_3) FROM table_28946565_2
What is the smallest week 3 score?
CREATE TABLE table_28946565_2 (week_3 INTEGER)
SELECT stadium FROM table_name_1 WHERE host_team = "jacksonville jaguars"
What is the Stadium that hosts the team Jacksonville Jaguars?
CREATE TABLE table_name_1 (stadium VARCHAR, host_team VARCHAR)
SELECT event FROM table_name_72 WHERE year = 2000
Which event has a year of 2000?
CREATE TABLE table_name_72 (event VARCHAR, year VARCHAR)
SELECT MIN(apps) FROM table_name_33 WHERE rank = 3 AND win__percentage < 0
What is the lowest apps for rank 3 and 0% wins?
CREATE TABLE table_name_33 (apps INTEGER, rank VARCHAR, win__percentage VARCHAR)
SELECT COUNT(game) FROM table_name_2 WHERE points < 15 AND date = "november 15" AND attendance > 13 OFFSET 722
Total games for smaller than 15 points, date of november 15, and larger that 13,722 in attendance?
CREATE TABLE table_name_2 (game VARCHAR, attendance VARCHAR, points VARCHAR, date VARCHAR)
SELECT performer_3 FROM table_name_11 WHERE performer_4 = "rory bremner"
Who was the 3rd performer when Rory Bremner was the 4th performer?
CREATE TABLE table_name_11 (performer_3 VARCHAR, performer_4 VARCHAR)
SELECT reporters FROM table_22514845_2 WHERE year = 2003
Name the reporters for 2003
CREATE TABLE table_22514845_2 (reporters VARCHAR, year VARCHAR)
SELECT object_type FROM table_name_58 WHERE declination___j2000__ = "°03′32″"
What Object Type has a °03′32″ Declination (J2000)?
CREATE TABLE table_name_58 (object_type VARCHAR, declination___j2000__ VARCHAR)
SELECT MIN(season__number) FROM table_19852975_3 WHERE arties_disguises = "Herr Ostropolyer, pastry chef"
Name the season number for herr ostropolyer, pastry chef
CREATE TABLE table_19852975_3 (season__number INTEGER, arties_disguises VARCHAR)
SELECT result FROM table_name_36 WHERE home_captain = "courtney walsh"
What is the result of Courtney Walsh ?
CREATE TABLE table_name_36 (result VARCHAR, home_captain VARCHAR)
SELECT game FROM table_name_55 WHERE home_team = "philadelphia" AND date = "april 23"
Which game had Philadelphia as its home team and was played on April 23?
CREATE TABLE table_name_55 (game VARCHAR, home_team VARCHAR, date VARCHAR)
SELECT nfl_team FROM table_14650373_1 WHERE player = "Keith Woodside"
What NFL team does player keith woodside play for?
CREATE TABLE table_14650373_1 (nfl_team VARCHAR, player VARCHAR)
SELECT years FROM table_name_35 WHERE name = "mount roskill grammar school"
What year was the name mount roskill grammar school?
CREATE TABLE table_name_35 (years VARCHAR, name VARCHAR)
SELECT scores FROM table_23292220_17 WHERE seans_team = "Chris Ramsey and Carol Vorderman"
Name the scores for chris ramsey and carol vorderman
CREATE TABLE table_23292220_17 (scores VARCHAR, seans_team VARCHAR)
SELECT verb_meaning FROM table_1745843_2 WHERE part_3 = "*bundun"
What is the verb meaning for *bundun?
CREATE TABLE table_1745843_2 (verb_meaning VARCHAR, part_3 VARCHAR)
SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours"
What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours?
CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR)
SELECT MAX(draws) FROM table_16034882_3 WHERE club = "Sveikata Kybartai"
what is the highest number of draws for sveikata kybartai
CREATE TABLE table_16034882_3 (draws INTEGER, club VARCHAR)
SELECT player FROM table_name_67 WHERE money___$__ = "450" AND score = 76 - 74 - 74 - 72 = 296
Which player has $450 and a score of 76-74-74-72=296?
CREATE TABLE table_name_67 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT team FROM table_name_86 WHERE date = "december 30"
WHAT IS THE TEAM FOR DECEMBER 30?
CREATE TABLE table_name_86 (team VARCHAR, date VARCHAR)
SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008
What was the rank of a transfer fee larger than 13 million, and after 2008?
CREATE TABLE table_name_26 (rank VARCHAR, transfer_fee___€_million_ VARCHAR, year VARCHAR)
SELECT AVG(against) FROM table_name_74 WHERE status = "2007 rugby world cup" AND opposing_teams = "u.s.a."
What is the average Against, when Status is "2007 Rugby World Cup", and when Opposing Teams is "U.S.A."?
CREATE TABLE table_name_74 (against INTEGER, status VARCHAR, opposing_teams VARCHAR)
SELECT SUM(points) FROM table_name_53 WHERE year > 1993 AND entrant = "sasol jordan"
For the Entrant of Sasol Jordan, add up all the points with a Year larger than 1993.
CREATE TABLE table_name_53 (points INTEGER, year VARCHAR, entrant VARCHAR)
SELECT COUNT(attendance) FROM table_14102379_4 WHERE stadium = "Cotton Bowl"
how many attendance with stadium being cotton bowl
CREATE TABLE table_14102379_4 (attendance VARCHAR, stadium VARCHAR)
SELECT country FROM table_1520559_1 WHERE margin_of_victory = "9 strokes"
Which countries won by 9 strokes?
CREATE TABLE table_1520559_1 (country VARCHAR, margin_of_victory VARCHAR)
SELECT venue FROM table_name_94 WHERE score = "1 goal" AND date = "august 27, 1980"
What is the venue when the score is 1 goal, and the date is August 27, 1980?
CREATE TABLE table_name_94 (venue VARCHAR, score VARCHAR, date VARCHAR)
SELECT delegate FROM table_name_96 WHERE placement_in_miss_universe = "fourth runner-up" AND hometown = "makati , rizal"
Which Delegate has a Placement in Miss Universe of fourth runner-up, and a Hometown of makati , rizal?
CREATE TABLE table_name_96 (delegate VARCHAR, placement_in_miss_universe VARCHAR, hometown VARCHAR)
SELECT attendance FROM table_name_8 WHERE record = "86-71"
what game had a score of 86-71
CREATE TABLE table_name_8 (attendance VARCHAR, record VARCHAR)
SELECT name, height, prominence FROM mountain WHERE range <> 'Aberdare Range'
What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?
CREATE TABLE mountain (name VARCHAR, height VARCHAR, prominence VARCHAR, range VARCHAR)
SELECT round FROM table_name_85 WHERE venue = "villa park"
What was the round for Villa Park?
CREATE TABLE table_name_85 (round VARCHAR, venue VARCHAR)
SELECT MAX(total) FROM table_name_31 WHERE rank = "6" AND gold < 1
What is the largest total when the rank is 6 and there's less than 1 gold?
CREATE TABLE table_name_31 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT team FROM table_name_78 WHERE high_rebounds = "carl landry (11)"
What is Team, when High Rebounds is "Carl Landry (11)"?
CREATE TABLE table_name_78 (team VARCHAR, high_rebounds VARCHAR)
SELECT surface FROM table_name_68 WHERE date = "26 august 2001"
On what surface was the 26 August 2001 tournament played?
CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR)
SELECT college FROM table_name_59 WHERE round < 3 AND pick__number > 4 AND position = "wide receiver"
Name the College which has a Round smaller than 3, and a Pick # larger than 4, and a Position of wide receiver?
CREATE TABLE table_name_59 (college VARCHAR, position VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT opponent FROM table_name_63 WHERE site = "war memorial stadium • little rock, ar" AND result = "l6–7"
What Opponent has a Site of war memorial stadium • little rock, ar, and a Result of l6–7?
CREATE TABLE table_name_63 (opponent VARCHAR, site VARCHAR, result VARCHAR)
SELECT date FROM table_name_7 WHERE score = "86–108"
What is the Date with a Score with 86–108?
CREATE TABLE table_name_7 (date VARCHAR, score VARCHAR)
SELECT surface FROM table_23235767_1 WHERE score_in_the_final = "6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6"
What is every surface with a score in the final of 6–4, 6–7 (1–7) , 6–7 (4–7) , 4–6?
CREATE TABLE table_23235767_1 (surface VARCHAR, score_in_the_final VARCHAR)