answer
stringlengths
18
557
question
stringlengths
12
244
context
stringlengths
27
489
SELECT MAX(floors) FROM table_name_62 WHERE name = "regions center" AND rank < 11
When Regions center has a rank less than 11, what is the greatest number o floors?
CREATE TABLE table_name_62 (floors INTEGER, name VARCHAR, rank VARCHAR)
SELECT date__ddmmyyyy_ FROM table_name_45 WHERE axis_unit = "5./jg 3"
What was the date of the victory when the Axis Unit was 5./jg 3?
CREATE TABLE table_name_45 (date__ddmmyyyy_ VARCHAR, axis_unit VARCHAR)
SELECT video FROM table_name_77 WHERE aspect = "16:9"
Which video has a 16:9 aspect?
CREATE TABLE table_name_77 (video VARCHAR, aspect VARCHAR)
SELECT AVG(week) FROM table_name_27 WHERE result = "l 13-16" AND opponent = "at buffalo bills"
Which Week has a Result of l 13-16 and an Opponent of at buffalo bills?
CREATE TABLE table_name_27 (week INTEGER, result VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_98 WHERE score = "7–6(4), 6–1"
Name the date that had a score of 7–6(4), 6–1
CREATE TABLE table_name_98 (date VARCHAR, score VARCHAR)
SELECT role FROM table_name_20 WHERE broadcaster = "bbc1"
What was the role for BBC1?
CREATE TABLE table_name_20 (role VARCHAR, broadcaster VARCHAR)
SELECT 1 AS st_leg FROM table_name_34 WHERE team_1 = "galatasaray"
Which first leg had Galatasaray as Team 1?
CREATE TABLE table_name_34 (team_1 VARCHAR)
SELECT party FROM table_name_58 WHERE representative = "thomas l. young"
Which party did Thomas L. Young belong to?
CREATE TABLE table_name_58 (party VARCHAR, representative VARCHAR)
SELECT visitor FROM table_name_11 WHERE home = "toronto maple leafs" AND date = "december 22"
Who were the Visitor of the Toronto Maple Leafs Home game on December 22?
CREATE TABLE table_name_11 (visitor VARCHAR, home VARCHAR, date VARCHAR)
SELECT COUNT(city_district__stadtteil_) FROM table_10992_3 WHERE foreign_nationals = "5.162"
What is the number of the city district of stadtteil where foreigners are 5.162?
CREATE TABLE table_10992_3 (city_district__stadtteil_ VARCHAR, foreign_nationals VARCHAR)
SELECT MAX(round) FROM table_name_39 WHERE nationality = "canada" AND draft < 1973
What is Canada's highest round before 1973?
CREATE TABLE table_name_39 (round INTEGER, nationality VARCHAR, draft VARCHAR)
SELECT AVG(to_par) FROM table_name_2 WHERE score = 78 - 67 - 73 = 218
What is the average to par for a score of 78-67-73=218?
CREATE TABLE table_name_2 (to_par INTEGER, score VARCHAR)
SELECT nickname FROM table_1973842_2 WHERE joined = 2010
What's the nickname of the students of the school that joined the Conference in 2010?
CREATE TABLE table_1973842_2 (nickname VARCHAR, joined VARCHAR)
SELECT location FROM table_27409644_1 WHERE manager = "Richard Barnwell"
Where is the team that is managed by richard barnwell from?
CREATE TABLE table_27409644_1 (location VARCHAR, manager VARCHAR)
SELECT d_43 FROM table_name_35 WHERE d_41 = "d 56"
Name the D 43 when it has D 41 of d 56
CREATE TABLE table_name_35 (d_43 VARCHAR, d_41 VARCHAR)
SELECT to_par FROM table_name_61 WHERE total < 284 AND player = "jeff sluman"
What was Jeff Sluman's To par when his total was smaller than 284?
CREATE TABLE table_name_61 (to_par VARCHAR, total VARCHAR, player VARCHAR)
SELECT division_record FROM table_name_41 WHERE school = "sussex central"
What is the division record of Sussex Central?
CREATE TABLE table_name_41 (division_record VARCHAR, school VARCHAR)
SELECT MIN(gdp_per_capita_nominal__) AS $_ FROM table_1610496_3 WHERE population__millions_ = "63.056"
What is the nominal GDP per capita when the population is 63.056 million?
CREATE TABLE table_1610496_3 (gdp_per_capita_nominal__ INTEGER, population__millions_ VARCHAR)
SELECT country_name FROM table_name_63 WHERE numeric_code < 246 AND latin_3_letter_code = "slv"
What is the country's name with a numeric code less than 246 and a Latin 3-letter code of slv?
CREATE TABLE table_name_63 (country_name VARCHAR, numeric_code VARCHAR, latin_3_letter_code VARCHAR)
SELECT first_name, last_name, salary FROM employees WHERE salary < 6000
List the full name (first and last name), and salary for those employees who earn below 6000.
CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, salary INTEGER)
SELECT place FROM table_name_74 WHERE score = 66 - 74 - 68 - 73 = 281
what place has score 66-74-68-73=281
CREATE TABLE table_name_74 (place VARCHAR, score VARCHAR)
SELECT gross_capacity FROM table_name_54 WHERE reactor_type = "abwr"
What is the gross capacity where the reactor is ABWR type?
CREATE TABLE table_name_54 (gross_capacity VARCHAR, reactor_type VARCHAR)
SELECT COUNT(player) FROM table_2840500_2 WHERE nhl_team = "Edmonton Oilers"
How many players were drafted by the Edmonton Oilers?
CREATE TABLE table_2840500_2 (player VARCHAR, nhl_team VARCHAR)
SELECT SUM(rank) FROM table_name_84 WHERE bronze < 5 AND country = "japan" AND silver > 3
What was the sum of the ranks for Japan who had less than 5 bronze medals and more than 3 silvers?
CREATE TABLE table_name_84 (rank INTEGER, silver VARCHAR, bronze VARCHAR, country VARCHAR)
SELECT COUNT(events) FROM table_name_80 WHERE top_10 > 6 AND top_5 < 8
How many Events have a Top-10 larger than 6, and a Top-5 smaller than 8?
CREATE TABLE table_name_80 (events VARCHAR, top_10 VARCHAR, top_5 VARCHAR)
SELECT AVG(finish) FROM table_name_35 WHERE start > 3 AND engine = "honda" AND year = 2011
What is the average finish that has a start greater than 3, with honda as the engine, and 2011 as the year?
CREATE TABLE table_name_35 (finish INTEGER, year VARCHAR, start VARCHAR, engine VARCHAR)
SELECT type FROM table_262560_2 WHERE nickname = "Oilers"
What type of school has the nickname the Oilers?
CREATE TABLE table_262560_2 (type VARCHAR, nickname VARCHAR)
SELECT 1996 FROM table_name_29 WHERE 1992 = "atp masters series"
What is 1996, when 1992 is "ATP Masters Series"?
CREATE TABLE table_name_29 (Id VARCHAR)
SELECT elector FROM table_name_62 WHERE title = "deacon of s. maria in domnica"
What is listed as the Elector with the Title of Deacon of S. Maria in Domnica?
CREATE TABLE table_name_62 (elector VARCHAR, title VARCHAR)
SELECT finish FROM table_name_19 WHERE total = 292 AND player = "david graham"
What were the finishes by David Graham with totals lower than 292?
CREATE TABLE table_name_19 (finish VARCHAR, total VARCHAR, player VARCHAR)
SELECT SUM(top_10) FROM table_name_68 WHERE wins > 0
What is the sum of top-10s for events with more than 0 wins?
CREATE TABLE table_name_68 (top_10 INTEGER, wins INTEGER)
SELECT MAX(lost) FROM table_name_40 WHERE drawn < 6 AND goals_against < 44 AND points_1 = "27"
What is the highest lost entry that has a drawn entry less than 6, goals against less than 44, and a points 1 entry of 27?
CREATE TABLE table_name_40 (lost INTEGER, points_1 VARCHAR, drawn VARCHAR, goals_against VARCHAR)
SELECT name FROM table_name_11 WHERE presentation_of_credentials = "unknown"
Who presented their credentials at an unknown date?
CREATE TABLE table_name_11 (name VARCHAR, presentation_of_credentials VARCHAR)
SELECT COUNT(production_code) FROM table_15938543_1 WHERE written_by = "Jack Burditt & Robert Carlock"
How many episodes were written by Jack Burditt & Robert Carlock
CREATE TABLE table_15938543_1 (production_code VARCHAR, written_by VARCHAR)
SELECT in_swedish FROM table_name_77 WHERE in_english = "south karelia"
What is the Swedish name for South Karelia?
CREATE TABLE table_name_77 (in_swedish VARCHAR, in_english VARCHAR)
SELECT AVG(year) FROM table_name_80 WHERE date = "tba" AND designated_home = "oakland raiders"
What year had a date of TBA where the Oakland raiders were the home team?
CREATE TABLE table_name_80 (year INTEGER, date VARCHAR, designated_home VARCHAR)
SELECT date FROM table_name_92 WHERE opponent = "argentina"
what day was the game in argentina
CREATE TABLE table_name_92 (date VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_11 WHERE player = "curtis strange"
What is Curtis Strange's Score?
CREATE TABLE table_name_11 (score VARCHAR, player VARCHAR)
SELECT season__number FROM table_26804862_1 WHERE directed_by = "Harvey Laidman"
When harvey laidman is the director what is the season number?
CREATE TABLE table_26804862_1 (season__number VARCHAR, directed_by VARCHAR)
SELECT hanja FROM table_name_85 WHERE revised = "eum"
Tell me the hanja of eum
CREATE TABLE table_name_85 (hanja VARCHAR, revised VARCHAR)
SELECT year FROM table_name_6 WHERE engine_s_ = "yamaha v8"
Which year has an Engine(s) of yamaha v8?
CREATE TABLE table_name_6 (year VARCHAR, engine_s_ VARCHAR)
SELECT COUNT(*) FROM performance
How many performances are there?
CREATE TABLE performance (Id VARCHAR)
SELECT court_rank FROM table_name_70 WHERE courtesy_title = "nagato-no-kami"
What is the court rank of the person with a courtesy title of nagato-no-kami?
CREATE TABLE table_name_70 (court_rank VARCHAR, courtesy_title VARCHAR)
SELECT opponents FROM table_name_60 WHERE partnering = "alessandro motti" AND date = "12 september 2005"
Which Opponents have a Partnering of alessandro motti, and a Date of 12 september 2005?
CREATE TABLE table_name_60 (opponents VARCHAR, partnering VARCHAR, date VARCHAR)
SELECT MIN(vol__number) FROM table_name_5 WHERE publication_date = "november 2004"
What's the Lowest Volume Number that was published November 2004?
CREATE TABLE table_name_5 (vol__number INTEGER, publication_date VARCHAR)
SELECT location FROM table_27537518_6 WHERE attendance = 10056
Where was the game seen by 10056 people played?
CREATE TABLE table_27537518_6 (location VARCHAR, attendance VARCHAR)
SELECT winner FROM table_name_50 WHERE date = "20 august"
What is Winner, when Date is "20 August"?
CREATE TABLE table_name_50 (winner VARCHAR, date VARCHAR)
SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863"
Which series had a release on 1939-07-15 with the 8863 production number?
CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR)
SELECT driver FROM table_name_66 WHERE total_time = "16:58"
What driver had a total time of 16:58?
CREATE TABLE table_name_66 (driver VARCHAR, total_time VARCHAR)
SELECT association FROM table_name_39 WHERE nominee = "indonesian idol" AND year > 2005 AND result = "nominated"
What was the association for Indonesian Idol after 2005 with a Nominated Result?
CREATE TABLE table_name_39 (association VARCHAR, result VARCHAR, nominee VARCHAR, year VARCHAR)
SELECT engine FROM table_name_64 WHERE chassis = "lotus 16"
What model engine has a lotus 16 chassis?
CREATE TABLE table_name_64 (engine VARCHAR, chassis VARCHAR)
SELECT rider FROM table_name_39 WHERE speed = "81.91mph"
Which Rider finished with a speed of 81.91mph?
CREATE TABLE table_name_39 (rider VARCHAR, speed VARCHAR)
SELECT record FROM table_name_55 WHERE date = "december 5, 2007"
What is the record of the game on December 5, 2007?
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR)
SELECT score FROM table_name_59 WHERE tie_no = "replay" AND home_team = "mansfield town"
What was the score when the tie number was a replay and the home team was mansfield town?
CREATE TABLE table_name_59 (score VARCHAR, tie_no VARCHAR, home_team VARCHAR)
SELECT virtue FROM table_name_20 WHERE (latin) = invidia
Which virtue is Invidia(Latin)?
CREATE TABLE table_name_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR)
SELECT opponent FROM table_name_71 WHERE time = "2:01"
Who was the opponent when the fight had a time of 2:01?
CREATE TABLE table_name_71 (opponent VARCHAR, time VARCHAR)
SELECT record FROM table_name_37 WHERE opponent = "indians" AND loss = "camacho (1-4)"
What was the record at the game against the Indians with a loss of Camacho (1-4)?
CREATE TABLE table_name_37 (record VARCHAR, opponent VARCHAR, loss VARCHAR)
SELECT result FROM table_1341897_23 WHERE district = "Massachusetts 3"
Name the result for massachusetts 3
CREATE TABLE table_1341897_23 (result VARCHAR, district VARCHAR)
SELECT extra FROM table_name_28 WHERE result = "4th" AND tournament = "ncaa championships"
What is the extra when the result is 4th at the NCAA Championships?
CREATE TABLE table_name_28 (extra VARCHAR, result VARCHAR, tournament VARCHAR)
SELECT msrp FROM table_name_2 WHERE storage = "128-512 gb ssd"
What is the MSRP for the laptop with storage of 128-512 GB SSD?
CREATE TABLE table_name_2 (msrp VARCHAR, storage VARCHAR)
SELECT round FROM table_name_59 WHERE prize_money = "£120,000"
What is the Round with a Prize of money that is £120,000?
CREATE TABLE table_name_59 (round VARCHAR, prize_money VARCHAR)
SELECT date FROM table_name_19 WHERE event = "shot put"
What is the Date of the athlete in the shot put Event?
CREATE TABLE table_name_19 (date VARCHAR, event VARCHAR)
SELECT COUNT(year) FROM table_name_34 WHERE result = "champions" AND matches > 5
What is the number of Year with a Result of champions, and Matches larger than 5?
CREATE TABLE table_name_34 (year VARCHAR, result VARCHAR, matches VARCHAR)
SELECT player FROM table_name_43 WHERE place = "1"
What is Player, when Place is "1"?
CREATE TABLE table_name_43 (player VARCHAR, place VARCHAR)
SELECT poles FROM table_name_86 WHERE wins = "0" AND points = "0"
what is the poles when the wins is 0 and points is 0?
CREATE TABLE table_name_86 (poles VARCHAR, wins VARCHAR, points VARCHAR)
SELECT name FROM table_13636_1 WHERE first_operational = "March 1945"
what's the name with first operational being march 1945
CREATE TABLE table_13636_1 (name VARCHAR, first_operational VARCHAR)
SELECT third FROM table_name_32 WHERE discipline = "0.8km f sprint"
Who was third at the 0.8km f sprint discipline?
CREATE TABLE table_name_32 (third VARCHAR, discipline VARCHAR)
SELECT T1.first_name, T1.last_name FROM customers AS T1 JOIN invoices AS T2 ON T2.customer_id = T1.id ORDER BY total LIMIT 10
List the customers first and last name of 10 least expensive invoices.
CREATE TABLE customers (first_name VARCHAR, last_name VARCHAR, id VARCHAR); CREATE TABLE invoices (customer_id VARCHAR)
SELECT Team, Starting_Year FROM technician
What are the team and starting year of technicians?
CREATE TABLE technician (Team VARCHAR, Starting_Year VARCHAR)
SELECT MAX(round) FROM table_name_85 WHERE overall = 32 AND pick__number < 4
Which Round is the highest one that has an Overall of 32, and a Pick # smaller than 4?
CREATE TABLE table_name_85 (round INTEGER, overall VARCHAR, pick__number VARCHAR)
SELECT date FROM table_name_28 WHERE name__location_ = "belyanitsky, ivanovo, and balino"
What Date does the Name (location) Belyanitsky, Ivanovo, and Balino have?
CREATE TABLE table_name_28 (date VARCHAR, name__location_ VARCHAR)
SELECT date FROM table_23284271_8 WHERE record = "32-19"
When did the Mavericks have a record of 32-19?
CREATE TABLE table_23284271_8 (date VARCHAR, record VARCHAR)
SELECT SUM(gold) FROM table_name_36 WHERE nation = "total"
Nation of total has what sum of gold?
CREATE TABLE table_name_36 (gold INTEGER, nation VARCHAR)
SELECT date FROM table_name_14 WHERE others = "5%" AND szdsz = "5%"
On what date do others have 5% with an SZDSZ of 5%?
CREATE TABLE table_name_14 (date VARCHAR, others VARCHAR, szdsz VARCHAR)
SELECT MAX(population) FROM table_name_13 WHERE _percentage_lds = "0.54%" AND total_congregations > 2
What is the highest Population, when % LDS is 0.54%, and when Total Congregations is greater than 2?
CREATE TABLE table_name_13 (population INTEGER, _percentage_lds VARCHAR, total_congregations VARCHAR)
SELECT score FROM table_name_67 WHERE tie_no = "109"
What is Score, when Tie No is "109"?
CREATE TABLE table_name_67 (score VARCHAR, tie_no VARCHAR)
SELECT COUNT(*) FROM Faculty
How many faculty do we have?
CREATE TABLE Faculty (Id VARCHAR)
SELECT goal_difference FROM table_name_56 WHERE points_1 = "51" AND goals_against < 66
When the Points 1 was 51 and the Goals Against was less than 66, what was the Goal Difference?
CREATE TABLE table_name_56 (goal_difference VARCHAR, points_1 VARCHAR, goals_against VARCHAR)
SELECT MIN(no_in_season) FROM table_27374740_1
What is the earliest numbered episode of the season?
CREATE TABLE table_27374740_1 (no_in_season INTEGER)
SELECT national_rank FROM table_27956_3 WHERE institution = "Medical University of South Carolina"
Name the national rank for medical university of south carolina
CREATE TABLE table_27956_3 (national_rank VARCHAR, institution VARCHAR)
SELECT player FROM table_name_11 WHERE rank > 9
Which player ranks higher than 9?
CREATE TABLE table_name_11 (player VARCHAR, rank INTEGER)
SELECT MIN(bike_no) FROM table_name_13 WHERE driver___passenger = "joris hendrickx / kaspars liepins" AND position < 4
What is the lowest Bike No, when Driver / Passenger is Joris Hendrickx / Kaspars Liepins, and when Position is less than 4?
CREATE TABLE table_name_13 (bike_no INTEGER, driver___passenger VARCHAR, position VARCHAR)
SELECT COUNT(november) FROM table_name_50 WHERE february > 8.53 AND march = 20.21 AND september < 7.9
What is the total number for November, larger than 8.53 in February, 20.21 in March, and less than 7.9 in September?
CREATE TABLE table_name_50 (november VARCHAR, september VARCHAR, february VARCHAR, march VARCHAR)
SELECT team FROM table_name_74 WHERE rank = 10
Which team is ranked #10?
CREATE TABLE table_name_74 (team VARCHAR, rank VARCHAR)
SELECT birthplace FROM table_name_70 WHERE ring_name = "masunoyama tomoharu"
What is Birthplace, when Ring Name is Masunoyama Tomoharu?
CREATE TABLE table_name_70 (birthplace VARCHAR, ring_name VARCHAR)
SELECT MAX(km_from_kingston) FROM table_name_61 WHERE mi_from_kingston < 108 AND length_meters = 260.6
What is the highest Km From Kingston, when Mi From Kingston is less than 108, and when Length Meters is 260.6?
CREATE TABLE table_name_61 (km_from_kingston INTEGER, mi_from_kingston VARCHAR, length_meters VARCHAR)
SELECT MAX(weight) FROM table_name_44 WHERE number = 13
Number of 13 that has what highest weight?
CREATE TABLE table_name_44 (weight INTEGER, number VARCHAR)
SELECT province FROM table_27369069_1 WHERE stadium_capacity = "4,000"
Which province has the soccer stadium that holds 4,000 people?
CREATE TABLE table_27369069_1 (province VARCHAR, stadium_capacity VARCHAR)
SELECT grade FROM Highschooler GROUP BY grade HAVING COUNT(*) >= 4
Show me all grades that have at least 4 students.
CREATE TABLE Highschooler (grade VARCHAR)
SELECT stage FROM table_name_67 WHERE points_classification = "danilo di luca" AND mountains_classification = "josé rujano" AND general_classification = "danilo di luca"
What is the Stage when the points classification is Danilo Di Luca, Mountains classification is José Rujano, and general classification is Danilo Di Luca?
CREATE TABLE table_name_67 (stage VARCHAR, general_classification VARCHAR, points_classification VARCHAR, mountains_classification VARCHAR)
SELECT branding FROM table_10333757_1 WHERE group_owner = "Qantam of Cape Cod, LLC"
What is the Branding for Group Owner Qantam of Cape Cod, LLC?
CREATE TABLE table_10333757_1 (branding VARCHAR, group_owner VARCHAR)
SELECT AVG(crowd) FROM table_name_58 WHERE home_team = "geelong"
What was the crowd size when Geelong played at home?
CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT T1.name_full, T1.college_id FROM college AS T1 JOIN player_college AS T2 ON T1.college_id = T2.college_id GROUP BY T1.college_id ORDER BY COUNT(*) DESC LIMIT 1
what is the full name and id of the college with the largest number of baseball players?
CREATE TABLE player_college (college_id VARCHAR); CREATE TABLE college (name_full VARCHAR, college_id VARCHAR)
SELECT trainer FROM table_name_94 WHERE owner = "cherry valley farm"
Who is the trainer for Cherry Valley Farm?
CREATE TABLE table_name_94 (trainer VARCHAR, owner VARCHAR)
SELECT 1 AS st_leg FROM table_name_91 WHERE team_2 = "asil lysi"
What is the 1st leg when team 2 is Asil Lysi?
CREATE TABLE table_name_91 (team_2 VARCHAR)
SELECT MIN(goals) FROM table_name_80 WHERE name = "coe"
How many goals did coe get?
CREATE TABLE table_name_80 (goals INTEGER, name VARCHAR)
SELECT opponent FROM table_name_48 WHERE attendance = "73,369"
Which team did the Patriots play when there was a game attendance of 73,369?
CREATE TABLE table_name_48 (opponent VARCHAR, attendance VARCHAR)
SELECT isbn_us FROM table_name_55 WHERE title = "mission to venus"
What is ISBN US, when Title is "Mission To Venus"?
CREATE TABLE table_name_55 (isbn_us VARCHAR, title VARCHAR)
SELECT MIN(selection) FROM table_name_33 WHERE player = "jamaar taylor" AND round > 6
Which Selection has a Player of jamaar taylor, and a Round larger than 6?
CREATE TABLE table_name_33 (selection INTEGER, player VARCHAR, round VARCHAR)
SELECT player FROM table_name_8 WHERE school = "george washington high school"
Which Player attended George Washington High School?
CREATE TABLE table_name_8 (player VARCHAR, school VARCHAR)