instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the Home Team Score at Windy Hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_64 WHERE venue = "windy hill"
Write a SQL query that answers the following question: On what Date is Carlton the Away Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_98 WHERE away_team = "carlton"
Write a SQL query that answers the following question: Which competition with a result of 3-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (competition VARCHAR, result VARCHAR)
SELECT competition FROM table_name_68 WHERE result = "3-1"
Write a SQL query that answers the following question: I want to know the lowest ligue 1 titles for position in 2012-13 of 010 12th and number of seasons in ligue 1 more than 56
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (ligue_1_titles INTEGER, position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR)
SELECT MIN(ligue_1_titles) FROM table_name_80 WHERE position_in_2012_13 = "010 12th" AND number_of_seasons_in_ligue_1 > 56
Write a SQL query that answers the following question: Tell me the position in 2012-13 and number of seasons in leigue 1 of 30 with ligue 1 titles of 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (position_in_2012_13 VARCHAR, number_of_seasons_in_ligue_1 VARCHAR, ligue_1_titles VARCHAR)
SELECT position_in_2012_13 FROM table_name_69 WHERE number_of_seasons_in_ligue_1 = 30 AND ligue_1_titles = 1
Write a SQL query that answers the following question: What is the NBA draft result of the player from Kingston, PA?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (nba_draft VARCHAR, hometown VARCHAR)
SELECT nba_draft FROM table_name_4 WHERE hometown = "kingston, pa"
Write a SQL query that answers the following question: What is the NBA draft result of the player with a height of 6-7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (nba_draft VARCHAR, height VARCHAR)
SELECT nba_draft FROM table_name_67 WHERE height = "6-7"
Write a SQL query that answers the following question: What is the NBA draft result of Dwayne Washington?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (nba_draft VARCHAR, player VARCHAR)
SELECT nba_draft FROM table_name_56 WHERE player = "dwayne washington"
Write a SQL query that answers the following question: What is the NBA draft result of the player from Dunbar High School?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (nba_draft VARCHAR, school VARCHAR)
SELECT nba_draft FROM table_name_61 WHERE school = "dunbar high school"
Write a SQL query that answers the following question: What is the school of the player from the College of Michigan?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (school VARCHAR, college VARCHAR)
SELECT school FROM table_name_35 WHERE college = "michigan"
Write a SQL query that answers the following question: What was the away team score for the game played at MCG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_89 WHERE venue = "mcg"
Write a SQL query that answers the following question: What was the home team's score at Victoria Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_27 WHERE venue = "victoria park"
Write a SQL query that answers the following question: What is the score at shay stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (score VARCHAR, venue VARCHAR)
SELECT score FROM table_name_96 WHERE venue = "shay stadium"
Write a SQL query that answers the following question: What is the result at valley parade on 4/7/02?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (result VARCHAR, venue VARCHAR, date VARCHAR)
SELECT result FROM table_name_50 WHERE venue = "valley parade" AND date = "4/7/02"
Write a SQL query that answers the following question: Which competition has a Goal of deacon 8/8 and a Score of 32-14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (competition VARCHAR, goals VARCHAR, score VARCHAR)
SELECT competition FROM table_name_3 WHERE goals = "deacon 8/8" AND score = "32-14"
Write a SQL query that answers the following question: What is the top grid that is driven by martin brundle?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (grid INTEGER, driver VARCHAR)
SELECT MAX(grid) FROM table_name_78 WHERE driver = "martin brundle"
Write a SQL query that answers the following question: What is the grid 13 time score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_88 WHERE grid = 13
Write a SQL query that answers the following question: Which grid is lower for thierry boutsen which laps less than 44?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (grid INTEGER, driver VARCHAR, laps VARCHAR)
SELECT MIN(grid) FROM table_name_90 WHERE driver = "thierry boutsen" AND laps < 44
Write a SQL query that answers the following question: Which player is 6-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (player VARCHAR, height VARCHAR)
SELECT player FROM table_name_9 WHERE height = "6-2"
Write a SQL query that answers the following question: What is the Laid down for the Hyperion ship?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (laid_down VARCHAR, ship VARCHAR)
SELECT laid_down FROM table_name_55 WHERE ship = "hyperion"
Write a SQL query that answers the following question: What is the name of the ship that had a Pennant number of h55?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (ship VARCHAR, pennant_number VARCHAR)
SELECT ship FROM table_name_48 WHERE pennant_number = "h55"
Write a SQL query that answers the following question: How did the jab tak hai jaan movie gross worldwide?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (worldwide_gross VARCHAR, movie VARCHAR)
SELECT worldwide_gross FROM table_name_60 WHERE movie = "jab tak hai jaan"
Write a SQL query that answers the following question: What is average year for ayan mukerji?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (year INTEGER, director VARCHAR)
SELECT AVG(year) FROM table_name_29 WHERE director = "ayan mukerji"
Write a SQL query that answers the following question: When melbourne was the home team what was their score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_46 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What date had a time of 20:10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (date VARCHAR, time VARCHAR)
SELECT date FROM table_name_25 WHERE time = "20:10"
Write a SQL query that answers the following question: What is the title of the episode that originally aired on March 31, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (episode_title VARCHAR, original_airdate VARCHAR)
SELECT episode_title FROM table_name_1 WHERE original_airdate = "march 31, 2008"
Write a SQL query that answers the following question: What is the episode number of the episode that originally aired on February 4, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (episode_no VARCHAR, original_airdate VARCHAR)
SELECT episode_no FROM table_name_23 WHERE original_airdate = "february 4, 2008"
Write a SQL query that answers the following question: at kardinia park, what was the away team's score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (away_team VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_22 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: what was the largest attendance at kardinia park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_74 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: Who was the Home team at the Western Oval location?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_62 WHERE venue = "western oval"
Write a SQL query that answers the following question: What's the average of the amount of laps for the driver patrick tambay?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_64 WHERE driver = "patrick tambay"
Write a SQL query that answers the following question: When renault is the constructor, the grid is over 6, and the time was labeled ignition, what's the largest amount of laps on record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT MAX(laps) FROM table_name_63 WHERE grid > 6 AND constructor = "renault" AND time_retired = "ignition"
Write a SQL query that answers the following question: In 2008, what was the world ranking that ranked 5th in L.A.?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (world_ranking__1_ VARCHAR, ranking_la__2_ VARCHAR, year_of_publication VARCHAR)
SELECT world_ranking__1_ FROM table_name_54 WHERE ranking_la__2_ = "5th" AND year_of_publication = "2008"
Write a SQL query that answers the following question: what is the total number of played when the goals for is more than 34 and goals against is more than 63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (played VARCHAR, goals_for VARCHAR, goals_against VARCHAR)
SELECT COUNT(played) FROM table_name_24 WHERE goals_for > 34 AND goals_against > 63
Write a SQL query that answers the following question: what is the total number of goal different when the club is cf extremadura and the played is less than 38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (goal_difference VARCHAR, club VARCHAR, played VARCHAR)
SELECT COUNT(goal_difference) FROM table_name_51 WHERE club = "cf extremadura" AND played < 38
Write a SQL query that answers the following question: what is the average points when the goal difference is less than 17, the club is getafe cf and the goals for is more than 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (points INTEGER, goals_for VARCHAR, goal_difference VARCHAR, club VARCHAR)
SELECT AVG(points) FROM table_name_86 WHERE goal_difference < 17 AND club = "getafe cf" AND goals_for > 30
Write a SQL query that answers the following question: what is the sum of goals for when the position is less than 8, the losses is less than 10 the goals against is less than 35 and played is less than 38?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (goals_for INTEGER, played VARCHAR, goals_against VARCHAR, position VARCHAR, losses VARCHAR)
SELECT SUM(goals_for) FROM table_name_50 WHERE position < 8 AND losses < 10 AND goals_against < 35 AND played < 38
Write a SQL query that answers the following question: what is the highest gold when the rank is 12 for the nation vietnam?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (gold INTEGER, rank VARCHAR, nation VARCHAR)
SELECT MAX(gold) FROM table_name_18 WHERE rank = "12" AND nation = "vietnam"
Write a SQL query that answers the following question: what is the total when the rank is 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (total VARCHAR, rank VARCHAR)
SELECT total FROM table_name_88 WHERE rank = "4"
Write a SQL query that answers the following question: what is the nation when the gold is 1 and bronze is larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (nation VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT nation FROM table_name_77 WHERE gold = 1 AND bronze > 0
Write a SQL query that answers the following question: Which entrant has Ferrari 038 3.5 v12 engine?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (entrant VARCHAR, engine VARCHAR)
SELECT entrant FROM table_name_72 WHERE engine = "ferrari 038 3.5 v12"
Write a SQL query that answers the following question: What is the date that the Institution of Lynn University was founded on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (founded VARCHAR, institution VARCHAR)
SELECT founded FROM table_name_69 WHERE institution = "lynn university"
Write a SQL query that answers the following question: What's the Loss listed with a Score of 5-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (loss VARCHAR, score VARCHAR)
SELECT loss FROM table_name_60 WHERE score = "5-1"
Write a SQL query that answers the following question: Which Date has a record of 3-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_76 WHERE record = "3-5"
Write a SQL query that answers the following question: Which Date has a Record of 6-9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_86 WHERE record = "6-9"
Write a SQL query that answers the following question: What's the Loss listed for the Opponent of California Angels and has an Attendance of 57,762?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (loss VARCHAR, opponent VARCHAR, attendance VARCHAR)
SELECT loss FROM table_name_31 WHERE opponent = "california angels" AND attendance = "57,762"
Write a SQL query that answers the following question: Which Date has an Attendance of 9,535?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (date VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_73 WHERE attendance = "9,535"
Write a SQL query that answers the following question: What is the Score for the Date of April 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_69 WHERE date = "april 23"
Write a SQL query that answers the following question: What was the average crowd size at Victoria Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (crowd INTEGER, venue VARCHAR)
SELECT AVG(crowd) FROM table_name_22 WHERE venue = "victoria park"
Write a SQL query that answers the following question: What is the crowd size of the match featuring North Melbourne as the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (crowd INTEGER, away_team VARCHAR)
SELECT MIN(crowd) FROM table_name_40 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: Name the team which has high rebounds of smith (10)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (team VARCHAR, high_rebounds VARCHAR)
SELECT team FROM table_name_96 WHERE high_rebounds = "smith (10)"
Write a SQL query that answers the following question: What team was the home team against Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_36 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: What did the home team score when Carlton played as the Away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_30 WHERE away_team = "carlton"
Write a SQL query that answers the following question: How many people attended the home game for South Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_58 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: What was the home team score at VFL Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_99 WHERE venue = "vfl park"
Write a SQL query that answers the following question: How many grids have a Time/Retired of gearbox, and Laps smaller than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_98 WHERE time_retired = "gearbox" AND laps < 3
Write a SQL query that answers the following question: What is masten gregory's average lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (laps INTEGER, driver VARCHAR)
SELECT AVG(laps) FROM table_name_70 WHERE driver = "masten gregory"
Write a SQL query that answers the following question: Which Time/Retired has a Grid of 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_21 WHERE grid = 2
Write a SQL query that answers the following question: When the engine Ford Cosworth DFV 3.0 v8 has a chassis of m23 and in rounds 14-15, what is its Tyre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (tyre VARCHAR, chassis VARCHAR, rounds VARCHAR, engine VARCHAR)
SELECT tyre FROM table_name_51 WHERE rounds = "14-15" AND engine = "ford cosworth dfv 3.0 v8" AND chassis = "m23"
Write a SQL query that answers the following question: Which driver uses the ts16 chassis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (driver VARCHAR, chassis VARCHAR)
SELECT driver FROM table_name_7 WHERE chassis = "ts16"
Write a SQL query that answers the following question: What is the home team of the game on April 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (home VARCHAR, date VARCHAR)
SELECT home FROM table_name_95 WHERE date = "april 20"
Write a SQL query that answers the following question: What is the series score of the game with Vancouver as the visiting team on April 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (series VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT series FROM table_name_73 WHERE visitor = "vancouver" AND date = "april 16"
Write a SQL query that answers the following question: What is the series score of the game on April 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (series VARCHAR, date VARCHAR)
SELECT series FROM table_name_55 WHERE date = "april 16"
Write a SQL query that answers the following question: Tell me the away team score for 27 april 1974 and veue of mcg
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (away_team VARCHAR, date VARCHAR, venue VARCHAR)
SELECT away_team AS score FROM table_name_51 WHERE date = "27 april 1974" AND venue = "mcg"
Write a SQL query that answers the following question: I want to see the away team the has a home team of richmond
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_74 WHERE home_team = "richmond"
Write a SQL query that answers the following question: What venue did group g play at on Mar 8, 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (venue VARCHAR, stage VARCHAR, date VARCHAR)
SELECT venue FROM table_name_42 WHERE stage = "group g" AND date = "mar 8, 1998"
Write a SQL query that answers the following question: Which stage was being played in Romania?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (stage VARCHAR, venue VARCHAR)
SELECT stage FROM table_name_34 WHERE venue = "romania"
Write a SQL query that answers the following question: What was the score of the 1999 fifa world cup qualification (uefa) on Nov 23, 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (result VARCHAR, competition VARCHAR, date VARCHAR)
SELECT result FROM table_name_85 WHERE competition = "1999 fifa world cup qualification (uefa)" AND date = "nov 23, 1997"
Write a SQL query that answers the following question: What was being played on Nov 23, 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_79 WHERE date = "nov 23, 2006"
Write a SQL query that answers the following question: What is the lowest crowd at windy hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_28 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What is the lowest crowd with home team richmond?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_79 WHERE home_team = "richmond"
Write a SQL query that answers the following question: When there are more than 12 total medals and less than 5 gold medals, how many bronze medals are there?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (bronze VARCHAR, total VARCHAR, gold VARCHAR)
SELECT COUNT(bronze) FROM table_name_55 WHERE total > 12 AND gold < 5
Write a SQL query that answers the following question: When the united states won a total number of medals larger than 25, what was the lowest amount of Bronze medals won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MIN(bronze) FROM table_name_61 WHERE nation = "united states" AND total > 25
Write a SQL query that answers the following question: When the nation of poland had less than 17 medals but more than 1 gold medal, what's the Highest number of bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (bronze INTEGER, gold VARCHAR, total VARCHAR, nation VARCHAR)
SELECT MAX(bronze) FROM table_name_28 WHERE total < 17 AND nation = "poland" AND gold > 1
Write a SQL query that answers the following question: If there are more than 0 Silver medals, less than 5 gold medals, and no bronze medals, what was the total number of medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (total VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_43 WHERE silver > 0 AND gold < 5 AND bronze < 0
Write a SQL query that answers the following question: What's the total number of NGC that has a Declination ( J2000 ) of °15′55″, and an Apparent magnitude greater than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT SUM(ngc_number) FROM table_name_28 WHERE declination___j2000__ = "°15′55″" AND apparent_magnitude > 10
Write a SQL query that answers the following question: Which object has an Apparent magnitude larger than 9.6, and a Right ascension ( J2000 ) of 17h59m02.0s?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (object_type VARCHAR, apparent_magnitude VARCHAR, right_ascension___j2000__ VARCHAR)
SELECT object_type FROM table_name_56 WHERE apparent_magnitude > 9.6 AND right_ascension___j2000__ = "17h59m02.0s"
Write a SQL query that answers the following question: Which species of bacteria has 5,566 genes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (strain VARCHAR, genes VARCHAR)
SELECT strain FROM table_name_35 WHERE genes = "5,566"
Write a SQL query that answers the following question: What is the Strain name of Species Thiomicrospira crunogena?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (strain VARCHAR, species VARCHAR)
SELECT strain FROM table_name_24 WHERE species = "thiomicrospira crunogena"
Write a SQL query that answers the following question: Name the location of record 5-3
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (location VARCHAR, record VARCHAR)
SELECT location FROM table_name_21 WHERE record = "5-3"
Write a SQL query that answers the following question: What's the rank for a team that has a percentage of 56% and a loss smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (rank INTEGER, loss VARCHAR, percentage VARCHAR)
SELECT AVG(rank) FROM table_name_45 WHERE NOT percentage = "56%" AND loss < 4
Write a SQL query that answers the following question: Name the lowest yards for 34 long and avg less than 12.6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (yards INTEGER, long VARCHAR, avg VARCHAR)
SELECT MIN(yards) FROM table_name_3 WHERE long = 34 AND avg < 12.6
Write a SQL query that answers the following question: What team is sponsored by chameleon sunglasses?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (team VARCHAR, sponsor VARCHAR)
SELECT team FROM table_name_63 WHERE sponsor = "chameleon sunglasses"
Write a SQL query that answers the following question: What team does bobby hillin jr. (r) drive a buick regal for?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (team VARCHAR, make VARCHAR, driver VARCHAR)
SELECT team FROM table_name_8 WHERE make = "buick regal" AND driver = "bobby hillin jr. (r)"
Write a SQL query that answers the following question: What team is sponsored by w.h. bolin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (team VARCHAR, sponsor VARCHAR)
SELECT team FROM table_name_14 WHERE sponsor = "w.h. bolin"
Write a SQL query that answers the following question: Who drives for the sponsor w.h. bolin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (driver VARCHAR, sponsor VARCHAR)
SELECT driver FROM table_name_82 WHERE sponsor = "w.h. bolin"
Write a SQL query that answers the following question: Who sponsors driver neil bonnett?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (sponsor VARCHAR, driver VARCHAR)
SELECT sponsor FROM table_name_18 WHERE driver = "neil bonnett"
Write a SQL query that answers the following question: What channel has a description of the public broadcaster?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (channel VARCHAR, description VARCHAR)
SELECT channel FROM table_name_82 WHERE description = "public broadcaster"
Write a SQL query that answers the following question: What was the channel that was financed by commercials?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (channel VARCHAR, financed_by VARCHAR)
SELECT channel FROM table_name_39 WHERE financed_by = "commercials"
Write a SQL query that answers the following question: Which entry has the highest laps of those with constructor Minardi - Fondmetal, driver Marc Gené, and a grid larger than 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (laps INTEGER, grid VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT MAX(laps) FROM table_name_10 WHERE constructor = "minardi - fondmetal" AND driver = "marc gené" AND grid > 20
Write a SQL query that answers the following question: What is the sum of grid values of driver Michael Schumacher with lap counts larger than 66?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT SUM(grid) FROM table_name_7 WHERE laps > 66 AND driver = "michael schumacher"
Write a SQL query that answers the following question: Which driver has 62 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_17 WHERE laps = 62
Write a SQL query that answers the following question: What is the highest grid value with constructor Mclaren - Mercedes, driver David Coulthard, and has fewer than 66 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT MAX(grid) FROM table_name_99 WHERE constructor = "mclaren - mercedes" AND driver = "david coulthard" AND laps < 66
Write a SQL query that answers the following question: What is the highest number of laps for grid 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (laps INTEGER, grid VARCHAR)
SELECT MAX(laps) FROM table_name_99 WHERE grid = 17
Write a SQL query that answers the following question: None of the rounds has Roger Williamson as a driver.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (rounds VARCHAR, driver VARCHAR)
SELECT rounds FROM table_name_8 WHERE driver = "roger williamson"
Write a SQL query that answers the following question: What is the time/retired for alain prost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_60 WHERE driver = "alain prost"
Write a SQL query that answers the following question: What is the time/retired for grid 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_30 WHERE grid = 9
Write a SQL query that answers the following question: Who had to retire due to suspension?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (driver VARCHAR, time_retired VARCHAR)
SELECT driver FROM table_name_65 WHERE time_retired = "suspension"
Write a SQL query that answers the following question: What class is volleyball in 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (class VARCHAR, sport VARCHAR, year VARCHAR)
SELECT class FROM table_name_40 WHERE sport = "volleyball" AND year = 2000
Write a SQL query that answers the following question: What is the team's record in 3a volleyball?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (record VARCHAR, class VARCHAR, sport VARCHAR)
SELECT record FROM table_name_89 WHERE class = "3a" AND sport = "volleyball"