answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(wins) FROM table_name_76 WHERE top_25 = 13 AND events < 32
What is the highest number of wins that has a top-25 of 13 and events less than 32?
CREATE TABLE table_name_76 (wins INTEGER, top_25 VARCHAR, events VARCHAR)
SELECT COUNT(game) FROM table_11961582_4 WHERE high_assists = "A. Johnson (6)"
What was the total number of games where A. Johnson (6) gave the most high assists?
CREATE TABLE table_11961582_4 (game VARCHAR, high_assists VARCHAR)
SELECT engine FROM table_name_44 WHERE chassis = "march 90ca"
What car has a March 90ca Chassis?
CREATE TABLE table_name_44 (engine VARCHAR, chassis VARCHAR)
SELECT constructor FROM table_name_11 WHERE grid < 17 AND laps < 52 AND driver = "olivier panis"
Which Constructor has a Grid less than 17, Laps under 52, and Olivier Panis as the Driver?
CREATE TABLE table_name_11 (constructor VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT name FROM table_name_22 WHERE rank < 71 AND year > 2005 AND out_of = "220"
Can you tell me the Name that has the Rank smaller than 71, and the Year larger than 2005, and the Out of 220?
CREATE TABLE table_name_22 (name VARCHAR, out_of VARCHAR, rank VARCHAR, year VARCHAR)
SELECT current_club FROM table_name_45 WHERE position = "sg/sf" AND height < 1.96
What is the current club with a position of sg/sf and a height less than 1.96?
CREATE TABLE table_name_45 (current_club VARCHAR, position VARCHAR, height VARCHAR)
SELECT 3 AS rd_place FROM table_name_60 WHERE year = "1990"
what shows for 3rd place in 1990?
CREATE TABLE table_name_60 (year VARCHAR)
SELECT reserved_for___sc___st__none_ FROM table_name_39 WHERE name = "lahar"
What is the Reserved For of Lahar?
CREATE TABLE table_name_39 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR)
SELECT average FROM table_name_31 WHERE s_wicket = "441"
What is the average that has 441 as wicket?
CREATE TABLE table_name_31 (average VARCHAR, s_wicket VARCHAR)
SELECT arkansas FROM table_name_22 WHERE alabama = "ken stabler"
Who is the Arkansas player associated with Ken Stabler?
CREATE TABLE table_name_22 (arkansas VARCHAR, alabama VARCHAR)
SELECT company FROM table_name_41 WHERE market_value__us$_billion_ > 1 AND assets__us$_billion_ < 10.7 AND rank < 10 AND revenues__us$_billion_ = 9.3
Which company has a market value greater than 1, Assets (US$ billion) smaller than 10.7, a Rank smaller than 10, and revenue (US$ billion) of 9.3?
CREATE TABLE table_name_41 (company VARCHAR, revenues__us$_billion_ VARCHAR, rank VARCHAR, market_value__us$_billion_ VARCHAR, assets__us$_billion_ VARCHAR)
SELECT position FROM table_name_78 WHERE surname = "naylor"
Which Position has a Surname of naylor?
CREATE TABLE table_name_78 (position VARCHAR, surname VARCHAR)
SELECT COUNT(title) FROM table_26736040_1 WHERE us_viewers__millions_ = "1.66"
How many titles have U.S. viewers 1.66 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT SUM(byes) FROM table_name_11 WHERE portland_dfl = "westerns" AND losses > 14
What is the sum of byes for losses larger than 14 for a Portland DFL of westerns?
CREATE TABLE table_name_11 (byes INTEGER, portland_dfl VARCHAR, losses VARCHAR)
SELECT score FROM table_name_53 WHERE date = "april 22"
What was the score on April 22?
CREATE TABLE table_name_53 (score VARCHAR, date VARCHAR)
SELECT AVG(total) FROM table_name_33 WHERE bronze > 3 AND gold > 8
What is the average total for teams with over 3 bronzes and over 8 golds?
CREATE TABLE table_name_33 (total INTEGER, bronze VARCHAR, gold VARCHAR)
SELECT team FROM table_name_90 WHERE outgoing_manager = "gonzalo arconada"
What team did gonzalo arconada manage?
CREATE TABLE table_name_90 (team VARCHAR, outgoing_manager VARCHAR)
SELECT SUM(entered) FROM table_name_86 WHERE wrestler = "shawn michaels"
Shawn Michaels entered the elimination chamber in what position?
CREATE TABLE table_name_86 (entered INTEGER, wrestler VARCHAR)
SELECT MIN(stolen_ends) FROM table_1475840_1 WHERE locale = Alberta
What is the minimum stolen ends for the locale Alberta?
CREATE TABLE table_1475840_1 (stolen_ends INTEGER, locale VARCHAR, Alberta VARCHAR)
SELECT score FROM table_name_44 WHERE away_team = "walthamstow avenue"
Which Score has a Away team of walthamstow avenue?
CREATE TABLE table_name_44 (score VARCHAR, away_team VARCHAR)
SELECT most_recent_final FROM table_1463332_2 WHERE years__won_in_bold_ = "1979"
What is the most recent final result for the years (won in bold) 1979?
CREATE TABLE table_1463332_2 (most_recent_final VARCHAR, years__won_in_bold_ VARCHAR)
SELECT COUNT(points) FROM table_17968282_1 WHERE team = "Newell's Old Boys"
Name the total number of points for newell's old boys
CREATE TABLE table_17968282_1 (points VARCHAR, team VARCHAR)
SELECT AVG(played) FROM table_name_51 WHERE lost = 3 AND points > 9 AND position = 5 AND against < 12
What is the average number of played of the team with 3 losses, more than 9 points, a position of 5, and less than 12 against?
CREATE TABLE table_name_51 (played INTEGER, against VARCHAR, position VARCHAR, lost VARCHAR, points VARCHAR)
SELECT crowd FROM table_name_95 WHERE away_team = "fitzroy"
What is the crowd size of the Away team, Fitzroy?
CREATE TABLE table_name_95 (crowd VARCHAR, away_team VARCHAR)
SELECT name FROM table_name_63 WHERE height__m_ = 2980
Which Name has a Height (m) of 2980?
CREATE TABLE table_name_63 (name VARCHAR, height__m_ VARCHAR)
SELECT region FROM table_name_93 WHERE date = "january 1974"
What region goes along with January 1974?
CREATE TABLE table_name_93 (region VARCHAR, date VARCHAR)
SELECT COUNT(high_assists) FROM table_17325580_6 WHERE date = "December 13"
How many high assist are on the date December 13?
CREATE TABLE table_17325580_6 (high_assists VARCHAR, date VARCHAR)
SELECT written_by FROM table_name_68 WHERE series__number = 99
Who wrote series number 99?
CREATE TABLE table_name_68 (written_by VARCHAR, series__number VARCHAR)
SELECT oklahoma FROM table_name_6 WHERE texas = "kennedy"
What's the value for oklahoma when texas is kennedy?
CREATE TABLE table_name_6 (oklahoma VARCHAR, texas VARCHAR)
SELECT sprint_classification FROM table_23944514_15 WHERE aggressive_rider = "Michael Barry"
Name the sprint classification for michael barry
CREATE TABLE table_23944514_15 (sprint_classification VARCHAR, aggressive_rider VARCHAR)
SELECT caps FROM table_name_96 WHERE province___club = "example" AND position = "prop" AND player = "sam walters"
What is Caps, when Province / Club is Example, when Position is Prop, and when Player is Sam Walters?
CREATE TABLE table_name_96 (caps VARCHAR, player VARCHAR, province___club VARCHAR, position VARCHAR)
SELECT record FROM table_30054758_3 WHERE date = "December 3"
What is the record for december 3?
CREATE TABLE table_30054758_3 (record VARCHAR, date VARCHAR)
SELECT age_as_of_1_february_2014 FROM table_name_23 WHERE province_or_country_of_birth = "united states"
What is the average age as of February 1, 2014 for the supercentenarians born in the United States?
CREATE TABLE table_name_23 (age_as_of_1_february_2014 VARCHAR, province_or_country_of_birth VARCHAR)
SELECT director FROM table_name_90 WHERE primary_language_s_ = "azerbaijani" AND original_title = "buta"
What is Director, when Primary Language(s) is "Azerbaijani", and when Original Title is "Buta"?
CREATE TABLE table_name_90 (director VARCHAR, primary_language_s_ VARCHAR, original_title VARCHAR)
SELECT COUNT(crowd) FROM table_name_59 WHERE round = "round 9"
What was the attendance at Round 9?
CREATE TABLE table_name_59 (crowd VARCHAR, round VARCHAR)
SELECT COUNT(partner) FROM table_2186447_1 WHERE score = "7–6 (7–4) , 6–3"
How many partners were there when the score was 7–6 (7–4) , 6–3?
CREATE TABLE table_2186447_1 (partner VARCHAR, score VARCHAR)
SELECT nba_draft FROM table_name_99 WHERE hometown = "brampton, on"
For the Player from Brampton, ON what is their NBA Draft status?
CREATE TABLE table_name_99 (nba_draft VARCHAR, hometown VARCHAR)
SELECT population__2011_ FROM table_2562572_37 WHERE cyrillic_name_other_names = "Српска Црња"
Name the population for 2011 for српска црња
CREATE TABLE table_2562572_37 (population__2011_ VARCHAR, cyrillic_name_other_names VARCHAR)
SELECT mahmoud_ahmadinejad FROM table_23390604_1 WHERE mir_hossein_mousavi = 218481
List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.
CREATE TABLE table_23390604_1 (mahmoud_ahmadinejad VARCHAR, mir_hossein_mousavi VARCHAR)
SELECT name FROM table_name_30 WHERE moving_to = "nec nijmegen"
What is Name, when Moving To is "NEC Nijmegen"?
CREATE TABLE table_name_30 (name VARCHAR, moving_to VARCHAR)
SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Who is the instructor with the highest salary?
CREATE TABLE instructor (name VARCHAR, salary VARCHAR)
SELECT COUNT(nhl_team) FROM table_2897457_8 WHERE position = "Center"
How many figures are provided for the team when the position drafted is center?
CREATE TABLE table_2897457_8 (nhl_team VARCHAR, position VARCHAR)
SELECT COUNT(drawn) FROM table_name_81 WHERE team = "corinthians" AND lost > 5
How many draws took place for team Corinthians with more than 5 losses?
CREATE TABLE table_name_81 (drawn VARCHAR, team VARCHAR, lost VARCHAR)
SELECT saturated_fat FROM table_name_63 WHERE total_fat = "100g" AND polyunsaturated_fat = "69g (4g in high oleic variety)"
What is the saturated fat when the total fat is 100g, and polyunsaturated fat is 69g (4g in high oleic variety)?
CREATE TABLE table_name_63 (saturated_fat VARCHAR, total_fat VARCHAR, polyunsaturated_fat VARCHAR)
SELECT analog_channel FROM table_name_16 WHERE network = "fox"
Which analog channel is Fox on?
CREATE TABLE table_name_16 (analog_channel VARCHAR, network VARCHAR)
SELECT order_and_title FROM table_name_6 WHERE nationality = "roman" AND elector = "matteo orsini rosso"
What is the Order and Title with a Nationality with roman, and an Elector with matteo orsini rosso?
CREATE TABLE table_name_6 (order_and_title VARCHAR, nationality VARCHAR, elector VARCHAR)
SELECT version FROM table_name_45 WHERE year < 1996
What was the Version prior to 1996?
CREATE TABLE table_name_45 (version VARCHAR, year INTEGER)
SELECT city FROM table_name_79 WHERE rank > 6 AND airport = "st. petersburg/clearwater (pie)"
What city is ranked greater than 6, and the airport is St. Petersburg/Clearwater (PIE)
CREATE TABLE table_name_79 (city VARCHAR, rank VARCHAR, airport VARCHAR)
SELECT AVG(gold_medals) FROM table_name_82 WHERE bronze_medals < 1 AND silver_medals = 0 AND total_medals > 1
Name the average gold medals when the bronze medals was less than 1, silver medals being 0 and total medals more than 1
CREATE TABLE table_name_82 (gold_medals INTEGER, total_medals VARCHAR, bronze_medals VARCHAR, silver_medals VARCHAR)
SELECT COUNT(directed_by) FROM table_27047554_1 WHERE us_viewers__in_millions_ = "2.48"
How many directors directed an episode that reached 2.48 million viewers?
CREATE TABLE table_27047554_1 (directed_by VARCHAR, us_viewers__in_millions_ VARCHAR)
SELECT points FROM table_16034882_4 WHERE club = "Piritas Klaipėda"
How many points did piritas klaipėda get?
CREATE TABLE table_16034882_4 (points VARCHAR, club VARCHAR)
SELECT reason_for_vacancy FROM table_2417445_4 WHERE district = "Massachusetts 6th"
When massachusetts 6th is the district what is the reason for vacancy?
CREATE TABLE table_2417445_4 (reason_for_vacancy VARCHAR, district VARCHAR)
SELECT away_team AS score FROM table_name_16 WHERE away_team = "geelong"
What is the away team's score when the away team is geelong?
CREATE TABLE table_name_16 (away_team VARCHAR)
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell"
What is the class of the qb, Josh Riddell?
CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR)
SELECT date FROM table_name_36 WHERE away_team = "leeds united"
What date was Leeds United the away team?
CREATE TABLE table_name_36 (date VARCHAR, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_7 WHERE venue = "mcg"
What is the total of crowd at Venue of mcg?
CREATE TABLE table_name_7 (crowd INTEGER, venue VARCHAR)
SELECT T1.student_id, T2.first_name FROM Assessment_Notes AS T1 JOIN Students AS T2 ON T1.student_id = T2.student_id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1
Find the id and first name of the student that has the most number of assessment notes?
CREATE TABLE Students (first_name VARCHAR, student_id VARCHAR); CREATE TABLE Assessment_Notes (student_id VARCHAR)
SELECT tree_species FROM table_16577990_1 WHERE central_forest_reserve = "Kitechura"
How many tree species are in the kitechura reserve?
CREATE TABLE table_16577990_1 (tree_species VARCHAR, central_forest_reserve VARCHAR)
SELECT home_team AS score FROM table_name_91 WHERE home_team = "melbourne"
What was Melbourne's score as the home team?
CREATE TABLE table_name_91 (home_team VARCHAR)
SELECT MAX(ending_with) FROM table_1852650_1 WHERE sung_by = "Peyalvar"
Name the most ending with for peyalvar
CREATE TABLE table_1852650_1 (ending_with INTEGER, sung_by VARCHAR)
SELECT to_par FROM table_19630743_2 WHERE winning_score = 69 - 66 - 68 = 203
How many to par has the winning score of 69-66-68=203.
CREATE TABLE table_19630743_2 (to_par VARCHAR, winning_score VARCHAR)
SELECT COUNT(party) FROM table_1341690_20 WHERE incumbent = "Robert Bauman"
How many instances are there of party in the situation where Robert Bauman is the incumbent politician?
CREATE TABLE table_1341690_20 (party VARCHAR, incumbent VARCHAR)
SELECT MIN(position) FROM table_16034882_5
Name the least position
CREATE TABLE table_16034882_5 (position INTEGER)
SELECT result FROM table_name_92 WHERE score = "58-6"
What was the result of the match that had a score of 58-6?
CREATE TABLE table_name_92 (result VARCHAR, score VARCHAR)
SELECT away_team FROM table_name_8 WHERE home_team = "hawthorn"
Who did Hawthorn play against at their home match?
CREATE TABLE table_name_8 (away_team VARCHAR, home_team VARCHAR)
SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen"
In what Week resulting in the bottom 3 was Endre Jansen Partner?
CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR)
SELECT COUNT(production_code) FROM table_18569389_1 WHERE us_viewers__million_ = "5.08"
Name the number of production code for 5.08
CREATE TABLE table_18569389_1 (production_code VARCHAR, us_viewers__million_ VARCHAR)
SELECT place FROM table_name_86 WHERE country = "zimbabwe"
What place was the player hailing from Zimbabwe in?
CREATE TABLE table_name_86 (place VARCHAR, country VARCHAR)
SELECT COUNT(directed_by) FROM table_20124413_2 WHERE prod_code = "2.8"
How many directed have the product code of 2.8?
CREATE TABLE table_20124413_2 (directed_by VARCHAR, prod_code VARCHAR)
SELECT home FROM table_name_79 WHERE visitor = "new york knicks"
Who was the home when the visitor was New York Knicks?
CREATE TABLE table_name_79 (home VARCHAR, visitor VARCHAR)
SELECT MAX(place) FROM table_name_65 WHERE artist = "nikolas metaxas" AND televote > 60
Which Place is the highest one that has an Artist of nikolas metaxas, and a Televote larger than 60?
CREATE TABLE table_name_65 (place INTEGER, artist VARCHAR, televote VARCHAR)
SELECT original_title FROM table_name_42 WHERE film_title_used_in_nomination = "children of sarajevo"
What is the Original title of Children of Sarajevo?
CREATE TABLE table_name_42 (original_title VARCHAR, film_title_used_in_nomination VARCHAR)
SELECT COUNT(losses) FROM table_name_85 WHERE team = "sturt" AND wins > 0
How many losses did the team, Sturt, have when they had more than 0 wins?
CREATE TABLE table_name_85 (losses VARCHAR, team VARCHAR, wins VARCHAR)
SELECT 2 AS nd_leg FROM table_23812628_1 WHERE team__number1 = "Boca Juniors"
Name the 2nd leg for boca juniors
CREATE TABLE table_23812628_1 (team__number1 VARCHAR)
SELECT COUNT(DISTINCT driverId) FROM results WHERE NOT raceId IN (SELECT raceId FROM races WHERE YEAR <> 2009)
How many drivers did not participate in the races held in 2009?
CREATE TABLE races (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR); CREATE TABLE results (driverId VARCHAR, raceId VARCHAR, YEAR VARCHAR)
SELECT lead FROM table_name_18 WHERE season = "2007-08"
Which lead had a season of 2007-08?
CREATE TABLE table_name_18 (lead VARCHAR, season VARCHAR)
SELECT nationality FROM table_name_48 WHERE player = "stromile swift"
What is the nationality of Stromile Swift?
CREATE TABLE table_name_48 (nationality VARCHAR, player VARCHAR)
SELECT COUNT(championship) FROM table_29163303_4 WHERE score = "4–6, 7–6 (7–5) , [5–10]"
How many championships were there where the score was 4–6, 7–6 (7–5) , [5–10]?
CREATE TABLE table_29163303_4 (championship VARCHAR, score VARCHAR)
SELECT score FROM table_name_61 WHERE champion = "nannette hill"
What was the score when Nannette Hill was the champion?
CREATE TABLE table_name_61 (score VARCHAR, champion VARCHAR)
SELECT gold FROM table_name_71 WHERE bronze = "11"
What is Gold, when Bronze is 11?
CREATE TABLE table_name_71 (gold VARCHAR, bronze VARCHAR)
SELECT country FROM table_name_7 WHERE winter_olympics = 1972
what is the country for the 1972 winter olympics?
CREATE TABLE table_name_7 (country VARCHAR, winter_olympics VARCHAR)
SELECT quarterfinalists FROM table_21584646_10 WHERE runner_up = "Mike De Palmer Gary Donnelly"
Who were the quarterfinalists for the runner-ups of mike de palmer gary donnelly?
CREATE TABLE table_21584646_10 (quarterfinalists VARCHAR, runner_up VARCHAR)
SELECT title FROM table_26736040_1 WHERE us_viewers__millions_ = "1.04"
What is every title when U.S. viewers is 1.04 million.
CREATE TABLE table_26736040_1 (title VARCHAR, us_viewers__millions_ VARCHAR)
SELECT player FROM table_10812938_5 WHERE cfl_team = "Montreal Alouettes"
What player is on the Montreal Alouettes CFl team?
CREATE TABLE table_10812938_5 (player VARCHAR, cfl_team VARCHAR)
SELECT neon FROM table_name_95 WHERE argon = "−189.6"
Which Neon has a Argon of −189.6?
CREATE TABLE table_name_95 (neon VARCHAR, argon VARCHAR)
SELECT imperative FROM table_name_37 WHERE subjunctive = "du måchast"
With a subjunctive of du måchast what is the imperative?
CREATE TABLE table_name_37 (imperative VARCHAR, subjunctive VARCHAR)
SELECT date_first_settled_as_a_suburb FROM table_1174162_1 WHERE median_age__in_2006_ = "40 years"
What is the date settled for 40 years?
CREATE TABLE table_1174162_1 (date_first_settled_as_a_suburb VARCHAR, median_age__in_2006_ VARCHAR)
SELECT socket FROM table_name_66 WHERE multiplier_1 = "11.5x"
What is the socket type for the processor with a multiplier 1 of 11.5x?
CREATE TABLE table_name_66 (socket VARCHAR, multiplier_1 VARCHAR)
SELECT producer FROM table_name_74 WHERE role = "rizzette"
Which Producer has a Role of rizzette?
CREATE TABLE table_name_74 (producer VARCHAR, role VARCHAR)
SELECT rally_name FROM table_name_17 WHERE surface = "asphalt and gravel"
Which Rally Name has a Surface of asphalt and gravel?
CREATE TABLE table_name_17 (rally_name VARCHAR, surface VARCHAR)
SELECT radio_commentator FROM table_17766232_7 WHERE final_television_commentator = "John Dunn"
Who was the radio commentator when the final television commentator was John Dunn?
CREATE TABLE table_17766232_7 (radio_commentator VARCHAR, final_television_commentator VARCHAR)
SELECT total FROM table_name_30 WHERE country = "united states" AND to_par < 14 AND player = "tom watson"
When the tom watson is playing for the United States and the To par is under 14, what's the total?
CREATE TABLE table_name_30 (total VARCHAR, player VARCHAR, country VARCHAR, to_par VARCHAR)
SELECT MAX(lost) FROM table_name_50 WHERE goals_against = 66 AND position < 15
What is the most losses for positions under 15 and 66 goals against?
CREATE TABLE table_name_50 (lost INTEGER, goals_against VARCHAR, position VARCHAR)
SELECT laps FROM table_name_60 WHERE driver = "jacques villeneuve"
How many laps did Jacques Villeneuve have?
CREATE TABLE table_name_60 (laps VARCHAR, driver VARCHAR)
SELECT affiliation FROM table_27961684_1 WHERE state = "Indiana"
What kind of institute is in Indiana?
CREATE TABLE table_27961684_1 (affiliation VARCHAR, state VARCHAR)
SELECT name FROM table_name_24 WHERE location = "uk" AND release_date = "december 1966"
What is the name in the UK, with a release date of December 1966?
CREATE TABLE table_name_24 (name VARCHAR, location VARCHAR, release_date VARCHAR)
SELECT away_team AS score FROM table_name_83 WHERE home_team = "brisbane lions"
What was the away team score when the home team was the Brisbane Lions?
CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR)
SELECT SUM(winners) FROM table_name_38 WHERE runners_up > 0
When the Runners-Up is larger than 0, what's the sum of winners?
CREATE TABLE table_name_38 (winners INTEGER, runners_up INTEGER)
SELECT race AS Winner FROM table_name_99 WHERE location = "spa-francorchamps"
Who was the winner at spa-francorchamps?
CREATE TABLE table_name_99 (race VARCHAR, location VARCHAR)
SELECT date FROM table_name_64 WHERE runner_s__up = "judy rankin"
On what Date was Judy Rankin Runner(s)-up?
CREATE TABLE table_name_64 (date VARCHAR, runner_s__up VARCHAR)