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