answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(points) FROM table_name_88 WHERE extra_points = 0 AND touchdowns < 2
What is the highest number of points for players with less than 2 touchdowns and 0 extra points?
CREATE TABLE table_name_88 (points INTEGER, extra_points VARCHAR, touchdowns VARCHAR)
SELECT points FROM table_name_97 WHERE combined_elapsed_time = "175d 20h 46m 04s"
Which points have a Combined elapsed time of 175d 20h 46m 04s?
CREATE TABLE table_name_97 (points VARCHAR, combined_elapsed_time VARCHAR)
SELECT winning_driver FROM table_name_19 WHERE circuit = "taunus"
what is the winning driver in taunus
CREATE TABLE table_name_19 (winning_driver VARCHAR, circuit VARCHAR)
SELECT weekly_rank FROM table_28283535_4 WHERE episode = "1.03"
What's the weekly rank of episode 1.03?
CREATE TABLE table_28283535_4 (weekly_rank VARCHAR, episode VARCHAR)
SELECT title FROM table_2156758_4 WHERE no_in_series = "28"
What is the title for episode number in series of 28?
CREATE TABLE table_2156758_4 (title VARCHAR, no_in_series VARCHAR)
SELECT country FROM table_name_93 WHERE transfer_window = "summer"
WHAT IS THE COUNTRY WITH SUMMER TRANSFER WINDOW?
CREATE TABLE table_name_93 (country VARCHAR, transfer_window VARCHAR)
SELECT tournament FROM table_name_25 WHERE 2003 = "2r" AND 2004 = "1r"
What is the name of the tournament that has the results of 2003 2r and 2004 1r?
CREATE TABLE table_name_25 (tournament VARCHAR)
SELECT team_classification FROM table_28298471_14 WHERE winner = "Hayden Roulston"
when hayden roulston is the winner what is the team classification?
CREATE TABLE table_28298471_14 (team_classification VARCHAR, winner VARCHAR)
SELECT money___$__ FROM table_name_1 WHERE player = "greg norman"
What is Money ( $ ), when Player is Greg Norman?
CREATE TABLE table_name_1 (money___$__ VARCHAR, player VARCHAR)
SELECT score FROM table_name_75 WHERE tie_no = "replay" AND home_team = "sunderland"
What is Score, when Tie No is Replay, and when Home Team is Sunderland?
CREATE TABLE table_name_75 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT try_bonus FROM table_13741576_4 WHERE tries_against = "43"
What is the try bonus for when tries against is 43?
CREATE TABLE table_13741576_4 (try_bonus VARCHAR, tries_against VARCHAR)
SELECT COUNT(silver) FROM table_name_70 WHERE gold < 1 AND rank = 13 AND bronze > 2
How many values for silver occur when gold is less than 1, the rank is 13, and bronze is greater than 2?
CREATE TABLE table_name_70 (silver VARCHAR, bronze VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT MIN(diameter) FROM table_name_71 WHERE longitude = "71.1w"
What's the lowest diameter when the longitude is 71.1w?
CREATE TABLE table_name_71 (diameter INTEGER, longitude VARCHAR)
SELECT SUM(Points) FROM player
Show total points of all players.
CREATE TABLE player (Points INTEGER)
SELECT date FROM table_name_98 WHERE away_team = "carlton"
On what Date is Carlton the Away Team?
CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT player_api_id FROM Player WHERE height >= 180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating > 85
List all of the player ids with a height of at least 180cm and an overall rating higher than 85.
CREATE TABLE Player_Attributes (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER); CREATE TABLE Player (player_api_id VARCHAR, height VARCHAR, overall_rating INTEGER)
SELECT state_country FROM table_1858574_2 WHERE position = 5
When 5 is the position what is the state or country?
CREATE TABLE table_1858574_2 (state_country VARCHAR, position VARCHAR)
SELECT SUM(floors) FROM table_name_15 WHERE street_address = "32 n. main street"
How many floors are there at 32 n. main street?
CREATE TABLE table_name_15 (floors INTEGER, street_address VARCHAR)
SELECT score FROM table_name_59 WHERE game > 26 AND opponent = "montreal canadiens"
What was the score of the game against montreal canadiens after game 26?
CREATE TABLE table_name_59 (score VARCHAR, game VARCHAR, opponent VARCHAR)
SELECT eliminated AS by FROM table_name_18 WHERE tag_team = "jindrak and cade"
Which Eliminated has a Tag Team of jindrak and cade?
CREATE TABLE table_name_18 (eliminated VARCHAR, tag_team VARCHAR)
SELECT over_gdp__in__percentage_ FROM table_1618358_1 WHERE standard_stamp_duty = "367"
When the standard stamp duty is 367 what is the percentage over gdp?
CREATE TABLE table_1618358_1 (over_gdp__in__percentage_ VARCHAR, standard_stamp_duty VARCHAR)
SELECT serials_issued FROM table_name_60 WHERE serial_format = "abc-123" AND issued = "1982"
What is the serials issued in 1982 with a format of ABC-123?
CREATE TABLE table_name_60 (serials_issued VARCHAR, serial_format VARCHAR, issued VARCHAR)
SELECT name FROM table_name_69 WHERE hometown = "albuquerque, new mexico"
What is the Name of the Player from Albuquerque, New Mexico?
CREATE TABLE table_name_69 (name VARCHAR, hometown VARCHAR)
SELECT SUM(lead_pitch_mm) FROM table_name_28 WHERE body_width_mm > 10.16
Which Lead Pitch/mm has a Body Width/mm larger than 10.16?
CREATE TABLE table_name_28 (lead_pitch_mm INTEGER, body_width_mm INTEGER)
SELECT MIN(seats) FROM table_name_28 WHERE _percentage_change = -3.7 AND _percentage_votes > 4.7
What are the fewest seats with a -3.7% change and more than 4.7% votes?
CREATE TABLE table_name_28 (seats INTEGER, _percentage_change VARCHAR, _percentage_votes VARCHAR)
SELECT grand_final_dual_television_commentator FROM table_name_52 WHERE spokesperson = "amaury vassili"
What is the grand final dual television commentator status of the year when Amaury Vassili was the spokesperson?
CREATE TABLE table_name_52 (grand_final_dual_television_commentator VARCHAR, spokesperson VARCHAR)
SELECT MAX(founded) FROM table_2589963_1 WHERE color = "Green and White"
What year was the school with green and white colors founded?
CREATE TABLE table_2589963_1 (founded INTEGER, color VARCHAR)
SELECT gfl_premierships FROM table_name_70 WHERE nickname = "magpies"
What GLF Premiership did the Magpies have?
CREATE TABLE table_name_70 (gfl_premierships VARCHAR, nickname VARCHAR)
SELECT week__number FROM table_19508635_1 WHERE theme = "The Beatles"
Name the week number for the beatles
CREATE TABLE table_19508635_1 (week__number VARCHAR, theme VARCHAR)
SELECT accolade FROM table_name_44 WHERE publication = "under the radar"
Which Accolade had a publication of Under the Radar?
CREATE TABLE table_name_44 (accolade VARCHAR, publication VARCHAR)
SELECT SUM(appearances) FROM table_name_16 WHERE team = "psv eindhoven" AND rank < 11
How many appearances for psv eindhoven ranked above 11?
CREATE TABLE table_name_16 (appearances INTEGER, team VARCHAR, rank VARCHAR)
SELECT name FROM table_name_88 WHERE location = "tanzania" AND novelty = "gen nov"
What is Name, when Location is Tanzania, and when Novelty is Gen Nov?
CREATE TABLE table_name_88 (name VARCHAR, location VARCHAR, novelty VARCHAR)
SELECT color FROM table_name_14 WHERE model__number = "pd-kb400w"
What color is model # pd-kb400w?
CREATE TABLE table_name_14 (color VARCHAR, model__number VARCHAR)
SELECT format FROM table_name_42 WHERE conference = "conference iii"
What format has conference iii as the conference?
CREATE TABLE table_name_42 (format VARCHAR, conference VARCHAR)
SELECT COUNT(number_of_editions) FROM table_1840433_2 WHERE most_wins_by = "Franco Marvulli (4)"
How many editions have a most wins value of Franco Marvulli (4)?
CREATE TABLE table_1840433_2 (number_of_editions VARCHAR, most_wins_by VARCHAR)
SELECT COUNT(top_10) FROM table_1671401_3 WHERE position = "51st"
name the total number of top 10 also where the position is 51st
CREATE TABLE table_1671401_3 (top_10 VARCHAR, position VARCHAR)
SELECT date FROM table_name_92 WHERE week < 10 AND game_site = "texas stadium" AND opponent = "atlanta falcons"
What is the date of the game in a week earlier than 10 played in Texas stadium agains the Atlanta Falcons?
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR, week VARCHAR, game_site VARCHAR)
SELECT season FROM table_name_61 WHERE rank < 4 AND club = "barcelona" AND goals < 115
Which Season has a Rank smaller than 4, and a Club of barcelona, and less than 115 goals?
CREATE TABLE table_name_61 (season VARCHAR, goals VARCHAR, rank VARCHAR, club VARCHAR)
SELECT MIN(week) FROM table_name_87 WHERE opponent = "washington redskins"
Name the least week for opponent of washington redskins
CREATE TABLE table_name_87 (week INTEGER, opponent VARCHAR)
SELECT replica FROM table_name_82 WHERE position = "5th"
What replica has the 5th position?
CREATE TABLE table_name_82 (replica VARCHAR, position VARCHAR)
SELECT COUNT(wins) FROM table_name_66 WHERE goals_against < 30 AND goals_for > 25 AND draws > 5
How many Wins have Goals against smaller than 30, and Goals for larger than 25, and Draws larger than 5?
CREATE TABLE table_name_66 (wins VARCHAR, draws VARCHAR, goals_against VARCHAR, goals_for VARCHAR)
SELECT MAX(wins) FROM table_name_26 WHERE matches < 5 AND year = 1994
What is the greatest Wins with Matches smaller than 5, and a Year of 1994?
CREATE TABLE table_name_26 (wins INTEGER, matches VARCHAR, year VARCHAR)
SELECT COUNT(other_programming_sources) FROM table_1397655_1 WHERE year_acquired = 1997
how many channels were gained in 1997
CREATE TABLE table_1397655_1 (other_programming_sources VARCHAR, year_acquired VARCHAR)
SELECT away_team AS score FROM table_name_19 WHERE away_team = "essendon"
What is the score for the away team at Essendon?
CREATE TABLE table_name_19 (away_team VARCHAR)
SELECT reactor_type FROM table_name_25 WHERE commercial_operation = "—" AND unit = "tianwan-7"
What reactor type that has a commercial operation of —, and a tianwan-7 unit?
CREATE TABLE table_name_25 (reactor_type VARCHAR, commercial_operation VARCHAR, unit VARCHAR)
SELECT COUNT(directed_by) FROM table_18012738_1 WHERE uk_viewers__million_ = "6.86"
Name the total number directed by for uk viewers being 6.86
CREATE TABLE table_18012738_1 (directed_by VARCHAR, uk_viewers__million_ VARCHAR)
SELECT MAX(played) FROM table_name_91 WHERE drawn > 4 AND goals_for = 37 AND points > 30
What is the highest number of plays when drawn is more than 4, more than 30 points were earned, and 37 goals scored for the team?
CREATE TABLE table_name_91 (played INTEGER, points VARCHAR, drawn VARCHAR, goals_for VARCHAR)
SELECT race FROM table_name_27 WHERE winner_or_2nd = "voleuse"
What was the race when the winner of 2nd was Voleuse?
CREATE TABLE table_name_27 (race VARCHAR, winner_or_2nd VARCHAR)
SELECT 24 AS _mountains FROM table_23406517_2 WHERE direction = "Northeast"
What are all values for 24 mountains when direction is Northeast?
CREATE TABLE table_23406517_2 (direction VARCHAR)
SELECT record FROM table_14951643_1 WHERE result = "W 52–19"
what's the record with result being w 52–19
CREATE TABLE table_14951643_1 (record VARCHAR, result VARCHAR)
SELECT nation FROM table_name_96 WHERE gold > 0 AND bronze < 2 AND total > 3 AND silver > 1
Which Nation has a Gold larger than 0, and a Bronze smaller than 2, and a Total larger than 3, and a Silver larger than 1?
CREATE TABLE table_name_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT area__sqmi_ FROM table_13897690_1 WHERE area__km_2__ = 4065
How big (in sq mi) is the island that's 4065 km2?
CREATE TABLE table_13897690_1 (area__sqmi_ VARCHAR, area__km_2__ VARCHAR)
SELECT MIN(money_list_rank) FROM table_name_2 WHERE lpga_wins < 2 AND year = 2005 AND earnings__$_ < 615 OFFSET 499
In 2005 the earnings is less than 615,499 with less than 2 LPGA wins and what smallest Money list rank?
CREATE TABLE table_name_2 (money_list_rank INTEGER, earnings__$_ VARCHAR, lpga_wins VARCHAR, year VARCHAR)
SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 2
How many gold have a National of New Zealand with a total less than 2?
CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(money___) AS $__ FROM table_name_64 WHERE player = "craig stadler"
What is the lowest amount of money that Craig Stadler won?
CREATE TABLE table_name_64 (money___ INTEGER, player VARCHAR)
SELECT frequency FROM table_name_25 WHERE power__kw_ = "10kw" AND callsign = "dxez"
What is the frequency for the 10kw station with DXEZ as its callsign?
CREATE TABLE table_name_25 (frequency VARCHAR, power__kw_ VARCHAR, callsign VARCHAR)
SELECT 1 AS st_leg FROM table_name_79 WHERE team_1 = "tuilla"
WHAT IS THE FIRST LEG OF TUILLA?
CREATE TABLE table_name_79 (team_1 VARCHAR)
SELECT protein_name FROM table_26708105_5 WHERE e_value = "2.50E-41"
What is the protein name when the e-value is 2.50e-41?
CREATE TABLE table_26708105_5 (protein_name VARCHAR, e_value VARCHAR)
SELECT surface FROM table_name_99 WHERE score = "3-6, 1-6"
On what Surface was the match with a Score of 3-6, 1-6 played?
CREATE TABLE table_name_99 (surface VARCHAR, score VARCHAR)
SELECT record FROM table_name_9 WHERE date = "december 4, 1983"
What is the record of the buccaneers on December 4, 1983?
CREATE TABLE table_name_9 (record VARCHAR, date VARCHAR)
SELECT 2 AS nd_runner_up FROM table_name_89 WHERE winner = "yuming lai (賴銘偉)"
Name the 2nd runner-up for yuming lai (賴銘偉)
CREATE TABLE table_name_89 (winner VARCHAR)
SELECT distance FROM table_name_20 WHERE stage = "4a"
What is the Distance of the 1945 Vuelta a Espana with 4A Stage?
CREATE TABLE table_name_20 (distance VARCHAR, stage VARCHAR)
SELECT type FROM table_11891841_2 WHERE name = "Bojan"
What is the type where the name is bojan?
CREATE TABLE table_11891841_2 (type VARCHAR, name VARCHAR)
SELECT w__ot_so_ FROM table_20833768_4 WHERE season = "2008–09"
In season is 2008–09, how many wins did they have?
CREATE TABLE table_20833768_4 (w__ot_so_ VARCHAR, season VARCHAR)
SELECT reg_season FROM table_name_16 WHERE avg_attendance < 942
What regular season result had an average attendance less than 942?
CREATE TABLE table_name_16 (reg_season VARCHAR, avg_attendance INTEGER)
SELECT season FROM table_name_50 WHERE club = "werder bremen" AND round = "2r"
Which season has the Werder Bremen Club and is in Round 2r?
CREATE TABLE table_name_50 (season VARCHAR, club VARCHAR, round VARCHAR)
SELECT MIN(number) FROM table_274117_5
What is the fewest amount of Pro Bowl appearances any of the players had?
CREATE TABLE table_274117_5 (number INTEGER)
SELECT directed_by FROM table_10749143_2 WHERE production_code = "7AFF03"
Who directed the episode with production code 7aff03?
CREATE TABLE table_10749143_2 (directed_by VARCHAR, production_code VARCHAR)
SELECT title FROM table_name_94 WHERE citation = "honor" AND narrator = "lincoln hoppe"
what is the title when the citation is honor and the narrator is lincoln hoppe?
CREATE TABLE table_name_94 (title VARCHAR, citation VARCHAR, narrator VARCHAR)
SELECT MIN(bronze) FROM table_name_34 WHERE total = 4 AND gold < 1
Which Bronze has a Total of 4, and a Gold smaller than 1?
CREATE TABLE table_name_34 (bronze INTEGER, total VARCHAR, gold VARCHAR)
SELECT san_antonio_de_lomerío_municipality___percentage_ FROM table_19998428_3 WHERE language = "Only native"
If the language is only native, what is the percentage of the San Antonio de Lomerio municipality?
CREATE TABLE table_19998428_3 (san_antonio_de_lomerío_municipality___percentage_ VARCHAR, language VARCHAR)
SELECT average FROM table_name_49 WHERE place = "6th" AND total = "165"
What is the average score for 6th place with a total of 165?
CREATE TABLE table_name_49 (average VARCHAR, place VARCHAR, total VARCHAR)
SELECT MIN(heat) FROM table_name_5 WHERE time = "2:34.94"
What is the lowest heat number for a swimmer with a time of 2:34.94?
CREATE TABLE table_name_5 (heat INTEGER, time VARCHAR)
SELECT opposition FROM table_name_66 WHERE round = "first round" AND competition = "uefa cup" AND score = "3–1 (h), 2–0 (a)"
What is the Opposition in the First Round of the UEFA Cup with a Score of 3–1 (h), 2–0 (a)?
CREATE TABLE table_name_66 (opposition VARCHAR, score VARCHAR, round VARCHAR, competition VARCHAR)
SELECT home_team FROM table_name_20 WHERE away_team = "wolverhampton wanderers"
who is the home team when the away team is wolverhampton wanderers?
CREATE TABLE table_name_20 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(2011 AS _census) FROM table_1425958_1 WHERE density__pop_km²_ = "91.8"
How many locations had a density (pop/km²) of 91.8 in the 2011 census?
CREATE TABLE table_1425958_1 (density__pop_km²_ VARCHAR)
SELECT record FROM table_name_47 WHERE home = "philadelphia" AND date = "october 13"
What is the record on October 13, when philadelphia was the home team?
CREATE TABLE table_name_47 (record VARCHAR, home VARCHAR, date VARCHAR)
SELECT team FROM table_name_11 WHERE points = 48 AND class = "500 cc"
Who has 48 points in the class of 500 cc?
CREATE TABLE table_name_11 (team VARCHAR, points VARCHAR, class VARCHAR)
SELECT T1.Title FROM book AS T1 JOIN publication AS T2 ON T1.Book_ID = T2.Book_ID ORDER BY T2.Price DESC
Show the titles of books in descending order of publication price.
CREATE TABLE publication (Book_ID VARCHAR, Price VARCHAR); CREATE TABLE book (Title VARCHAR, Book_ID VARCHAR)
SELECT public_vote FROM table_19744915_3 WHERE couple = "Graeme & Kristina"
what is the public vote on graeme & kristina
CREATE TABLE table_19744915_3 (public_vote VARCHAR, couple VARCHAR)
SELECT SUM(money___) AS $__ FROM table_name_37 WHERE place = "5"
What is the Money of the Player in Place 5?
CREATE TABLE table_name_37 (money___ INTEGER, place VARCHAR)
SELECT MIN(wins) FROM table_name_8 WHERE pct > 0.526 AND rank < 37 AND losses = 947
What is the lowest amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has?
CREATE TABLE table_name_8 (wins INTEGER, losses VARCHAR, pct VARCHAR, rank VARCHAR)
SELECT date FROM table_name_33 WHERE circuit = "indianapolis"
What date was the Circuit of Indianapolis?
CREATE TABLE table_name_33 (date VARCHAR, circuit VARCHAR)
SELECT league FROM table_name_43 WHERE europe = "0 29 (152)"
What league has a value of 0 29 (152) for Europe?
CREATE TABLE table_name_43 (league VARCHAR, europe VARCHAR)
SELECT player FROM table_10015132_11 WHERE no = "42"
Who is the player that wears number 42?
CREATE TABLE table_10015132_11 (player VARCHAR, no VARCHAR)
SELECT tonnage FROM table_name_9 WHERE builder = "ag vulcan" AND original_operator = "ndl" AND ship = "prinzess irene"
What is the Tonnage that has builder AG Vulcan, and the original operator NDL, and the ship, Prinzess Irene?
CREATE TABLE table_name_9 (tonnage VARCHAR, ship VARCHAR, builder VARCHAR, original_operator VARCHAR)
SELECT score FROM table_name_9 WHERE home = "hornets" AND visitor = "clippers"
In the game where the Hornets were the home team and Clippers the visiting team, what is the score?
CREATE TABLE table_name_9 (score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT away_team FROM table_name_10 WHERE home_team = "hartlepool united"
who is the away team when the home team is hartlepool united?
CREATE TABLE table_name_10 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(television_station) FROM table_2879165_1 WHERE radio_station = "Lao National Radio"
How many television station listing have a radio station as lao national radio?
CREATE TABLE table_2879165_1 (television_station VARCHAR, radio_station VARCHAR)
SELECT status FROM table_27021001_1 WHERE district = "Georgia's 10th"
What is the status for district georgia's 10th?
CREATE TABLE table_27021001_1 (status VARCHAR, district VARCHAR)
SELECT bronze FROM table_name_4 WHERE total < 3 AND silver > 0
How many bronze medals did the team have with 0 total silver and less than 3 total medals?
CREATE TABLE table_name_4 (bronze VARCHAR, total VARCHAR, silver VARCHAR)
SELECT surface FROM table_1547951_3 WHERE outcome = "Runner-up" AND championship = "US Open"
Name the surfaace where outcome is runner-up and championship is us open
CREATE TABLE table_1547951_3 (surface VARCHAR, outcome VARCHAR, championship VARCHAR)
SELECT artist FROM table_26485957_1 WHERE result = "4"
Which artist had a result of 4?
CREATE TABLE table_26485957_1 (artist VARCHAR, result VARCHAR)
SELECT MAX(draws) FROM table_name_94 WHERE goal_difference > 3 AND losses < 8
For a goal difference greater than 3 and fewer than 8 losses, what is the most draws scored?
CREATE TABLE table_name_94 (draws INTEGER, goal_difference VARCHAR, losses VARCHAR)
SELECT season FROM table_name_2 WHERE home = "2-3"
Which season had a home 2-3?
CREATE TABLE table_name_2 (season VARCHAR, home VARCHAR)
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"
What is the boiler pressure for the Hesperus model?
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR)
SELECT AVG(total) FROM table_name_98 WHERE bronze < 0
What is the average total for 0 bronze?
CREATE TABLE table_name_98 (total INTEGER, bronze INTEGER)
SELECT COUNT(iso_) AS № FROM table_254234_1 WHERE chinese_name = "青海省 Qīnghǎi Shěng"
How many provinces are named 青海省 qīnghǎi shěng?
CREATE TABLE table_254234_1 (iso_ VARCHAR, chinese_name VARCHAR)
SELECT COUNT(calling_at) FROM table_18333678_2 WHERE arrival = "09.06"
how many callings of trains arriving at 09.06
CREATE TABLE table_18333678_2 (calling_at VARCHAR, arrival VARCHAR)
SELECT result FROM table_1341718_44 WHERE incumbent = "Ray Roberts"
What was the result when Ray Roberts was elected?
CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR)