answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(school_colors) FROM table_22171978_1 WHERE location = "Naga , Camarines Sur"
How many entries are shown for school colors for the location of naga , camarines sur?
CREATE TABLE table_22171978_1 (school_colors VARCHAR, location VARCHAR)
SELECT date FROM table_name_92 WHERE opponent_in_the_final = "kimberly po nathalie tauziat"
What date has kimberly po nathalie tauziat as the opponent in the final?
CREATE TABLE table_name_92 (date VARCHAR, opponent_in_the_final VARCHAR)
SELECT position FROM table_name_79 WHERE year = "freshman" AND weight > 210
What is the Position with a Year with freshman, and a Weight larger than 210?
CREATE TABLE table_name_79 (position VARCHAR, year VARCHAR, weight VARCHAR)
SELECT chinese FROM table_name_59 WHERE pali = "atappa"
Which Chinese has a Pali of atappa?
CREATE TABLE table_name_59 (chinese VARCHAR, pali VARCHAR)
SELECT COUNT(rank) FROM table_1218784_1 WHERE manager = "Rob McDonald"
What is the rank of manager Rob Mcdonald?
CREATE TABLE table_1218784_1 (rank VARCHAR, manager VARCHAR)
SELECT colors FROM table_name_17 WHERE school = "zeigler high school"
What Colors has a School of zeigler high school?
CREATE TABLE table_name_17 (colors VARCHAR, school VARCHAR)
SELECT score FROM table_name_37 WHERE attendance = "1,125"
What is the score of the game with 1,125 people in attendance?
CREATE TABLE table_name_37 (score VARCHAR, attendance VARCHAR)
SELECT MAX(for_prohibition) FROM table_name_43 WHERE percent_against > 10.8 AND percent_for < 72.2 AND jurisdiction = "british columbia" AND against_prohibition < 4 OFFSET 756
What is the highest number supporting prohibition in British Columbia when the percent opposing is more than 10.8, the percent supporting is less than 72.2, number against is less than 4,756?
CREATE TABLE table_name_43 (for_prohibition INTEGER, against_prohibition VARCHAR, jurisdiction VARCHAR, percent_against VARCHAR, percent_for VARCHAR)
SELECT result FROM table_name_43 WHERE attendance = "75,466"
What is the result of the game when the attendance is 75,466?
CREATE TABLE table_name_43 (result VARCHAR, attendance VARCHAR)
SELECT class FROM table_name_83 WHERE number_in_class > 15
Which class has more than 15 people in the class?
CREATE TABLE table_name_83 (class VARCHAR, number_in_class INTEGER)
SELECT ResName FROM Restaurant
Show me all the restaurants.
CREATE TABLE Restaurant (ResName VARCHAR)
SELECT COUNT(*) FROM tryout WHERE decision = 'yes'
How many students got accepted after the tryout?
CREATE TABLE tryout (decision VARCHAR)
SELECT rank FROM table_name_2 WHERE tenure = "2011"
What is the Rank of the Character with Tenure of 2011?
CREATE TABLE table_name_2 (rank VARCHAR, tenure VARCHAR)
SELECT T2.school_name, T1.budgeted, T1.invested FROM budget AS T1 JOIN school AS T2 ON T1.school_id = T2.school_id WHERE T1.year >= 2002
Show each school name, its budgeted amount, and invested amount in year 2002 or after.
CREATE TABLE budget (budgeted VARCHAR, invested VARCHAR, school_id VARCHAR, year VARCHAR); CREATE TABLE school (school_name VARCHAR, school_id VARCHAR)
SELECT character FROM table_name_51 WHERE episodes < 23 AND actor = "dani harmer"
What character is played by dani harmer for under 23 episodes?
CREATE TABLE table_name_51 (character VARCHAR, episodes VARCHAR, actor VARCHAR)
SELECT to_par FROM table_name_35 WHERE score = 69 - 69 = 138
What was the to par when the score was 69-69=138?
CREATE TABLE table_name_35 (to_par VARCHAR, score VARCHAR)
SELECT tournament FROM table_name_30 WHERE score = "6-4, 6-4"
Which tournament has a Score of 6-4, 6-4?
CREATE TABLE table_name_30 (tournament VARCHAR, score VARCHAR)
SELECT born_in FROM table_name_36 WHERE former_experience = "commissioner of health"
When was the delegate who has previous experience as a commissioner of health born?
CREATE TABLE table_name_36 (born_in VARCHAR, former_experience VARCHAR)
SELECT score FROM table_23285761_10 WHERE team = "Houston"
What was the score for the game against Houston?
CREATE TABLE table_23285761_10 (score VARCHAR, team VARCHAR)
SELECT region_1 FROM table_15823956_1 WHERE series = "4"
What is the region 1 date for series 4
CREATE TABLE table_15823956_1 (region_1 VARCHAR, series VARCHAR)
SELECT theme, YEAR FROM exhibition ORDER BY ticket_price DESC
Show theme and year for all exhibitions in an descending order of ticket price.
CREATE TABLE exhibition (theme VARCHAR, YEAR VARCHAR, ticket_price VARCHAR)
SELECT date_to FROM table_name_47 WHERE name = "lee cook"
What is Date To, when Name is "Lee Cook"?
CREATE TABLE table_name_47 (date_to VARCHAR, name VARCHAR)
SELECT player FROM table_name_61 WHERE team = "boston patriots"
Which player played for the Boston Patriots?
CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR)
SELECT co_contestant__yaar_vs_pyaar_ FROM table_name_40 WHERE total_score_week = "48/60" AND date_performed = "august 14"
What Co-contestant (Yaar vs. Pyaar) has a Total score/week of 48/60, and a Date performed of august 14?
CREATE TABLE table_name_40 (co_contestant__yaar_vs_pyaar_ VARCHAR, total_score_week VARCHAR, date_performed VARCHAR)
SELECT chinese_title FROM table_24856090_1 WHERE hk_viewers = "1.97 million"
What is the Chinese name of the episode with 1.97 million Hong Kong viewers?
CREATE TABLE table_24856090_1 (chinese_title VARCHAR, hk_viewers VARCHAR)
SELECT final_score FROM table_name_42 WHERE game_site = "raymond james stadium"
What is the final score of the game that was at raymond james stadium?
CREATE TABLE table_name_42 (final_score VARCHAR, game_site VARCHAR)
SELECT high_points FROM table_name_80 WHERE high_rebounds = "lamar odom (15)" AND date = "april 27"
Which High points have High rebounds of lamar odom (15), and a Date of april 27?
CREATE TABLE table_name_80 (high_points VARCHAR, high_rebounds VARCHAR, date VARCHAR)
SELECT wins FROM table_26815674_1 WHERE final_placing = "12th"
When 12th is the final placing what is the wins?
CREATE TABLE table_26815674_1 (wins VARCHAR, final_placing VARCHAR)
SELECT first_elected FROM table_1342451_38 WHERE incumbent = "William F. Stevenson"
What year was incumbent william f. stevenson first elected?
CREATE TABLE table_1342451_38 (first_elected VARCHAR, incumbent VARCHAR)
SELECT engine FROM table_name_19 WHERE chassis = "cooper t43"
What engine was for the vehicle with a cooper t43 chassis?
CREATE TABLE table_name_19 (engine VARCHAR, chassis VARCHAR)
SELECT country FROM table_1231316_4 WHERE athlete = "Tamunosiki Atorudibo"
Where is Tamunosiki Atorudibo from
CREATE TABLE table_1231316_4 (country VARCHAR, athlete VARCHAR)
SELECT song FROM table_name_25 WHERE points > 66 AND draw > 3 AND rank = "3rd"
Which song has more than 66 points, a draw greater than 3, and is ranked 3rd?
CREATE TABLE table_name_25 (song VARCHAR, rank VARCHAR, points VARCHAR, draw VARCHAR)
SELECT AVG(crowd) FROM table_name_78 WHERE home_team = "fitzroy"
What is the average crowd size of Fitzroy's home team?
CREATE TABLE table_name_78 (crowd INTEGER, home_team VARCHAR)
SELECT score FROM table_name_54 WHERE home = "hornets"
What is the Score with a Home with hornets?
CREATE TABLE table_name_54 (score VARCHAR, home VARCHAR)
SELECT MAX(attendance) FROM table_name_33 WHERE date = "october 27, 1963"
How many were in attendance on October 27, 1963?
CREATE TABLE table_name_33 (attendance INTEGER, date VARCHAR)
SELECT score FROM table_name_13 WHERE country = "united states" AND player = "john mahaffey"
What is Score, when Country is "United States", and when Player is "John Mahaffey"?
CREATE TABLE table_name_13 (score VARCHAR, country VARCHAR, player VARCHAR)
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY COUNT(*) LIMIT 1
Find the name of the department that has the fewest members.
CREATE TABLE MEMBER_OF (DNO VARCHAR); CREATE TABLE DEPARTMENT (DName VARCHAR, DNO VARCHAR)
SELECT location FROM table_name_86 WHERE size = "245 acres"
What location was the campus that has a size of 245 acres?
CREATE TABLE table_name_86 (location VARCHAR, size VARCHAR)
SELECT MIN(swimsuit) FROM table_name_87 WHERE interview < 8.574 AND average > 8.532
Which smallest swimsuit number's interview was less than 8.574 when the average number was bigger than 8.532?
CREATE TABLE table_name_87 (swimsuit INTEGER, interview VARCHAR, average VARCHAR)
SELECT position FROM table_name_13 WHERE round = 1
What is round 1's position?
CREATE TABLE table_name_13 (position VARCHAR, round VARCHAR)
SELECT COUNT(position) FROM table_26609690_1 WHERE team_s_ = "RB1 Motorsports"
How many positions are there for RB1 Motorsports?
CREATE TABLE table_26609690_1 (position VARCHAR, team_s_ VARCHAR)
SELECT party FROM table_1341423_36 WHERE candidates = "Ernest Istook (R) 69% Garland McWatters (D) 28%"
What is the party when the candidates were ernest istook (r) 69% garland mcwatters (d) 28%?
CREATE TABLE table_1341423_36 (party VARCHAR, candidates VARCHAR)
SELECT year FROM table_1939202_2 WHERE league = "USL Second division" AND playoffs = "Semifinals" AND us_open_cup = "Quarterfinals"
What year at the US Open Cup quarterfinals, were the playoffs in the semifinals for the USL second division?
CREATE TABLE table_1939202_2 (year VARCHAR, us_open_cup VARCHAR, league VARCHAR, playoffs VARCHAR)
SELECT status FROM table_name_78 WHERE name = "paleopanax"
What status has paleopanax as the name?
CREATE TABLE table_name_78 (status VARCHAR, name VARCHAR)
SELECT SUM(run_4) FROM table_name_32 WHERE run_1 = 57.37 AND run_3 < 57.45
Which Run 4 has a Run 1 of 57.37, and a Run 3 smaller than 57.45?
CREATE TABLE table_name_32 (run_4 INTEGER, run_1 VARCHAR, run_3 VARCHAR)
SELECT country FROM table_29789_3 WHERE _percentage_change = "5.7"
Which country saw a 5.7% increase in spending on international tourism between 2011 and 2012?
CREATE TABLE table_29789_3 (country VARCHAR, _percentage_change VARCHAR)
SELECT location FROM table_name_68 WHERE year < 1979 AND result = "19-17"
what is the location when the year is before 1979 and the result is 19-17?
CREATE TABLE table_name_68 (location VARCHAR, year VARCHAR, result VARCHAR)
SELECT goals FROM table_name_45 WHERE points = "158"
How many goals were scored when 158 points were collected?
CREATE TABLE table_name_45 (goals VARCHAR, points VARCHAR)
SELECT theme FROM table_name_95 WHERE result = "eliminated"
Which Theme has a Result of eliminated?
CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR)
SELECT duration FROM table_name_53 WHERE character = "witold latoszek"
How long did Witold Latoszek character lasted?
CREATE TABLE table_name_53 (duration VARCHAR, character VARCHAR)
SELECT COUNT(order) FROM table_1818471_1 WHERE species = "Pavo cristatus"
How many orders when the species is Pavo Cristatus?
CREATE TABLE table_1818471_1 (order VARCHAR, species VARCHAR)
SELECT away_team FROM table_name_4 WHERE score = "0–3"
Which Away team has a Score of 0–3?
CREATE TABLE table_name_4 (away_team VARCHAR, score VARCHAR)
SELECT rating FROM table_16993379_1 WHERE rank__overall_ = "190"
What was the rating of the episode with an overall ranking of 190?
CREATE TABLE table_16993379_1 (rating VARCHAR, rank__overall_ VARCHAR)
SELECT round FROM table_name_9 WHERE mwehl_team = "detroit honeybaked" AND nhl_team = "columbus blue jackets"
What round did the MWEHL team, Detroit Honeybaked, and the NHL Team Columbus Blue Jackets play?
CREATE TABLE table_name_9 (round VARCHAR, mwehl_team VARCHAR, nhl_team VARCHAR)
SELECT nationality FROM table_name_55 WHERE round = 10
What is round 10's nationality?
CREATE TABLE table_name_55 (nationality VARCHAR, round VARCHAR)
SELECT COUNT(result) FROM table_1341672_6 WHERE candidates = "Robert L. Leggett (D) 50.2% Albert Dehr (R) 49.8%"
How many times did an election feature the result robert l. leggett (d) 50.2% albert dehr (r) 49.8%?
CREATE TABLE table_1341672_6 (result VARCHAR, candidates VARCHAR)
SELECT title FROM albums WHERE title LIKE 'A%' ORDER BY title
List every album whose title starts with A in alphabetical order.
CREATE TABLE albums (title VARCHAR)
SELECT position FROM table_name_41 WHERE year = 2011
What is the position that is shown for 2011?
CREATE TABLE table_name_41 (position VARCHAR, year VARCHAR)
SELECT MIN(week) FROM table_name_31 WHERE date = "december 26, 1999"
What is the lowest week for December 26, 1999
CREATE TABLE table_name_31 (week INTEGER, date VARCHAR)
SELECT COUNT(director) FROM table_18123274_1 WHERE original_title = "Huelepega: Ley de la Calle"
Name the number of director for huelepega: ley de la calle
CREATE TABLE table_18123274_1 (director VARCHAR, original_title VARCHAR)
SELECT MAX(2005) FROM table_name_36 WHERE 2007 < 42 AND tv_station__operator_ = "tv3" AND 2010 < 29.5
What's the 2005 of TV3 when there is less than 42 in 2007 and less than 29.5 in 2010?
CREATE TABLE table_name_36 (tv_station__operator_ VARCHAR)
SELECT AVG(first_round) FROM table_name_29 WHERE weight < 229 AND team = "utah jazz"
What is the average first round for Utah Jazz team, with a weight smaller than 229?
CREATE TABLE table_name_29 (first_round INTEGER, weight VARCHAR, team VARCHAR)
SELECT SUM(opening_weekend_net_gross) FROM table_name_8 WHERE studio_s_ = "utv motion pictures"
What's the sum of Opening Weekend Net Gross at the Studio of UTV Motion Pictures?
CREATE TABLE table_name_8 (opening_weekend_net_gross INTEGER, studio_s_ VARCHAR)
SELECT MAX(crowd) FROM table_name_85 WHERE away_team = "sydney"
Which Crowd has a Away team of sydney?
CREATE TABLE table_name_85 (crowd INTEGER, away_team VARCHAR)
SELECT fourth_place FROM table_name_36 WHERE year = 2010
Tell me fourth place for year of 2010
CREATE TABLE table_name_36 (fourth_place VARCHAR, year VARCHAR)
SELECT name__alma_mater_ FROM table_14594528_6 WHERE wins = 15
What coach had 15 wins?
CREATE TABLE table_14594528_6 (name__alma_mater_ VARCHAR, wins VARCHAR)
SELECT MAX(number) FROM table_20095300_1 WHERE trainer = "Kim Bailey"
What's the number of the horse whose trainer is Kim Bailey?
CREATE TABLE table_20095300_1 (number INTEGER, trainer VARCHAR)
SELECT interview_subject FROM table_name_30 WHERE pictorials = "vida guerra"
Which Interview subject has a Pictorials of vida guerra?
CREATE TABLE table_name_30 (interview_subject VARCHAR, pictorials VARCHAR)
SELECT player FROM table_24108789_6 WHERE events = 22
Name the player for 22 events
CREATE TABLE table_24108789_6 (player VARCHAR, events VARCHAR)
SELECT 2001 AS __percentage FROM table_273617_6 WHERE status = "Widowed or surviving partner"
what is the 2001 % for the status widowed or surviving partner?
CREATE TABLE table_273617_6 (status VARCHAR)
SELECT COUNT(played) FROM table_name_61 WHERE name = "se freising" AND points > 13
What was the total number of games played by se freising when their points were larger than 13?
CREATE TABLE table_name_61 (played VARCHAR, name VARCHAR, points VARCHAR)
SELECT date FROM table_name_47 WHERE week = 2
What is the Date of Week 2?
CREATE TABLE table_name_47 (date VARCHAR, week VARCHAR)
SELECT italian FROM table_2077192_2 WHERE english = "orange"
What is the Italian word for "orange" in English?
CREATE TABLE table_2077192_2 (italian VARCHAR, english VARCHAR)
SELECT result FROM table_28418916_3 WHERE opponents_conference = "MAC (East)"
What was the result when then opponents conference was Mac (east)?
CREATE TABLE table_28418916_3 (result VARCHAR, opponents_conference VARCHAR)
SELECT MAX(caps) FROM table_name_54 WHERE player = "bruce djite"
What is the greatest number of caps for Bruce Djite?
CREATE TABLE table_name_54 (caps INTEGER, player VARCHAR)
SELECT total_time FROM table_name_79 WHERE navigator = "vandenberg"
What is the total time of the vehicle having a navigator of Vandenberg?
CREATE TABLE table_name_79 (total_time VARCHAR, navigator VARCHAR)
SELECT t1.form_name FROM forms AS t1 JOIN party_forms AS t2 ON t1.form_id = t2.form_id GROUP BY t2.form_id ORDER BY COUNT(*) DESC LIMIT 1
Find the name of the most popular party form.
CREATE TABLE party_forms (form_id VARCHAR); CREATE TABLE forms (form_name VARCHAR, form_id VARCHAR)
SELECT result FROM table_name_26 WHERE week > 10 AND opponent = "philadelphia eagles"
What is the Result of the game after Week 10 against Philadelphia Eagles?
CREATE TABLE table_name_26 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT nationality FROM table_name_23 WHERE years_of_nba_experience_[a_] = 2 AND previous_team = "los angeles lakers"
What is the nationality of the player with 2 years of NBA experience for the previously played for the Los Angeles Lakers?
CREATE TABLE table_name_23 (nationality VARCHAR, previous_team VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR)
SELECT headphone_model FROM table_1601027_1 WHERE us_msrp = "$150"
Which headphone models correspond to the US MSRP of $150?
CREATE TABLE table_1601027_1 (headphone_model VARCHAR, us_msrp VARCHAR)
SELECT actor FROM table_name_28 WHERE role = "kate manfredi"
What is Actor, when Role is "Kate Manfredi"?
CREATE TABLE table_name_28 (actor VARCHAR, role VARCHAR)
SELECT series__number FROM table_24961421_1 WHERE season__number = 7
What number in the series was episode 7 in the season?
CREATE TABLE table_24961421_1 (series__number VARCHAR, season__number VARCHAR)
SELECT series FROM table_name_63 WHERE score = "3 – 8"
Which Series has a Score of 3 – 8?
CREATE TABLE table_name_63 (series VARCHAR, score VARCHAR)
SELECT fastest_lap FROM table_name_36 WHERE grand_prix = "australian grand prix"
Who had the fastest lap at the Australian Grand Prix?
CREATE TABLE table_name_36 (fastest_lap VARCHAR, grand_prix VARCHAR)
SELECT result FROM table_name_8 WHERE opponent = "new england patriots"
What is Result, when Opponent is New England Patriots?
CREATE TABLE table_name_8 (result VARCHAR, opponent VARCHAR)
SELECT opponent FROM table_name_4 WHERE points > 5 AND attendance > 13 OFFSET 567
What is the Opponent of the game with more than 13,567 in Attendance with more than 5 Points?
CREATE TABLE table_name_4 (opponent VARCHAR, points VARCHAR, attendance VARCHAR)
SELECT other FROM table_name_95 WHERE firefox = "21.22%"
What percentage of users were using other browsers according to the source that reported 21.22% were using Firefox?
CREATE TABLE table_name_95 (other VARCHAR, firefox VARCHAR)
SELECT week_14_nov_30 FROM table_name_50 WHERE week_10_nov_2 = "michigan state (8-2)"
What was the week 14 opponent for the year with a week 10 opponent of Michigan State (8-2)?
CREATE TABLE table_name_50 (week_14_nov_30 VARCHAR, week_10_nov_2 VARCHAR)
SELECT mayor FROM table_name_37 WHERE election = 2010 AND municipality = "riva del garda"
What is the Mayor of Riva del Garda in 2010?
CREATE TABLE table_name_37 (mayor VARCHAR, election VARCHAR, municipality VARCHAR)
SELECT pole_position FROM table_1140085_2 WHERE rnd = 3
who is the pole position for the rnd 3
CREATE TABLE table_1140085_2 (pole_position VARCHAR, rnd VARCHAR)
SELECT melbourne FROM table_name_56 WHERE adelaide = "no" AND auckland = "yes"
What is the result for Melbourne when Adelaide is no, and Auckland is yes?
CREATE TABLE table_name_56 (melbourne VARCHAR, adelaide VARCHAR, auckland VARCHAR)
SELECT home_team FROM table_name_36 WHERE tie_no = "2"
What is the Home team of tie no 2?
CREATE TABLE table_name_36 (home_team VARCHAR, tie_no VARCHAR)
SELECT channel_tv___dt__ FROM table_1353096_1 WHERE station = "KDFW ++"
What channel has station kdfw ++?
CREATE TABLE table_1353096_1 (channel_tv___dt__ VARCHAR, station VARCHAR)
SELECT SUM(attendance) FROM table_name_12 WHERE opponent = "san francisco 49ers"
For the game against the San Francisco 49ers what was the total attendance?
CREATE TABLE table_name_12 (attendance INTEGER, opponent VARCHAR)
SELECT 1997 FROM table_name_75 WHERE tournament = "tennis masters cup"
In the Tennis Masters Cup, how did Jiří Novák do in 1997?
CREATE TABLE table_name_75 (tournament VARCHAR)
SELECT site FROM table_name_13 WHERE opponent = "all times are in eastern."
What is Site, when Opponent is "All times are in eastern."?
CREATE TABLE table_name_13 (site VARCHAR, opponent VARCHAR)
SELECT previous_champion_s_ FROM table_name_98 WHERE date_won = "july 7, 2010"
Who was the previous champion of the title won on July 7, 2010?
CREATE TABLE table_name_98 (previous_champion_s_ VARCHAR, date_won VARCHAR)
SELECT MAX(share) FROM table_22822468_2 WHERE viewers__millions_ = "2.76"
Name the most share for 2.76 million viewers
CREATE TABLE table_22822468_2 (share INTEGER, viewers__millions_ VARCHAR)
SELECT COUNT(laps) FROM table_name_25 WHERE start = "1"
How many laps have 1 as the start?
CREATE TABLE table_name_25 (laps VARCHAR, start VARCHAR)
SELECT nationality FROM table_name_11 WHERE round = 1
What was the nationality for the player in Round 1?
CREATE TABLE table_name_11 (nationality VARCHAR, round VARCHAR)