answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT attendance FROM table_name_95 WHERE record = "0-5"
For the game showing a final record of 0-5, what was the attendance level?
CREATE TABLE table_name_95 (attendance VARCHAR, record VARCHAR)
SELECT player FROM table_name_33 WHERE pick < 6 AND new_wnba_team = "minnesota lynx"
Which player had a pick under 6 and a new WNBA team of the Minnesota Lynx?
CREATE TABLE table_name_33 (player VARCHAR, pick VARCHAR, new_wnba_team VARCHAR)
SELECT home_team FROM table_name_34 WHERE away_team = "ipswich town"
who is the home team when the away team is ipswich town?
CREATE TABLE table_name_34 (home_team VARCHAR, away_team VARCHAR)
SELECT COUNT(episode) FROM table_2105721_1 WHERE run_time = "24:11"
Name the total episode for runtime of 24:11
CREATE TABLE table_2105721_1 (episode VARCHAR, run_time VARCHAR)
SELECT type FROM table_1974482_1 WHERE institution = "Hobart College"
Name the type for hobart college
CREATE TABLE table_1974482_1 (type VARCHAR, institution VARCHAR)
SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.2%"
What's the rank when the obese children and adolescent count is 14.2%?
CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR)
SELECT date FROM table_name_70 WHERE away_team = "richmond"
What is the date of the game where Richmond was the away team?
CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR)
SELECT SUM(1984) FROM table_name_11 WHERE total_points = 100 AND seasons > 3
What is the total for 1984 for the team with 100 points total and more than 3 seasons?
CREATE TABLE table_name_11 (total_points VARCHAR, seasons VARCHAR)
SELECT name, country, age FROM singer ORDER BY age DESC
Show name, country, age for all singers ordered by age from the oldest to the youngest.
CREATE TABLE singer (name VARCHAR, country VARCHAR, age VARCHAR)
SELECT main_use FROM table_name_75 WHERE country = "hungary" AND name = "transmitter solt"
What is the Main use of transmitter solt in Hungary?
CREATE TABLE table_name_75 (main_use VARCHAR, country VARCHAR, name VARCHAR)
SELECT years_as_tallest FROM table_name_14 WHERE floors = 24
How many years was the building with 24 floors the tallest?
CREATE TABLE table_name_14 (years_as_tallest VARCHAR, floors VARCHAR)
SELECT result FROM table_name_81 WHERE competition = "2010 fifa world cup qualification"
Tell me the result for 2010 fifa world cup qualification
CREATE TABLE table_name_81 (result VARCHAR, competition VARCHAR)
SELECT country FROM table_name_8 WHERE score = 71 - 72 = 143
Which of the countries showed a score of 71-72=143?
CREATE TABLE table_name_8 (country VARCHAR, score VARCHAR)
SELECT original_air_date FROM table_28334498_3 WHERE us_viewers__millions_ = "1.01"
What air date had 1.01 million U.S. viewers?
CREATE TABLE table_28334498_3 (original_air_date VARCHAR, us_viewers__millions_ VARCHAR)
SELECT date FROM table_name_34 WHERE event = "billabong pro"
What is Date, when Event is Billabong Pro?
CREATE TABLE table_name_34 (date VARCHAR, event VARCHAR)
SELECT district FROM table_1341453_40 WHERE incumbent = "Tim Holden"
In what district was Tim Holden the incumbent?
CREATE TABLE table_1341453_40 (district VARCHAR, incumbent VARCHAR)
SELECT year_at_cu FROM table_name_8 WHERE experience < 1 AND position = "video services"
What year at CU is the person in video services with an experience less than 1?
CREATE TABLE table_name_8 (year_at_cu VARCHAR, experience VARCHAR, position VARCHAR)
SELECT score FROM table_name_13 WHERE away_team = "southport"
What was the score for the away team southport?
CREATE TABLE table_name_13 (score VARCHAR, away_team VARCHAR)
SELECT quantity_made FROM table_name_38 WHERE class = "d-2"
what is the quantity made when the class is d-2?
CREATE TABLE table_name_38 (quantity_made VARCHAR, class VARCHAR)
SELECT position FROM table_name_15 WHERE round = 14
What position has 14 rounds?
CREATE TABLE table_name_15 (position VARCHAR, round VARCHAR)
SELECT COUNT(laps) FROM table_name_90 WHERE rank = "8"
Name the total number of laps with rank of 8
CREATE TABLE table_name_90 (laps VARCHAR, rank VARCHAR)
SELECT tobago FROM table_1850282_5 WHERE species = "Helicops angulatus"
there are in tobago species name helicops angulatus
CREATE TABLE table_1850282_5 (tobago VARCHAR, species VARCHAR)
SELECT SUM(year) FROM table_name_12 WHERE competition = "world indoor championships" AND position = "3rd"
Which year did the World indoor championships gave a position of 3rd?
CREATE TABLE table_name_12 (year INTEGER, competition VARCHAR, position VARCHAR)
SELECT AVG(capacity) FROM table_name_40 WHERE city = "london" AND enrollment < 30 OFFSET 000
What is the average capacity of stadiums in the City of London that belong to schools with an enrollment less than 30,000?
CREATE TABLE table_name_40 (capacity INTEGER, city VARCHAR, enrollment VARCHAR)
SELECT first_used FROM table_name_84 WHERE quantity = 26
Which First used has a Quantity of 26?
CREATE TABLE table_name_84 (first_used VARCHAR, quantity VARCHAR)
SELECT candidates FROM table_1341453_44 WHERE district = "Tennessee 3"
Who are the candidates in the Tennessee 3 district election?
CREATE TABLE table_1341453_44 (candidates VARCHAR, district VARCHAR)
SELECT Height, Weight FROM people ORDER BY Height DESC
List the height and weight of people in descending order of height.
CREATE TABLE people (Height VARCHAR, Weight VARCHAR)
SELECT partner FROM table_name_22 WHERE surface = "grass" AND opponents_in_the_final = "jürgen melzer philipp petzschner"
Name the partner for surface of grass and opponents of jürgen melzer philipp petzschner
CREATE TABLE table_name_22 (partner VARCHAR, surface VARCHAR, opponents_in_the_final VARCHAR)
SELECT college_junior_club_team__league_ FROM table_name_91 WHERE player = "mikael renberg"
what is the school that hosts mikael renberg
CREATE TABLE table_name_91 (college_junior_club_team__league_ VARCHAR, player VARCHAR)
SELECT court_surface FROM table_name_93 WHERE began < 1897
What was the surface played on for the match than began before 1897?
CREATE TABLE table_name_93 (court_surface VARCHAR, began INTEGER)
SELECT team FROM table_name_40 WHERE game = 4
Which team was played against in game 4?
CREATE TABLE table_name_40 (team VARCHAR, game VARCHAR)
SELECT SUM(code) FROM table_name_24 WHERE density__inh_km²_ = 621.68 AND land_area__hectares_ > 75.28
How many codes have a density of 621.68, and a Land area (hectares) larger than 75.28?
CREATE TABLE table_name_24 (code INTEGER, density__inh_km²_ VARCHAR, land_area__hectares_ VARCHAR)
SELECT hindi FROM table_name_78 WHERE domari = "tærən"
What is the Hindi associated with a Domari of tærən?
CREATE TABLE table_name_78 (hindi VARCHAR, domari VARCHAR)
SELECT location___state FROM table_name_36 WHERE date = "29–31 may"
Which Location/ State has a Date of 29–31 may?
CREATE TABLE table_name_36 (location___state VARCHAR, date VARCHAR)
SELECT player_name FROM table_10361230_1 WHERE college = "Emporia State"
Which player went to Emporia State?
CREATE TABLE table_10361230_1 (player_name VARCHAR, college VARCHAR)
SELECT MAX(lost) FROM table_name_15 WHERE drawn = 11 AND team = "leek town"
WHAT IS THE LOST WITH A DRAWN 11, FOR LEEK TOWN?
CREATE TABLE table_name_15 (lost INTEGER, drawn VARCHAR, team VARCHAR)
SELECT ceremony FROM table_name_80 WHERE nominee = "harnam singh rawail"
In which ceremony was Harnam Singh Rawail nominated for an award?
CREATE TABLE table_name_80 (ceremony VARCHAR, nominee VARCHAR)
SELECT T1.Service_Type_Description FROM Ref_Service_Types AS T1 JOIN Services AS T2 ON T1.Service_Type_Code = T2.Service_Type_Code WHERE T2.Product_Price > 100
What are the descriptions of the service types with product price above 100?
CREATE TABLE Services (Service_Type_Code VARCHAR, Product_Price INTEGER); CREATE TABLE Ref_Service_Types (Service_Type_Description VARCHAR, Service_Type_Code VARCHAR)
SELECT status FROM table_name_25 WHERE building = "the rhombus"
Which Status has a Building of the rhombus?
CREATE TABLE table_name_25 (status VARCHAR, building VARCHAR)
SELECT to_par FROM table_name_39 WHERE place = "t5" AND score = 74 - 69 - 66 = 209
What was the to par at the T5 for the player with a score of 74-69-66=209?
CREATE TABLE table_name_39 (to_par VARCHAR, place VARCHAR, score VARCHAR)
SELECT leader FROM table_name_35 WHERE number_of_seats > 8 AND party = "democratic unionist party"
Which leader of the Democratic Unionist party has more than 8 seats?
CREATE TABLE table_name_35 (leader VARCHAR, number_of_seats VARCHAR, party VARCHAR)
SELECT position FROM table_name_35 WHERE school = "warren central high school"
What was the position of the player that went to warren central high school?
CREATE TABLE table_name_35 (position VARCHAR, school VARCHAR)
SELECT october_20, _2008 FROM table_18498743_1 WHERE mexico = "Romania"
what is the october 20, 2008 stat where mexico stat is romania
CREATE TABLE table_18498743_1 (october_20 VARCHAR, _2008 VARCHAR, mexico VARCHAR)
SELECT T1.datetime_detention_start, datetime_detention_end FROM Detention AS T1 JOIN Teachers AS T2 ON T1.teacher_id = T2.teacher_id WHERE T2.last_name = "Schultz"
Find the start and end dates of detentions of teachers with last name "Schultz".
CREATE TABLE Detention (datetime_detention_start VARCHAR, teacher_id VARCHAR); CREATE TABLE Teachers (teacher_id VARCHAR, last_name VARCHAR)
SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500
What are the names of players whose training hours is between 500 and 1500?
CREATE TABLE Player (pName VARCHAR, HS INTEGER)
SELECT AVG(attendance) FROM table_name_57 WHERE week = 7
Week of 7 had what average attendance?
CREATE TABLE table_name_57 (attendance INTEGER, week VARCHAR)
SELECT date FROM table_name_10 WHERE winning_score = –7(67 - 72 - 69 - 69 = 277)
What was the date of the match with a winning score of –7 (67-72-69-69=277)?
CREATE TABLE table_name_10 (date VARCHAR, winning_score VARCHAR)
SELECT home FROM table_name_3 WHERE plyff = "(0-0)" AND opponent = "la crosse spartans"
Which home team has a playoff record of (0-0) and played La Crosse Spartans?
CREATE TABLE table_name_3 (home VARCHAR, plyff VARCHAR, opponent VARCHAR)
SELECT budget FROM table_name_4 WHERE year = 2005
What is 2005's budget figure?
CREATE TABLE table_name_4 (budget VARCHAR, year VARCHAR)
SELECT nationality FROM table_name_3 WHERE heat < 9 AND time = "1:01.87"
What is the nationality with less than 9 heat, and a time of 1:01.87?
CREATE TABLE table_name_3 (nationality VARCHAR, heat VARCHAR, time VARCHAR)
SELECT MIN(chorley) FROM table_name_99 WHERE preston = 6 AND west_lancashire < 4
What is the lowest Chorley with a 6 Preston and a 4 for West Lancashire?
CREATE TABLE table_name_99 (chorley INTEGER, preston VARCHAR, west_lancashire VARCHAR)
SELECT player FROM table_name_28 WHERE to_par < 14
What is Player, when To Par is less than 14?
CREATE TABLE table_name_28 (player VARCHAR, to_par INTEGER)
SELECT MAX(no_in_series) FROM table_27255755_1 WHERE us_viewers__millions_ = "9.17"
What is the highest series number with 9.17 million US viewers?
CREATE TABLE table_27255755_1 (no_in_series INTEGER, us_viewers__millions_ VARCHAR)
SELECT date FROM table_name_9 WHERE performance = "8.22.72"
On which date is there a performance of more than 8.22.72?
CREATE TABLE table_name_9 (date VARCHAR, performance VARCHAR)
SELECT candidates FROM table_2668378_13 WHERE incumbent = "Daniel Montgomery"
who was running where the winner is daniel montgomery
CREATE TABLE table_2668378_13 (candidates VARCHAR, incumbent VARCHAR)
SELECT position FROM table_15817998_5 WHERE college = "Alberta"
What are the positions in the college of Alberta?
CREATE TABLE table_15817998_5 (position VARCHAR, college VARCHAR)
SELECT player FROM table_name_33 WHERE place = "t2" AND country = "fiji"
Which Player has a Place of T2 and a Country listed as Fiji?
CREATE TABLE table_name_33 (player VARCHAR, place VARCHAR, country VARCHAR)
SELECT MAX(first_elected) FROM table_name_48 WHERE party = "republican" AND district = "louisiana 7"
What is the highest First Elected, when Party is "Republican", and when District is "Louisiana 7"?
CREATE TABLE table_name_48 (first_elected INTEGER, party VARCHAR, district VARCHAR)
SELECT t2.concert_name, t2.theme, COUNT(*) FROM singer_in_concert AS t1 JOIN concert AS t2 ON t1.concert_id = t2.concert_id GROUP BY t2.concert_id
What are the names , themes , and number of singers for every concert ?
CREATE TABLE singer_in_concert (concert_id VARCHAR); CREATE TABLE concert (concert_name VARCHAR, theme VARCHAR, concert_id VARCHAR)
SELECT time FROM table_name_30 WHERE record = "3-3"
What is the Time of the match with a Record of 3-3?
CREATE TABLE table_name_30 (time VARCHAR, record VARCHAR)
SELECT location FROM table_name_58 WHERE date = "november 23"
what is the location on november 23?
CREATE TABLE table_name_58 (location VARCHAR, date VARCHAR)
SELECT MIN(touchdowns) FROM table_name_74 WHERE position = "left halfback" AND player = "willie heston" AND points > 15
What is the lowest number of touchdowns for left halfback WIllie Heston who has more than 15 points?
CREATE TABLE table_name_74 (touchdowns INTEGER, points VARCHAR, position VARCHAR, player VARCHAR)
SELECT province FROM table_name_56 WHERE south_asians_2001 < 190 AND south_asians_2011 = 115
Which province had fewer than 190 South Asians in 2001 and 115 South Asians in 2011?
CREATE TABLE table_name_56 (province VARCHAR, south_asians_2001 VARCHAR, south_asians_2011 VARCHAR)
SELECT proceed_to_quarter_final FROM table_27987767_3 WHERE eliminated_from_competition = "London Irish"
When london irish was eliminated from competition who proceeded to quarter final?
CREATE TABLE table_27987767_3 (proceed_to_quarter_final VARCHAR, eliminated_from_competition VARCHAR)
SELECT villages FROM table_19457_1 WHERE state_region = "Magway Region"
How many villages are there in the Magway region?
CREATE TABLE table_19457_1 (villages VARCHAR, state_region VARCHAR)
SELECT SUM(game) FROM table_name_40 WHERE attendance = 18 OFFSET 690
What sum of game has an attendance of 18,690?
CREATE TABLE table_name_40 (game INTEGER, attendance VARCHAR)
SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia"
What is the result of the match in round 1r against tunisia and on a hard surface?
CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR)
SELECT date FROM table_name_31 WHERE time = "2:16.08"
What was the date in which the time was 2:16.08?
CREATE TABLE table_name_31 (date VARCHAR, time VARCHAR)
SELECT COUNT(visitors__total_) FROM table_27685921_1 WHERE exhibitors__total_ = 1654
how many people come to visit when the 1654 exhibitions
CREATE TABLE table_27685921_1 (visitors__total_ VARCHAR, exhibitors__total_ VARCHAR)
SELECT COUNT(*) FROM CUSTOMERS
How many customers do we have?
CREATE TABLE CUSTOMERS (Id VARCHAR)
SELECT COUNT(games_played) FROM table_name_8 WHERE goals_for < 30
what is the total number of games played when the goals for is less than 30?
CREATE TABLE table_name_8 (games_played VARCHAR, goals_for INTEGER)
SELECT evening_gown FROM table_12094609_1 WHERE state = "South Dakota"
what's the evening gown where state is south dakota
CREATE TABLE table_12094609_1 (evening_gown VARCHAR, state VARCHAR)
SELECT MIN(weekly_rank_sky1) FROM table_26826304_2 WHERE _number = 97
What was the rank by Weekly Rank Sky1 for title number 97?
CREATE TABLE table_26826304_2 (weekly_rank_sky1 INTEGER, _number VARCHAR)
SELECT AVG(spectators) FROM table_name_56 WHERE date = "2006-06-21" AND time_cet_ > 21
Tell me the average spectators for 2006-06-21 and time more than 21
CREATE TABLE table_name_56 (spectators INTEGER, date VARCHAR, time_cet_ VARCHAR)
SELECT date FROM table_name_30 WHERE competition = "friendly match" AND result = "1-1"
What was the date of the friendly match, ending in a result of 1-1?
CREATE TABLE table_name_30 (date VARCHAR, competition VARCHAR, result VARCHAR)
SELECT SUM(decile) FROM table_name_93 WHERE gender = "coed" AND authority = "state" AND name = "mount maunganui school"
How many deciles have a Gender of coed, an Authority of state, and a Name of mount maunganui school?
CREATE TABLE table_name_93 (decile INTEGER, name VARCHAR, gender VARCHAR, authority VARCHAR)
SELECT T2.name, COUNT(*) FROM singer_in_concert AS T1 JOIN singer AS T2 ON T1.singer_id = T2.singer_id GROUP BY T2.singer_id
List singer names and number of concerts for each singer.
CREATE TABLE singer_in_concert (singer_id VARCHAR); CREATE TABLE singer (name VARCHAR, singer_id VARCHAR)
SELECT date FROM table_name_82 WHERE outcome = "winner" AND opponent = "noppawan lertcheewakarn jessica moore"
Name the date with winner outcome and opponent of noppawan lertcheewakarn jessica moore
CREATE TABLE table_name_82 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT COUNT(date) FROM table_27756314_8 WHERE high_points = "Kevin Love (22)"
How many times did kevin love (22) have the high points?
CREATE TABLE table_27756314_8 (date VARCHAR, high_points VARCHAR)
SELECT result FROM table_name_5 WHERE date = "may 29"
what game was on may 29
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR)
SELECT MAX(brisbane) FROM table_24291077_4
What is the highest number of Brisbane viewers?
CREATE TABLE table_24291077_4 (brisbane INTEGER)
SELECT record FROM table_name_60 WHERE opponent = "@ blue jays" AND loss = "lyon (5-4)"
Opponent of @ blue jays, and a Loss of lyon (5-4) had what opponent?
CREATE TABLE table_name_60 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT COUNT(opponents) FROM table_16677874_2 WHERE game = 13
How many opponents did the team play in week 13?
CREATE TABLE table_16677874_2 (opponents VARCHAR, game VARCHAR)
SELECT COUNT(to_par) FROM table_name_33 WHERE money___$__ < 387 AND player = "al brosch"
What is the total number of To Par, when Money ( $ ) is less than 387, and when Player is "Al Brosch"?
CREATE TABLE table_name_33 (to_par VARCHAR, money___$__ VARCHAR, player VARCHAR)
SELECT ticket___office FROM table_22607062_1 WHERE secretary_of_state = "Orville Preston"
Name the ticket/office for orville preston
CREATE TABLE table_22607062_1 (ticket___office VARCHAR, secretary_of_state VARCHAR)
SELECT COUNT(*), AVG(age), city_code FROM student WHERE sex = 'M' GROUP BY city_code
Find the average age and number of male students (with sex M) from each city.
CREATE TABLE student (city_code VARCHAR, age INTEGER, sex VARCHAR)
SELECT to_par FROM table_name_71 WHERE total = 288
For the total of 288 what was the to par?
CREATE TABLE table_name_71 (to_par VARCHAR, total VARCHAR)
SELECT MIN(no_in_series) FROM table_23403578_3 WHERE written_by = "Bernie Ancheta" AND no_in_season = 5
What's the series number of the episode with a season number 5, written by Bernie Ancheta?
CREATE TABLE table_23403578_3 (no_in_series INTEGER, written_by VARCHAR, no_in_season VARCHAR)
SELECT detention_summary FROM Detention
Return all detention summaries.
CREATE TABLE Detention (detention_summary VARCHAR)
SELECT money___£__ FROM table_name_62 WHERE score = 68 - 67 - 69 - 71 = 275
How much money does the player with a 68-67-69-71=275 score have?
CREATE TABLE table_name_62 (money___£__ VARCHAR, score VARCHAR)
SELECT location_attendance FROM table_27734286_1 WHERE team = "@ Portland"
What's the location attendance of the @ portland team?
CREATE TABLE table_27734286_1 (location_attendance VARCHAR, team VARCHAR)
SELECT country FROM airport GROUP BY country HAVING COUNT(*) > 2
which countries have more than 2 airports?
CREATE TABLE airport (country VARCHAR)
SELECT year FROM table_name_25 WHERE laps < 160 AND rank = "26"
What year had less than 160 laps and a rank of 26?
CREATE TABLE table_name_25 (year VARCHAR, laps VARCHAR, rank VARCHAR)
SELECT name FROM physician EXCEPT SELECT T2.name FROM appointment AS T1 JOIN physician AS T2 ON T1.Physician = T2.EmployeeID
List the name of physicians who never took any appointment.
CREATE TABLE physician (name VARCHAR); CREATE TABLE appointment (Physician VARCHAR); CREATE TABLE physician (name VARCHAR, EmployeeID VARCHAR)
SELECT tournament FROM table_name_32 WHERE winning_score = –7(66 - 72 - 69 - 74 = 281)
Which tournament has a winning score at –7 (66-72-69-74=281)?
CREATE TABLE table_name_32 (tournament VARCHAR, winning_score VARCHAR)
SELECT record FROM table_23248869_8 WHERE high_rebounds = "David Lee (8)"
What was the record when the high rebounds was david lee (8)
CREATE TABLE table_23248869_8 (record VARCHAR, high_rebounds VARCHAR)
SELECT MAX(fa_cup) FROM table_name_74 WHERE championship = 18 AND total = 19
Name the most FA cup for championship of 18 and total of 19
CREATE TABLE table_name_74 (fa_cup INTEGER, championship VARCHAR, total VARCHAR)
SELECT COUNT(family_friendly) FROM table_14160327_4 WHERE decade = "1990s"
How many family friendly games are in the 1990s?
CREATE TABLE table_14160327_4 (family_friendly VARCHAR, decade VARCHAR)
SELECT played FROM table_20760802_1 WHERE won = "0"
How many teams that played won 0 games?
CREATE TABLE table_20760802_1 (played VARCHAR, won VARCHAR)
SELECT MAX(laps) FROM table_name_1 WHERE drivers = "glenn seton gregg hansford"
What were the highest laps for glenn seton gregg hansford?
CREATE TABLE table_name_1 (laps INTEGER, drivers VARCHAR)