answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT country FROM table_name_7 WHERE player = "bill nary"
what is the country when the player is bill nary?
CREATE TABLE table_name_7 (country VARCHAR, player VARCHAR)
SELECT date FROM table_name_47 WHERE attendance > 20 OFFSET 268
Name the date for attendance more than 20,268
CREATE TABLE table_name_47 (date VARCHAR, attendance INTEGER)
SELECT directed_by FROM table_20704243_5 WHERE season__number = 1
Name who directed season 1
CREATE TABLE table_20704243_5 (directed_by VARCHAR, season__number VARCHAR)
SELECT builder FROM table_name_71 WHERE date = "1953"
What is Builder, when Date is 1953?
CREATE TABLE table_name_71 (builder VARCHAR, date VARCHAR)
SELECT week FROM table_name_58 WHERE record = "5-7-1"
Which week has a record of 5-7-1?
CREATE TABLE table_name_58 (week VARCHAR, record VARCHAR)
SELECT MIN(division) FROM table_name_91 WHERE playoffs = "did not qualify" AND open_cup = "did not qualify" AND year = "2002"
What is the lowest division in the playoffs and did not qualify for the Open Cup in 2002?
CREATE TABLE table_name_91 (division INTEGER, year VARCHAR, playoffs VARCHAR, open_cup VARCHAR)
SELECT copa_libertadores_1996 FROM table_name_10 WHERE team = "estudiantes"
Which Copa Libertadores 1996 has a Team of estudiantes?
CREATE TABLE table_name_10 (copa_libertadores_1996 VARCHAR, team VARCHAR)
SELECT engine FROM table_name_6 WHERE points = 3
What is the engine for the car with 3 points?
CREATE TABLE table_name_6 (engine VARCHAR, points VARCHAR)
SELECT date_and_opponent FROM table_name_4 WHERE position = "f" AND career_games = "123 games"
Name the Date and an Opponent which has a f Position and Career Games of 123 games?
CREATE TABLE table_name_4 (date_and_opponent VARCHAR, position VARCHAR, career_games VARCHAR)
SELECT player FROM table_name_83 WHERE year_s__won = "1993"
Who is the player who won in 1993?
CREATE TABLE table_name_83 (player VARCHAR, year_s__won VARCHAR)
SELECT tournament FROM table_name_88 WHERE 2011 = "1r"
Which tournament has a 2011 of 1r?
CREATE TABLE table_name_88 (tournament VARCHAR)
SELECT label FROM table_name_88 WHERE format = "cd" AND catalog = "crgd 86136"
What Label has a Format of cd, and a Catalog of crgd 86136?
CREATE TABLE table_name_88 (label VARCHAR, format VARCHAR, catalog VARCHAR)
SELECT MIN(first_elected) FROM table_1341472_20
What is the first election year listed?
CREATE TABLE table_1341472_20 (first_elected INTEGER)
SELECT COUNT(year) FROM table_name_51 WHERE name = "tour quartier des spectacles" AND floors < 31
How many years have a Name of tour quartier des spectacles, and Floors smaller than 31?
CREATE TABLE table_name_51 (year VARCHAR, name VARCHAR, floors VARCHAR)
SELECT prothrombin_time FROM table_1226250_1 WHERE condition = "Glanzmann's thrombasthenia"
How in prothrombin affected by glanzmann's thrombasthenia.
CREATE TABLE table_1226250_1 (prothrombin_time VARCHAR, condition VARCHAR)
SELECT MIN(game) FROM table_name_24 WHERE march = 26
March of 26 has what lowest game?
CREATE TABLE table_name_24 (game INTEGER, march VARCHAR)
SELECT COUNT(population__2010_) FROM table_216776_2 WHERE municipality = "Cavinti"
How many different counts of the population in Cavinti in 2010 are there?
CREATE TABLE table_216776_2 (population__2010_ VARCHAR, municipality VARCHAR)
SELECT class FROM table_name_98 WHERE built_as = "dlg-23"
Where the built as is DLG-23, what is the class?
CREATE TABLE table_name_98 (class VARCHAR, built_as VARCHAR)
SELECT acronym FROM table_name_34 WHERE name_in_malay = "kolej komuniti sungai petani"
What is the acronym for the name Malay of Kolej Komuniti Sungai Petani?
CREATE TABLE table_name_34 (acronym VARCHAR, name_in_malay VARCHAR)
SELECT SUM(rank) FROM table_name_71 WHERE rider = "michael russell"
How many ranks have michael russell as the rider?
CREATE TABLE table_name_71 (rank INTEGER, rider VARCHAR)
SELECT 3 AS rd_day FROM table_name_65 WHERE year < 2012 AND finish_position = "33rd"
What is the 3rd day result for years under 2012 and a finish position of 33rd?
CREATE TABLE table_name_65 (year VARCHAR, finish_position VARCHAR)
SELECT first_aired FROM table_191105_4 WHERE performed_by = "Sue Manchester"
What is the date for the episode performed by Sue Manchester?
CREATE TABLE table_191105_4 (first_aired VARCHAR, performed_by VARCHAR)
SELECT MIN(date) FROM table_name_87 WHERE catalog = "6561910008-1"
I want the lowest date for catalog of 6561910008-1
CREATE TABLE table_name_87 (date INTEGER, catalog VARCHAR)
SELECT cName, state, MIN(enr) FROM college GROUP BY state
What is the name of school that has the smallest enrollment in each state?
CREATE TABLE college (cName VARCHAR, state VARCHAR, enr INTEGER)
SELECT rank, COUNT(*) FROM Faculty GROUP BY rank
For each faculty rank, show the number of faculty members who have it.
CREATE TABLE Faculty (rank VARCHAR)
SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2
How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?
CREATE TABLE table_name_16 (bronze INTEGER, rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(attendance) FROM table_name_23 WHERE record = "21–22–2"
How many attended the game with a Record of 21–22–2?
CREATE TABLE table_name_23 (attendance VARCHAR, record VARCHAR)
SELECT Real AS name FROM table_name_95 WHERE defining_characteristics = "shortest band member"
Who is the person with the defining characteristic of the shortest band member?
CREATE TABLE table_name_95 (Real VARCHAR, defining_characteristics VARCHAR)
SELECT date FROM table_name_66 WHERE meet = "2007 pan american games" AND time = "1:07.78"
On what Date was the Meet of 2007 Pan American Games with a Time of 1:07.78?
CREATE TABLE table_name_66 (date VARCHAR, meet VARCHAR, time VARCHAR)
SELECT theme FROM table_21501518_1 WHERE original_artist = "Soul Brothers Six"
What is the theme of the song by Soul Brothers Six
CREATE TABLE table_21501518_1 (theme VARCHAR, original_artist VARCHAR)
SELECT manager FROM table_27409644_1 WHERE club = "Pärnu"
Who is the pärnu manager?
CREATE TABLE table_27409644_1 (manager VARCHAR, club VARCHAR)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name ORDER BY SUM(T2.amount) DESC LIMIT 1
Find the name of customer who has the highest amount of loans.
CREATE TABLE loan (cust_id VARCHAR, amount INTEGER); CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR)
SELECT SUM(track) FROM table_name_21 WHERE catalogue = "47-9465"
What track has a catalogue of 47-9465?
CREATE TABLE table_name_21 (track INTEGER, catalogue VARCHAR)
SELECT MAX(attendance) FROM table_name_18 WHERE date = "november 16, 1975"
What was the attendance during the november 16, 1975 game?
CREATE TABLE table_name_18 (attendance INTEGER, date VARCHAR)
SELECT studio FROM table_name_95 WHERE director_s_ = "john lasseter and andrew stanton"
What studio has directors John Lasseter and Andrew Stanton?
CREATE TABLE table_name_95 (studio VARCHAR, director_s_ VARCHAR)
SELECT total FROM table_24291077_8 WHERE week = 3
What was the total rating on week 3?
CREATE TABLE table_24291077_8 (total VARCHAR, week VARCHAR)
SELECT gender FROM table_name_95 WHERE decile = 5 AND area = "dalefield"
What gender is the team that has a decile of 5 and in the Dalefield area?
CREATE TABLE table_name_95 (gender VARCHAR, decile VARCHAR, area VARCHAR)
SELECT win_loss FROM table_1165048_1 WHERE season = 2009
what are all the win/loss where season is 2009
CREATE TABLE table_1165048_1 (win_loss VARCHAR, season VARCHAR)
SELECT major, age FROM student WHERE NOT stuid IN (SELECT T1.stuid FROM student AS T1 JOIN has_pet AS T2 ON T1.stuid = T2.stuid JOIN pets AS T3 ON T3.petid = T2.petid WHERE T3.pettype = 'cat')
Find the major and age of students who do not have a cat pet.
CREATE TABLE student (stuid VARCHAR); CREATE TABLE has_pet (stuid VARCHAR, petid VARCHAR); CREATE TABLE pets (petid VARCHAR, pettype VARCHAR); CREATE TABLE student (major VARCHAR, age VARCHAR, stuid VARCHAR)
SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04"
Who are the cast members of episode 3-04?
CREATE TABLE table_2570269_3 (cast VARCHAR, episode__number VARCHAR)
SELECT SUM(losses) FROM table_name_54 WHERE appearances = 1 AND winning_percentage = 1 AND team = "reno aces"
For the Reno Aces, what are the Losses when they had 1 Appearances and a Winning Percentage of 1?
CREATE TABLE table_name_54 (losses INTEGER, team VARCHAR, appearances VARCHAR, winning_percentage VARCHAR)
SELECT airport FROM table_name_6 WHERE icao = "flls"
Name the airport for ICAO of flls
CREATE TABLE table_name_6 (airport VARCHAR, icao VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_35 WHERE evening_gown > 9.48 AND country = "florida" AND interview > 8.94
What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?
CREATE TABLE table_name_35 (swimsuit VARCHAR, interview VARCHAR, evening_gown VARCHAR, country VARCHAR)
SELECT SUM(yards) FROM table_name_29 WHERE player = "jason campbell" AND long < 23
Tell me the sum of yards for jason campbell and long less than 23
CREATE TABLE table_name_29 (yards INTEGER, player VARCHAR, long VARCHAR)
SELECT candidates FROM table_1341577_34 WHERE incumbent = "Tim Valentine"
Who were all the candidates when incumbent was Tim Valentine?
CREATE TABLE table_1341577_34 (candidates VARCHAR, incumbent VARCHAR)
SELECT MAX(silver) FROM table_name_82 WHERE total = 57 AND bronze > 20
What is the highest silver that has 57 as the total, with a bronze greater than 20?
CREATE TABLE table_name_82 (silver INTEGER, total VARCHAR, bronze VARCHAR)
SELECT october FROM table_name_11 WHERE opponent = "toronto maple leafs"
What date in October did the Flyers play against the Toronto Maple Leafs?
CREATE TABLE table_name_11 (october VARCHAR, opponent VARCHAR)
SELECT COUNT(fastest_lap) FROM table_10706879_3 WHERE rd = 10
How many fastest laps were there for a rd that equals 10?
CREATE TABLE table_10706879_3 (fastest_lap VARCHAR, rd VARCHAR)
SELECT tournament FROM table_name_42 WHERE 1996 = "qf"
Which one of the tournaments had a QF in 1996?
CREATE TABLE table_name_42 (tournament VARCHAR)
SELECT COUNT(pictorials) FROM table_1566848_6 WHERE date = "5-85"
Name the number of pictorials for 5-85
CREATE TABLE table_1566848_6 (pictorials VARCHAR, date VARCHAR)
SELECT brand_name FROM table_1661124_1 WHERE antibody = "Brentuximab vedotin"
What is the brand name for the antibody Brentuximab Vedotin?
CREATE TABLE table_1661124_1 (brand_name VARCHAR, antibody VARCHAR)
SELECT exercise FROM table_27512025_1 WHERE equipment = "Heart rate monitor, water and towel"
What is the exercise when the equipment is heart rate monitor, water and towel?
CREATE TABLE table_27512025_1 (exercise VARCHAR, equipment VARCHAR)
SELECT 2010 FROM table_name_20 WHERE 2006 = "a"
What's the 2010 result when 2006 is a?
CREATE TABLE table_name_20 (Id VARCHAR)
SELECT SUM(year) FROM table_name_16 WHERE tournament = "commonwealth games"
What year was the Commonwealth Games?
CREATE TABLE table_name_16 (year INTEGER, tournament VARCHAR)
SELECT suburb FROM table_name_54 WHERE date_first_settled_as_a_suburb = 1962
Which Suburb was First Settled as a Suburb in 1962?
CREATE TABLE table_name_54 (suburb VARCHAR, date_first_settled_as_a_suburb VARCHAR)
SELECT qual FROM table_name_75 WHERE finish = "9"
Which qual also has a finish total of 9?
CREATE TABLE table_name_75 (qual VARCHAR, finish VARCHAR)
SELECT hometown FROM table_14624447_39 WHERE name = "Ventrell Jenkins"
Name the hometown for ventrell jenkins
CREATE TABLE table_14624447_39 (hometown VARCHAR, name VARCHAR)
SELECT score FROM table_name_1 WHERE date = "may 11, 2003"
Name th score for may 11, 2003
CREATE TABLE table_name_1 (score VARCHAR, date VARCHAR)
SELECT MAX(yes_votes) FROM table_256286_60 WHERE meas_num = 4
How yes votes were there for measure 4?
CREATE TABLE table_256286_60 (yes_votes INTEGER, meas_num VARCHAR)
SELECT gdp_per_capita__us$_ FROM table_name_77 WHERE population = "56,210,000"
What is the GDP of the nation with 56,210,000 people?
CREATE TABLE table_name_77 (gdp_per_capita__us$_ VARCHAR, population VARCHAR)
SELECT SUM(lost) FROM table_name_86 WHERE points = 11 AND drawn > 1
What is the sum of losses that have points of 11 and more than 1 draw?
CREATE TABLE table_name_86 (lost INTEGER, points VARCHAR, drawn VARCHAR)
SELECT country FROM table_name_50 WHERE television_service = "eurosport 2"
What is Country, when Television Service is Eurosport 2?
CREATE TABLE table_name_50 (country VARCHAR, television_service VARCHAR)
SELECT MAX(number) FROM table_name_50 WHERE name = "tim andree"
What is Tim Andree's greatest number?
CREATE TABLE table_name_50 (number INTEGER, name VARCHAR)
SELECT name FROM table_name_56 WHERE authors = "zhou clarke zhang"
Who is The Author of zhou clarke zhang?
CREATE TABLE table_name_56 (name VARCHAR, authors VARCHAR)
SELECT albany FROM table_name_18 WHERE buffalo = "oatka creek shale" AND syracuse = "cardiff dark gray shale"
What is Albany, when Buffalo is Oatka Creek Shale, and when Syracuse is Cardiff Dark Gray Shale?
CREATE TABLE table_name_18 (albany VARCHAR, buffalo VARCHAR, syracuse VARCHAR)
SELECT date FROM table_name_9 WHERE opponents = "guillermo garcía-lópez albert portas"
What are the dates where the opponent was guillermo garcía-lópez albert portas?
CREATE TABLE table_name_9 (date VARCHAR, opponents VARCHAR)
SELECT zone_2008 FROM table_name_17 WHERE services = "greater anglia" AND station = "cheshunt"
Which Zone 2008 has Services of greater anglia, and a Station of cheshunt?
CREATE TABLE table_name_17 (zone_2008 VARCHAR, services VARCHAR, station VARCHAR)
SELECT surface FROM table_name_38 WHERE opponent = "yevgeny kafelnikov"
What suface during the game that had Yevgeny Kafelnikov as an opponent?
CREATE TABLE table_name_38 (surface VARCHAR, opponent VARCHAR)
SELECT team AS captain FROM table_name_11 WHERE team = "tus koblenz"
Who was the team captain of tus koblenz?
CREATE TABLE table_name_11 (team VARCHAR)
SELECT opponent FROM table_name_39 WHERE date = "bye" AND week = 1
Name the opponent for date of bye and week of 1
CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR, week VARCHAR)
SELECT 2009 FROM table_name_32 WHERE 2011 = "25"
What shows for 2009 when 25 shows for 2011?
CREATE TABLE table_name_32 (Id VARCHAR)
SELECT MAX(year) FROM table_name_95 WHERE film_name = "gaon ki ganga"
What was the latest year for the film Gaon Ki Ganga?
CREATE TABLE table_name_95 (year INTEGER, film_name VARCHAR)
SELECT MIN(year_opened) FROM table_1942683_1
What is the earliest year a house opened?
CREATE TABLE table_1942683_1 (year_opened INTEGER)
SELECT film_title_used_in_nomination FROM table_19625976_1 WHERE persian_title = "گبه"
For the Persian title گبه, What was the film title used for the nomination?
CREATE TABLE table_19625976_1 (film_title_used_in_nomination VARCHAR, persian_title VARCHAR)
SELECT surface FROM table_name_60 WHERE date = "21 june 1993"
What is the surface on 21 june 1993?
CREATE TABLE table_name_60 (surface VARCHAR, date VARCHAR)
SELECT first_broadcast FROM table_23575917_6 WHERE davids_team = "David O'Doherty and Katherine Parkinson"
When david o'doherty and katherine parkinson are both on the davids team when is the first broadcast?
CREATE TABLE table_23575917_6 (first_broadcast VARCHAR, davids_team VARCHAR)
SELECT competition FROM table_name_52 WHERE date = "25/08/07"
What was the competition on 25/08/07?
CREATE TABLE table_name_52 (competition VARCHAR, date VARCHAR)
SELECT score FROM table_name_82 WHERE date = "october 5, 1990"
What is the score of the match on October 5, 1990?
CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR)
SELECT longitude FROM table_18600760_9 WHERE ansi_code = 1759682
What is the longitude of the township at ANSI code 1759682?
CREATE TABLE table_18600760_9 (longitude VARCHAR, ansi_code VARCHAR)
SELECT T1.Name FROM people AS T1 JOIN poker_player AS T2 ON T1.People_ID = T2.People_ID WHERE T2.Earnings > 300000
What are the names of poker players whose earnings is higher than 300000?
CREATE TABLE poker_player (People_ID VARCHAR, Earnings INTEGER); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR)
SELECT malayalam FROM table_name_61 WHERE മലയാളം = "വെള്ളി"
WHAT IS THE MALAYAM WITH മലയാളം of വെള്ളി?
CREATE TABLE table_name_61 (malayalam VARCHAR, മലയാളം VARCHAR)
SELECT week FROM table_name_27 WHERE date = "december 14, 1967"
Which week was the game on December 14, 1967?
CREATE TABLE table_name_27 (week VARCHAR, date VARCHAR)
SELECT malayalam_name_മലയാളം FROM table_201400_2 WHERE sanskrit = "Uttarāṣāḍha उत्तराषाढा"
what is the malayalam name മലയാളം of sanskrit uttarāṣāḍha उत्तराषाढा
CREATE TABLE table_201400_2 (malayalam_name_മലയാളം VARCHAR, sanskrit VARCHAR)
SELECT date FROM table_27713583_2 WHERE high_assists = "Raymond Felton (4)"
what is the date of the game that the high assists is raymond felton (4)?
CREATE TABLE table_27713583_2 (date VARCHAR, high_assists VARCHAR)
SELECT label FROM table_name_86 WHERE date = "28 march 2007" AND catalog = "magik muzik cd 07"
Which label released the catalog Magik Muzik CD 07 on 28 March 2007?
CREATE TABLE table_name_86 (label VARCHAR, date VARCHAR, catalog VARCHAR)
SELECT MAX(division) FROM table_14723382_1
What is the largest numbered?
CREATE TABLE table_14723382_1 (division INTEGER)
SELECT score_1 FROM table_24887326_8 WHERE away_team = "Norwich City"
What was the score when the away team was norwich city?
CREATE TABLE table_24887326_8 (score_1 VARCHAR, away_team VARCHAR)
SELECT candidates FROM table_1341604_11 WHERE district = "Georgia 8"
Name the candidates for georgia 8
CREATE TABLE table_1341604_11 (candidates VARCHAR, district VARCHAR)
SELECT result FROM table_name_32 WHERE week < 3 AND attendance = "53,658"
What was the result of the game before week 3 with an attendance of 53,658?
CREATE TABLE table_name_32 (result VARCHAR, week VARCHAR, attendance VARCHAR)
SELECT COUNT(parishes) FROM table_221375_1 WHERE province_of_1936 = "Beira Baixa Province"
Name the parishes for beira baixa province
CREATE TABLE table_221375_1 (parishes VARCHAR, province_of_1936 VARCHAR)
SELECT MIN(joined) FROM table_name_81 WHERE city = "college park" AND conference_championships < 0
What is the lowest year joined in the city of College Park at the Conference championships smaller than 0?
CREATE TABLE table_name_81 (joined INTEGER, city VARCHAR, conference_championships VARCHAR)
SELECT rounds FROM table_name_40 WHERE driver = "hap sharp"
Which rounds was Hap Sharp a driver in?
CREATE TABLE table_name_40 (rounds VARCHAR, driver VARCHAR)
SELECT MIN(total) FROM table_name_32 WHERE nation = "italy" AND silver < 0
What is the lowest Total for Italy with less than 0 silver?
CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, silver VARCHAR)
SELECT nationality FROM table_name_17 WHERE round = 4
Which Nationality has a Round of 4?
CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR)
SELECT actor FROM table_name_84 WHERE duration = "61 years"
What is the name of the actor with a duration of 61 years?
CREATE TABLE table_name_84 (actor VARCHAR, duration VARCHAR)
SELECT COUNT(name) FROM table_25401874_1 WHERE points = 50
How many names are listed for the player with 50 points?
CREATE TABLE table_25401874_1 (name VARCHAR, points VARCHAR)
SELECT channel_tv___dt__ FROM table_1553485_1 WHERE city_of_license__market = "San Francisco - Oakland - San Jose"
Which channel tv (dt) plays in San Francisco - Oakland - San Jose?
CREATE TABLE table_1553485_1 (channel_tv___dt__ VARCHAR, city_of_license__market VARCHAR)
SELECT nation FROM table_name_74 WHERE gold > 0 AND total > 4 AND rank = "6"
Which Nation has a Gold larger than 0, and a Total larger than 4, and a Rank of 6?
CREATE TABLE table_name_74 (nation VARCHAR, rank VARCHAR, gold VARCHAR, total VARCHAR)
SELECT to_par FROM table_name_75 WHERE place = "t8" AND player = "bunky henry"
When Bunky Henry placed t8, what was his To par?
CREATE TABLE table_name_75 (to_par VARCHAR, place VARCHAR, player VARCHAR)
SELECT result FROM table_25374338_1 WHERE original_artist = "Prince and The Revolution"
What is the result where the original artist is Prince and the Revolution?
CREATE TABLE table_25374338_1 (result VARCHAR, original_artist VARCHAR)