instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What grid did the team racing professionals race on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (grid VARCHAR, team VARCHAR)
SELECT grid FROM table_name_84 WHERE team = "racing professionals"
Write a SQL query that answers the following question: What car number had a race time of +0.3844?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (car_no VARCHAR, time_retired VARCHAR)
SELECT car_no FROM table_name_43 WHERE time_retired = "+0.3844"
Write a SQL query that answers the following question: How many points were scored by car number 10 that ended with a collision?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (points VARCHAR, time_retired VARCHAR, car_no VARCHAR)
SELECT points FROM table_name_20 WHERE time_retired = "collision" AND car_no = "10"
Write a SQL query that answers the following question: Who was the driver who had a final position of 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (driver VARCHAR, fin_pos VARCHAR)
SELECT driver FROM table_name_19 WHERE fin_pos = "14"
Write a SQL query that answers the following question: what is the money ($) for player justin leonard?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (money___$__ VARCHAR, player VARCHAR)
SELECT money___$__ FROM table_name_99 WHERE player = "justin leonard"
Write a SQL query that answers the following question: what is the place when the score is 76-69-71-70=286?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (place VARCHAR, score VARCHAR)
SELECT place FROM table_name_34 WHERE score = 76 - 69 - 71 - 70 = 286
Write a SQL query that answers the following question: what is the place for costantino rocca?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (place VARCHAR, player VARCHAR)
SELECT place FROM table_name_13 WHERE player = "costantino rocca"
Write a SQL query that answers the following question: what is the highest money ($) for bernhard langer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (money___ INTEGER, player VARCHAR)
SELECT MAX(money___) AS $__ FROM table_name_22 WHERE player = "bernhard langer"
Write a SQL query that answers the following question: What is the score of the FIFA report on October 13, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (score VARCHAR, report VARCHAR, date VARCHAR)
SELECT score FROM table_name_97 WHERE report = "fifa" AND date = "october 13, 2007"
Write a SQL query that answers the following question: What venue has a EAFF report on June 24, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (venue VARCHAR, report VARCHAR, date VARCHAR)
SELECT venue FROM table_name_31 WHERE report = "eaff" AND date = "june 24, 2007"
Write a SQL query that answers the following question: What is the venue on October 13, 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_60 WHERE date = "october 13, 2007"
Write a SQL query that answers the following question: At what Site was the Result W13-7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (site VARCHAR, result VARCHAR)
SELECT site FROM table_name_59 WHERE result = "w13-7"
Write a SQL query that answers the following question: What was the Attendance on 11/09/1946?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_88 WHERE date = "11/09/1946"
Write a SQL query that answers the following question: What Site had an Attendance of 45,000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (site VARCHAR, attendance VARCHAR)
SELECT site FROM table_name_20 WHERE attendance = "45,000"
Write a SQL query that answers the following question: What was the Result on 11/02/1946?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_84 WHERE date = "11/02/1946"
Write a SQL query that answers the following question: What mark has over 813 points in the United States, and a 0.152 react?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (mark VARCHAR, react VARCHAR, points VARCHAR, country VARCHAR)
SELECT mark FROM table_name_51 WHERE points > 813 AND country = "united states" AND react > 0.152
Write a SQL query that answers the following question: What is the lowest Total, when Year(s) Won is "1968 , 1971", and when To Par is less than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (total INTEGER, year_s__won VARCHAR, to_par VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE year_s__won = "1968 , 1971" AND to_par < 11
Write a SQL query that answers the following question: What is the lowest To Par, when Player is "Johnny Miller"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (to_par INTEGER, player VARCHAR)
SELECT MIN(to_par) FROM table_name_76 WHERE player = "johnny miller"
Write a SQL query that answers the following question: What is Player, when Total is greater than 148, and when To Par is "12"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (player VARCHAR, total VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_83 WHERE total > 148 AND to_par = 12
Write a SQL query that answers the following question: What is the sum of To Par, when Year(s) Won is "1978 , 1985"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (to_par INTEGER, year_s__won VARCHAR)
SELECT SUM(to_par) FROM table_name_35 WHERE year_s__won = "1978 , 1985"
Write a SQL query that answers the following question: What is To Par, when Year(s) Won is "1968 , 1971"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (to_par VARCHAR, year_s__won VARCHAR)
SELECT to_par FROM table_name_99 WHERE year_s__won = "1968 , 1971"
Write a SQL query that answers the following question: Which Points difference has Points against of 786?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (points_difference VARCHAR, points_against VARCHAR)
SELECT points_difference FROM table_name_20 WHERE points_against = "786"
Write a SQL query that answers the following question: Which Played has a Points difference of +261?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (played VARCHAR, points_difference VARCHAR)
SELECT played FROM table_name_50 WHERE points_difference = "+261"
Write a SQL query that answers the following question: Which Points against has a Lost of 13, and Points for of 671?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (points_against VARCHAR, lost VARCHAR, points_for VARCHAR)
SELECT points_against FROM table_name_9 WHERE lost = "13" AND points_for = "671"
Write a SQL query that answers the following question: Which Points difference has Played of 32, and Points for of 840?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (points_difference VARCHAR, played VARCHAR, points_for VARCHAR)
SELECT points_difference FROM table_name_23 WHERE played = "32" AND points_for = "840"
Write a SQL query that answers the following question: Which Drawn has Points for of 782?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (drawn VARCHAR, points_for VARCHAR)
SELECT drawn FROM table_name_2 WHERE points_for = "782"
Write a SQL query that answers the following question: Which Lost has a Club of club?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (lost VARCHAR)
SELECT lost FROM table_name_33 WHERE "club" = "club"
Write a SQL query that answers the following question: Can you tell me the Record that has the Date of january 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_57 WHERE date = "january 29"
Write a SQL query that answers the following question: Can you tell me the Record that has the Visitor of vancouver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_67 WHERE visitor = "vancouver"
Write a SQL query that answers the following question: What date has the opponent competing in the final of john mcenroe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (date VARCHAR, opponent_in_final VARCHAR)
SELECT date FROM table_name_94 WHERE opponent_in_final = "john mcenroe"
Write a SQL query that answers the following question: Where did the Lightning play the NY Rangers at 7:00 pm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (location VARCHAR, opponent VARCHAR, time VARCHAR)
SELECT location FROM table_name_96 WHERE opponent = "ny rangers" AND time = "7:00 pm"
Write a SQL query that answers the following question: Who did the Lightning play at the Mellon Arena?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (opponent VARCHAR, location VARCHAR)
SELECT opponent FROM table_name_97 WHERE location = "mellon arena"
Write a SQL query that answers the following question: What was the final score for the game played at 7:00 pm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (result VARCHAR, time VARCHAR)
SELECT result FROM table_name_16 WHERE time = "7:00 pm"
Write a SQL query that answers the following question: Where was the game which ended in a 4-1 w?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (location VARCHAR, result VARCHAR)
SELECT location FROM table_name_64 WHERE result = "4-1 w"
Write a SQL query that answers the following question: When was a game played at 7:00 pm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (date VARCHAR, time VARCHAR)
SELECT date FROM table_name_65 WHERE time = "7:00 pm"
Write a SQL query that answers the following question: Which Top Speed has a Model Name of d14/4 supreme d14/4 sports & bushman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (top_speed VARCHAR, model_name VARCHAR)
SELECT top_speed FROM table_name_69 WHERE model_name = "d14/4 supreme d14/4 sports & bushman"
Write a SQL query that answers the following question: Which Electrics has an Engine of 175cc, bhp (kw), and a Model Name of d10 sports & bushman?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (electrics VARCHAR, engine VARCHAR, model_name VARCHAR)
SELECT electrics FROM table_name_28 WHERE engine = "175cc, bhp (kw)" AND model_name = "d10 sports & bushman"
Write a SQL query that answers the following question: Who does pádraig harrington play for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (country VARCHAR, player VARCHAR)
SELECT country FROM table_name_72 WHERE player = "pádraig harrington"
Write a SQL query that answers the following question: Which stadium has Seongnam Ilhwa Chunma?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (stadium VARCHAR, club VARCHAR)
SELECT stadium FROM table_name_77 WHERE club = "seongnam ilhwa chunma"
Write a SQL query that answers the following question: What city is Gwang-Yang stadium in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (city VARCHAR, stadium VARCHAR)
SELECT city FROM table_name_2 WHERE stadium = "gwang-yang stadium"
Write a SQL query that answers the following question: Which stadium has FC Seoul?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (stadium VARCHAR, club VARCHAR)
SELECT stadium FROM table_name_65 WHERE club = "fc seoul"
Write a SQL query that answers the following question: What stadium is in Seoul?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (stadium VARCHAR, city VARCHAR)
SELECT stadium FROM table_name_56 WHERE city = "seoul"
Write a SQL query that answers the following question: What is the 1993 value of the French open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (tournament VARCHAR)
SELECT 1993 FROM table_name_68 WHERE tournament = "french open"
Write a SQL query that answers the following question: What is the 1990 value with a 24 in 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (Id VARCHAR)
SELECT 1990 FROM table_name_87 WHERE 1995 = "24"
Write a SQL query that answers the following question: What is the 1993 value with a 1r in 1991 and sf in 1990?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (Id VARCHAR)
SELECT 1993 FROM table_name_75 WHERE 1991 = "1r" AND 1990 = "sf"
Write a SQL query that answers the following question: What is the 1994 value with a 2r in 1996, A in 1993, and 2r in 1991?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (Id VARCHAR)
SELECT 1994 FROM table_name_42 WHERE 1996 = "2r" AND 1993 = "a" AND 1991 = "2r"
Write a SQL query that answers the following question: What is the 1993 value of the 1994 atp masters series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (Id VARCHAR)
SELECT 1993 FROM table_name_59 WHERE 1994 = "atp masters series"
Write a SQL query that answers the following question: What is the 1993 value of the 1996 atp masters series?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (Id VARCHAR)
SELECT 1993 FROM table_name_15 WHERE 1996 = "atp masters series"
Write a SQL query that answers the following question: Which Team has a Location Attendance of staples center 18,997, and a Series of 1–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (team VARCHAR, location_attendance VARCHAR, series VARCHAR)
SELECT team FROM table_name_29 WHERE location_attendance = "staples center 18,997" AND series = "1–0"
Write a SQL query that answers the following question: Which High points have High rebounds of lamar odom (15), and a Date of april 27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (high_points VARCHAR, high_rebounds VARCHAR, date VARCHAR)
SELECT high_points FROM table_name_80 WHERE high_rebounds = "lamar odom (15)" AND date = "april 27"
Write a SQL query that answers the following question: Which Date has High rebounds of pau gasol (9)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (date VARCHAR, high_rebounds VARCHAR)
SELECT date FROM table_name_42 WHERE high_rebounds = "pau gasol (9)"
Write a SQL query that answers the following question: What was the score of game 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (score VARCHAR, game VARCHAR)
SELECT score FROM table_name_5 WHERE game = 2
Write a SQL query that answers the following question: What was steve elkington's to par?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (to_par VARCHAR, player VARCHAR)
SELECT to_par FROM table_name_57 WHERE player = "steve elkington"
Write a SQL query that answers the following question: Which show has a season premiere with a Average series rating of 1.85 million viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (season VARCHAR, average_series_rating VARCHAR)
SELECT season AS premiere FROM table_name_33 WHERE average_series_rating = "1.85 million viewers"
Write a SQL query that answers the following question: What is the most recent year founded that has a nickname of bruins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (founded INTEGER, nickname VARCHAR)
SELECT MAX(founded) FROM table_name_7 WHERE nickname = "bruins"
Write a SQL query that answers the following question: What is the most recent year founded with an enrollment of 42,708?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (founded INTEGER, enrollment VARCHAR)
SELECT MAX(founded) FROM table_name_81 WHERE enrollment = 42 OFFSET 708
Write a SQL query that answers the following question: What is the Score of the game with the New York Rangers Home team with a Record of 8–27–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (score VARCHAR, home VARCHAR, record VARCHAR)
SELECT score FROM table_name_48 WHERE home = "new york rangers" AND record = "8–27–5"
Write a SQL query that answers the following question: On what Date was the Home team Detroit Red Wings with a Record of 10–41–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, home VARCHAR, record VARCHAR)
SELECT date FROM table_name_61 WHERE home = "detroit red wings" AND record = "10–41–6"
Write a SQL query that answers the following question: What is the Visitor in the game with a Record of 11–49–7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_98 WHERE record = "11–49–7"
Write a SQL query that answers the following question: What is the Record of the Chicago Black Hawks Home game with the New York Rangers and a Score of 3–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (record VARCHAR, score VARCHAR, home VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_28 WHERE home = "chicago black hawks" AND visitor = "new york rangers" AND score = "3–2"
Write a SQL query that answers the following question: What is the Home team on October 17 with a Score of 1–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (home VARCHAR, score VARCHAR, date VARCHAR)
SELECT home FROM table_name_21 WHERE score = "1–2" AND date = "october 17"
Write a SQL query that answers the following question: What is the Record of the game on January 31 with Visitors Detroit Red Wings?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (record VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT record FROM table_name_74 WHERE visitor = "detroit red wings" AND date = "january 31"
Write a SQL query that answers the following question: Name the Report of 7 february with an Away team of new zealand breakers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (report VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT report FROM table_name_35 WHERE date = "7 february" AND away_team = "new zealand breakers"
Write a SQL query that answers the following question: Which Date has a Crowd smaller than 4,485?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (date VARCHAR, crowd INTEGER)
SELECT date FROM table_name_72 WHERE crowd < 4 OFFSET 485
Write a SQL query that answers the following question: Name the lowest Crowd of hisense arena on 8 february?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (crowd INTEGER, venue VARCHAR, date VARCHAR)
SELECT MIN(crowd) FROM table_name_29 WHERE venue = "hisense arena" AND date = "8 february"
Write a SQL query that answers the following question: Name the Box Score which has an Away team of new zealand breakers on 7 february?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (Box VARCHAR, away_team VARCHAR, date VARCHAR)
SELECT Box AS score FROM table_name_68 WHERE away_team = "new zealand breakers" AND date = "7 february"
Write a SQL query that answers the following question: What is the lowest Year, when Venue is Rio De Janeiro, Brazil?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (year INTEGER, venue VARCHAR)
SELECT MIN(year) FROM table_name_42 WHERE venue = "rio de janeiro, brazil"
Write a SQL query that answers the following question: What is Event, when Year is 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (event VARCHAR, year VARCHAR)
SELECT event FROM table_name_59 WHERE year = 2008
Write a SQL query that answers the following question: What is the latest date in March when the opponent was the Boston Bruins and the game number was smaller than 66?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (march INTEGER, opponent VARCHAR, game VARCHAR)
SELECT MAX(march) FROM table_name_94 WHERE opponent = "boston bruins" AND game < 66
Write a SQL query that answers the following question: What is the method of the match with chris ade as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_70 WHERE opponent = "chris ade"
Write a SQL query that answers the following question: What was the pole for a race lower than 16 with a Flap higher than 8 and a podium higher than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (pole INTEGER, podium VARCHAR, race VARCHAR, flap VARCHAR)
SELECT AVG(pole) FROM table_name_26 WHERE race < 16 AND flap > 8 AND podium > 11
Write a SQL query that answers the following question: How many podiums had a race higher than 14 in 1996 and a Flap lower than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (podium VARCHAR, flap VARCHAR, race VARCHAR, season VARCHAR)
SELECT COUNT(podium) FROM table_name_91 WHERE race > 14 AND season = "1996" AND flap < 9
Write a SQL query that answers the following question: How many races had 4 podiums, 5 poles and more than 3 Flaps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (race INTEGER, flap VARCHAR, podium VARCHAR, pole VARCHAR)
SELECT SUM(race) FROM table_name_64 WHERE podium = 4 AND pole = 5 AND flap > 3
Write a SQL query that answers the following question: What are the fewest podiums in 2005 with fewer than 0 poles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (podium INTEGER, season VARCHAR, pole VARCHAR)
SELECT MIN(podium) FROM table_name_30 WHERE season = "2005" AND pole < 0
Write a SQL query that answers the following question: Which Player has a To par of +9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (player VARCHAR, to_par VARCHAR)
SELECT player FROM table_name_8 WHERE to_par = "+9"
Write a SQL query that answers the following question: Which years did raymond floyd win?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (year_s__won VARCHAR, player VARCHAR)
SELECT year_s__won FROM table_name_43 WHERE player = "raymond floyd"
Write a SQL query that answers the following question: How much total has a To par of +9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (total VARCHAR, to_par VARCHAR)
SELECT COUNT(total) FROM table_name_65 WHERE to_par = "+9"
Write a SQL query that answers the following question: Which Total has a Country of united states, and a Player of andy north?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (total INTEGER, country VARCHAR, player VARCHAR)
SELECT AVG(total) FROM table_name_12 WHERE country = "united states" AND player = "andy north"
Write a SQL query that answers the following question: What is the highest grid for Aprilia vehicles, laps over 5, and a retirement finish?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (grid INTEGER, laps VARCHAR, manufacturer VARCHAR, time VARCHAR)
SELECT MAX(grid) FROM table_name_43 WHERE manufacturer = "aprilia" AND time = "retirement" AND laps > 5
Write a SQL query that answers the following question: What is the average laps completed by riders with times of +2:11.524?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (laps INTEGER, time VARCHAR)
SELECT AVG(laps) FROM table_name_90 WHERE time = "+2:11.524"
Write a SQL query that answers the following question: Which rider has a time of +2:11.524?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (rider VARCHAR, time VARCHAR)
SELECT rider FROM table_name_92 WHERE time = "+2:11.524"
Write a SQL query that answers the following question: What is the average grid for vehicles manufactured by Aprilia and having run more than 16 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (grid INTEGER, manufacturer VARCHAR, laps VARCHAR)
SELECT AVG(grid) FROM table_name_2 WHERE manufacturer = "aprilia" AND laps > 16
Write a SQL query that answers the following question: What record has January 27 for the date?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_49 WHERE date = "january 27"
Write a SQL query that answers the following question: What team has brad miller (8) as the high assists?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (team VARCHAR, high_assists VARCHAR)
SELECT team FROM table_name_76 WHERE high_assists = "brad miller (8)"
Write a SQL query that answers the following question: What is the high assists that has @ detroit as the team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (high_assists VARCHAR, team VARCHAR)
SELECT high_assists FROM table_name_93 WHERE team = "@ detroit"
Write a SQL query that answers the following question: Which date had a game with the New York Giants as the winner, year over 1985, and a result of 17-14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (date VARCHAR, result VARCHAR, winner VARCHAR, year VARCHAR)
SELECT date FROM table_name_82 WHERE winner = "new york giants" AND year > 1985 AND result = "17-14"
Write a SQL query that answers the following question: Which date had a year under 1988, loser of Philadelphia Eagles, location of Giants Stadium, and a result of 21-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (date VARCHAR, result VARCHAR, location VARCHAR, year VARCHAR, loser VARCHAR)
SELECT date FROM table_name_68 WHERE year < 1988 AND loser = "philadelphia eagles" AND location = "giants stadium" AND result = "21-0"
Write a SQL query that answers the following question: Which date had a loser of New York Giants and a result of 23-17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, loser VARCHAR, result VARCHAR)
SELECT date FROM table_name_77 WHERE loser = "new york giants" AND result = "23-17"
Write a SQL query that answers the following question: HOW MANY SILVER METALS DOES SOUTH KOREA HAVE WITH 2 GOLD METALS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (silver INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MAX(silver) FROM table_name_43 WHERE nation = "south korea" AND gold > 2
Write a SQL query that answers the following question: WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (bronze INTEGER, silver VARCHAR, rank VARCHAR)
SELECT MAX(bronze) FROM table_name_46 WHERE silver > 1 AND rank > 1
Write a SQL query that answers the following question: What is the highest Runners-Up, when Champions is less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (runners_up INTEGER, champions INTEGER)
SELECT MAX(runners_up) FROM table_name_30 WHERE champions < 0
Write a SQL query that answers the following question: What is the sum of Runners-Up, when Champions is greater than 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (runners_up INTEGER, champions INTEGER)
SELECT SUM(runners_up) FROM table_name_2 WHERE champions > 5
Write a SQL query that answers the following question: What is the total medals for nation with more than 0 silvers and more than 0 golds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total INTEGER, silver VARCHAR, gold VARCHAR)
SELECT AVG(total) FROM table_name_97 WHERE silver > 0 AND gold > 0
Write a SQL query that answers the following question: What is the fewest gold medals for a team with fewer than 1 silver, more than 1 bronze and a total less than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (gold INTEGER, bronze VARCHAR, silver VARCHAR, total VARCHAR)
SELECT MIN(gold) FROM table_name_21 WHERE silver < 1 AND total < 4 AND bronze > 1
Write a SQL query that answers the following question: What is the smallest rank when there are fewer than 1 silver, 4 golds and less than 0 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (rank INTEGER, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT MIN(rank) FROM table_name_10 WHERE silver < 1 AND gold = 4 AND bronze < 0
Write a SQL query that answers the following question: How many gold medals for a nation with rank less than 5, more than 0 silvers and a total of 2 medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (gold INTEGER, total VARCHAR, rank VARCHAR, silver VARCHAR)
SELECT AVG(gold) FROM table_name_27 WHERE rank < 5 AND silver > 0 AND total = 2
Write a SQL query that answers the following question: What is the total for the team with more than 2 golds and more than 0 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (total INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT SUM(total) FROM table_name_37 WHERE gold > 2 AND bronze > 0
Write a SQL query that answers the following question: Which rider has time of +19.751?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (rider VARCHAR, time VARCHAR)
SELECT rider FROM table_name_59 WHERE time = "+19.751"
Write a SQL query that answers the following question: Which manufacturer of aprilia wth time of +1:36.557 has the highest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (laps INTEGER, manufacturer VARCHAR, time VARCHAR)
SELECT MAX(laps) FROM table_name_75 WHERE manufacturer = "aprilia" AND time = "+1:36.557"
Write a SQL query that answers the following question: What is time of manufacturer with grid 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (time VARCHAR, grid VARCHAR)
SELECT time FROM table_name_56 WHERE grid = 21