answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT position FROM table_name_23 WHERE round > 5 AND college = "nevada"
What was the position of the player from the college of Nevada with a round over 5?
CREATE TABLE table_name_23 (position VARCHAR, round VARCHAR, college VARCHAR)
SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5
the sum of 2009 with rank of 5 and 2010 less than 76.5 is what?
CREATE TABLE table_name_70 (rank VARCHAR)
SELECT song_name FROM singer WHERE age > (SELECT AVG(age) FROM singer)
List all song names by singers above the average age.
CREATE TABLE singer (song_name VARCHAR, age INTEGER)
SELECT home_team FROM table_name_32 WHERE result = "105-99"
Who was the home team with a result of 105-99?
CREATE TABLE table_name_32 (home_team VARCHAR, result VARCHAR)
SELECT to_par FROM table_name_31 WHERE player = "vijay singh"
What is the to par of player vijay singh?
CREATE TABLE table_name_31 (to_par VARCHAR, player VARCHAR)
SELECT original_air_date FROM table_27988559_1 WHERE no_in_series = 195
What dat did episode 195 in the series originally air?
CREATE TABLE table_27988559_1 (original_air_date VARCHAR, no_in_series VARCHAR)
SELECT driver FROM table_name_45 WHERE laps > 8 AND constructor = "ferrari" AND grid = 8
I want the driver for Laps more than 8 and ferrari with Grid of 8
CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT venue FROM table_name_51 WHERE away_team = "richmond"
Where did Richmond play as the away team?
CREATE TABLE table_name_51 (venue VARCHAR, away_team VARCHAR)
SELECT T2.company, COUNT(*) FROM station_company AS T1 JOIN company AS T2 ON T1.company_id = T2.company_id GROUP BY T1.company_id
Show the company name with the number of gas station.
CREATE TABLE station_company (company_id VARCHAR); CREATE TABLE company (company VARCHAR, company_id VARCHAR)
SELECT 1993 FROM table_name_6 WHERE 1991 = "grand slams"
What shows for 1993 when 1991 is grand slams?
CREATE TABLE table_name_6 (Id VARCHAR)
SELECT COUNT(time) FROM table_name_44 WHERE name = "matt targett" AND lane > 7
how many times is the name matt targett and the lane higher than 7?
CREATE TABLE table_name_44 (time VARCHAR, name VARCHAR, lane VARCHAR)
SELECT SUM(year) FROM table_name_46 WHERE version = "mother's live remix"
What year was Mother's Live remix created?
CREATE TABLE table_name_46 (year INTEGER, version VARCHAR)
SELECT name FROM table_name_8 WHERE location = "china"
What name is located in China?
CREATE TABLE table_name_8 (name VARCHAR, location VARCHAR)
SELECT airport FROM table_name_73 WHERE city = "tokyo" AND icao = "rjtt"
Which airport is in Tokyo and has an ICAO of rjtt?
CREATE TABLE table_name_73 (airport VARCHAR, city VARCHAR, icao VARCHAR)
SELECT bonus_points FROM table_17510803_2 WHERE won = "5"
How many bonus points were won by 5?
CREATE TABLE table_17510803_2 (bonus_points VARCHAR, won VARCHAR)
SELECT score FROM table_name_81 WHERE to_par > 15 AND money___$__ > 116 AND player = "billy burke"
What score has a to par greater than 15, money ($) greater than 116, with billy burke as the player?
CREATE TABLE table_name_81 (score VARCHAR, player VARCHAR, to_par VARCHAR, money___$__ VARCHAR)
SELECT margin FROM table_name_33 WHERE dist__f_ > 10 AND race = "king george vi & queen elizabeth stakes"
Which Margin has a Dist (f) larger than 10, and a Race of king george vi & queen elizabeth stakes?
CREATE TABLE table_name_33 (margin VARCHAR, dist__f_ VARCHAR, race VARCHAR)
SELECT COUNT(frequency__per_hour_) FROM table_1612760_1 WHERE service_pattern = "Next station"
How many frequency figures are given for next station service pattern?
CREATE TABLE table_1612760_1 (frequency__per_hour_ VARCHAR, service_pattern VARCHAR)
SELECT COUNT(games) FROM table_name_73 WHERE points = 34 AND losses = 3
What's the total number of games that had more than 34 points and exactly 3 losses?
CREATE TABLE table_name_73 (games VARCHAR, points VARCHAR, losses VARCHAR)
SELECT MIN(games) FROM table_name_43 WHERE drawn = 1 AND points < 7
What game is the lowest with 1 draw and less than 7 points?
CREATE TABLE table_name_43 (games INTEGER, drawn VARCHAR, points VARCHAR)
SELECT frequency FROM table_name_67 WHERE format = "talk"
What is the frequency of the talk station?
CREATE TABLE table_name_67 (frequency VARCHAR, format VARCHAR)
SELECT winners_share___$__ FROM table_1940012_2 WHERE margin_of_victory = "2 strokes"
What was the amount of winners share (in $) in the game with a margin victory of 2 strokes?
CREATE TABLE table_1940012_2 (winners_share___$__ VARCHAR, margin_of_victory VARCHAR)
SELECT SUM(pick) FROM table_name_25 WHERE player = "matt murton"
What's the total number of picks for the player Matt Murton?
CREATE TABLE table_name_25 (pick INTEGER, player VARCHAR)
SELECT county FROM table_20424014_1 WHERE obama__percentage = "39.8%"
where did obama get 39.8%
CREATE TABLE table_20424014_1 (county VARCHAR, obama__percentage VARCHAR)
SELECT COUNT(party) FROM table_1342256_6 WHERE candidates = "John J. Phillips (R) 57.6% N. E. West (D) 42.4%"
how many party with candidates being john j. phillips (r) 57.6% n. e. west (d) 42.4%
CREATE TABLE table_1342256_6 (party VARCHAR, candidates VARCHAR)
SELECT directed_by FROM table_28210383_1 WHERE _number__season__number_ = "1 ( 2 )"
Who directed # (season #) is 1 ( 2 )?
CREATE TABLE table_28210383_1 (directed_by VARCHAR, _number__season__number_ VARCHAR)
SELECT league FROM table_name_47 WHERE losses = "0"
What is the league with 0 losses?
CREATE TABLE table_name_47 (league VARCHAR, losses VARCHAR)
SELECT surface FROM table_name_26 WHERE tournament = "napoli"
What is the Surface of the Court in Napoli?
CREATE TABLE table_name_26 (surface VARCHAR, tournament VARCHAR)
SELECT home_team AS score FROM table_name_34 WHERE venue = "windy hill"
How much was the score of the home team at windy hill?
CREATE TABLE table_name_34 (home_team VARCHAR, venue VARCHAR)
SELECT uci_points FROM table_name_88 WHERE team = "rabobank"
How many UCI points did Rabobank score?
CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR)
SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies"
What is the original title for the winner and nominees 'Secrets & Lies'?
CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT binibining_pilipinas_international FROM table_name_2 WHERE year = 1975
What Binibining Pilipinas-International has a Year of 1975?
CREATE TABLE table_name_2 (binibining_pilipinas_international VARCHAR, year VARCHAR)
SELECT COUNT(DISTINCT UID) FROM tweets
Find the number of users who posted some tweets.
CREATE TABLE tweets (UID VARCHAR)
SELECT COUNT(simplified) FROM table_1204998_2 WHERE pinyin = "Xīnluó Qū"
When pinyin is xīnluó qū, what is the simplified value?
CREATE TABLE table_1204998_2 (simplified VARCHAR, pinyin VARCHAR)
SELECT region FROM table_name_4 WHERE date = "11 august 2008"
What region is on 11 August 2008?
CREATE TABLE table_name_4 (region VARCHAR, date VARCHAR)
SELECT président FROM table_name_36 WHERE party = "union for a popular movement" AND départment__or_collectivity_ = "hautes-alpes"
Who is the president from the Union for a Popular Movement party that represents the Hautes-Alpes department?
CREATE TABLE table_name_36 (président VARCHAR, party VARCHAR, départment__or_collectivity_ VARCHAR)
SELECT description FROM table_25474825_1 WHERE software = "IntAct"
What is the description of the intact software?
CREATE TABLE table_25474825_1 (description VARCHAR, software VARCHAR)
SELECT COUNT(DISTINCT transaction_type) FROM Financial_Transactions
Show the number of transaction types.
CREATE TABLE Financial_Transactions (transaction_type VARCHAR)
SELECT COUNT(silver) FROM table_name_81 WHERE gold < 34 AND rank = "6" AND total > 10
What is the total number of Silver, when Gold is less than 34, when Rank is "6", and when Total is greater than 10?
CREATE TABLE table_name_81 (silver VARCHAR, total VARCHAR, gold VARCHAR, rank VARCHAR)
SELECT weight FROM table_name_73 WHERE series = "ii series"
What does the ii Series weigh?
CREATE TABLE table_name_73 (weight VARCHAR, series VARCHAR)
SELECT current_club FROM table_name_50 WHERE height = 1.96
What current club has a Height of 1.96?
CREATE TABLE table_name_50 (current_club VARCHAR, height VARCHAR)
SELECT first_elected FROM table_1434788_5 WHERE incumbent = "John Thomas Wilson"
When was incumbent John Thomas Wilson first elected?
CREATE TABLE table_1434788_5 (first_elected VARCHAR, incumbent VARCHAR)
SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg"
Which Result F-A has Opponents of rosenborg?
CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR)
SELECT result FROM table_name_24 WHERE week = 15
What is week 15's result?
CREATE TABLE table_name_24 (result VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_62 WHERE date = "09/20/1975"
What team was the opponent on 09/20/1975?
CREATE TABLE table_name_62 (opponent VARCHAR, date VARCHAR)
SELECT performer_3 FROM table_name_40 WHERE performer_2 = "chip esten"
Performer 2 of chip esten has what performer 3?
CREATE TABLE table_name_40 (performer_3 VARCHAR, performer_2 VARCHAR)
SELECT COUNT(title) FROM table_13336122_3 WHERE directed_by = "David Duchovny"
How many episodes have been directed by David Duchovny?
CREATE TABLE table_13336122_3 (title VARCHAR, directed_by VARCHAR)
SELECT abbr FROM table_20354_5 WHERE transcription = "kumphaphan"
What's the abbreviation for the month whose transcription is Kumphaphan?
CREATE TABLE table_20354_5 (abbr VARCHAR, transcription VARCHAR)
SELECT years FROM table_name_30 WHERE ties > 1 AND wins < 311 AND losses = 174
What years did the person coach who had more than 1 tie, mess than 311 wins and 174 losses?
CREATE TABLE table_name_30 (years VARCHAR, losses VARCHAR, ties VARCHAR, wins VARCHAR)
SELECT scoreboard FROM table_19744915_3 WHERE karen = "4.5"
what is the scoreboard when karen was 4.5
CREATE TABLE table_19744915_3 (scoreboard VARCHAR, karen VARCHAR)
SELECT opponent FROM table_name_43 WHERE week = 4
Who did the Patriots play in week 4?
CREATE TABLE table_name_43 (opponent VARCHAR, week VARCHAR)
SELECT SUM(points) FROM table_name_64 WHERE performer = "fe-mail"
What is the sum of Points, when the Performer is fe-mail?
CREATE TABLE table_name_64 (points INTEGER, performer VARCHAR)
SELECT winter_olympics FROM table_174491_2 WHERE holmenkollen = "1957, 1960"
What year is Winter Olympics when Holmenkollen is 1957, 1960?
CREATE TABLE table_174491_2 (winter_olympics VARCHAR, holmenkollen VARCHAR)
SELECT AVG(bronze) FROM table_name_85 WHERE nation = "total"
What is the average number of bronze medals for total of all nations?
CREATE TABLE table_name_85 (bronze INTEGER, nation VARCHAR)
SELECT COUNT(assists) FROM table_24807406_1 WHERE minutes = 1
What is the assists total number if the minutes is 1?
CREATE TABLE table_24807406_1 (assists VARCHAR, minutes VARCHAR)
SELECT SUM(champions_league) FROM table_name_40 WHERE serie_a = 1 AND total > 1 AND coppa_italia > 2
What is the championsleague when the total was greater than 1, the coppa italia was more than 2, and the Serie A was 1?
CREATE TABLE table_name_40 (champions_league INTEGER, coppa_italia VARCHAR, serie_a VARCHAR, total VARCHAR)
SELECT score FROM table_name_94 WHERE to_par = "−3" AND player = "branden grace"
What was the score that has a To par of −3, for Branden Grace?
CREATE TABLE table_name_94 (score VARCHAR, to_par VARCHAR, player VARCHAR)
SELECT result FROM table_name_61 WHERE attendance = "77,698"
What is the result of the game with 77,698 in attendance?
CREATE TABLE table_name_61 (result VARCHAR, attendance VARCHAR)
SELECT AVG(fips_code) FROM table_name_70 WHERE area = "114.76 sq mi (297.23 sq km)" AND population__2010_ < 166 OFFSET 327
What is the FIPS code for the municipality that has an area of 114.76 sq mi (297.23 sq km) and had a 2010 population of less than 166,327?
CREATE TABLE table_name_70 (fips_code INTEGER, area VARCHAR, population__2010_ VARCHAR)
SELECT segment_c FROM table_name_67 WHERE episode < 210
Episode smaller than 210 had what segment c?
CREATE TABLE table_name_67 (segment_c VARCHAR, episode INTEGER)
SELECT office_running_for FROM table_1855841_1 WHERE candidate = "Carol Marsh"
Name the officing running for for carol marsh
CREATE TABLE table_1855841_1 (office_running_for VARCHAR, candidate VARCHAR)
SELECT MIN(Ends) AS won FROM table_25107064_2 WHERE pf = 78
Name the least ends won for pf being 78
CREATE TABLE table_25107064_2 (Ends INTEGER, pf VARCHAR)
SELECT school FROM table_name_27 WHERE enrollment > 533 AND ihsaa_football_class = "aa"
What school has more than 533 enrolled and is an IHSAA Football Class of aa?
CREATE TABLE table_name_27 (school VARCHAR, enrollment VARCHAR, ihsaa_football_class VARCHAR)
SELECT opponent FROM table_name_91 WHERE result = "l 23-41"
Who was the Opponent of the Game with a Result of l 23-41?
CREATE TABLE table_name_91 (opponent VARCHAR, result VARCHAR)
SELECT winner FROM table_name_30 WHERE score = "1 – 0" AND season = "2011–12"
Which Winner has a Score of 1 – 0, and a Season of 2011–12?
CREATE TABLE table_name_30 (winner VARCHAR, score VARCHAR, season VARCHAR)
SELECT SUM(poles) FROM table_name_40 WHERE series = "formula three euroseries" AND season = "2008" AND f_laps > 0
How many poles are there in the Formula Three Euroseries in the 2008 season with more than 0 F/Laps?
CREATE TABLE table_name_40 (poles INTEGER, f_laps VARCHAR, series VARCHAR, season VARCHAR)
SELECT partner FROM table_name_93 WHERE tournament = "tampa"
Who is the partner at the Tampa tournament?
CREATE TABLE table_name_93 (partner VARCHAR, tournament VARCHAR)
SELECT COUNT(finished) FROM table_14345690_4 WHERE celebrity = "Kerry Katona"
Name the finished for kerry katona
CREATE TABLE table_14345690_4 (finished VARCHAR, celebrity VARCHAR)
SELECT result FROM table_name_81 WHERE week = 5
What was week 5's result?
CREATE TABLE table_name_81 (result VARCHAR, week VARCHAR)
SELECT player FROM table_name_25 WHERE country = "south africa" AND score = 76 - 75 - 73 - 71 = 295
Who is from south africa and has a score of 76-75-73-71=295?
CREATE TABLE table_name_25 (player VARCHAR, country VARCHAR, score VARCHAR)
SELECT MIN(round) FROM table_name_43 WHERE player = "dave yovanovits"
Which round was Dave Yovanovits picked?
CREATE TABLE table_name_43 (round INTEGER, player VARCHAR)
SELECT SUM(game) FROM table_name_61 WHERE high_assists = "paul (9)"
What's the sum of the games that had paul (9) for high assists?
CREATE TABLE table_name_61 (game INTEGER, high_assists VARCHAR)
SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 2
How many directors were in Season 2?
CREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR)
SELECT MAX(countries_sampled) FROM table_19948664_1 WHERE author___editor___source = "The Economist" AND year_of_publication = "2007" AND ranking_la__2_ = "2nd"
How many countries were sampled in the index created by The Economist, published in 2007 and ranked 2nd in the LA Ranking?
CREATE TABLE table_19948664_1 (countries_sampled INTEGER, ranking_la__2_ VARCHAR, author___editor___source VARCHAR, year_of_publication VARCHAR)
SELECT score FROM table_name_74 WHERE home_team = "lincoln city"
What was the score of the game when the home team was Lincoln City?
CREATE TABLE table_name_74 (score VARCHAR, home_team VARCHAR)
SELECT position FROM table_name_57 WHERE school = "north carolina"
What is the position of a player from North Carolina?
CREATE TABLE table_name_57 (position VARCHAR, school VARCHAR)
SELECT winner FROM table_11622562_1 WHERE tournament = "PaineWebber Invitational"
What's the winner of the Painewebber Invitational tournament?
CREATE TABLE table_11622562_1 (winner VARCHAR, tournament VARCHAR)
SELECT original_title FROM table_name_18 WHERE year = "1978"
What original title has a year of 1978?
CREATE TABLE table_name_18 (original_title VARCHAR, year VARCHAR)
SELECT airport FROM table_name_35 WHERE country = "egypt" AND icao = "heba"
What is Airport, when Country is "Egypt", and when ICAO is "Heba"?
CREATE TABLE table_name_35 (airport VARCHAR, country VARCHAR, icao VARCHAR)
SELECT association FROM table_name_54 WHERE nominee = "daniel mananta" AND year > 2011
Who was the association that Daniel Mananta belonged to after 2011?
CREATE TABLE table_name_54 (association VARCHAR, nominee VARCHAR, year VARCHAR)
SELECT country FROM table_name_47 WHERE score = 72 - 65 = 137
For what country does the golfer play who has a score of 72-65=137?
CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR)
SELECT 2010 FROM table_name_51 WHERE 2006 = "w"
Which 2010 has a 2006 of w?
CREATE TABLE table_name_51 (Id VARCHAR)
SELECT redskins__score_ FROM table_20074209_1 WHERE opponent__score_ = "Tennessee Titans 27"
what is redskins (score) against tennessee titans 27
CREATE TABLE table_20074209_1 (redskins__score_ VARCHAR, opponent__score_ VARCHAR)
SELECT score FROM table_27721131_6 WHERE high_points = "Andray Blatche , Al Thornton (20)"
What was the score when andray blatche , al thornton (20) had the high points?
CREATE TABLE table_27721131_6 (score VARCHAR, high_points VARCHAR)
SELECT team FROM table_name_83 WHERE points_diff = "+119"
What team has +119 Points diff?
CREATE TABLE table_name_83 (team VARCHAR, points_diff VARCHAR)
SELECT netflix FROM table_15187735_5 WHERE segment_b = "Marshmallow Cookies"
When marshmallow cookies is segment b what episode is it on netflix?
CREATE TABLE table_15187735_5 (netflix VARCHAR, segment_b VARCHAR)
SELECT date FROM table_name_79 WHERE week = 16
What was the date of the week 16 game?
CREATE TABLE table_name_79 (date VARCHAR, week VARCHAR)
SELECT COUNT(height) FROM table_15017024_2 WHERE player_name = "Chad Henne"
How many heights does chad henne have?
CREATE TABLE table_15017024_2 (height VARCHAR, player_name VARCHAR)
SELECT COUNT(*), dept_name FROM student GROUP BY dept_name
Find the total number of students in each department.
CREATE TABLE student (dept_name VARCHAR)
SELECT MIN(year) FROM table_name_87 WHERE name = "1500 louisiana street"
What is the oldest year listed with the 1500 Louisiana Street name?
CREATE TABLE table_name_87 (year INTEGER, name VARCHAR)
SELECT MAX(game) FROM table_name_44 WHERE opponent = "chicago black hawks" AND november < 16
What is the highest Game, when Opponent is "Chicago Black Hawks", and when November is less than 16?
CREATE TABLE table_name_44 (game INTEGER, opponent VARCHAR, november VARCHAR)
SELECT MIN(total) FROM table_name_34 WHERE rank = "14" AND gold > 0
What is the lowest total when the rank is 14 and the gold medals is larger than 0?
CREATE TABLE table_name_34 (total INTEGER, rank VARCHAR, gold VARCHAR)
SELECT away_team AS score FROM table_name_62 WHERE venue = "western oval"
What was the away team's score at the match played at The Western Oval?
CREATE TABLE table_name_62 (away_team VARCHAR, venue VARCHAR)
SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = 2521 AND engine_code = "b5254 t2"
Which model has a 2521 cm displacement and b5254 t2 engine?
CREATE TABLE table_name_45 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR)
SELECT score FROM table_name_97 WHERE partner = "hayley ericksen"
What was hayley ericksen's score?
CREATE TABLE table_name_97 (score VARCHAR, partner VARCHAR)
SELECT party FROM table_name_81 WHERE votes < 11 OFFSET 484
Which party has less than 11,484 votes?
CREATE TABLE table_name_81 (party VARCHAR, votes INTEGER)
SELECT distance FROM table_name_89 WHERE name = "mjåkollen"
what is the distance for mjåkollen?
CREATE TABLE table_name_89 (distance VARCHAR, name VARCHAR)
SELECT COUNT(year) FROM table_name_94 WHERE title = "drop dead"
How many years was the title drop dead?
CREATE TABLE table_name_94 (year VARCHAR, title VARCHAR)
SELECT open_cup FROM table_name_21 WHERE reg_season = "2nd, northeast"
What open cup did they play in when they finished 2nd, northeast in the reg. season?
CREATE TABLE table_name_21 (open_cup VARCHAR, reg_season VARCHAR)
SELECT SUM(laps) FROM table_name_7 WHERE grid < 11 AND driver = "jean-pierre jarier"
I want the sum of Laps with Grid less than 11 for jean-pierre jarier
CREATE TABLE table_name_7 (laps INTEGER, grid VARCHAR, driver VARCHAR)