answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
484
SELECT season FROM table_name_84 WHERE level = "2nd" AND points = 29
What season has a Level of 2nd, 29 points?
CREATE TABLE table_name_84 (season VARCHAR, level VARCHAR, points VARCHAR)
SELECT floors FROM table_name_66 WHERE location = "jewellery quarter"
How many floors did the building at the Jewellery quarter have?
CREATE TABLE table_name_66 (floors VARCHAR, location VARCHAR)
SELECT location FROM table_name_54 WHERE result = "24-21"
What was the location with the 24-21 result?
CREATE TABLE table_name_54 (location VARCHAR, result VARCHAR)
SELECT result FROM table_name_63 WHERE lineup = "start" AND assist_pass = "carli lloyd" AND competition = "2011 fifa women’s world cup – group stage"
Name the Result of the Lineup of start, an Assist/pass of carli lloyd, and an Competition of 2011 fifa women’s world cup – group stage?
CREATE TABLE table_name_63 (result VARCHAR, competition VARCHAR, lineup VARCHAR, assist_pass VARCHAR)
SELECT peletier FROM table_260938_1 WHERE systematics = "Million 1"
Name the peletier for systematics being million 1
CREATE TABLE table_260938_1 (peletier VARCHAR, systematics VARCHAR)
SELECT MAX(total) FROM table_name_87 WHERE bronze = 1 AND rank = "7" AND gold > 0
What is the largest total for a team with 1 bronze, 0 gold medals and ranking of 7?
CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, bronze VARCHAR, rank VARCHAR)
SELECT SUM(scored) FROM table_name_72 WHERE date = "22 february 2006"
How many times did Sham Kwok Fai score in the game that was played on 22 February 2006?
CREATE TABLE table_name_72 (scored INTEGER, date VARCHAR)
SELECT result FROM table_name_27 WHERE venue = "h"
What was the result of the game played in Venue H?
CREATE TABLE table_name_27 (result VARCHAR, venue VARCHAR)
SELECT round FROM table_name_42 WHERE opponent = "gabriel veiga"
In which round was Gabriel Veiga the opponent?
CREATE TABLE table_name_42 (round VARCHAR, opponent VARCHAR)
SELECT MIN(year) FROM table_22597626_2 WHERE outcome = "Runner-up" AND championship = "US Open"
In the US Open championship and the outcome is runner-up, what is the minimum year?
CREATE TABLE table_22597626_2 (year INTEGER, outcome VARCHAR, championship VARCHAR)
SELECT MIN(rank) FROM table_23801721_1 WHERE technology = "CDMA EVDO"
What was the rank of operator whose technology is CDMA EVDO?
CREATE TABLE table_23801721_1 (rank INTEGER, technology VARCHAR)
SELECT SUM(grid) FROM table_name_56 WHERE team = "pkv racing" AND driver = "oriol servià"
What is the grid of pkv racing with the driver oriol servià?
CREATE TABLE table_name_56 (grid INTEGER, team VARCHAR, driver VARCHAR)
SELECT Grape, Appelation, Name FROM WINE WHERE Score > 93 ORDER BY Name
List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.
CREATE TABLE WINE (Grape VARCHAR, Appelation VARCHAR, Name VARCHAR, Score INTEGER)
SELECT type FROM table_2562572_26 WHERE population__2011_ = 1441
What type of settlement has a population of 1441?
CREATE TABLE table_2562572_26 (type VARCHAR, population__2011_ VARCHAR)
SELECT result FROM table_name_1 WHERE date = "july 24"
What was the Result on July 24?
CREATE TABLE table_name_1 (result VARCHAR, date VARCHAR)
SELECT district FROM table_13618584_2 WHERE incumbent = "Terry Kilgore"
What district is incument terry kilgore from?
CREATE TABLE table_13618584_2 (district VARCHAR, incumbent VARCHAR)
SELECT df FROM table_23835213_2 WHERE adam_hinshelwood = "Junior Mendes"
What is the df when Adam Hinshelwood is Junior Mendes?
CREATE TABLE table_23835213_2 (df VARCHAR, adam_hinshelwood VARCHAR)
SELECT COUNT(*) FROM CONTINENTS
How many continents are there?
CREATE TABLE CONTINENTS (Id VARCHAR)
SELECT engine FROM table_name_47 WHERE entrant = "team lotus" AND year > 1962
Which engine has an Entrant of team lotus, and a Year larger than 1962?
CREATE TABLE table_name_47 (engine VARCHAR, entrant VARCHAR, year VARCHAR)
SELECT career FROM table_name_23 WHERE pct < 1 AND player = "serhiy konovalov"
What is the career of player serhiy konovalov, who has less than 1 pct.?
CREATE TABLE table_name_23 (career VARCHAR, pct VARCHAR, player VARCHAR)
SELECT result FROM table_name_93 WHERE date = "13 october 1993"
What was the result of the match played on 13 October 1993?
CREATE TABLE table_name_93 (result VARCHAR, date VARCHAR)
SELECT COUNT(attendance) FROM table_name_77 WHERE date = "august 23"
What was the attendance on August 23?
CREATE TABLE table_name_77 (attendance VARCHAR, date VARCHAR)
SELECT COUNT(year) FROM table_name_47 WHERE award = "press award"
How many years have an Award of press award?
CREATE TABLE table_name_47 (year VARCHAR, award VARCHAR)
SELECT T2.name FROM train_station AS T1 JOIN station AS T2 ON T1.station_id = T2.station_id GROUP BY T1.station_id HAVING COUNT(*) >= 2
Show the station name with at least two trains.
CREATE TABLE station (name VARCHAR, station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR)
SELECT COUNT(scored) FROM table_name_28 WHERE position > 6
Name the Scored which has a Position larger than 6?
CREATE TABLE table_name_28 (scored VARCHAR, position INTEGER)
SELECT against FROM table_18042031_16 WHERE date = "21–23 September 2007"
What country did Gil play against on 21–23 september 2007?
CREATE TABLE table_18042031_16 (against VARCHAR, date VARCHAR)
SELECT AVG(number_of_electorates__2009_) FROM table_name_78 WHERE name = "hingna"
What is the number of electorates (2009) for Hingna?
CREATE TABLE table_name_78 (number_of_electorates__2009_ INTEGER, name VARCHAR)
SELECT MIN(assists) FROM table_26360571_2
List the lowest number of assists.
CREATE TABLE table_26360571_2 (assists INTEGER)
SELECT COUNT(act) FROM table_28180840_15 WHERE name_name_of_act = "Modern Grannies"
What is the total number of modern grannies performed?
CREATE TABLE table_28180840_15 (act VARCHAR, name_name_of_act VARCHAR)
SELECT event FROM table_name_37 WHERE res = "loss" AND opponent = "josh diekman"
Which event led to a loss against Josh Diekman?
CREATE TABLE table_name_37 (event VARCHAR, res VARCHAR, opponent VARCHAR)
SELECT trial_start_date FROM table_name_89 WHERE candidate_name = "pbt2"
What is Trial Start Date, when Candidate Name is PBT2?
CREATE TABLE table_name_89 (trial_start_date VARCHAR, candidate_name VARCHAR)
SELECT COUNT(horse__power) FROM table_23614702_1 WHERE warship = "Cochrane"
How many different horse-powers does the Cochrane have?
CREATE TABLE table_23614702_1 (horse__power VARCHAR, warship VARCHAR)
SELECT date FROM table_17288825_9 WHERE team = "Memphis"
On what date did the Rockets play Memphis?
CREATE TABLE table_17288825_9 (date VARCHAR, team VARCHAR)
SELECT sr FROM table_name_46 WHERE average < 23.63 AND runs_scored = 49
Which S.R. has a Average smaller than 23.63 Runs Scored of 49?
CREATE TABLE table_name_46 (sr VARCHAR, average VARCHAR, runs_scored VARCHAR)
SELECT MAX(females) FROM table_name_46 WHERE males = 28.2 AND rank > 5
What is the biggest number of females where the males are at 28.2 with a rank greater than 5?
CREATE TABLE table_name_46 (females INTEGER, males VARCHAR, rank VARCHAR)
SELECT storage_case FROM table_28652521_1 WHERE description = "ivory and red metal"
What's the storage case of the buttonholer described as ivory and red metal?
CREATE TABLE table_28652521_1 (storage_case VARCHAR, description VARCHAR)
SELECT venue FROM table_name_70 WHERE year > 2006 AND position = "7th" AND notes = "heptathlon"
What is the Venue of the Heptathlon after 2006 where Tatyana Chernova comes in Position 7th?
CREATE TABLE table_name_70 (venue VARCHAR, notes VARCHAR, year VARCHAR, position VARCHAR)
SELECT MAX(points) FROM table_name_28 WHERE engine = "weslake v12" AND year < 1966
How many points did the Weslake v12 get in 1966?
CREATE TABLE table_name_28 (points INTEGER, engine VARCHAR, year VARCHAR)
SELECT COUNT(jersey__number) FROM table_name_56 WHERE position = "w" AND birthdate = "17 october 1932"
What is the total number of Jersey #, when the Position is W, and when the Birthdate is 17 October 1932?
CREATE TABLE table_name_56 (jersey__number VARCHAR, position VARCHAR, birthdate VARCHAR)
SELECT date FROM table_name_12 WHERE home = "ny rangers"
What date did NY Rangers play at home?
CREATE TABLE table_name_12 (date VARCHAR, home VARCHAR)
SELECT MIN(joined) FROM table_1973729_1 WHERE nickname = "Lions"
In what year did the Lions join?
CREATE TABLE table_1973729_1 (joined INTEGER, nickname VARCHAR)
SELECT opponent FROM table_name_6 WHERE date = "1/13/1974"
What opponent played on 1/13/1974?
CREATE TABLE table_name_6 (opponent VARCHAR, date VARCHAR)
SELECT poll_source FROM table_16751596_6 WHERE dates_administered = "July 10, 2008"
What poll source had an administered date on July 10, 2008?
CREATE TABLE table_16751596_6 (poll_source VARCHAR, dates_administered VARCHAR)
SELECT municipality FROM table_216776_2 WHERE pop_density__per_km²_ = "757.5"
In what municipality were there 757.5 people per km2?
CREATE TABLE table_216776_2 (municipality VARCHAR, pop_density__per_km²_ VARCHAR)
SELECT model_number FROM table_27277284_28 WHERE order_part_number = "TMRM75DAM22GG"
What is the model number for the order part numbered tmrm75dam22gg?
CREATE TABLE table_27277284_28 (model_number VARCHAR, order_part_number VARCHAR)
SELECT conference__conf_ FROM table_name_95 WHERE division__div_ = "atlantic" AND team = "1973-74"
What conference is the 1973-74 team in the Atlantic Division (Div.)?
CREATE TABLE table_name_95 (conference__conf_ VARCHAR, division__div_ VARCHAR, team VARCHAR)
SELECT MIN(wins) FROM table_name_45 WHERE team = "reno aces" AND appearances > 1
With Appearances larger than 1, what is the Wins for the Reno Aces Team?
CREATE TABLE table_name_45 (wins INTEGER, team VARCHAR, appearances VARCHAR)
SELECT COUNT(*) FROM enzyme
How many kinds of enzymes are there?
CREATE TABLE enzyme (Id VARCHAR)
SELECT championship FROM table_name_66 WHERE date = "26 may 1986"
What Championship has a Date of 26 may 1986?
CREATE TABLE table_name_66 (championship VARCHAR, date VARCHAR)
SELECT COUNT(points) FROM table_name_39 WHERE poles < 0
How many points are associated with 0 poles?
CREATE TABLE table_name_39 (points VARCHAR, poles INTEGER)
SELECT home FROM table_name_81 WHERE record = "16-8"
What is the home of the team with a 16-8 record?
CREATE TABLE table_name_81 (home VARCHAR, record VARCHAR)
SELECT SUM(participants) FROM table_name_38 WHERE silver < 0
What is the total number of Participants that has Silver that's smaller than 0?
CREATE TABLE table_name_38 (participants INTEGER, silver INTEGER)
SELECT venue FROM table_name_92 WHERE sport = "basketball"
What Venue has Basketball as a Sport?
CREATE TABLE table_name_92 (venue VARCHAR, sport VARCHAR)
SELECT country FROM table_name_32 WHERE moving_from = "everton"
What country is the athlete moving from Everton from?
CREATE TABLE table_name_32 (country VARCHAR, moving_from VARCHAR)
SELECT SUM(round) FROM table_name_74 WHERE selection = 165
How many rounds had a selection of 165?
CREATE TABLE table_name_74 (round INTEGER, selection VARCHAR)
SELECT template_id, COUNT(*) FROM Documents GROUP BY template_id
Show all template ids and number of documents using each template.
CREATE TABLE Documents (template_id VARCHAR)
SELECT rank FROM table_name_74 WHERE total < 13 AND nation = "mixed team"
What is the rank for the Mixed Team nation with a total of less than 13?
CREATE TABLE table_name_74 (rank VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MAX(enrollment) FROM table_1971074_1
What's the highest enrollment among the schools?
CREATE TABLE table_1971074_1 (enrollment INTEGER)
SELECT directed_by FROM table_24319661_5 WHERE no_in_series = 53
Who directed episode 53 in the series?
CREATE TABLE table_24319661_5 (directed_by VARCHAR, no_in_series VARCHAR)
SELECT category FROM table_27155990_1 WHERE project_name = "Mighty No. 9"
What was the category of the project name Mighty No. 9?
CREATE TABLE table_27155990_1 (category VARCHAR, project_name VARCHAR)
SELECT result FROM table_name_99 WHERE year > 2009 AND category = "album of the year"
What was album of the year after 2009?
CREATE TABLE table_name_99 (result VARCHAR, year VARCHAR, category VARCHAR)
SELECT _number FROM table_2602958_4 WHERE prod_code = 175020
Which episodein season 3 had 175020 for a production code?
CREATE TABLE table_2602958_4 (_number VARCHAR, prod_code VARCHAR)
SELECT city, GDP FROM city ORDER BY GDP LIMIT 1
Which city has the lowest GDP? Please list the city name and its GDP.
CREATE TABLE city (city VARCHAR, GDP VARCHAR)
SELECT womens_singles FROM table_28138035_35 WHERE mens_singles = "Jean-Michel Saive"
Who won the Womens Singles in the year the Jean-Michel Saive won the Mens Singles?
CREATE TABLE table_28138035_35 (womens_singles VARCHAR, mens_singles VARCHAR)
SELECT competition FROM table_name_76 WHERE score = "1-2"
What Competition's Score was 1-2?
CREATE TABLE table_name_76 (competition VARCHAR, score VARCHAR)
SELECT position FROM table_name_87 WHERE round > 1 AND player = "jafus white"
What position was Jafus White who was picked after round 1?
CREATE TABLE table_name_87 (position VARCHAR, round VARCHAR, player VARCHAR)
SELECT MAX(Ends) AS lost FROM table_1644857_2 WHERE pf = 87
How many ends were lost by the country whose points for (PF) was 87?
CREATE TABLE table_1644857_2 (Ends INTEGER, pf VARCHAR)
SELECT r__ω_km_ FROM table_261642_3 WHERE frequency__hz_ = "10k"
What is the r (ω/km) when the frequency is 10k?
CREATE TABLE table_261642_3 (r__ω_km_ VARCHAR, frequency__hz_ VARCHAR)
SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9
What is the 2006 total with a 2010 value greater than 417.9?
CREATE TABLE table_name_95 (Id VARCHAR)
SELECT MIN(attendance) FROM table_name_17 WHERE date = "october 3, 1965"
What is the lowest attendance on October 3, 1965?
CREATE TABLE table_name_17 (attendance INTEGER, date VARCHAR)
SELECT m939_series FROM table_name_54 WHERE m809_series = "m817" AND m39_series = "m51"
Name the M939 series with M809 series of m817 and M39 series of m51
CREATE TABLE table_name_54 (m939_series VARCHAR, m809_series VARCHAR, m39_series VARCHAR)
SELECT COUNT(points) FROM table_name_11 WHERE name = "tiago splitter" AND rank < 5
What's the total number of points that the rank is less than 5 and has Tiago Splitter?
CREATE TABLE table_name_11 (points VARCHAR, name VARCHAR, rank VARCHAR)
SELECT T2.directed_by FROM schedule AS T1 JOIN film AS T2 ON T1.film_id = T2.film_id GROUP BY T2.directed_by ORDER BY SUM(T1.show_times_per_day) DESC LIMIT 1
Show director with the largest number of show times in total.
CREATE TABLE schedule (film_id VARCHAR, show_times_per_day INTEGER); CREATE TABLE film (directed_by VARCHAR, film_id VARCHAR)
SELECT tournament FROM table_name_93 WHERE 2007 = "2r" AND 2011 = "2r"
Which tournament has a 2007 of 2r, and a 2011 of 2r?
CREATE TABLE table_name_93 (tournament VARCHAR)
SELECT score FROM table_name_64 WHERE competition = "2014 fifa world cup qualification (uefa)"
What was the score for the 2014 FIFA World Cup Qualification (UEFA)?
CREATE TABLE table_name_64 (score VARCHAR, competition VARCHAR)
SELECT T1.staff_id, T1.staff_name FROM staff AS T1 JOIN Staff_Department_Assignments AS T2 ON T1.staff_id = T2.staff_id ORDER BY date_assigned_to - date_assigned_from LIMIT 1
Find the id and name of the staff who has been assigned for the shortest period.
CREATE TABLE Staff_Department_Assignments (staff_id VARCHAR); CREATE TABLE staff (staff_id VARCHAR, staff_name VARCHAR)
SELECT away_team FROM table_name_45 WHERE home_team = "collingwood"
If the Home team of collingwood was playing, what was the Away team?
CREATE TABLE table_name_45 (away_team VARCHAR, home_team VARCHAR)
SELECT COUNT(year__ceremony_) FROM table_17156199_1 WHERE original_title = "স্বপ্নডানায় (Swopnodanay)"
How many years was the original title was স্বপ্নডানায় (swopnodanay)?
CREATE TABLE table_17156199_1 (year__ceremony_ VARCHAR, original_title VARCHAR)
SELECT venue FROM table_name_70 WHERE away_team = "richmond"
Where did Richmond play as an away team?
CREATE TABLE table_name_70 (venue VARCHAR, away_team VARCHAR)
SELECT against___percentage_ FROM table_20683381_3 WHERE ±_yes_side_2008___percentage_ = "+18.1"
When +18.1 is the ± yes side 2008 percentage what is the percentage of against?
CREATE TABLE table_20683381_3 (against___percentage_ VARCHAR, ±_yes_side_2008___percentage_ VARCHAR)
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7"
Result of w 21–7 had what average week?
CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)
SELECT MAX(share_count) FROM TRANSACTIONS WHERE amount_of_transaction < 10000
Show the maximum share count of transactions where the amount is smaller than 10000
CREATE TABLE TRANSACTIONS (share_count INTEGER, amount_of_transaction INTEGER)
SELECT opponent FROM table_name_69 WHERE week = 12
Who was the opponent in week 12?
CREATE TABLE table_name_69 (opponent VARCHAR, week VARCHAR)
SELECT city_of_license FROM table_name_17 WHERE facility_id > 150833
Which city has a facility ID greater than 150833?
CREATE TABLE table_name_17 (city_of_license VARCHAR, facility_id INTEGER)
SELECT nfl_team FROM table_name_62 WHERE position = "tight end"
What NFL team did the Tight End position belong to?
CREATE TABLE table_name_62 (nfl_team VARCHAR, position VARCHAR)
SELECT report FROM table_name_29 WHERE winning_driver = "heinrich-joachim von morgen"
Name the Report which has heinrich-joachim von morgen?
CREATE TABLE table_name_29 (report VARCHAR, winning_driver VARCHAR)
SELECT COUNT(laps) FROM table_name_47 WHERE pos = "4th" AND year > 2013
How many laps were driven by the racer who earned 4th place in 2013?
CREATE TABLE table_name_47 (laps VARCHAR, pos VARCHAR, year VARCHAR)
SELECT date_of_registration FROM table_name_38 WHERE province = "madrid" AND party = "partido radical"
When was the Partido radical party in Madrid registered?
CREATE TABLE table_name_38 (date_of_registration VARCHAR, province VARCHAR, party VARCHAR)
SELECT COUNT(round) FROM table_name_79 WHERE date = "may 31"
How many rounds total were there on may 31?
CREATE TABLE table_name_79 (round VARCHAR, date VARCHAR)
SELECT MIN(district) FROM table_1979619_3 WHERE residence = "Newtown Square"
Name the district for newtown square
CREATE TABLE table_1979619_3 (district INTEGER, residence VARCHAR)
SELECT score FROM table_name_86 WHERE date = "12/1"
What score has 12/1 as the date?
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR)
SELECT type_of_record FROM table_21436373_8 WHERE date_year = "Tue 11/02/75"
What record was set on Tue 11/02/75?
CREATE TABLE table_21436373_8 (type_of_record VARCHAR, date_year VARCHAR)
SELECT COUNT(gold) FROM table_name_34 WHERE silver = 2 AND total < 7
What is the total number of Gold, when Silver is 2, and when Total is less than 7?
CREATE TABLE table_name_34 (gold VARCHAR, silver VARCHAR, total VARCHAR)
SELECT AVG(ae_2011) FROM table_name_21 WHERE forbes_2011 = 24 AND ft_2011 < 44
What is the average AE 2011 ranking with a Forbes 2011 ranking of 24 and a FT 2011 ranking less than 44?
CREATE TABLE table_name_21 (ae_2011 INTEGER, forbes_2011 VARCHAR, ft_2011 VARCHAR)
SELECT COUNT(year) FROM table_name_67 WHERE result = "nominated" AND category = "best supporting actress"
What are the years that had someone nominated for best supporting actress?
CREATE TABLE table_name_67 (year VARCHAR, result VARCHAR, category VARCHAR)
SELECT stage FROM table_name_35 WHERE trofeo_fast_team = "gatorade"
During which stage was gatorade the Trofeo Fast Team?
CREATE TABLE table_name_35 (stage VARCHAR, trofeo_fast_team VARCHAR)
SELECT successor FROM table_1652224_5 WHERE district = "Ohio 15th"
who was the successor for district ohio 15th?
CREATE TABLE table_1652224_5 (successor VARCHAR, district VARCHAR)
SELECT result FROM table_name_83 WHERE first_elected = "1892" AND incumbent = "w. jasper talbert"
What was the result of W. Jasper Talbert who was first elected in 1892?
CREATE TABLE table_name_83 (result VARCHAR, first_elected VARCHAR, incumbent VARCHAR)
SELECT owner FROM table_name_78 WHERE branding = "gx94"
Who is the owner of the branding gx94?
CREATE TABLE table_name_78 (owner VARCHAR, branding VARCHAR)
SELECT engine_s_ FROM table_name_57 WHERE year = 1966 AND points = "42"
Which engine(s) has a year of 1966, and a point of 42.
CREATE TABLE table_name_57 (engine_s_ VARCHAR, year VARCHAR, points VARCHAR)