answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 5
What's the total number of points that the rank is less than 5 and has Tiago Splitter?
CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR)
SELECT tyre FROM table_name_31 WHERE entrant = "hb bewaking team ensign" AND rounds = "13"
Name the tyre for hb bewaking team ensign with rounds of 13
CREATE TABLE table_name_31 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR)
SELECT MIN(year) FROM table_name_51 WHERE silver = "kim kyung-ho"
What's listed for the lowest Year that a Silver of Kim Kyung-Ho?
CREATE TABLE table_name_51 (year INTEGER, silver VARCHAR)
SELECT MAX(round) FROM table_name_31 WHERE pick > 209
What is the highest round number of a Pick after 209.
CREATE TABLE table_name_31 (round INTEGER, pick INTEGER)
SELECT label FROM table_name_67 WHERE region = "united states" AND format = "lp album"
Which Label has a Region of united states, and a Format of lp album?
CREATE TABLE table_name_67 (label VARCHAR, region VARCHAR, format VARCHAR)
SELECT official_name FROM table_300283_1 WHERE name_in_basque = "Bilar"
What is the official name of the municipality whose name in Basque is Bilar?
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_basque VARCHAR)
SELECT 2007 FROM table_name_8 WHERE 2010 = "3.137"
What is the 2007 Lukoil oil prodroduction when in 2010 oil production 3.137 million tonnes?
CREATE TABLE table_name_8 (Id VARCHAR)
SELECT city_of_license FROM table_name_42 WHERE fcc_info = "fcc" AND erp_w = "10,000 horizontal 3,000 vertical"
WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W
CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR)
SELECT 1 AS st_leg FROM table_name_11 WHERE agg = "4-3"
What was the 1st leg of the match that had an aggregate of 4-3?
CREATE TABLE table_name_11 (agg VARCHAR)
SELECT record FROM table_name_67 WHERE visitor = "vancouver"
Can you tell me the Record that has the Visitor of vancouver?
CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR)
SELECT brighton_cast FROM table_17085724_1 WHERE indianapolis_concerts = "Andrew Verala"
Name the brighton cast for andrew verala
CREATE TABLE table_17085724_1 (brighton_cast VARCHAR, indianapolis_concerts VARCHAR)
SELECT SUM(draws) FROM table_name_85 WHERE wins = 1 AND losses = 1 AND goal_differential = "+1"
How many draws have 1 win, 1 loss, and a Goal Differential of +1?
CREATE TABLE table_name_85 (draws INTEGER, goal_differential VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT COUNT(weight___lb__) FROM table_29970488_2 WHERE hometown = "Pittsburgh, PA"
How many different items appear in the weight column when Pittsburgh, PA is the hometown?
CREATE TABLE table_29970488_2 (weight___lb__ VARCHAR, hometown VARCHAR)
SELECT driver FROM table_name_94 WHERE constructor = "era" AND entrant = "t.a.s.o. mathieson"
Who is the driver whose Constructor was Era, and whose entrant was T.A.S.O. Mathieson?
CREATE TABLE table_name_94 (driver VARCHAR, constructor VARCHAR, entrant VARCHAR)
SELECT time_retired FROM table_name_79 WHERE grid > 10 AND manufacturer = "proton kr"
If the manufacturer is Proton Kr and the grid was over 10, what was the time retired?
CREATE TABLE table_name_79 (time_retired VARCHAR, grid VARCHAR, manufacturer VARCHAR)
SELECT title FROM table_25604014_6 WHERE no_in_season = 2
What are the titles of the pieces that are number 2 in season?
CREATE TABLE table_25604014_6 (title VARCHAR, no_in_season VARCHAR)
SELECT song_name, song_release_year FROM singer ORDER BY age LIMIT 1
Show the name and the release year of the song by the youngest singer.
CREATE TABLE singer (song_name VARCHAR, song_release_year VARCHAR, age VARCHAR)
SELECT record FROM table_name_4 WHERE date = "21 january 2008"
Name the record for 21 january 2008
CREATE TABLE table_name_4 (record VARCHAR, date VARCHAR)
SELECT high_rebounds FROM table_17058116_7 WHERE high_points = "Charlie Villanueva (32)"
Who scored highest rebounds high points is charlie villanueva (32)
CREATE TABLE table_17058116_7 (high_rebounds VARCHAR, high_points VARCHAR)
SELECT 2003 FROM table_name_16 WHERE 2009 = "1r" AND tournament = "australian open"
What is the 2003 value with 1r in 2009 at the Australian Open?
CREATE TABLE table_name_16 (tournament VARCHAR)
SELECT T2.Episode FROM TV_Channel AS T1 JOIN TV_series AS T2 ON T1.id = T2.Channel WHERE T1.series_name = "Sky Radio"
List the Episode of all TV series showed on TV Channel with series name "Sky Radio".
CREATE TABLE TV_Channel (id VARCHAR, series_name VARCHAR); CREATE TABLE TV_series (Episode VARCHAR, Channel VARCHAR)
SELECT cross_country FROM table_name_90 WHERE school_year = "2012-13"
What is Cross Country, when School Year is 2012-13?
CREATE TABLE table_name_90 (cross_country VARCHAR, school_year VARCHAR)
SELECT score FROM table_name_85 WHERE home_team = "cairns taipans"
What was the score of the game where the home team was the cairns taipans?
CREATE TABLE table_name_85 (score VARCHAR, home_team VARCHAR)
SELECT stage FROM table_name_7 WHERE statistic = "most points"
With a statistic of most points, what is the stage?
CREATE TABLE table_name_7 (stage VARCHAR, statistic VARCHAR)
SELECT original_air_date FROM table_29436059_1 WHERE production_code = 319
What is the original air date of the episode with production code is 319?
CREATE TABLE table_29436059_1 (original_air_date VARCHAR, production_code VARCHAR)
SELECT country FROM table_name_83 WHERE rank = 2
What nationality is the player ranked 2?
CREATE TABLE table_name_83 (country VARCHAR, rank VARCHAR)
SELECT MIN(attendance) FROM table_27862483_3 WHERE win = "G. Claypool (4-1)"
How many people saw the game won by G. Claypool (4-1)?
CREATE TABLE table_27862483_3 (attendance INTEGER, win VARCHAR)
SELECT COUNT(attendance) FROM table_name_20 WHERE opponents = "lincoln city" AND h___a = "a"
What was the Attendance when Lincoln City was the Opponents with H/A of A?
CREATE TABLE table_name_20 (attendance VARCHAR, opponents VARCHAR, h___a VARCHAR)
SELECT points FROM table_name_79 WHERE player = "denis pederson"
How many points did Denis Pederson have?
CREATE TABLE table_name_79 (points VARCHAR, player VARCHAR)
SELECT webcast FROM table_name_2 WHERE format = "tejano" AND callsign = "kbdr"
What Tejano webcast has a callsign of KBDR?
CREATE TABLE table_name_2 (webcast VARCHAR, format VARCHAR, callsign VARCHAR)
SELECT director_s_ FROM table_name_21 WHERE prize = "¥300,000" AND film = "hanzubon no ojisan"
Which Director(s) made the film hanzubon no ojisan and received a prize of ¥300,000?
CREATE TABLE table_name_21 (director_s_ VARCHAR, prize VARCHAR, film VARCHAR)
SELECT category FROM table_name_72 WHERE year = 2008
What was the category in 2008?
CREATE TABLE table_name_72 (category VARCHAR, year VARCHAR)
SELECT platform_s_ FROM table_name_88 WHERE game = "portal 2"
Which platforms can you play Portal 2 on?
CREATE TABLE table_name_88 (platform_s_ VARCHAR, game VARCHAR)
SELECT label FROM table_name_14 WHERE region = "japan"
What was the label in Japan?
CREATE TABLE table_name_14 (label VARCHAR, region VARCHAR)
SELECT capacity_percentage FROM table_28884858_2 WHERE team = "Denver Broncos"
What was the capacity for the Denver Broncos?
CREATE TABLE table_28884858_2 (capacity_percentage VARCHAR, team VARCHAR)
SELECT attendance FROM table_13258806_2 WHERE result = "W 24-20"
What was the attendance at the game that resulted in w 24-20?
CREATE TABLE table_13258806_2 (attendance VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_3 WHERE date = "jun 17, 1973"
What was the name of the tournament played on Jun 17, 1973?
CREATE TABLE table_name_3 (tournament VARCHAR, date VARCHAR)
SELECT billboard_peak FROM table_name_93 WHERE label = "sanctuary" AND date_of_release = "september 12, 2000"
What was the Billboard peak for the album released on September 12, 2000 by sanctuary?
CREATE TABLE table_name_93 (billboard_peak VARCHAR, label VARCHAR, date_of_release VARCHAR)
SELECT opponents FROM table_name_80 WHERE date = "may 18, 1997"
Name the opponents for may 18, 1997
CREATE TABLE table_name_80 (opponents VARCHAR, date VARCHAR)
SELECT away_team FROM table_name_18 WHERE venue = "mcg"
What home team played at MCG?
CREATE TABLE table_name_18 (away_team VARCHAR, venue VARCHAR)
SELECT 2 AS nd_leg FROM table_name_61 WHERE team_2 = "al-merrikh"
What was the 2nd leg score for Al-Merrikh as team 2?
CREATE TABLE table_name_61 (team_2 VARCHAR)
SELECT COUNT(gold) FROM table_name_79 WHERE silver = 1 AND nation = "puerto rico" AND total < 1
How many Gold medals did Puerto Rico receive with 1 Silver and a Total of 1 or less?
CREATE TABLE table_name_79 (gold VARCHAR, total VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT death_2012 FROM table_25703_2 WHERE birth_2012 = 127
What were the total number of 2012 deaths when 2012 births were 127?
CREATE TABLE table_25703_2 (death_2012 VARCHAR, birth_2012 VARCHAR)
SELECT hs_principal FROM table_name_99 WHERE wr_principal = "dave lovering" AND ms_principal = "marty pizur"
Who is the h.s. principal with Dave Lovering as w.r. principal and Marty Pizur as m.s. principal?
CREATE TABLE table_name_99 (hs_principal VARCHAR, wr_principal VARCHAR, ms_principal VARCHAR)
SELECT COUNT(gold) FROM table_name_15 WHERE bronze > 3
What is the total number of Gold medals for the Nation with more than 3 Bronze?
CREATE TABLE table_name_15 (gold VARCHAR, bronze INTEGER)
SELECT runner_up FROM table_1139835_9 WHERE score = "9.12 (66) – 5.6 (36)"
Who are all the runner ups when the score is 9.12 (66) – 5.6 (36)?
CREATE TABLE table_1139835_9 (runner_up VARCHAR, score VARCHAR)
SELECT result FROM table_1342013_9 WHERE district = "Florida 4"
what's the result with dbeingtrict being florida 4
CREATE TABLE table_1342013_9 (result VARCHAR, district VARCHAR)
SELECT cName FROM tryout WHERE pPos = 'mid' EXCEPT SELECT cName FROM tryout WHERE pPos = 'goalie'
Find the names of schools that have some players in the mid position but not in the goalie position.
CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)
SELECT release_date FROM table_name_18 WHERE publisher = "microsoft game studios" AND title = "amped: freestyle snowboarding"
When Did Microsoft Game Studios release Amped: Freestyle Snowboarding?
CREATE TABLE table_name_18 (release_date VARCHAR, publisher VARCHAR, title VARCHAR)
SELECT away_team AS score FROM table_name_41 WHERE home_team = "sydney"
When the Home Team was Sydney, what did the Away team score?
CREATE TABLE table_name_41 (away_team VARCHAR, home_team VARCHAR)
SELECT tournament FROM table_name_20 WHERE partnering = "franco ferreiro"
Partnering of franco ferreiro had what tournament?
CREATE TABLE table_name_20 (tournament VARCHAR, partnering VARCHAR)
SELECT COUNT(touchdowns__5_points_) FROM table_14342210_14 WHERE extra_points_1_point = 7
How many touchdowns were made by the person with 7 extra points?
CREATE TABLE table_14342210_14 (touchdowns__5_points_ VARCHAR, extra_points_1_point VARCHAR)
SELECT part_2 FROM table_name_69 WHERE part_4 = "*haldanaz"
What was part 2 when part 4 was *haldanaz?
CREATE TABLE table_name_69 (part_2 VARCHAR, part_4 VARCHAR)
SELECT high_assists FROM table_17288825_10 WHERE date = "April 7"
What was the high assists on April 7?
CREATE TABLE table_17288825_10 (high_assists VARCHAR, date VARCHAR)
SELECT MIN(2007) FROM table_name_91 WHERE 2004 = 78 AND 2006 < 80
Which 2007 is the lowest one that has a 2004 of 78, and a 2006 smaller than 80?
CREATE TABLE table_name_91 (Id VARCHAR)
SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) LIMIT 1
Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?
CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR)
SELECT date FROM table_name_43 WHERE venue = "pro player stadium" AND score = "4-1"
What is the date of the game at the Pro Player Stadium that had a score of 4-1?
CREATE TABLE table_name_43 (date VARCHAR, venue VARCHAR, score VARCHAR)
SELECT country FROM table_name_46 WHERE name = "pieroni"
Name the country for pieroni
CREATE TABLE table_name_46 (country VARCHAR, name VARCHAR)
SELECT mandate_end FROM table_name_44 WHERE office = "prime minister" AND name_a = "agathe uwilingiyimana"
When did Prime Minister Agathe Uwilingiyimana's mandate end?
CREATE TABLE table_name_44 (mandate_end VARCHAR, office VARCHAR, name_a VARCHAR)
SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25"
What is Set 4, when Date is Jun 27, and when Set 3 is 17-25?
CREATE TABLE table_name_64 (set_4 VARCHAR, date VARCHAR, set_3 VARCHAR)
SELECT COUNT(average) FROM table_17521433_1 WHERE evening_gown = "9.100"
What was the average score for the country with the evening gown score of 9.100?
CREATE TABLE table_17521433_1 (average VARCHAR, evening_gown VARCHAR)
SELECT MAX(week) FROM table_13259034_2 WHERE date = "November 27, 1977"
In what week was November 27, 1977?
CREATE TABLE table_13259034_2 (week INTEGER, date VARCHAR)
SELECT SUM(bronze) FROM table_name_63 WHERE gold = 1 AND silver < 3
What's the bronze medal count when the silver is less than 3 and the gold is 1?
CREATE TABLE table_name_63 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT season FROM table_name_96 WHERE opponent = "necaxa"
In what Season is Necaxa an Opponent?
CREATE TABLE table_name_96 (season VARCHAR, opponent VARCHAR)
SELECT minister FROM table_name_89 WHERE party = "an"
What is Minister, when Party is "AN"?
CREATE TABLE table_name_89 (minister VARCHAR, party VARCHAR)
SELECT elevator FROM table_name_56 WHERE order_and_title = "cardinal-deacon of s. nicola in carcere tulliano"
Who was the elevator when the Cardinal-Deacon of S. Nicola in Carcere Tulliano was the order and title?
CREATE TABLE table_name_56 (elevator VARCHAR, order_and_title VARCHAR)
SELECT to_par FROM table_name_83 WHERE money___$__ = "242,813" AND score = 68 - 72 - 74 - 66 = 280
what is the to par for $242,813 with score 68-72-74-66=280
CREATE TABLE table_name_83 (to_par VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT SUM(zone) FROM table_name_30 WHERE champion = "surozh sudak"
Which Zone has a Champion of surozh sudak?
CREATE TABLE table_name_30 (zone INTEGER, champion VARCHAR)
SELECT COUNT(round) FROM table_name_39 WHERE college = "northern illinois"
What is the total number of Round, when College is Northern Illinois?
CREATE TABLE table_name_39 (round VARCHAR, college VARCHAR)
SELECT home_team FROM table_name_47 WHERE away_team = "swansea city"
Who was the home team when swansea city was the away team?
CREATE TABLE table_name_47 (home_team VARCHAR, away_team VARCHAR)
SELECT to_par FROM table_name_36 WHERE margin_of_victory = "2 strokes" AND tournament = "women's british open"
What is To par, when Margin of Victory is "2 Strokes", and when Tournament is "Women's British Open"?
CREATE TABLE table_name_36 (to_par VARCHAR, margin_of_victory VARCHAR, tournament VARCHAR)
SELECT circuit FROM table_10264179_2 WHERE fastest_lap = "Hideki Mutoh"
What circuit was the race where Hideki Mutoh had the fastest lap?
CREATE TABLE table_10264179_2 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT player FROM table_name_40 WHERE money___$__ < 387 AND score = 73 - 76 - 74 - 72 = 295
What is Player, when Money ( $ ) is less than 387, and when Score is "73-76-74-72=295"?
CREATE TABLE table_name_40 (player VARCHAR, money___$__ VARCHAR, score VARCHAR)
SELECT pole_position FROM table_1137718_2 WHERE grand_prix = "German grand_prix"
Who had the pole position at the German Grand Prix?
CREATE TABLE table_1137718_2 (pole_position VARCHAR, grand_prix VARCHAR)
SELECT SUM(rank) FROM table_name_47 WHERE played < 6
What is the rank for less than 6 plays?
CREATE TABLE table_name_47 (rank INTEGER, played INTEGER)
SELECT opponent FROM table_name_67 WHERE score = "6-3, 6-2"
Which Opponent had a Score of 6-3, 6-2?
CREATE TABLE table_name_67 (opponent VARCHAR, score VARCHAR)
SELECT pick__number FROM table_14650373_1 WHERE college = "Arizona State"
What number picked were players from arizona state picked?
CREATE TABLE table_14650373_1 (pick__number VARCHAR, college VARCHAR)
SELECT COUNT(*) FROM Professionals WHERE NOT professional_id IN (SELECT professional_id FROM Treatments)
How many professionals did not operate any treatment on dogs?
CREATE TABLE Professionals (professional_id VARCHAR); CREATE TABLE Treatments (professional_id VARCHAR)
SELECT position FROM table_name_93 WHERE player = "sue bird"
What is Sue Bird's position?
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR)
SELECT successor FROM table_2159537_3 WHERE district = "New York 11th"
Who was the successor in New York 11th district?
CREATE TABLE table_2159537_3 (successor VARCHAR, district VARCHAR)
SELECT T3.Location FROM party_host AS T1 JOIN HOST AS T2 ON T1.Host_ID = T2.Host_ID JOIN party AS T3 ON T1.Party_ID = T3.Party_ID WHERE T2.Age > 50
Show the locations of parties with hosts older than 50.
CREATE TABLE party (Location VARCHAR, Party_ID VARCHAR); CREATE TABLE party_host (Host_ID VARCHAR, Party_ID VARCHAR); CREATE TABLE HOST (Host_ID VARCHAR, Age INTEGER)
SELECT COUNT(points) FROM table_name_42 WHERE position > 3 AND played < 14
How many Points have a Position larger than 3, and a Played smaller than 14?
CREATE TABLE table_name_42 (points VARCHAR, position VARCHAR, played VARCHAR)
SELECT date FROM table_name_15 WHERE record = "36–11–7"
Which Date has a Record of 36–11–7?
CREATE TABLE table_name_15 (date VARCHAR, record VARCHAR)
SELECT result FROM table_1342233_6 WHERE incumbent = "Jack Z. Anderson"
what's the result with incumbent being jack z. anderson
CREATE TABLE table_1342233_6 (result VARCHAR, incumbent VARCHAR)
SELECT COUNT(rank) FROM table_name_14 WHERE gold = 0 AND nation = "namibia" AND total < 1
How many ranks have 0 golds, a Nation of namibia, and a Total smaller than 1?
CREATE TABLE table_name_14 (rank VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR)
SELECT high_assists FROM table_27734286_7 WHERE date = "January 8"
Who had the high assist total on january 8?
CREATE TABLE table_27734286_7 (high_assists VARCHAR, date VARCHAR)
SELECT scientific_pitch FROM table_name_33 WHERE helmholtz_pitch = "d"
What is the scientific pitch when the Helmholtz pitch is D?
CREATE TABLE table_name_33 (scientific_pitch VARCHAR, helmholtz_pitch VARCHAR)
SELECT MIN(no) FROM table_12962773_4 WHERE player = "Zoran Erceg"
What No is the player Zoran Erceg
CREATE TABLE table_12962773_4 (no INTEGER, player VARCHAR)
SELECT opponent FROM table_1341522_24 WHERE incumbent = "Marty Meehan"
Who opposed Marty Meehan in each election?
CREATE TABLE table_1341522_24 (opponent VARCHAR, incumbent VARCHAR)
SELECT candidates FROM table_1341663_33 WHERE incumbent = "Shirley Chisholm"
Who were the candidates when Shirley Chisholm was the incumbent?
CREATE TABLE table_1341663_33 (candidates VARCHAR, incumbent VARCHAR)
SELECT score FROM table_name_18 WHERE game > 56 AND decision = "lundqvist" AND record = "29-24-7"
What's the score for a game over 56 with a record of 29-24-7 with a lundqvist decision?
CREATE TABLE table_name_18 (score VARCHAR, record VARCHAR, game VARCHAR, decision VARCHAR)
SELECT pick FROM table_name_75 WHERE player = "benito cheng"
What is Benito Cheng's Pick number?
CREATE TABLE table_name_75 (pick VARCHAR, player VARCHAR)
SELECT position FROM table_name_87 WHERE player = "damon jones"
What is the positions of Damon Jones?
CREATE TABLE table_name_87 (position VARCHAR, player VARCHAR)
SELECT score FROM table_name_67 WHERE team = "waaia"
Tell met he score for team of waaia
CREATE TABLE table_name_67 (score VARCHAR, team VARCHAR)
SELECT sat_27_aug FROM table_30058355_7 WHERE thurs_25_aug = "23' 56.90 94.528mph"
What is every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?
CREATE TABLE table_30058355_7 (sat_27_aug VARCHAR, thurs_25_aug VARCHAR)
SELECT COUNT(date) FROM table_28898974_3 WHERE incumbent = "James Rutherford"
When james rutherford is the incumbent how many dates are there?
CREATE TABLE table_28898974_3 (date VARCHAR, incumbent VARCHAR)
SELECT school FROM table_name_25 WHERE mascot = "panthers"
Which school has a mascot of the Panthers?
CREATE TABLE table_name_25 (school VARCHAR, mascot VARCHAR)
SELECT result FROM table_name_71 WHERE date = "october 15, 1995"
Name the Result on october 15, 1995?
CREATE TABLE table_name_71 (result VARCHAR, date VARCHAR)
SELECT MIN(games) FROM table_name_87 WHERE goal_ratio = 0 AND goals < 0
What lowest games have a Goal Ratio of 0, and Goals smaller than 0?
CREATE TABLE table_name_87 (games INTEGER, goal_ratio VARCHAR, goals VARCHAR)
SELECT AVG(ratio) FROM table_name_76 WHERE similar_iso_a_size = "a3"
Which Ratio has a Similar ISO A size of a3?
CREATE TABLE table_name_76 (ratio INTEGER, similar_iso_a_size VARCHAR)