answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT MAX(week) FROM table_name_29 WHERE opponent = "tampa bay buccaneers"
CREATE TABLE table_name_29 (week INTEGER, opponent VARCHAR)
What was the latest week that the Tampa Bay Buccaneers were an opponent?
SELECT MIN(tries) FROM table_name_6 WHERE club = "leicester tigers" AND points < 207
CREATE TABLE table_name_6 (tries INTEGER, club VARCHAR, points VARCHAR)
Name the fewest tries for leicester tigers with points less than 207
SELECT date FROM table_name_73 WHERE opponent = "st albans city" AND result = "drew 0-0"
CREATE TABLE table_name_73 (date VARCHAR, opponent VARCHAR, result VARCHAR)
Name the date of st albans city for result of drew 0-0
SELECT venue FROM table_name_89 WHERE date = "15 august 2006"
CREATE TABLE table_name_89 (venue VARCHAR, date VARCHAR)
Name the venue for 15 august 2006
SELECT MAX(attendance) FROM table_name_4 WHERE opponent = "tamworth" AND venue = "home"
CREATE TABLE table_name_4 (attendance INTEGER, opponent VARCHAR, venue VARCHAR)
Name the most attendance for tamworth with home venue
SELECT MIN(attendance) FROM table_name_82 WHERE date = "10 october 2006"
CREATE TABLE table_name_82 (attendance INTEGER, date VARCHAR)
Name the least attendance for 10 october 2006
SELECT AVG(bronze) FROM table_name_12 WHERE total = 19 AND silver = 8 AND rank = "31"
CREATE TABLE table_name_12 (bronze INTEGER, rank VARCHAR, total VARCHAR, silver VARCHAR)
I want the average bronze for total of 19 and silver of 8 with rank of 31
SELECT AVG(bronze) FROM table_name_41 WHERE rank = "43" AND total < 11
CREATE TABLE table_name_41 (bronze INTEGER, rank VARCHAR, total VARCHAR)
Tell me the average bronze for rank of 43 and total less than 11
SELECT format FROM table_name_31 WHERE frequency = "1290 khz"
CREATE TABLE table_name_31 (format VARCHAR, frequency VARCHAR)
Say the frequency of 1290 khz
SELECT timeslot FROM table_name_21 WHERE calls = "wrko"
CREATE TABLE table_name_21 (timeslot VARCHAR, calls VARCHAR)
Tell me the timeslot of calls of wrko
SELECT format FROM table_name_56 WHERE calls = "wrko"
CREATE TABLE table_name_56 (format VARCHAR, calls VARCHAR)
Tell me the format for calls of wrko
SELECT calls FROM table_name_88 WHERE frequency = "1290 khz"
CREATE TABLE table_name_88 (calls VARCHAR, frequency VARCHAR)
Tell me the calls for frequency of 1290 khz
SELECT branding FROM table_name_88 WHERE frequency = "680 khz"
CREATE TABLE table_name_88 (branding VARCHAR, frequency VARCHAR)
Tell me the branding for frequency of 680 khz
SELECT timeslot FROM table_name_74 WHERE calls = "whyn"
CREATE TABLE table_name_74 (timeslot VARCHAR, calls VARCHAR)
Tell me the timeslot for calls of whyn
SELECT COUNT(time) FROM table_name_56 WHERE country = "bolivia" AND lane > 6
CREATE TABLE table_name_56 (time VARCHAR, country VARCHAR, lane VARCHAR)
For how long did Bolivia have a lane greater than 6?
SELECT SUM(lane) FROM table_name_48 WHERE heat_rank = 7
CREATE TABLE table_name_48 (lane INTEGER, heat_rank VARCHAR)
In heat rank 7, what is the sum of lanes?
SELECT country FROM table_name_72 WHERE heat_rank < 8 AND overall_rank = "56"
CREATE TABLE table_name_72 (country VARCHAR, heat_rank VARCHAR, overall_rank VARCHAR)
Which country is ranked 56 overall and has a heat rank smaller than 8?
SELECT MAX(lane) FROM table_name_24 WHERE overall_rank = "79" AND time > 26.1
CREATE TABLE table_name_24 (lane INTEGER, overall_rank VARCHAR, time VARCHAR)
What is the greatest lane with an overall rank of 79 and a time larger than 26.1?
SELECT MAX(week) FROM table_name_80 WHERE venue = "metropolitan stadium" AND attendance > 47 OFFSET 644
CREATE TABLE table_name_80 (week INTEGER, venue VARCHAR, attendance VARCHAR)
Tell me the highest week for metropolitan stadium for attendance more than 47,644
SELECT SUM(played) FROM table_name_25 WHERE manager = "serik berdalin" AND drawn > 4
CREATE TABLE table_name_25 (played INTEGER, manager VARCHAR, drawn VARCHAR)
Name the sum of played for serik berdalin and drawn more than 4
SELECT MAX(total_seats) FROM table_name_28 WHERE pr_seats = 48 AND district_seats > 73
CREATE TABLE table_name_28 (total_seats INTEGER, pr_seats VARCHAR, district_seats VARCHAR)
Who had the highest total PR seats of 48 with a District seat larger than than 73?
SELECT party FROM table_name_97 WHERE year = "1955" AND candidate = "thomas mitchell"
CREATE TABLE table_name_97 (party VARCHAR, year VARCHAR, candidate VARCHAR)
In 1955 which party did Thomas Mitchell belong to?
SELECT days FROM table_name_79 WHERE party = "ulster unionist" AND constituency = "fermanagh and south tyrone"
CREATE TABLE table_name_79 (days VARCHAR, party VARCHAR, constituency VARCHAR)
What are the number of days did the ulster unionist Party have the constituate fermanagh and south tyrone?
SELECT days FROM table_name_18 WHERE year = "1945" AND constituency = "heywood and radcliffe"
CREATE TABLE table_name_18 (days VARCHAR, year VARCHAR, constituency VARCHAR)
What are the number of days in 1945 where the constituent was heywood and radcliffe?
SELECT year FROM table_name_15 WHERE party = "liberal" AND constituency = "hazel grove"
CREATE TABLE table_name_15 (year VARCHAR, party VARCHAR, constituency VARCHAR)
What year was Hazel Grove the constituent for the liberal party?
SELECT AVG(laps) FROM table_name_74 WHERE grid > 12 AND bike = "ducati 999rs" AND rider = "dean ellison"
CREATE TABLE table_name_74 (laps INTEGER, rider VARCHAR, grid VARCHAR, bike VARCHAR)
Tell me the average Laps for grid larger than 12 and bikes of ducati 999rs for dean ellison
SELECT MAX(laps) FROM table_name_40 WHERE grid < 22 AND rider = "ruben xaus"
CREATE TABLE table_name_40 (laps INTEGER, grid VARCHAR, rider VARCHAR)
Tell me the highest Laps for grid less than 22 and riderS of ruben xaus
SELECT COUNT(grid) FROM table_name_14 WHERE rider = "james toseland"
CREATE TABLE table_name_14 (grid VARCHAR, rider VARCHAR)
Tell me the total number of grid for rider of james toseland
SELECT MIN(laps) FROM table_name_45 WHERE time = "35:26.734" AND grid > 2
CREATE TABLE table_name_45 (laps INTEGER, time VARCHAR, grid VARCHAR)
Tell me the least Laps for grid larger than 2 with 35:26.734
SELECT date FROM table_name_21 WHERE week = 13
CREATE TABLE table_name_21 (date VARCHAR, week VARCHAR)
Tell me the date with week of 13
SELECT AVG(week) FROM table_name_74 WHERE attendance = "48,113"
CREATE TABLE table_name_74 (week INTEGER, attendance VARCHAR)
Tell me the average week for attendance of 48,113
SELECT album FROM table_name_94 WHERE year < 2005 AND label = "ministry of sound"
CREATE TABLE table_name_94 (album VARCHAR, year VARCHAR, label VARCHAR)
Which Album had a year less than 2005 with a Label by Ministry of Sound?
SELECT album FROM table_name_32 WHERE year > 2005 AND country = "australia"
CREATE TABLE table_name_32 (album VARCHAR, year VARCHAR, country VARCHAR)
Which Album had a bigger year than 2005 and whose country was Australia?
SELECT song FROM table_name_33 WHERE label = "central station" AND album = "various - wild nights 4"
CREATE TABLE table_name_33 (song VARCHAR, label VARCHAR, album VARCHAR)
Which song had Central Station as a label and whose album was Various - Wild Nights 4?
SELECT venue FROM table_name_63 WHERE opponent = "zimbabwe"
CREATE TABLE table_name_63 (venue VARCHAR, opponent VARCHAR)
Where did Zimbabwe play?
SELECT date FROM table_name_68 WHERE opponent = "canada"
CREATE TABLE table_name_68 (date VARCHAR, opponent VARCHAR)
What is the date when Canada played?
SELECT MIN(silver) FROM table_name_26 WHERE rank = 9 AND bronze < 2
CREATE TABLE table_name_26 (silver INTEGER, rank VARCHAR, bronze VARCHAR)
Tell me the lowest silver for rank of 9 and bronze less than 2
SELECT report FROM table_name_66 WHERE winning_driver = "raymond sommer"
CREATE TABLE table_name_66 (report VARCHAR, winning_driver VARCHAR)
Name the report for raymond sommer
SELECT winning_driver FROM table_name_41 WHERE name = "monaco grand prix"
CREATE TABLE table_name_41 (winning_driver VARCHAR, name VARCHAR)
Name the winning driver for monaco grand prix
SELECT circuit FROM table_name_95 WHERE winning_driver = "marcel lehoux"
CREATE TABLE table_name_95 (circuit VARCHAR, winning_driver VARCHAR)
Name the circuit for marcel lehoux
SELECT report FROM table_name_48 WHERE winning_driver = "per-viktor widengren" AND winning_constructor = "alfa romeo"
CREATE TABLE table_name_48 (report VARCHAR, winning_driver VARCHAR, winning_constructor VARCHAR)
Name the report for per-viktor widengren and alfa romeo
SELECT date FROM table_name_50 WHERE location = "warsaw" AND year = 1929
CREATE TABLE table_name_50 (date VARCHAR, location VARCHAR, year VARCHAR)
Tell me the date for warsaw 1929
SELECT result FROM table_name_8 WHERE location = "warsaw" AND year = 1929
CREATE TABLE table_name_8 (result VARCHAR, location VARCHAR, year VARCHAR)
Tell me the result for warsaw 1929
SELECT result FROM table_name_34 WHERE location = "harrogate"
CREATE TABLE table_name_34 (result VARCHAR, location VARCHAR)
Tell me the result for harrogate
SELECT overall_rank FROM table_name_50 WHERE swimmer = "roland schoeman"
CREATE TABLE table_name_50 (overall_rank VARCHAR, swimmer VARCHAR)
Tell me the overall rank for roland schoeman
SELECT SUM(silver) FROM table_name_45 WHERE rank > 1 AND gold = 4
CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, gold VARCHAR)
How many Silver medals did nation who is ranked greater than 1 and has 4 Gold medals have?
SELECT AVG(total) FROM table_name_59 WHERE silver > 6 AND gold < 8
CREATE TABLE table_name_59 (total INTEGER, silver VARCHAR, gold VARCHAR)
Which nation has more than 6 Silver medals and fewer than 8 Gold medals?
SELECT AVG(rank) FROM table_name_51 WHERE total < 24 AND gold > 7
CREATE TABLE table_name_51 (rank INTEGER, total VARCHAR, gold VARCHAR)
What is the rank of the Nation that has fewer than 24 total medals are more than 7 Gold medals?
SELECT MIN(rank) FROM table_name_75 WHERE bronze > 1 AND gold < 4
CREATE TABLE table_name_75 (rank INTEGER, bronze VARCHAR, gold VARCHAR)
What is the rank of the nation that has more than 1 Bronze medals and fewer than 4 Gold medals?
SELECT SUM(silver) FROM table_name_92 WHERE gold = 4 AND nation = "belarus (blr)" AND bronze > 4
CREATE TABLE table_name_92 (silver INTEGER, bronze VARCHAR, gold VARCHAR, nation VARCHAR)
How many silver medals does Belarus (blr) along with 4 gold and 4 bronze?
SELECT MAX(rank) FROM table_name_44 WHERE nation = "belarus (blr)" AND total < 15
CREATE TABLE table_name_44 (rank INTEGER, nation VARCHAR, total VARCHAR)
What rank is Belarus (BLR), which earned 15 medals total?
SELECT name FROM table_name_37 WHERE date = "24 september"
CREATE TABLE table_name_37 (name VARCHAR, date VARCHAR)
What was the name of the race on 24 September?
SELECT name FROM table_name_72 WHERE date = "9 july"
CREATE TABLE table_name_72 (name VARCHAR, date VARCHAR)
What is the name of the race on 9 July?
SELECT circuit FROM table_name_67 WHERE winning_constructor = "maserati" AND winning_drivers = "giuseppe campari"
CREATE TABLE table_name_67 (circuit VARCHAR, winning_constructor VARCHAR, winning_drivers VARCHAR)
What was the race that was won by a Maserati being driven by Giuseppe Campari?
SELECT date FROM table_name_81 WHERE winning_drivers = "louis chiron"
CREATE TABLE table_name_81 (date VARCHAR, winning_drivers VARCHAR)
What date was the race won by Louis Chiron?
SELECT winning_constructor FROM table_name_81 WHERE winning_drivers = "tazio nuvolari"
CREATE TABLE table_name_81 (winning_constructor VARCHAR, winning_drivers VARCHAR)
What brand of vehicle won a race driven by Tazio Nuvolari?
SELECT name FROM table_name_63 WHERE winning_drivers = "tazio nuvolari"
CREATE TABLE table_name_63 (name VARCHAR, winning_drivers VARCHAR)
What race was won by Tazio Nuvolari?
SELECT result FROM table_name_46 WHERE week < 4 AND date = "september 7, 1986"
CREATE TABLE table_name_46 (result VARCHAR, week VARCHAR, date VARCHAR)
Tell me the result for week less than 4 and september 7, 1986
SELECT result FROM table_name_33 WHERE week = 3
CREATE TABLE table_name_33 (result VARCHAR, week VARCHAR)
Tell me the result for week of 3
SELECT MIN(week) FROM table_name_77 WHERE attendance < 32 OFFSET 738
CREATE TABLE table_name_77 (week INTEGER, attendance INTEGER)
Tell me the lowest week for attedance less thaan 32,738
SELECT ship FROM table_name_52 WHERE captain = "lieutenant montagu verling"
CREATE TABLE table_name_52 (ship VARCHAR, captain VARCHAR)
Tell me the ship for lieutenant montagu verling
SELECT class FROM table_name_35 WHERE rank = "admiral" AND ship = "hms frobisher"
CREATE TABLE table_name_35 (class VARCHAR, rank VARCHAR, ship VARCHAR)
Tell me the class for admiral and hms frobisher
SELECT guns FROM table_name_63 WHERE class = "third-rate ship of the line" AND rank = "vice-admiral" AND year = "1802"
CREATE TABLE table_name_63 (guns VARCHAR, year VARCHAR, class VARCHAR, rank VARCHAR)
Tell me the guns for third-rate ship of the line and rank of vice-admiral with year of 1802
SELECT captain FROM table_name_23 WHERE year = "1774" AND guns = "14"
CREATE TABLE table_name_23 (captain VARCHAR, year VARCHAR, guns VARCHAR)
Tell me the captain for 1774 and guns of 14
SELECT captain FROM table_name_15 WHERE guns = "28"
CREATE TABLE table_name_15 (captain VARCHAR, guns VARCHAR)
Tell me the captain for guns of 28
SELECT status FROM table_name_15 WHERE eliminated = "anton dela paz"
CREATE TABLE table_name_15 (status VARCHAR, eliminated VARCHAR)
Tell me the status of eliminated of anton dela paz
SELECT finalists FROM table_name_40 WHERE week__number < 2
CREATE TABLE table_name_40 (finalists VARCHAR, week__number INTEGER)
Tell me the finalists for week # less than 2
SELECT eliminated FROM table_name_83 WHERE week__number > 4
CREATE TABLE table_name_83 (eliminated VARCHAR, week__number INTEGER)
Tell me the eliminated for week # larger than 4
SELECT AVG(round) FROM table_name_32 WHERE time = "5:00" AND event = "ufc 78"
CREATE TABLE table_name_32 (round INTEGER, time VARCHAR, event VARCHAR)
At the UFC 78, what is the average round when the time is 5:00?
SELECT time FROM table_name_43 WHERE res = "draw"
CREATE TABLE table_name_43 (time VARCHAR, res VARCHAR)
When there was a draw, what was the time?
SELECT SUM(points) FROM table_name_8 WHERE year = 2010 AND races > 14 AND fl < 0
CREATE TABLE table_name_8 (points INTEGER, fl VARCHAR, year VARCHAR, races VARCHAR)
What is the sum of points in 2010 when the driver had more than 14 races and an F.L. of less than 0?
SELECT result FROM table_name_67 WHERE week < 2
CREATE TABLE table_name_67 (result VARCHAR, week INTEGER)
What was the outcome of the game that had a week number of less than 2?
SELECT heat_ & _lane FROM table_name_25 WHERE name = "thi hue pham"
CREATE TABLE table_name_25 (heat_ VARCHAR, _lane VARCHAR, name VARCHAR)
What heat and what lane is thi hue pham in?
SELECT heat_ & _lane FROM table_name_72 WHERE time = "1:01.12"
CREATE TABLE table_name_72 (heat_ VARCHAR, _lane VARCHAR, time VARCHAR)
What Heat & Lane is the person who has a time of 1:01.12?
SELECT laps FROM table_name_3 WHERE driver = "fernando alonso"
CREATE TABLE table_name_3 (laps VARCHAR, driver VARCHAR)
How many laps did Fernando Alonso do?
SELECT constructor FROM table_name_13 WHERE driver = "jenson button"
CREATE TABLE table_name_13 (constructor VARCHAR, driver VARCHAR)
What was Jenson Button's constructor?
SELECT package FROM table_name_17 WHERE eeprom < 128
CREATE TABLE table_name_17 (package VARCHAR, eeprom INTEGER)
Tell me the package for EEPROM less than 128
SELECT chip FROM table_name_63 WHERE frequency_[mhz] > 10
CREATE TABLE table_name_63 (chip VARCHAR, frequency_ VARCHAR, mhz VARCHAR)
Tell me the chip with frequency larger than 10
SELECT MAX(grid) FROM table_name_95 WHERE constructor = "toyota" AND driver = "jarno trulli"
CREATE TABLE table_name_95 (grid INTEGER, constructor VARCHAR, driver VARCHAR)
I want the highest Grid for Toyota and jarno trulli
SELECT AVG(laps) FROM table_name_39 WHERE grid > 22
CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER)
Tell me the average Laps for grid larger than 22
SELECT constructor FROM table_name_9 WHERE grid = 17
CREATE TABLE table_name_9 (constructor VARCHAR, grid VARCHAR)
Tell me the constructor for grid of 17
SELECT ukraine_career FROM table_name_26 WHERE lost > 1 AND drawn > 11
CREATE TABLE table_name_26 (ukraine_career VARCHAR, lost VARCHAR, drawn VARCHAR)
What years had a manager who lost more than 1 and drawn more than 11?
SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 2
CREATE TABLE table_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR)
what is the total win % of manager viktor prokopenko, when he lost fewer than 2?
SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 4
CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR)
When 4 clubs are involved, what is the average number of fixtures?
SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 15
CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR)
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
SELECT league FROM table_name_3 WHERE year = "1915/16"
CREATE TABLE table_name_3 (league VARCHAR, year VARCHAR)
Tell me the league for year of 1915/16
SELECT constructor FROM table_name_26 WHERE laps = 54
CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR)
What is the make of the car that drove 54 laps?
SELECT name FROM table_name_9 WHERE caps = 59
CREATE TABLE table_name_9 (name VARCHAR, caps VARCHAR)
Who has a 59 cap?
SELECT SUM(frequency_mhz) FROM table_name_43 WHERE erp_w < 1
CREATE TABLE table_name_43 (frequency_mhz INTEGER, erp_w INTEGER)
Tell me the sum of frequency for ERP W less than 1
SELECT MIN(ties_played) FROM table_name_15 WHERE debut = 1936
CREATE TABLE table_name_15 (ties_played INTEGER, debut VARCHAR)
Tell me the lowest ties played with a debut of 1936
SELECT venue FROM table_name_47 WHERE competition = "paris marathon"
CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR)
Where did the Paris Marathon occur?
SELECT capacity FROM table_name_15 WHERE stadium = "city park stadium"
CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR)
Tell me the capacity for city park stadium
SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen"
CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR)
Tell me the tournament for opponents of andrei pavel rogier wassen
SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–6"
CREATE TABLE table_name_20 (tournament VARCHAR, score_in_the_final VARCHAR)
Tell me the tournament for score in the final of 1–6, 3–6
SELECT opponents_in_the_final FROM table_name_68 WHERE score_in_the_final = "1–6, 2–6"
CREATE TABLE table_name_68 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR)
Tell me the opponents for score in the final of 1–6, 2–6
SELECT surface FROM table_name_72 WHERE date = "16 april 2007"
CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR)
Tell me the surface for 16 april 2007
SELECT AVG(pages) FROM table_name_77 WHERE isbn = "978-0-9766580-5-4"
CREATE TABLE table_name_77 (pages INTEGER, isbn VARCHAR)
I want the average pages for ISBN of 978-0-9766580-5-4
SELECT SUM(year) FROM table_name_84 WHERE pages = 244
CREATE TABLE table_name_84 (year INTEGER, pages VARCHAR)
Tell me the sum of year for 244 pages
SELECT title FROM table_name_99 WHERE pages = 96
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR)
Tell me the title for pages of 96
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865"
CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR)
What was the date of birth of a republican member of the United States House of Representatives who held the term of 1863-1865?