answer
stringlengths
32
484
context
stringlengths
27
489
question
stringlengths
12
244
SELECT SUM(played) FROM table_name_52 WHERE points = 38 AND bp > 5
CREATE TABLE table_name_52 (played INTEGER, points VARCHAR, bp VARCHAR)
Played that has a Points of 38, and a B.P. larger than 5 has what sum?
SELECT COUNT(played) FROM table_name_25 WHERE bp = 0 AND pts_agst < 247
CREATE TABLE table_name_25 (played VARCHAR, bp VARCHAR, pts_agst VARCHAR)
B.P. of 0, and a Pts Agst smaller than 247 has how many total number of played?
SELECT COUNT(position) FROM table_name_22 WHERE pts_agst = 572 AND pts_for > 346
CREATE TABLE table_name_22 (position VARCHAR, pts_agst VARCHAR, pts_for VARCHAR)
Pts Agst of 572, and a Pts For larger than 346 has what total number of position?
SELECT MAX(rounds) FROM table_name_40 WHERE truck_s_ = "chevrolet silverado" AND team = "rbr enterprises"
CREATE TABLE table_name_40 (rounds INTEGER, truck_s_ VARCHAR, team VARCHAR)
What is the most number of rounds that the Team from RBR Enterprises and having a Chevrolet Silverado ran?
SELECT crew_chief FROM table_name_73 WHERE team = "make motorsports"
CREATE TABLE table_name_73 (crew_chief VARCHAR, team VARCHAR)
Who was the crew chief for the team from Make Motorsports?
SELECT driver_s_ FROM table_name_34 WHERE crew_chief = "nick carlson"
CREATE TABLE table_name_34 (driver_s_ VARCHAR, crew_chief VARCHAR)
Who was the driver for crew chief Nick Carlson?
SELECT truck_s_ FROM table_name_23 WHERE driver_s_ = "brett moffitt" AND team = "hattori racing enterprises"
CREATE TABLE table_name_23 (truck_s_ VARCHAR, driver_s_ VARCHAR, team VARCHAR)
What is the truck used by Brett Moffitt, from Hattori Racing Enterprises?
SELECT losing_bonus FROM table_name_51 WHERE drawn = "1" AND try_bonus = "10"
CREATE TABLE table_name_51 (losing_bonus VARCHAR, drawn VARCHAR, try_bonus VARCHAR)
What was the losing bonus that had 1 draw and a 10 try bonus?
SELECT drawn FROM table_name_99 WHERE tries_for = "34"
CREATE TABLE table_name_99 (drawn VARCHAR, tries_for VARCHAR)
How many resulted in draws with 34 tries for?
SELECT tries_against FROM table_name_69 WHERE points_against = "520"
CREATE TABLE table_name_69 (tries_against VARCHAR, points_against VARCHAR)
How many tries against were there with 520 points against?
SELECT tries_for FROM table_name_38 WHERE points_against = "479"
CREATE TABLE table_name_38 (tries_for VARCHAR, points_against VARCHAR)
How many tries for were there while having 479 points against?
SELECT lost FROM table_name_52 WHERE points_against = "479"
CREATE TABLE table_name_52 (lost VARCHAR, points_against VARCHAR)
How many resulted in a loss with 479 points against?
SELECT try_bonus FROM table_name_67 WHERE points = "58"
CREATE TABLE table_name_67 (try_bonus VARCHAR, points VARCHAR)
What is the try bonus when there were 58 points?
SELECT opponent FROM table_name_2 WHERE record = "44-28"
CREATE TABLE table_name_2 (opponent VARCHAR, record VARCHAR)
Which opponent has a record of 44-28?
SELECT opponent FROM table_name_32 WHERE attendance = "40,560"
CREATE TABLE table_name_32 (opponent VARCHAR, attendance VARCHAR)
Which opponent has an attendance of 40,560?
SELECT loss FROM table_name_23 WHERE date = "june 13"
CREATE TABLE table_name_23 (loss VARCHAR, date VARCHAR)
Which loss was on June 13?
SELECT attendance FROM table_name_86 WHERE record = "43-28"
CREATE TABLE table_name_86 (attendance VARCHAR, record VARCHAR)
What is the attendance that has a record of 43-28?
SELECT date FROM table_name_69 WHERE record = "43-28"
CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR)
What was the date of the record of 43-28?
SELECT AVG(goalsagainst) FROM table_name_40 WHERE points = 108 AND lost < 14
CREATE TABLE table_name_40 (goalsagainst INTEGER, points VARCHAR, lost VARCHAR)
Goalsagainst that has a Points of 108, and a Lost smaller than 14 has what average?
SELECT COUNT(games) FROM table_name_43 WHERE lost = 42 AND goalsfor > 195
CREATE TABLE table_name_43 (games VARCHAR, lost VARCHAR, goalsfor VARCHAR)
Lost of 42, and a Goalsfor larger than 195 contains how many number of games?
SELECT MIN(goalsfor) FROM table_name_38 WHERE season = "2002–03" AND lost > 14
CREATE TABLE table_name_38 (goalsfor INTEGER, season VARCHAR, lost VARCHAR)
Season of 2002–03, and a Lost larger than 14, what is the lowest goals?
SELECT AVG(points) FROM table_name_88 WHERE goalsagainst = 285 AND season = "2006–07" AND games < 70
CREATE TABLE table_name_88 (points INTEGER, games VARCHAR, goalsagainst VARCHAR, season VARCHAR)
Goalsagainst of 285, and a Season of 2006–07, and a Games smaller than 70 has what average points?
SELECT MAX(goalsagainst) FROM table_name_35 WHERE goalsfor = 288 AND points < 85
CREATE TABLE table_name_35 (goalsagainst INTEGER, goalsfor VARCHAR, points VARCHAR)
Goals for of 288, and Points smaller than 85 what is the highest goals against?
SELECT player FROM table_name_26 WHERE original_team = "los angeles kings"
CREATE TABLE table_name_26 (player VARCHAR, original_team VARCHAR)
What player originally played for the Los Angeles Kings?
SELECT offer_team FROM table_name_24 WHERE date = "july 29, 1994"
CREATE TABLE table_name_24 (offer_team VARCHAR, date VARCHAR)
What Offer Team has a date of July 29, 1994?
SELECT result FROM table_name_79 WHERE offer_team = "new york rangers" AND player = "adam graves"
CREATE TABLE table_name_79 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
What is the Result that has the New York Rangers as the Offer Team and Adam Graves as the Player?
SELECT date FROM table_name_26 WHERE original_team = "vancouver canucks" AND result = "matched" AND player = "ryan kesler"
CREATE TABLE table_name_26 (date VARCHAR, player VARCHAR, original_team VARCHAR, result VARCHAR)
What date has Vancouver Canucks as the original team, Ryan Kesler as the player, and matched as the Result?
SELECT offer_team FROM table_name_59 WHERE player = "david backes"
CREATE TABLE table_name_59 (offer_team VARCHAR, player VARCHAR)
What was David Backes' Offer Team?
SELECT result FROM table_name_73 WHERE offer_team = "philadelphia flyers" AND player = "chris gratton"
CREATE TABLE table_name_73 (result VARCHAR, offer_team VARCHAR, player VARCHAR)
What is the result of Chris Gratton and Philadelphia Flyers as the Offer Team?
SELECT AVG(game) FROM table_name_23 WHERE venue = "away" AND attendance = 5 OFFSET 000
CREATE TABLE table_name_23 (game INTEGER, venue VARCHAR, attendance VARCHAR)
Which game had an attendance of 5,000 and was away?
SELECT date FROM table_name_82 WHERE year = 1786
CREATE TABLE table_name_82 (date VARCHAR, year VARCHAR)
When was the date in 1786?
SELECT MIN(attendance) FROM table_name_15 WHERE opponent = "devil rays" AND date = "may 13"
CREATE TABLE table_name_15 (attendance INTEGER, opponent VARCHAR, date VARCHAR)
How low is the Attendance that has an Opponent of devil rays and a Date of may 13?
SELECT MAX(attendance) FROM table_name_68 WHERE record = "29-25"
CREATE TABLE table_name_68 (attendance INTEGER, record VARCHAR)
How high is the Attendance with a Record of 29-25?
SELECT opponent FROM table_name_45 WHERE loss = "wells (6-2)"
CREATE TABLE table_name_45 (opponent VARCHAR, loss VARCHAR)
Which Opponent has a lost of wells (6-2)?
SELECT team_1 FROM table_name_7 WHERE team_2 = "(g14)morolo"
CREATE TABLE table_name_7 (team_1 VARCHAR, team_2 VARCHAR)
What is the team 1 with a (g14)morolo team 2?
SELECT AVG(total) FROM table_name_8 WHERE silver < 1 AND gold = 0 AND nation = "switzerland" AND bronze < 2
CREATE TABLE table_name_8 (total INTEGER, bronze VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
What is the average Total, when the value for Silver is less than 1, when the value for Gold is 0, when the Nation is Switzerland, and when the value for Bronze is 2?
SELECT AVG(total) FROM table_name_52 WHERE nation = "sweden" AND bronze < 3
CREATE TABLE table_name_52 (total INTEGER, nation VARCHAR, bronze VARCHAR)
What is the average Total, when the Nation is Sweden, and when the value for Bronze is less than 3?
SELECT AVG(gold) FROM table_name_98 WHERE silver > 2 AND nation = "west germany"
CREATE TABLE table_name_98 (gold INTEGER, silver VARCHAR, nation VARCHAR)
What is the average value for Gold, when the value for Silver is greater than 2, and when the Nation is West Germany?
SELECT COUNT(gold) FROM table_name_31 WHERE bronze < 0
CREATE TABLE table_name_31 (gold VARCHAR, bronze INTEGER)
What is the value for Gold, when the value for Bronze is less than 0?
SELECT area FROM table_name_61 WHERE authority = "state" AND decile > 6 AND gender = "coed" AND roll = 26
CREATE TABLE table_name_61 (area VARCHAR, roll VARCHAR, gender VARCHAR, authority VARCHAR, decile VARCHAR)
Where is the coed school with state authority, a Decile larger than 6 and 26 enrolled?
SELECT AVG(roll) FROM table_name_18 WHERE name = "fairfield school"
CREATE TABLE table_name_18 (roll INTEGER, name VARCHAR)
What is the average roll for Fairfield school?
SELECT name FROM table_name_5 WHERE roll > 26 AND area = "fairfield"
CREATE TABLE table_name_5 (name VARCHAR, roll VARCHAR, area VARCHAR)
Which school has a roll larger than 26 and is located in Fairfield?
SELECT COUNT(points) FROM table_name_34 WHERE chassis = "porsche 718" AND year < 1964
CREATE TABLE table_name_34 (points VARCHAR, chassis VARCHAR, year VARCHAR)
how many points are there for a Chassis of porsche 718, and a Year smaller than 1964?
SELECT engine FROM table_name_27 WHERE points = 0 AND chassis = "porsche 718" AND year = 1961
CREATE TABLE table_name_27 (engine VARCHAR, year VARCHAR, points VARCHAR, chassis VARCHAR)
what is the engine that saw 0 points, and a Chassis of porsche 718, in 1961?
SELECT engine FROM table_name_57 WHERE chassis = "porsche 718" AND points = 0 AND year < 1964
CREATE TABLE table_name_57 (engine VARCHAR, year VARCHAR, chassis VARCHAR, points VARCHAR)
what is the engine that saw a Chassis of porsche 718, and 0 points, prior to 1964?
SELECT bronze FROM table_name_85 WHERE nation = "poland"
CREATE TABLE table_name_85 (bronze VARCHAR, nation VARCHAR)
Which bronze has a Nation of poland?
SELECT gold FROM table_name_15 WHERE silver = "3" AND total = "5"
CREATE TABLE table_name_15 (gold VARCHAR, silver VARCHAR, total VARCHAR)
Which gold has 3 silver and a Total of 5?
SELECT gold FROM table_name_65 WHERE bronze = "1" AND rank = "47" AND nation = "spain"
CREATE TABLE table_name_65 (gold VARCHAR, nation VARCHAR, bronze VARCHAR, rank VARCHAR)
Which gold has a Bronze of 1, a Rank of 47, and a Nation of spain?
SELECT nation FROM table_name_46 WHERE silver = "1" AND gold = "0" AND total = "1"
CREATE TABLE table_name_46 (nation VARCHAR, total VARCHAR, silver VARCHAR, gold VARCHAR)
Which nation has a Silver of 1, a Gold of 0, and a Total of 1?
SELECT bronze FROM table_name_66 WHERE rank = "37"
CREATE TABLE table_name_66 (bronze VARCHAR, rank VARCHAR)
Which bronze has a Rank of 37?
SELECT silver FROM table_name_76 WHERE bronze = "1" AND total = "4" AND nation = "slovakia"
CREATE TABLE table_name_76 (silver VARCHAR, nation VARCHAR, bronze VARCHAR, total VARCHAR)
Which silver has a Bronze of 1, a Total of 4, and a Nation of slovakia?
SELECT MIN(laps) FROM table_name_16 WHERE qual = "138.750"
CREATE TABLE table_name_16 (laps INTEGER, qual VARCHAR)
What car had the fewest laps with a qual of 138.750?
SELECT laps FROM table_name_3 WHERE qual = "138.750"
CREATE TABLE table_name_3 (laps VARCHAR, qual VARCHAR)
How many laps were there for the car with a qual of 138.750?
SELECT rank FROM table_name_72 WHERE qual = "134.288"
CREATE TABLE table_name_72 (rank VARCHAR, qual VARCHAR)
For the car with a qual of 134.288, what was the rank?
SELECT finish FROM table_name_95 WHERE year = "1953"
CREATE TABLE table_name_95 (finish VARCHAR, year VARCHAR)
What was the finishing place for 1953?
SELECT name FROM table_name_73 WHERE laid_down = "22 september 1939" AND commissioned = "30 august 1941"
CREATE TABLE table_name_73 (name VARCHAR, laid_down VARCHAR, commissioned VARCHAR)
Tell me the name for commissioned of 30 august 1941 and laid down of 22 september 1939
SELECT score FROM table_name_70 WHERE loss = "birkbeck (0–3)"
CREATE TABLE table_name_70 (score VARCHAR, loss VARCHAR)
What is the score when there was a Loss of birkbeck (0–3)?
SELECT gpu‡ FROM table_name_31 WHERE application = "cushaw"
CREATE TABLE table_name_31 (gpu‡ VARCHAR, application VARCHAR)
Which GPU has the cushaw application?
SELECT expected_speed_up† FROM table_name_47 WHERE application = "gpu-hmmer"
CREATE TABLE table_name_47 (expected_speed_up† VARCHAR, application VARCHAR)
What is the expected speed up of the gpu-hmmer application?
SELECT host_team FROM table_name_32 WHERE stadium = "cleveland browns stadium"
CREATE TABLE table_name_32 (host_team VARCHAR, stadium VARCHAR)
Who was the host team at the game at the Cleveland Browns Stadium?
SELECT final_score FROM table_name_94 WHERE visiting_team = "buffalo bills"
CREATE TABLE table_name_94 (final_score VARCHAR, visiting_team VARCHAR)
What was the final score when the Buffalo Bills were the visiting team?
SELECT final_score FROM table_name_27 WHERE visiting_team = "denver broncos"
CREATE TABLE table_name_27 (final_score VARCHAR, visiting_team VARCHAR)
What was the final score when the Denver Broncos were the visiting team?
SELECT date FROM table_name_48 WHERE stadium = "alltel stadium" AND final_score = "6-20"
CREATE TABLE table_name_48 (date VARCHAR, stadium VARCHAR, final_score VARCHAR)
What is the date that a game at the Alltel Stadium had a final score of 6-20?
SELECT SUM(2 AS nd_pl) FROM table_name_14 WHERE motorcycle = "ducati 916" AND wins < 7
CREATE TABLE table_name_14 (motorcycle VARCHAR, wins VARCHAR)
How many times was the motorcycle ducati 916 2nd place when wins is less than 7?
SELECT catalog FROM table_name_31 WHERE label = "alfa records" AND date = "november 21, 1980"
CREATE TABLE table_name_31 (catalog VARCHAR, label VARCHAR, date VARCHAR)
What Catalog has a label of Alfa records and a date of November 21, 1980?
SELECT catalog FROM table_name_68 WHERE format = "ed remaster cd" AND date = "december 19, 2001"
CREATE TABLE table_name_68 (catalog VARCHAR, format VARCHAR, date VARCHAR)
What catalog has a format of ED remaster CD and a date of December 19, 2001?
SELECT date FROM table_name_35 WHERE label = "alfa records"
CREATE TABLE table_name_35 (date VARCHAR, label VARCHAR)
What Date has a label of alfa records?
SELECT region FROM table_name_46 WHERE label = "alfa records" AND date = "january 23, 1987"
CREATE TABLE table_name_46 (region VARCHAR, label VARCHAR, date VARCHAR)
What region has the label of alfa records and the date of January 23, 1987?
SELECT date FROM table_name_72 WHERE format = "cd" AND catalog = "alca-274"
CREATE TABLE table_name_72 (date VARCHAR, format VARCHAR, catalog VARCHAR)
What date has the format of CD and catalog of alca-274?
SELECT date FROM table_name_40 WHERE format = "cd"
CREATE TABLE table_name_40 (date VARCHAR, format VARCHAR)
What date has the format of cd?
SELECT decile FROM table_name_33 WHERE name = "st mary's catholic school"
CREATE TABLE table_name_33 (decile VARCHAR, name VARCHAR)
What is the Decile number for St Mary's Catholic School?
SELECT authority FROM table_name_23 WHERE name = "hauturu school"
CREATE TABLE table_name_23 (authority VARCHAR, name VARCHAR)
Which Authority is set for Hauturu School?
SELECT name FROM table_name_60 WHERE area = "kio kio"
CREATE TABLE table_name_60 (name VARCHAR, area VARCHAR)
What School is in the kio kio area?
SELECT race FROM table_name_61 WHERE position = "5th"
CREATE TABLE table_name_61 (race VARCHAR, position VARCHAR)
What race is in the 5th position?
SELECT replica FROM table_name_46 WHERE race = "supersport race 1"
CREATE TABLE table_name_46 (replica VARCHAR, race VARCHAR)
What Replica has a race of supersport race 1?
SELECT replica FROM table_name_82 WHERE position = "5th"
CREATE TABLE table_name_82 (replica VARCHAR, position VARCHAR)
What replica has the 5th position?
SELECT decimal FROM table_name_9 WHERE byte_string = "standard" AND model = "sigma 7"
CREATE TABLE table_name_9 (decimal VARCHAR, byte_string VARCHAR, model VARCHAR)
When a Sigma 7 has a standard byte string, what is the value for the decimal?
SELECT byte_string FROM table_name_23 WHERE memory_map = "standard" AND decimal = "standard" AND floating_point = "standard" AND max_memory__kwords_ < 512
CREATE TABLE table_name_23 (byte_string VARCHAR, max_memory__kwords_ VARCHAR, floating_point VARCHAR, memory_map VARCHAR, decimal VARCHAR)
What is the value for the byte string when the memory map, decimal, and floating points are all standard and the max memory is smaller than 512?
SELECT model FROM table_name_90 WHERE byte_string = "standard" AND floating_point = "standard"
CREATE TABLE table_name_90 (model VARCHAR, byte_string VARCHAR, floating_point VARCHAR)
What model has both a standard byte string and floating-point?
SELECT memory_map FROM table_name_68 WHERE byte_string = "standard" AND max_memory__kwords_ > 128 AND model = "sigma 9"
CREATE TABLE table_name_68 (memory_map VARCHAR, model VARCHAR, byte_string VARCHAR, max_memory__kwords_ VARCHAR)
On a Sigma 9 with a standard byte string and more than 128 max memory, what is the value of the memory map?
SELECT decimal FROM table_name_19 WHERE byte_string = "standard" AND memory_map = "standard" AND max_memory__kwords_ = 512
CREATE TABLE table_name_19 (decimal VARCHAR, max_memory__kwords_ VARCHAR, byte_string VARCHAR, memory_map VARCHAR)
What is the decimal value when the memory map and byte string are standard, and the max memory is 512?
SELECT co_drivers FROM table_name_41 WHERE pos = "dnf" AND class = "gt1"
CREATE TABLE table_name_41 (co_drivers VARCHAR, pos VARCHAR, class VARCHAR)
Who was the co-driver in the DNF position in the GT1 class?
SELECT co_drivers FROM table_name_14 WHERE year < 1986 AND team = "martini lancia"
CREATE TABLE table_name_14 (co_drivers VARCHAR, year VARCHAR, team VARCHAR)
Which co-driver was part of team Martini Lancia earlier than 1986?
SELECT class FROM table_name_53 WHERE team = "le mans porsche team joest racing"
CREATE TABLE table_name_53 (class VARCHAR, team VARCHAR)
The Le Mans Porsche team Joest Racing is in which class?
SELECT build_date FROM table_name_65 WHERE total_produced = 146
CREATE TABLE table_name_65 (build_date VARCHAR, total_produced VARCHAR)
Name the build date for total produced of 146
SELECT model FROM table_name_54 WHERE specification = "dl-066"
CREATE TABLE table_name_54 (model VARCHAR, specification VARCHAR)
Name the model for specification of dl-066
SELECT power_output FROM table_name_29 WHERE model = "s-13"
CREATE TABLE table_name_29 (power_output VARCHAR, model VARCHAR)
Name the power output for model of s-13
SELECT worst_score FROM table_name_95 WHERE best_score = 36 AND worst_dancer_s_ = "john barnes"
CREATE TABLE table_name_95 (worst_score VARCHAR, best_score VARCHAR, worst_dancer_s_ VARCHAR)
What's the worst score for the worst dancer(s) john barnes, with a best score of 36?
SELECT worst_dancer_s_ FROM table_name_91 WHERE dance = "jive"
CREATE TABLE table_name_91 (worst_dancer_s_ VARCHAR, dance VARCHAR)
What's the worst dance of jive dancer(s)?
SELECT best_score FROM table_name_19 WHERE worst_dancer_s_ = "gethin jones/kenny logan"
CREATE TABLE table_name_19 (best_score VARCHAR, worst_dancer_s_ VARCHAR)
What's the best score, with the worst dancer(s) gethin jones/kenny logan?
SELECT AVG(best_score) FROM table_name_46 WHERE worst_score = 15
CREATE TABLE table_name_46 (best_score INTEGER, worst_score VARCHAR)
What's the best average score with a bad score of 15?
SELECT opponent FROM table_name_46 WHERE record = "66-69"
CREATE TABLE table_name_46 (opponent VARCHAR, record VARCHAR)
What is the name of the opponent that has a record of 66-69?
SELECT score FROM table_name_88 WHERE player = "olin dutra"
CREATE TABLE table_name_88 (score VARCHAR, player VARCHAR)
What was Olin Dutra's score?
SELECT score FROM table_name_22 WHERE player = "craig wood"
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)
What was Craig Wood's score?
SELECT score FROM table_name_22 WHERE player = "paul runyan"
CREATE TABLE table_name_22 (score VARCHAR, player VARCHAR)
What was Paul Runyan's score?
SELECT country FROM table_name_84 WHERE to_par = "e"
CREATE TABLE table_name_84 (country VARCHAR, to_par VARCHAR)
What country has a To par of e?
SELECT position FROM table_name_5 WHERE school = "villa park high school"
CREATE TABLE table_name_5 (position VARCHAR, school VARCHAR)
What position for the player from villa park high school?
SELECT total FROM table_name_70 WHERE nation = "czech republic"
CREATE TABLE table_name_70 (total VARCHAR, nation VARCHAR)
What is the total number of medals by the Czech republic?
SELECT SUM(gold) FROM table_name_56 WHERE rank < 2 AND bronze > 8
CREATE TABLE table_name_56 (gold INTEGER, rank VARCHAR, bronze VARCHAR)
How many gold medals does the country ranked higher than 2 with more than 8 bronze have?
SELECT MAX(rank) FROM table_name_98 WHERE gold < 3 AND silver > 2 AND total < 5
CREATE TABLE table_name_98 (rank INTEGER, total VARCHAR, gold VARCHAR, silver VARCHAR)
What is the highest rank a country with less than 3 gold, more than 2 silver, and less than 5 total medals has?