answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT MAX(no) FROM table_16494599_5 WHERE years_for_grizzlies = "2000-2001"
what's the highest player number from the list from 2000-2001
CREATE TABLE table_16494599_5 (no INTEGER, years_for_grizzlies VARCHAR)
SELECT power__kw_ FROM table_2610582_7 WHERE location = "General Santos"
What's the power for General Santos?
CREATE TABLE table_2610582_7 (power__kw_ VARCHAR, location VARCHAR)
SELECT COUNT(round) FROM table_name_6 WHERE player = "zach boychuk"
WHAT IS THE ROUND FOR ZACH BOYCHUK?
CREATE TABLE table_name_6 (round VARCHAR, player VARCHAR)
SELECT 2012 FROM table_name_55 WHERE tournament = "us open"
Name the 2012 for us open
CREATE TABLE table_name_55 (tournament VARCHAR)
SELECT player FROM table_name_57 WHERE to_par = "+10"
Which player finished at +10?
CREATE TABLE table_name_57 (player VARCHAR, to_par VARCHAR)
SELECT pole_position FROM table_14638077_2 WHERE date = "August 10"
who is the the pole position with date being august 10
CREATE TABLE table_14638077_2 (pole_position VARCHAR, date VARCHAR)
SELECT decision FROM table_name_24 WHERE date = "january 13"
What is the decision of the game on January 13?
CREATE TABLE table_name_24 (decision VARCHAR, date VARCHAR)
SELECT MAX(Transit_Passengers), MIN(Transit_Passengers) FROM airport
What are the maximum and minimum number of transit passengers of all aiports.
CREATE TABLE airport (Transit_Passengers INTEGER)
SELECT opponent FROM table_name_44 WHERE date = "april 21, 2008"
Who was the opponent on April 21, 2008?
CREATE TABLE table_name_44 (opponent VARCHAR, date VARCHAR)
SELECT COUNT(district) FROM table_2668254_25 WHERE first_elected = "1811"
How many district has a candidate that was first elected on 1811?
CREATE TABLE table_2668254_25 (district VARCHAR, first_elected VARCHAR)
SELECT player FROM table_1515346_2 WHERE country = "Australia" AND honoree_s_ = "Byron Nelson"
Who won the tournament for Australia in the year when Byron Nelson was Honoree?
CREATE TABLE table_1515346_2 (player VARCHAR, country VARCHAR, honoree_s_ VARCHAR)
SELECT YEAR FROM degrees GROUP BY YEAR ORDER BY SUM(degrees) DESC LIMIT 1
Which year has the most degrees conferred?
CREATE TABLE degrees (YEAR VARCHAR, degrees INTEGER)
SELECT plaid_cymru FROM table_name_77 WHERE polling_organisation_client = "yougov/itv wales" AND date_s__conducted = "4 may 2011"
I want the plaid cymru for Polling organisation/client of yougov/itv wales for 4 may 2011
CREATE TABLE table_name_77 (plaid_cymru VARCHAR, polling_organisation_client VARCHAR, date_s__conducted VARCHAR)
SELECT name FROM table_name_8 WHERE winner = "s. loeb" AND length = "13.04km" AND stage = "ss12"
What is the Name of the stage with S. Loeb as the Winner with a Length of 13.04km and a Stage of SS12?
CREATE TABLE table_name_8 (name VARCHAR, stage VARCHAR, winner VARCHAR, length VARCHAR)
SELECT result FROM table_name_13 WHERE rank = 12
what is the result when the rank is 12?
CREATE TABLE table_name_13 (result VARCHAR, rank 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 owner FROM table_name_64 WHERE trainer = "todd a. pletcher"
What Owner's Trainer is Todd A. Pletcher?
CREATE TABLE table_name_64 (owner VARCHAR, trainer VARCHAR)
SELECT high_points FROM table_27712180_7 WHERE score = "W 90–77 (OT)"
Name the high points for w 90–77 (ot)
CREATE TABLE table_27712180_7 (high_points VARCHAR, score VARCHAR)
SELECT rd_3 FROM table_name_95 WHERE rd_2_1 = "0+1"
What Rd 3 has a Rd 2 1 of 0+1?
CREATE TABLE table_name_95 (rd_3 VARCHAR, rd_2_1 VARCHAR)
SELECT room_temperature FROM table_name_67 WHERE in_production = "no" AND toxic_materials = "no"
What's the room temperature with no toxic materials and no ln production?
CREATE TABLE table_name_67 (room_temperature VARCHAR, in_production VARCHAR, toxic_materials VARCHAR)
SELECT MAX(by_election) FROM table_28898948_3 WHERE electorate = "Waikaia"
When waikaia is the electorate what is the highest by-election?
CREATE TABLE table_28898948_3 (by_election INTEGER, electorate VARCHAR)
SELECT MIN(_number) FROM table_18424435_5
What is the smallest number?
CREATE TABLE table_18424435_5 (_number INTEGER)
SELECT genbank_id FROM table_name_41 WHERE variant_id = "abd1a"
Which genbank id's variant is abd1a?
CREATE TABLE table_name_41 (genbank_id VARCHAR, variant_id VARCHAR)
SELECT SUM(pick) FROM table_name_7 WHERE school = "lsu"
What is the pick number for School of lsu?
CREATE TABLE table_name_7 (pick INTEGER, school VARCHAR)
SELECT episodes FROM table_name_20 WHERE title = "jewboy"
what episode is called jewboy
CREATE TABLE table_name_20 (episodes VARCHAR, title VARCHAR)
SELECT kilgore__r_ FROM table_name_47 WHERE potts__i_ = "4%" AND kaine__d_ = "47%" AND date = "october 30, 2005"
What was Kilgore's percentage when Potts (I) had 4% and Kaine (D) 47%, in the poll from October 30, 2005?
CREATE TABLE table_name_47 (kilgore__r_ VARCHAR, date VARCHAR, potts__i_ VARCHAR, kaine__d_ VARCHAR)
SELECT crowd FROM table_name_24 WHERE home_team = "north melbourne"
How many were in the crowd when North Melbourne was the home team?
CREATE TABLE table_name_24 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(total) FROM table_name_46 WHERE rank > 12 AND gold > 4
What is the sum of total with a Rank larger than 12, and a Gold larger than 4?
CREATE TABLE table_name_46 (total VARCHAR, rank VARCHAR, gold VARCHAR)
SELECT us_viewers__million_ FROM table_27403436_1 WHERE written_by = "Shana Goldberg-Meehan & Greg Malins"
How many viewers watched the episode written by shana goldberg-meehan & greg malins?
CREATE TABLE table_27403436_1 (us_viewers__million_ VARCHAR, written_by VARCHAR)
SELECT AVG(win__percentage) FROM table_name_76 WHERE gb_[d_] = "5"
What is the average win percentage of a season with a GB of 5?
CREATE TABLE table_name_76 (win__percentage INTEGER, gb_ VARCHAR, d_ VARCHAR)
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "kardinia park"
what was the largest attendance at kardinia park?
CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR)
SELECT T1.name, T1.partitionid FROM user_profiles AS T1 JOIN tweets AS T2 ON T1.uid = T2.uid GROUP BY T2.uid HAVING COUNT(*) < 2
Find the name and partition id for users who tweeted less than twice.
CREATE TABLE user_profiles (name VARCHAR, partitionid VARCHAR, uid VARCHAR); CREATE TABLE tweets (uid VARCHAR)
SELECT record FROM table_name_25 WHERE date = "june 29"
What was the record on june 29?
CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR)
SELECT venue FROM table_name_77 WHERE position_in_2005 = "8"
Can you tell me the Venue that has the Position in 2005 of 8?
CREATE TABLE table_name_77 (venue VARCHAR, position_in_2005 VARCHAR)
SELECT COUNT(catches) FROM table_27770426_1 WHERE no = 46
How many total catches did the player with no. 46 have?
CREATE TABLE table_27770426_1 (catches VARCHAR, no VARCHAR)
SELECT date_successor_seated FROM table_224837_4 WHERE district = "South Carolina 3rd"
Name the date successor seated is south carolina 3rd
CREATE TABLE table_224837_4 (date_successor_seated VARCHAR, district VARCHAR)
SELECT COUNT(location_attendance) FROM table_27882867_6 WHERE date = "January 11"
How many games did they play on january 11?
CREATE TABLE table_27882867_6 (location_attendance VARCHAR, date VARCHAR)
SELECT theme FROM table_27616663_1 WHERE original_artist = "Rosana"
What was the theme when original artist Rosana's song was performed?
CREATE TABLE table_27616663_1 (theme VARCHAR, original_artist VARCHAR)
SELECT third_place FROM table_name_94 WHERE winner = "thomas enqvist" AND runner_up = "guy forget"
What person is in the third place when Thomas Enqvist won and a Runner-up was guy forget?
CREATE TABLE table_name_94 (third_place VARCHAR, winner VARCHAR, runner_up VARCHAR)
SELECT AVG(year) FROM table_name_51 WHERE country_territory = "lebanon"
What's the average year lebanon won?
CREATE TABLE table_name_51 (year INTEGER, country_territory VARCHAR)
SELECT category FROM table_name_77 WHERE result = "won" AND year > 2009
Tell me the category for result of won and year more than 2009
CREATE TABLE table_name_77 (category VARCHAR, result VARCHAR, year VARCHAR)
SELECT quantity_world_rank FROM table_21109892_1 WHERE value_world_rank = "12"
where value world rank is 12, what is the quantity world rank?
CREATE TABLE table_21109892_1 (quantity_world_rank VARCHAR, value_world_rank VARCHAR)
SELECT COUNT(week) FROM table_name_87 WHERE date = "bye"
What is the Week with a Date of Bye?
CREATE TABLE table_name_87 (week VARCHAR, date VARCHAR)
SELECT MAX(overall) FROM table_name_36 WHERE college = "kentucky state"
What is the highest overall number for a player from Kentucky State?
CREATE TABLE table_name_36 (overall INTEGER, college VARCHAR)
SELECT method FROM table_name_55 WHERE opponent = "kenneth allen"
What Method was used with opponent Kenneth Allen?
CREATE TABLE table_name_55 (method VARCHAR, opponent VARCHAR)
SELECT position FROM table_name_26 WHERE school_club_team = "oklahoma state"
Oklahoma State produced a player in which position in the draft?
CREATE TABLE table_name_26 (position VARCHAR, school_club_team VARCHAR)
SELECT SUM(draws) FROM table_name_30 WHERE losses < 1
What are the draws when the losses are less than 1?
CREATE TABLE table_name_30 (draws INTEGER, losses INTEGER)
SELECT SUM(games_played) FROM table_name_89 WHERE goals_scored = "2"
How many games had 2 goals scored?
CREATE TABLE table_name_89 (games_played INTEGER, goals_scored VARCHAR)
SELECT MAX(pick) FROM table_name_82 WHERE round = 8
What is the largest pick in round 8?
CREATE TABLE table_name_82 (pick INTEGER, round VARCHAR)
SELECT venue FROM table_name_93 WHERE competition = "asian games" AND event = "4x400 m relay" AND year = 2002
what is the venue when the competition is asian games, the event is 4x400 m relay and the year is 2002?
CREATE TABLE table_name_93 (venue VARCHAR, year VARCHAR, competition VARCHAR, event VARCHAR)
SELECT COUNT(rank) FROM table_name_28 WHERE country = "great britain"
What was the rank for Great Britain?
CREATE TABLE table_name_28 (rank VARCHAR, country VARCHAR)
SELECT AVG(week) FROM table_name_43 WHERE opponent = "new orleans saints"
In what Week is the Opponent the New Orleans Saints?
CREATE TABLE table_name_43 (week INTEGER, opponent VARCHAR)
SELECT runner_up FROM table_name_53 WHERE national_champion = "ohio" AND location = "tucson, az"
What was the Runner-up with Ohio as the National Champion in Tucson, AZ?
CREATE TABLE table_name_53 (runner_up VARCHAR, national_champion VARCHAR, location VARCHAR)
SELECT retired FROM table_name_91 WHERE notes = "replaced by 737-300s"
What year was the aircraft retired when it was replaced by 737-300s?
CREATE TABLE table_name_91 (retired VARCHAR, notes VARCHAR)
SELECT away_team FROM table_name_53 WHERE home_team = "leatherhead"
What was the away team that played against home team Leatherhead?
CREATE TABLE table_name_53 (away_team VARCHAR, home_team VARCHAR)
SELECT outcome FROM table_name_55 WHERE opponent = "jade curtis"
What is the outcome of the match with opponent Jade Curtis?
CREATE TABLE table_name_55 (outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(DISTINCT series_name), COUNT(DISTINCT content) FROM TV_Channel
List the number of different series names and contents in the TV Channel table.
CREATE TABLE TV_Channel (series_name VARCHAR, content VARCHAR)
SELECT outcome FROM table_name_19 WHERE tournament = "milan , italy"
Which Outcome that has a Tournament of milan , italy?
CREATE TABLE table_name_19 (outcome VARCHAR, tournament VARCHAR)
SELECT height__in_ FROM table_23476629_2 WHERE province = "La Rioja"
What is the height in inches of contestants who are from the province of La Rioja?
CREATE TABLE table_23476629_2 (height__in_ VARCHAR, province VARCHAR)
SELECT artist FROM table_23963073_1 WHERE date_of_publication = 1966
Who was the artist who worked on the stories published in 1966?
CREATE TABLE table_23963073_1 (artist VARCHAR, date_of_publication VARCHAR)
SELECT score FROM table_11214772_1 WHERE year = "2007"
what's the score where year is 2007
CREATE TABLE table_11214772_1 (score VARCHAR, year VARCHAR)
SELECT T1.city FROM Addresses AS T1 JOIN Staff AS T2 ON T1.address_id = T2.staff_address_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn"
Which city does staff with first name as Janessa and last name as Sawayn live?
CREATE TABLE Staff (staff_address_id VARCHAR, first_name VARCHAR, last_name VARCHAR); CREATE TABLE Addresses (city VARCHAR, address_id VARCHAR)
SELECT years_in_orlando FROM table_name_54 WHERE player = "bo outlaw"
Which Years in Orlando has a Player of bo outlaw?
CREATE TABLE table_name_54 (years_in_orlando VARCHAR, player VARCHAR)
SELECT AVG(points) FROM table_name_99 WHERE difference = "55" AND against < 47
What is the average number of points for a difference of 55 and an against less than 47?
CREATE TABLE table_name_99 (points INTEGER, difference VARCHAR, against VARCHAR)
SELECT away_team AS score FROM table_name_68 WHERE venue = "lake oval"
Who was the away team at Lake Oval?
CREATE TABLE table_name_68 (away_team VARCHAR, venue VARCHAR)
SELECT id, name, market_share FROM browser
List the ids, names and market shares of all browsers.
CREATE TABLE browser (id VARCHAR, name VARCHAR, market_share VARCHAR)
SELECT fcc_info FROM table_name_67 WHERE erp_w = "100 watts"
Which FCC info has an ERP W of 100 watts?
CREATE TABLE table_name_67 (fcc_info VARCHAR, erp_w VARCHAR)
SELECT T2.name FROM film AS T1 JOIN LANGUAGE AS T2 ON T1.language_id = T2.language_id WHERE T1.title = 'AIRPORT POLLOCK'
Which language does the film AIRPORT POLLOCK use? List the language name.
CREATE TABLE film (language_id VARCHAR, title VARCHAR); CREATE TABLE LANGUAGE (name VARCHAR, language_id VARCHAR)
SELECT day_1 FROM table_name_16 WHERE day_3 = "math"
What is the day 1 when the day 3 is math?
CREATE TABLE table_name_16 (day_1 VARCHAR, day_3 VARCHAR)
SELECT bats FROM table_name_17 WHERE uni_number = 31
Which batter has a uni# of 31?
CREATE TABLE table_name_17 (bats VARCHAR, uni_number VARCHAR)
SELECT MAX(YEAR) FROM perpetrator
In which year did the most recent crime happen?
CREATE TABLE perpetrator (YEAR INTEGER)
SELECT education FROM table_name_47 WHERE hometown = "st. louis, missouri"
For natives of St. Louis, Missouri, what was listed under education?
CREATE TABLE table_name_47 (education VARCHAR, hometown VARCHAR)
SELECT rider FROM table_name_12 WHERE grid = 7
Which Rider is grid 7?
CREATE TABLE table_name_12 (rider VARCHAR, grid VARCHAR)
SELECT airport FROM table_name_74 WHERE iata = "dmk"
Name the airport with IATA of dmk
CREATE TABLE table_name_74 (airport VARCHAR, iata VARCHAR)
SELECT date FROM table_name_37 WHERE score = "1-2" AND venue = "athens olympic stadium"
On what date was the score 1-2 at Athens Olympic Stadium?
CREATE TABLE table_name_37 (date VARCHAR, score VARCHAR, venue VARCHAR)
SELECT COUNT(poles) FROM table_2725949_6 WHERE fastest_laps = 6
Name the number of poles for fastest laps being 6
CREATE TABLE table_2725949_6 (poles VARCHAR, fastest_laps VARCHAR)
SELECT model_number FROM table_name_57 WHERE order_part_number = "tmsmt37bqx5ld"
Which model number has an order part number of TMSMT37BQX5LD?
CREATE TABLE table_name_57 (model_number VARCHAR, order_part_number VARCHAR)
SELECT time FROM table_name_63 WHERE trainer = "todd pletcher"
What time does the trainer, Todd Pletcher have?
CREATE TABLE table_name_63 (time VARCHAR, trainer VARCHAR)
SELECT SUM(births__000s_) FROM table_name_59 WHERE deaths > 7.6 AND year = "1990-2009"
What was the amount of Births (000s) that had a death rate larger than 7.6, and a Year of 1990-2009?
CREATE TABLE table_name_59 (births__000s_ INTEGER, deaths VARCHAR, year VARCHAR)
SELECT opponent FROM table_name_85 WHERE time = "2:35"
Which opponent has a time of 2:35?
CREATE TABLE table_name_85 (opponent VARCHAR, time VARCHAR)
SELECT city FROM table_name_60 WHERE venue = "peterson gym"
Peterson Gym is in what city?
CREATE TABLE table_name_60 (city VARCHAR, venue VARCHAR)
SELECT team FROM table_name_40 WHERE tries_against = "8"
What is Team, when Tries Against is 8?
CREATE TABLE table_name_40 (team VARCHAR, tries_against VARCHAR)
SELECT time_retired FROM table_name_77 WHERE grid = 9
what is the time/retired when the grid is 9?
CREATE TABLE table_name_77 (time_retired VARCHAR, grid VARCHAR)
SELECT MAX(points_1) FROM table_name_57 WHERE goals_against < 97 AND lost < 22 AND drawn = 9 AND goal_difference = "+28"
What is the most points 1 when the goals against are fewer than 97, lost less than 22, 9 draws and goal difference of +28?
CREATE TABLE table_name_57 (points_1 INTEGER, goal_difference VARCHAR, drawn VARCHAR, goals_against VARCHAR, lost VARCHAR)
SELECT AVG(value__) AS $m_ FROM table_name_95 WHERE country = "england" AND operating_income_$m_ > -5 AND revenue__$m_ < 103
What was the average Value ($M) when the Country was England, the Operating income($m) was greater than -5, and the Revenue ($M) was smaller than 103?
CREATE TABLE table_name_95 (value__ INTEGER, revenue__$m_ VARCHAR, country VARCHAR, operating_income_$m_ VARCHAR)
SELECT time_retired FROM table_name_16 WHERE grid < 9 AND constructor = "ferrari" AND driver = "rubens barrichello"
Which Time/Retired has a grid smaller than 9, a Ferrari construct, and is driven by Rubens Barrichello?
CREATE TABLE table_name_16 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT home FROM table_name_31 WHERE record = "3-2"
For a record of 3-2, what team was home?
CREATE TABLE table_name_31 (home VARCHAR, record VARCHAR)
SELECT dept_name, budget FROM department WHERE budget > (SELECT AVG(budget) FROM department)
Find the name and budget of departments whose budgets are more than the average budget.
CREATE TABLE department (dept_name VARCHAR, budget INTEGER)
SELECT dates_aired FROM table_name_6 WHERE region_country = "united states"
What dates did the episodes air in the United States?
CREATE TABLE table_name_6 (dates_aired VARCHAR, region_country VARCHAR)
SELECT seed FROM table_26423157_2 WHERE school = "California"
What seed was California?
CREATE TABLE table_26423157_2 (seed VARCHAR, school VARCHAR)
SELECT superlative FROM table_name_56 WHERE actress = "thelma ritter"
Which award has Thelma Ritter won?
CREATE TABLE table_name_56 (superlative VARCHAR, actress VARCHAR)
SELECT years FROM table_name_35 WHERE displacement = "4.0l (242cid)"
what is the years for the displacement 4.0l (242cid)?
CREATE TABLE table_name_35 (years VARCHAR, displacement VARCHAR)
SELECT surface FROM table_22597626_2 WHERE opponents_in_the_final = "Hewitt McMillan"
What is the surface made of if the opponent in the final is Hewitt McMillan?
CREATE TABLE table_22597626_2 (surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT original_air_date FROM table_28081876_6 WHERE us_viewers__millions_ = "1.57"
When was originally aired the episode with an audience of 1.57 million us viewers?
CREATE TABLE table_28081876_6 (original_air_date VARCHAR, us_viewers__millions_ 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 condition FROM table_name_1 WHERE bleeding_time = "prolonged" AND platelet_count = "decreased" AND prothrombin_time = "prolonged"
Which Condition has a Bleeding time of prolonged, a Platelet count of decreased, and Prothrombin time of prolonged?
CREATE TABLE table_name_1 (condition VARCHAR, prothrombin_time VARCHAR, bleeding_time VARCHAR, platelet_count VARCHAR)
SELECT memory FROM table_16729930_17 WHERE part_number_s_ = "CT80618003201AA"
Name the memory for part number of ct80618003201aa
CREATE TABLE table_16729930_17 (memory VARCHAR, part_number_s_ VARCHAR)
SELECT event FROM table_name_70 WHERE position = "8th"
What is the event that is in 8th position?
CREATE TABLE table_name_70 (event VARCHAR, position VARCHAR)
SELECT birthplace FROM table_name_76 WHERE name = "bob mcvey"
What is the Birthplace, when the Name is Bob Mcvey?
CREATE TABLE table_name_76 (birthplace VARCHAR, name VARCHAR)
SELECT SUM(game) FROM table_name_94 WHERE opponent = "@ carolina hurricanes"
Which Game has an Opponent of @ carolina hurricanes?
CREATE TABLE table_name_94 (game INTEGER, opponent VARCHAR)