answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT home_team FROM table_name_1 WHERE away_team = "bristol rovers"
Who was the home team when the away team was Bristol Rovers?
CREATE TABLE table_name_1 (home_team VARCHAR, away_team VARCHAR)
SELECT oberliga_baden_württemberg FROM table_14242137_4 WHERE oberliga_bayern = "TSV 1860 Munich" AND oberliga_südwest = "Borussia Neunkirchen"
Name the oberliga for where tsv 1860 munich and borussia neunkirchen
CREATE TABLE table_14242137_4 (oberliga_baden_württemberg VARCHAR, oberliga_bayern VARCHAR, oberliga_südwest VARCHAR)
SELECT SUM(2009) FROM table_name_70 WHERE rank = 5 AND 2010 < 76.5
the sum of 2009 with rank of 5 and 2010 less than 76.5 is what?
CREATE TABLE table_name_70 (rank VARCHAR)
SELECT date FROM table_name_8 WHERE venue = "princes park"
What date was the game played at princes park?
CREATE TABLE table_name_8 (date VARCHAR, venue VARCHAR)
SELECT rnd FROM table_22669816_1 WHERE track = "Phoenix International Raceway"
What rounds did Phoenix International Raceway host?
CREATE TABLE table_22669816_1 (rnd VARCHAR, track VARCHAR)
SELECT date_of_vacancy FROM table_name_2 WHERE outgoing_manager = "ralf santelli"
What was the date of vacancy after the outgoing manager, ralf santelli departed?
CREATE TABLE table_name_2 (date_of_vacancy VARCHAR, outgoing_manager VARCHAR)
SELECT score FROM table_name_95 WHERE record = "1–3"
Which Score has a Record of 1–3?
CREATE TABLE table_name_95 (score VARCHAR, record VARCHAR)
SELECT MIN(wins) FROM table_name_42 WHERE against < 814
What is the least wins for a team with against less than 814?
CREATE TABLE table_name_42 (wins INTEGER, against INTEGER)
SELECT 2007 FROM table_name_16 WHERE 2008 = "grand slam tournaments"
What is the 2007 of the Grand Slam Tournaments in 2008?
CREATE TABLE table_name_16 (Id VARCHAR)
SELECT COUNT(silver) FROM table_name_96 WHERE gold > 0 AND bronze < 23 AND total > 22 AND nation = "saint kitts and nevis"
What's the total number of Silver that has Gold that's larger than 0, Bronze that's smaller than 23, a Total that's larger than 22, and has the Nation of Saint Kitts and Nevis?
CREATE TABLE table_name_96 (silver VARCHAR, nation VARCHAR, total VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT mon_24_aug FROM table_23465864_5 WHERE fri_28_aug = "23' 22.25 96.864mph"
What is every value for Monday August 24 if Friday August 28 is 23' 22.25 96.864mph?
CREATE TABLE table_23465864_5 (mon_24_aug VARCHAR, fri_28_aug VARCHAR)
SELECT venue FROM table_name_57 WHERE date = "14 april 2002"
What is the Venue with a Date with 14 april 2002?
CREATE TABLE table_name_57 (venue VARCHAR, date VARCHAR)
SELECT AVG(third) FROM table_name_4 WHERE runners_up = 0 AND winners = 0 AND club = "far rabat"
Which Third has Runners-up of 0, and Winners of 0, and a Club of far rabat?
CREATE TABLE table_name_4 (third INTEGER, club VARCHAR, runners_up VARCHAR, winners VARCHAR)
SELECT staffel_a FROM table_name_75 WHERE staffel_d = "energie cottbus" AND staffel_c = "chemie leipzig" AND staffel_b = "1. fc union berlin"
What is the Staffel A that has a Staffel D of Energie Cottbus and a Staffel C of Chemie Leipzig and a Staffel B of 1. FC Union Berlin?
CREATE TABLE table_name_75 (staffel_a VARCHAR, staffel_b VARCHAR, staffel_d VARCHAR, staffel_c VARCHAR)
SELECT MIN(bronze) FROM table_name_79 WHERE rank = 2 AND silver < 0
What is the lest amount of bronzes that ranked 2 and has less silvers than 0?
CREATE TABLE table_name_79 (bronze INTEGER, rank VARCHAR, silver VARCHAR)
SELECT sodium FROM table_name_98 WHERE rubidium = "nacl (2.1)"
what is the properties of sodium when rubidium is nacl (2.1)?
CREATE TABLE table_name_98 (sodium VARCHAR, rubidium VARCHAR)
SELECT COUNT(other) FROM table_23777640_1 WHERE gn_divisions = 95
How many figures for Other in the district where the GN division is 95?
CREATE TABLE table_23777640_1 (other VARCHAR, gn_divisions VARCHAR)
SELECT hk_viewers FROM table_10942714_1 WHERE premiere = 34
How many viewers were there for the premier with 34
CREATE TABLE table_10942714_1 (hk_viewers VARCHAR, premiere VARCHAR)
SELECT released FROM table_name_44 WHERE chinese_title = "反正 卓文萱"
Chinese title of 反正 卓文萱 had what released?
CREATE TABLE table_name_44 (released VARCHAR, chinese_title VARCHAR)
SELECT nationality FROM table_name_13 WHERE jersey_number_s_ = 6
What is the Nationality of the Player with Jersey Number 6?
CREATE TABLE table_name_13 (nationality VARCHAR, jersey_number_s_ VARCHAR)
SELECT attendance FROM table_name_54 WHERE date = "1997-12-14"
What was the attendance on 1997-12-14?
CREATE TABLE table_name_54 (attendance VARCHAR, date VARCHAR)
SELECT MAX(pick__number) FROM table_name_9 WHERE rd__number < 1
Which Pick # is the highest and has the Rd # is under 1?
CREATE TABLE table_name_9 (pick__number INTEGER, rd__number INTEGER)
SELECT date FROM table_name_34 WHERE away_team = "grimsby town"
What date was Grimsby Town the away team?
CREATE TABLE table_name_34 (date VARCHAR, away_team VARCHAR)
SELECT record FROM table_name_80 WHERE date = "nov 13"
What's the record of the game on Nov 13?
CREATE TABLE table_name_80 (record VARCHAR, date VARCHAR)
SELECT MAX(australian_open) FROM table_197638_7
When was the Australian open?
CREATE TABLE table_197638_7 (australian_open INTEGER)
SELECT opponents_in_the_final FROM table_name_30 WHERE date = "february 19, 1996"
Who are the opponents in the February 19, 1996 final?
CREATE TABLE table_name_30 (opponents_in_the_final VARCHAR, date VARCHAR)
SELECT boiler_pressure FROM table_name_58 WHERE name = "hesperus"
What is the boiler pressure for the Hesperus model?
CREATE TABLE table_name_58 (boiler_pressure VARCHAR, name VARCHAR)
SELECT SUM(pick) FROM table_name_25 WHERE college = "texas el-paso"
Which pick came from Texas El-Paso?
CREATE TABLE table_name_25 (pick INTEGER, college VARCHAR)
SELECT head_coach FROM table_name_95 WHERE opponent = "arsenal"
Who was the head coach when the opponent was Arsenal?
CREATE TABLE table_name_95 (head_coach VARCHAR, opponent VARCHAR)
SELECT surface FROM table_name_46 WHERE opponent_in_the_final = "yaroslava shvedova"
What is the Surface of the match against Yaroslava Shvedova?
CREATE TABLE table_name_46 (surface VARCHAR, opponent_in_the_final VARCHAR)
SELECT authority FROM table_name_49 WHERE gender = "coed" AND decile > 4 AND roll = "150"
which Authority has a coed school with a decile greater than 4, with a 150 roll?
CREATE TABLE table_name_49 (authority VARCHAR, roll VARCHAR, gender VARCHAR, decile VARCHAR)
SELECT campus FROM campuses WHERE YEAR = 1958
Find all the campuses opened in 1958.
CREATE TABLE campuses (campus VARCHAR, YEAR VARCHAR)
SELECT parish__prestegjeld_ FROM table_name_2 WHERE year_built = "1907"
Which Parish (Prestegjeld) was built in 1907?
CREATE TABLE table_name_2 (parish__prestegjeld_ VARCHAR, year_built VARCHAR)
SELECT COUNT(pick__number) FROM table_25518547_2 WHERE affiliation = "University of California NorCal Lamorinda United"
How many picks are there with an affiliation is the University of California Norcal Lamorinda United?
CREATE TABLE table_25518547_2 (pick__number VARCHAR, affiliation VARCHAR)
SELECT opponent FROM table_name_23 WHERE score = "2–5"
Which opponent has a Score of 2–5?
CREATE TABLE table_name_23 (opponent VARCHAR, score VARCHAR)
SELECT 2001 FROM table_name_33 WHERE 1990 = "a" AND 1987 = "nme" AND 1997 = "1r"
What is 2001, when 1990 is A, when 1987 is NME, and when 1997 is 1R?
CREATE TABLE table_name_33 (Id VARCHAR)
SELECT week FROM table_name_70 WHERE tournament = "rome"
In what Week is the Rome Tournament?
CREATE TABLE table_name_70 (week VARCHAR, tournament VARCHAR)
SELECT MIN(crowd) FROM table_name_56 WHERE venue = "arden street oval"
Who has the smallest crowd in the Venue of Arden Street Oval?
CREATE TABLE table_name_56 (crowd INTEGER, venue VARCHAR)
SELECT team FROM table_name_59 WHERE year > 1935 AND player = "daniel bradshaw"
Which team did daniel bradshaw play for after 1935?
CREATE TABLE table_name_59 (team VARCHAR, year VARCHAR, player VARCHAR)
SELECT arabic FROM table_24807774_1 WHERE colombian = "Finnish"
how many arabic in colobians is finnish
CREATE TABLE table_24807774_1 (arabic VARCHAR, colombian VARCHAR)
SELECT info FROM table_name_95 WHERE album = "romeo"
Which Info has an Album of romeo?
CREATE TABLE table_name_95 (info VARCHAR, album VARCHAR)
SELECT away_team FROM table_name_33 WHERE home_team = "st kilda"
in a game against st kilda, what was the away team's score?
CREATE TABLE table_name_33 (away_team VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_67 WHERE home_team = "st kilda"
What venue featured the home side of st kilda?
CREATE TABLE table_name_67 (venue VARCHAR, home_team VARCHAR)
SELECT ncbi_accession_number__mrna_protein_ FROM table_name_99 WHERE protein_identity = "69%"
What NCBI Accession Number (mRNA/Protein) has a Protein Identity of 69%?
CREATE TABLE table_name_99 (ncbi_accession_number__mrna_protein_ VARCHAR, protein_identity VARCHAR)
SELECT result FROM table_name_94 WHERE association = "primetime emmy awards"
Tell me the result for primetime emmy awards
CREATE TABLE table_name_94 (result VARCHAR, association VARCHAR)
SELECT krypton FROM table_name_18 WHERE argon = "20.85"
What krypton has an argon of 20.85?
CREATE TABLE table_name_18 (krypton VARCHAR, argon VARCHAR)
SELECT score FROM table_27723228_12 WHERE team = "Indiana"
Name the score for indiana
CREATE TABLE table_27723228_12 (score VARCHAR, team VARCHAR)
SELECT directed_by FROM table_12033013_3 WHERE production_code = "3ADK-03"
Who directed the episode with a production code 3ADK-03?
CREATE TABLE table_12033013_3 (directed_by VARCHAR, production_code VARCHAR)
SELECT MIN(goal_difference) FROM table_name_81 WHERE wins > 13 AND losses < 8 AND draws < 11
What is the lowest goal difference a club with more than 13 wins, less than 8 losses, and less than 11 draws has?
CREATE TABLE table_name_81 (goal_difference INTEGER, draws VARCHAR, wins VARCHAR, losses VARCHAR)
SELECT T1.course_name, T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id HAVING COUNT(*) <= 2
What are the names and id of courses having at most 2 sections?
CREATE TABLE Courses (course_name VARCHAR, course_id VARCHAR); CREATE TABLE Sections (course_id VARCHAR)
SELECT visitor FROM table_name_80 WHERE home = "miami" AND date = "november 4"
Which Visitor was there when the Home game was played in Miami on November 4?
CREATE TABLE table_name_80 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT gtu_winning_team FROM table_13642023_2 WHERE to_winning_team = "#3 Camaro"
Who was the GTU winning team when the TO winning team was #3 Camaro?
CREATE TABLE table_13642023_2 (gtu_winning_team VARCHAR, to_winning_team VARCHAR)
SELECT solo FROM table_15128839_22 WHERE name = "Briggs, Diyral"
Name the solo when name is briggs, diyral
CREATE TABLE table_15128839_22 (solo VARCHAR, name VARCHAR)
SELECT place FROM table_name_43 WHERE country = "australia"
What was the place ranking for the player from Australia?
CREATE TABLE table_name_43 (place VARCHAR, country VARCHAR)
SELECT MAX(village) FROM table_20403667_2 WHERE house_affected = 103279
What is the largest village that had 103279 houses affected?
CREATE TABLE table_20403667_2 (village INTEGER, house_affected VARCHAR)
SELECT format FROM table_name_42 WHERE call_sign = "dzfe"
What format has the call sign DZFE?
CREATE TABLE table_name_42 (format VARCHAR, call_sign VARCHAR)
SELECT overs FROM table_15893020_2 WHERE player = "Oliver Hannon-Dalby"
How many overs did Oliver Hannon-Dalby have?
CREATE TABLE table_15893020_2 (overs VARCHAR, player VARCHAR)
SELECT COUNT(season_no) FROM table_29154676_1 WHERE written_by = "Warren Leight"
How many episodes were written by Warren Leight?
CREATE TABLE table_29154676_1 (season_no VARCHAR, written_by VARCHAR)
SELECT binary FROM table_name_98 WHERE operation = "find-min"
Operation of find-min has what binary?
CREATE TABLE table_name_98 (binary VARCHAR, operation VARCHAR)
SELECT born_died FROM table_name_25 WHERE term_start = "4 december 1941"
What is Born-Died, when Term Start is 4 December 1941?
CREATE TABLE table_name_25 (born_died VARCHAR, term_start VARCHAR)
SELECT package_option FROM table_name_51 WHERE language = "italian" AND television_service = "sky radio"
What is Package/Option, when Language is Italian, and when Television Service is Sky Radio?
CREATE TABLE table_name_51 (package_option VARCHAR, language VARCHAR, television_service VARCHAR)
SELECT high_rebounds FROM table_27722408_2 WHERE date = "October 16"
Who had the most rebounds and how many did they have on October 16?
CREATE TABLE table_27722408_2 (high_rebounds VARCHAR, date VARCHAR)
SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings"
What is the average date of the game with the Detroit Red Wings as the opponent?
CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR)
SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid = T2.eid JOIN Aircraft AS T3 ON T3.aid = T2.aid WHERE T3.name = "Boeing 737-800"
Show names for all employees who do not have certificate of Boeing 737-800.
CREATE TABLE Certificate (eid VARCHAR, aid VARCHAR); CREATE TABLE Employee (name VARCHAR, eid VARCHAR); CREATE TABLE Employee (name VARCHAR); CREATE TABLE Aircraft (aid VARCHAR, name VARCHAR)
SELECT MIN(bronze) FROM table_name_75 WHERE silver > 0 AND rank < 4 AND nation = "jamaica" AND total < 22
What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?
CREATE TABLE table_name_75 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT T1.killed, T1.injured FROM death AS T1 JOIN ship AS t2 ON T1.caused_by_ship_id = T2.id WHERE T2.tonnage = 't'
What are the death and injury situations caused by the ship with tonnage 't'?
CREATE TABLE ship (Id VARCHAR); CREATE TABLE death (killed VARCHAR, injured VARCHAR, caused_by_ship_id VARCHAR)
SELECT MAX(laps) FROM table_name_75 WHERE manufacturer = "aprilia" AND time = "+1:36.557"
Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
CREATE TABLE table_name_75 (laps INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT T2.title, T1.stars, T2.director, MIN(T1.stars) FROM Rating AS T1 JOIN Movie AS T2 ON T1.mID = T2.mID GROUP BY T2.director
Find the title and score of the movie with the lowest rating among all movies directed by each director.
CREATE TABLE Rating (stars INTEGER, mID VARCHAR); CREATE TABLE Movie (title VARCHAR, director VARCHAR, mID VARCHAR)
SELECT tv_station FROM table_name_54 WHERE average_ratings = "16.89%"
Which TV Station has Average Ratings of 16.89%?
CREATE TABLE table_name_54 (tv_station VARCHAR, average_ratings VARCHAR)
SELECT 2012 AS _passengers__in_millions_ FROM table_16066063_1 WHERE distance = "1075km"
How many passengers (in millions) flew through along the route that is 1075km long in 2012?
CREATE TABLE table_16066063_1 (distance VARCHAR)
SELECT best_bowling FROM table_16570286_4 WHERE average = "23.33"
What was the best bowling score when the average was 23.33?
CREATE TABLE table_16570286_4 (best_bowling VARCHAR, average VARCHAR)
SELECT headquarter FROM manufacturers WHERE founder = 'James'
Where is the headquarter of the company founded by James?
CREATE TABLE manufacturers (headquarter VARCHAR, founder VARCHAR)
SELECT main_span_feet FROM table_name_64 WHERE name = "qincaobei bridge"
What is the Main span of the Qincaobei Bridge
CREATE TABLE table_name_64 (main_span_feet VARCHAR, name VARCHAR)
SELECT sixth FROM table_name_70 WHERE second = "tasmania" AND fourth = "western australia"
What team placed sixth during the season where Tasmania placed second and Western Australia placed fourth?
CREATE TABLE table_name_70 (sixth VARCHAR, second VARCHAR, fourth VARCHAR)
SELECT first_name, last_name FROM Customers WHERE amount_outstanding BETWEEN 1000 AND 3000
List the first name and last name of customers have the amount of outstanding between 1000 and 3000.
CREATE TABLE Customers (first_name VARCHAR, last_name VARCHAR, amount_outstanding INTEGER)
SELECT constructor FROM table_name_21 WHERE time_retired = "+1.027"
What Constructor has a +1.027 Time/Retired?
CREATE TABLE table_name_21 (constructor VARCHAR, time_retired VARCHAR)
SELECT programming FROM table_name_71 WHERE name = "mrt sobraniski kanal"
What is the programming for mrt sobraniski kanal?
CREATE TABLE table_name_71 (programming VARCHAR, name VARCHAR)
SELECT player FROM table_name_71 WHERE pl_gp > 0 AND rd__number = 1
Which Player has a PI GP over 0 and a Rd # of 1?
CREATE TABLE table_name_71 (player VARCHAR, pl_gp VARCHAR, rd__number VARCHAR)
SELECT r_53 FROM table_name_95 WHERE d_41 = "r 21"
I want the R 53 of D 41 of r 21
CREATE TABLE table_name_95 (r_53 VARCHAR, d_41 VARCHAR)
SELECT place FROM table_1447085_1 WHERE rank = 71
Which place has a rank of 71?
CREATE TABLE table_1447085_1 (place VARCHAR, rank VARCHAR)
SELECT COUNT(overall) FROM table_name_6 WHERE college = "wyoming"
What is the overall number for the College of Wyoming?
CREATE TABLE table_name_6 (overall VARCHAR, college VARCHAR)
SELECT SUM(lost) FROM table_name_87 WHERE goals_scored > 63 AND place < 3
What the lost in place less than 3 and having more than 63 goals scored?
CREATE TABLE table_name_87 (lost INTEGER, goals_scored VARCHAR, place VARCHAR)
SELECT assists FROM table_25352324_5 WHERE player = "Lynn Pride"
What is every entry for assists if the player is Lynn Pride?
CREATE TABLE table_25352324_5 (assists VARCHAR, player VARCHAR)
SELECT COUNT(other_a) FROM table_14962287_2 WHERE name = "Tommy Johnson Category:Articles with hCards"
How many values of Other A correspond to Tommy Johnson Category:Articles with hCards?
CREATE TABLE table_14962287_2 (other_a VARCHAR, name VARCHAR)
SELECT MAX(pick) FROM table_name_67 WHERE round = 7
What is the highest numbered pick from round 7?
CREATE TABLE table_name_67 (pick INTEGER, round VARCHAR)
SELECT game FROM table_17311812_7 WHERE date = "January 28"
What game number was played on January 28?
CREATE TABLE table_17311812_7 (game VARCHAR, date VARCHAR)
SELECT score FROM table_17311759_4 WHERE team = "Charlotte"
What are the scores made by Charlotte team
CREATE TABLE table_17311759_4 (score VARCHAR, team VARCHAR)
SELECT Name FROM county_public_safety ORDER BY Population DESC LIMIT 1
List the name of the county with the largest population.
CREATE TABLE county_public_safety (Name VARCHAR, Population VARCHAR)
SELECT results FROM table_name_94 WHERE record = "28-12"
What Results has the Record of 28-12?
CREATE TABLE table_name_94 (results VARCHAR, record VARCHAR)
SELECT COUNT(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Ray"
How many lesson does customer with first name Ray took?
CREATE TABLE Customers (customer_id VARCHAR, first_name VARCHAR); CREATE TABLE Lessons (customer_id VARCHAR)
SELECT tv_station FROM table_name_84 WHERE romaji_title = "tokkyuu tanaka sangou"
What is the TV Station of the episode with a Romaji Title of Tokkyuu Tanaka Sangou?
CREATE TABLE table_name_84 (tv_station VARCHAR, romaji_title VARCHAR)
SELECT driver FROM table_name_72 WHERE entrant = "rovero campello"
Who was the driver for Rovero Campello?
CREATE TABLE table_name_72 (driver VARCHAR, entrant VARCHAR)
SELECT team FROM table_27755784_10 WHERE high_assists = "Stephen Curry (7)" AND high_points = "Monta Ellis (27)"
What is the team when the high assists was stephen curry (7) and the high points was monta ellis (27)?
CREATE TABLE table_27755784_10 (team VARCHAR, high_assists VARCHAR, high_points VARCHAR)
SELECT location_attendance FROM table_17080868_8 WHERE game = 54
54 is the game where location attendance are.
CREATE TABLE table_17080868_8 (location_attendance VARCHAR, game VARCHAR)
SELECT MIN(round) FROM table_name_19 WHERE pick__number = 8 AND college = "temple" AND overall > 72
What is the lowest round of the pick #8 player with an overall greater than 72 from the college of temple?
CREATE TABLE table_name_19 (round INTEGER, overall VARCHAR, pick__number VARCHAR, college VARCHAR)
SELECT team FROM table_name_56 WHERE series = "astc round 1"
WHAT IS THE TEAM WITH astc round 1?
CREATE TABLE table_name_56 (team VARCHAR, series VARCHAR)
SELECT COUNT(rating) FROM table_name_7 WHERE weekly_rank = "76/88"
What is the total number of Rating(s), when Weekly Rank is 76/88?
CREATE TABLE table_name_7 (rating VARCHAR, weekly_rank VARCHAR)
SELECT race FROM table_name_78 WHERE weight__kg_ < 55.5
In which races did the jockey weigh less than 55.5 kg?
CREATE TABLE table_name_78 (race VARCHAR, weight__kg_ INTEGER)
SELECT successor FROM table_224840_4 WHERE district = "Massachusetts 3rd"
Who was the latest to take office in Massachusetts 3rd district?
CREATE TABLE table_224840_4 (successor VARCHAR, district VARCHAR)
SELECT name FROM table_name_36 WHERE qual_2 = "1:15.582"
What is Name when Qual 2 is 1:15.582?
CREATE TABLE table_name_36 (name VARCHAR, qual_2 VARCHAR)