instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which of the Latest version was released on Release date 1987-12-09?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (latest_version VARCHAR, release_date VARCHAR)
SELECT latest_version FROM table_name_24 WHERE release_date = "1987-12-09"
Write a SQL query that answers the following question: Which Source model has a 16-bit* Architecture?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (source_model VARCHAR, architecture VARCHAR)
SELECT source_model FROM table_name_27 WHERE architecture = "16-bit*"
Write a SQL query that answers the following question: Which of the Latest version had a 16-bit Architecture and was released on Release date 1985-11-20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (latest_version VARCHAR, architecture VARCHAR, release_date VARCHAR)
SELECT latest_version FROM table_name_29 WHERE architecture = "16-bit" AND release_date = "1985-11-20"
Write a SQL query that answers the following question: Which Architecture was released on Release date 1988-05-27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (architecture VARCHAR, release_date VARCHAR)
SELECT architecture FROM table_name_69 WHERE release_date = "1988-05-27"
Write a SQL query that answers the following question: Which Source model has a Release date of 1992-04-06?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (source_model VARCHAR, release_date VARCHAR)
SELECT source_model FROM table_name_97 WHERE release_date = "1992-04-06"
Write a SQL query that answers the following question: Who is the away side when collingwood is at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_34 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: Who is the home team at arden street oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_63 WHERE venue = "arden street oval"
Write a SQL query that answers the following question: What is the WPW freq with a day power of 250?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (freq INTEGER, owner VARCHAR, day_power___w__ VARCHAR)
SELECT SUM(freq) FROM table_name_55 WHERE owner = "wpw" AND day_power___w__ > 250
Write a SQL query that answers the following question: Is WPEO in stereo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (stereo VARCHAR, call VARCHAR)
SELECT stereo FROM table_name_37 WHERE call = "wpeo"
Write a SQL query that answers the following question: What is Park Tae-Hwan's final time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (time VARCHAR, name VARCHAR)
SELECT time FROM table_name_3 WHERE name = "park tae-hwan"
Write a SQL query that answers the following question: What was the largest crowd for an away Carlton game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_54 WHERE away_team = "carlton"
Write a SQL query that answers the following question: Who was the home team for the game played at Corio Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_20 WHERE venue = "corio oval"
Write a SQL query that answers the following question: The safety position is represented in the draft by which colleges?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (college VARCHAR, position VARCHAR)
SELECT college FROM table_name_62 WHERE position = "safety"
Write a SQL query that answers the following question: In how many rounds of the draft was there a college from Georgia involved?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (round VARCHAR, college VARCHAR)
SELECT COUNT(round) FROM table_name_94 WHERE college = "georgia"
Write a SQL query that answers the following question: What is the Time of Driver Jan Heylen (r)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_44 WHERE driver = "jan heylen (r)"
Write a SQL query that answers the following question: What Grid has Driver Cristiano da Matta?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_10 WHERE driver = "cristiano da matta"
Write a SQL query that answers the following question: Which Driver has less than 84 laps, more than 9 points and is on Rocketsports Racing Team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (driver VARCHAR, team VARCHAR, laps VARCHAR, points VARCHAR)
SELECT driver FROM table_name_68 WHERE laps < 84 AND points > 9 AND team = "rocketsports racing"
Write a SQL query that answers the following question: Which team has less than 73 laps and a gearbox time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (team VARCHAR, laps VARCHAR, time_retired VARCHAR)
SELECT team FROM table_name_56 WHERE laps < 73 AND time_retired = "gearbox"
Write a SQL query that answers the following question: What is the car with the lowest extinct year that has a NBR class of 32?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (extinct INTEGER, nbr_class VARCHAR)
SELECT MIN(extinct) FROM table_name_21 WHERE nbr_class = 32
Write a SQL query that answers the following question: What is the home team that played at Corio Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_54 WHERE venue = "corio oval"
Write a SQL query that answers the following question: On which date was St Kilda the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_2 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: What is the Austin record of Kansas State?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (at_austin VARCHAR, texas_vs VARCHAR)
SELECT at_austin FROM table_name_21 WHERE texas_vs = "kansas state"
Write a SQL query that answers the following question: What was the result of the last 5 meetings for a team with an L 1 streak?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (last_5_meetings VARCHAR, current_streak VARCHAR)
SELECT last_5_meetings FROM table_name_85 WHERE current_streak = "l 1"
Write a SQL query that answers the following question: Who is the partner on a date later than 1971 who is the runner-up with a score of 3–6, 3–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (partner VARCHAR, score_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR)
SELECT partner FROM table_name_33 WHERE date > 1971 AND outcome = "runner-up" AND score_in_the_final = "3–6, 3–6"
Write a SQL query that answers the following question: What is the first year that Mario Lemieux from Canada won playing center?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (year INTEGER, player VARCHAR, country VARCHAR, position VARCHAR)
SELECT MIN(year) FROM table_name_21 WHERE country = "canada" AND position = "center" AND player = "mario lemieux"
Write a SQL query that answers the following question: What country did mario lemieux play for in 1994?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (country VARCHAR, player VARCHAR, year VARCHAR)
SELECT country FROM table_name_17 WHERE player = "mario lemieux" AND year = 1994
Write a SQL query that answers the following question: What player played center in 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (player VARCHAR, position VARCHAR, year VARCHAR)
SELECT player FROM table_name_9 WHERE position = "center" AND year = 2010
Write a SQL query that answers the following question: Who is the player associated with the Esher venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (player VARCHAR, venue VARCHAR)
SELECT player FROM table_name_63 WHERE venue = "esher"
Write a SQL query that answers the following question: In which venue did 0 pens and 1 try occur?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (venue VARCHAR, pens VARCHAR, tries VARCHAR)
SELECT venue FROM table_name_70 WHERE pens = "0" AND tries = "1"
Write a SQL query that answers the following question: What was the score of the game against the St. Louis Cardinals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (result VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_82 WHERE opponent = "st. louis cardinals"
Write a SQL query that answers the following question: Which model has a CPU speed of 133mhz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (model VARCHAR, cpu_speed VARCHAR)
SELECT model FROM table_name_52 WHERE cpu_speed = "133mhz"
Write a SQL query that answers the following question: Which model has a maximum memory of 512 mb?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (model INTEGER, maximum_memory VARCHAR)
SELECT MAX(model) FROM table_name_92 WHERE maximum_memory = "512 mb"
Write a SQL query that answers the following question: What is the maximum memory of the model that has a standard memory of 16 mb?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (maximum_memory VARCHAR, standard_memory VARCHAR)
SELECT maximum_memory FROM table_name_10 WHERE standard_memory = "16 mb"
Write a SQL query that answers the following question: What is the largest crowd for a Melbourne away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (crowd INTEGER, away_team VARCHAR)
SELECT MAX(crowd) FROM table_name_35 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: What is the home team score when the home team is Essendon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_80 WHERE home_team = "essendon"
Write a SQL query that answers the following question: Which opponent was playing on December 20, 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_63 WHERE date = "december 20, 1998"
Write a SQL query that answers the following question: When was the game that was held at the Princes Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_85 WHERE venue = "princes park"
Write a SQL query that answers the following question: What was the smallest crowd size at a home game for Footscray?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_93 WHERE home_team = "footscray"
Write a SQL query that answers the following question: What was Melbourne's score as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (home_team VARCHAR)
SELECT home_team AS score FROM table_name_91 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What was the away team that played Fitzroy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_96 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: What was the sum of the crowds at Western Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_65 WHERE venue = "western oval"
Write a SQL query that answers the following question: What country had a winner in 1907?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (country VARCHAR, year VARCHAR)
SELECT country FROM table_name_55 WHERE year = 1907
Write a SQL query that answers the following question: What velodrome took place earlier than 1950 with a winner from France in tandem paced over a distance of 951.750 km?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (velodrome VARCHAR, distance VARCHAR, pacing VARCHAR, year VARCHAR, country VARCHAR)
SELECT velodrome FROM table_name_6 WHERE year < 1950 AND country = "france" AND pacing = "tandem paced" AND distance = "951.750 km"
Write a SQL query that answers the following question: Where was the game played when they kickoff was 12:00 p.m., and a Record of 8-5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (game_site VARCHAR, kickoff VARCHAR, record VARCHAR)
SELECT game_site FROM table_name_48 WHERE kickoff = "12:00 p.m." AND record = "8-5"
Write a SQL query that answers the following question: What date has a Game site of bye?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_77 WHERE game_site = "bye"
Write a SQL query that answers the following question: What is the record which shows Kickoff as kickoff?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (record VARCHAR)
SELECT record FROM table_name_75 WHERE "kickoff" = "kickoff"
Write a SQL query that answers the following question: What is the record when the game was played at raymond james stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (record VARCHAR, game_site VARCHAR)
SELECT record FROM table_name_46 WHERE game_site = "raymond james stadium"
Write a SQL query that answers the following question: What is the kickoff for the game on october 22, 2000?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (kickoff VARCHAR, date VARCHAR)
SELECT kickoff FROM table_name_30 WHERE date = "october 22, 2000"
Write a SQL query that answers the following question: Which Hindi network is based in India and uses dish service and shows general programming?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (network VARCHAR, genre VARCHAR, origin_of_programming VARCHAR, service VARCHAR, language VARCHAR)
SELECT network FROM table_name_93 WHERE service = "dish" AND language = "hindi" AND origin_of_programming = "india" AND genre = "general"
Write a SQL query that answers the following question: Which language is used by the optimum TV service that shows cricket and is based in the United States?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (language VARCHAR, genre VARCHAR, service VARCHAR, origin_of_programming VARCHAR)
SELECT language FROM table_name_43 WHERE service = "optimum tv" AND origin_of_programming = "united states" AND genre = "cricket"
Write a SQL query that answers the following question: What is the origin of the Malayalam Dish Service that shows general programming on the Asianet Plus network?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (origin_of_programming VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR, language VARCHAR)
SELECT origin_of_programming FROM table_name_11 WHERE service = "dish" AND language = "malayalam" AND genre = "general" AND network = "asianet plus"
Write a SQL query that answers the following question: What is the average grid number with a ferrari and a time or retired time of 1:32:35.101?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (grid INTEGER, constructor VARCHAR, time_retired VARCHAR)
SELECT AVG(grid) FROM table_name_10 WHERE constructor = "ferrari" AND time_retired = "1:32:35.101"
Write a SQL query that answers the following question: What week of the season was November 24, 1957?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_74 WHERE date = "november 24, 1957"
Write a SQL query that answers the following question: What was the score of the game against the San Diego Chargers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (score VARCHAR, opponent VARCHAR)
SELECT score FROM table_name_41 WHERE opponent = "san diego chargers"
Write a SQL query that answers the following question: What is the latest week with the date of november 5, 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (week INTEGER, date VARCHAR)
SELECT MAX(week) FROM table_name_40 WHERE date = "november 5, 1995"
Write a SQL query that answers the following question: What was the outcome of the Tournament in Buenos Aires?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_30 WHERE tournament = "buenos aires"
Write a SQL query that answers the following question: In the match played with partner Andres Molteni, with the outcome of winner, who was the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (opponent VARCHAR, outcome VARCHAR, partner VARCHAR)
SELECT opponent FROM table_name_45 WHERE outcome = "winner" AND partner = "andres molteni"
Write a SQL query that answers the following question: What is the player with a Span of 1998-2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (player VARCHAR, span VARCHAR)
SELECT player FROM table_name_8 WHERE span = "1998-2009"
Write a SQL query that answers the following question: What draw has a Span of 1987-1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (draw VARCHAR, span VARCHAR)
SELECT draw FROM table_name_85 WHERE span = "1987-1999"
Write a SQL query that answers the following question: What player has a span of 1997-2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (player VARCHAR, span VARCHAR)
SELECT player FROM table_name_54 WHERE span = "1997-2009"
Write a SQL query that answers the following question: What round did Takayo Hashi face Yoko Hattori?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (round INTEGER, opponent VARCHAR)
SELECT SUM(round) FROM table_name_14 WHERE opponent = "yoko hattori"
Write a SQL query that answers the following question: What was the away team that played at Princes Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_51 WHERE venue = "princes park"
Write a SQL query that answers the following question: What was the date when Footscray was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_5 WHERE away_team = "footscray"
Write a SQL query that answers the following question: What was the home team's score in the match at Victoria Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_6 WHERE venue = "victoria park"
Write a SQL query that answers the following question: On what date was South Melbourne the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_61 WHERE away_team = "south melbourne"
Write a SQL query that answers the following question: What away team did Carlton play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_77 WHERE home_team = "carlton"
Write a SQL query that answers the following question: What is the sum of bronze when silver is greater than 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (bronze INTEGER, silver INTEGER)
SELECT SUM(bronze) FROM table_name_45 WHERE silver > 3
Write a SQL query that answers the following question: What is the average total when gold is 0, bronze is 0, and silver is smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (total INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_54 WHERE gold = 0 AND bronze = 0 AND silver < 1
Write a SQL query that answers the following question: What was the total attendance in week 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (attendance VARCHAR, week VARCHAR)
SELECT COUNT(attendance) FROM table_name_96 WHERE week = 8
Write a SQL query that answers the following question: Who was the winner in 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (winner VARCHAR, date VARCHAR)
SELECT winner FROM table_name_49 WHERE date = 2007
Write a SQL query that answers the following question: What sport was played before 2006 with a loser of france b?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (sport VARCHAR, date VARCHAR, loser VARCHAR)
SELECT sport FROM table_name_93 WHERE date < 2006 AND loser = "france b"
Write a SQL query that answers the following question: Who was the winner with the loser being russia-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (winner VARCHAR, loser VARCHAR)
SELECT winner FROM table_name_66 WHERE loser = "russia-2"
Write a SQL query that answers the following question: Who was the loser playing football with england b as a winner after 1992?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (loser VARCHAR, date VARCHAR, sport VARCHAR, winner VARCHAR)
SELECT loser FROM table_name_55 WHERE sport = "football" AND winner = "england b" AND date > 1992
Write a SQL query that answers the following question: What was the name of the race that occurred in Brooklyn, Michigan with a sanctioning of cart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (race_name VARCHAR, sanctioning VARCHAR, city_location VARCHAR)
SELECT race_name FROM table_name_36 WHERE sanctioning = "cart" AND city_location = "brooklyn, michigan"
Write a SQL query that answers the following question: Where did the Gould Rex Mays Classic 150 occur?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (city_location VARCHAR, race_name VARCHAR)
SELECT city_location FROM table_name_38 WHERE race_name = "gould rex mays classic 150"
Write a SQL query that answers the following question: What is the date for the race that has a circuit of Milwaukee Mile and the sanctioning of cart?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (date VARCHAR, circuit VARCHAR, sanctioning VARCHAR)
SELECT date FROM table_name_10 WHERE circuit = "milwaukee mile" AND sanctioning = "cart"
Write a SQL query that answers the following question: 15 albums were released in the UK during which year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year VARCHAR, uk_albums VARCHAR)
SELECT year FROM table_name_25 WHERE uk_albums = "15"
Write a SQL query that answers the following question: What is the venue where Collingwood played as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_60 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What is the size of the crowd for the game with Footscray as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_59 WHERE home_team = "footscray"
Write a SQL query that answers the following question: What is the largest crowd for any game where Footscray is the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_9 WHERE home_team = "footscray"
Write a SQL query that answers the following question: What is the maximum number of draws when the diff is smaller than 186, points are fewer than 12 and games played fewer than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (drawn INTEGER, played VARCHAR, diff VARCHAR, points VARCHAR)
SELECT MAX(drawn) FROM table_name_86 WHERE diff < 186 AND points < 12 AND played < 6
Write a SQL query that answers the following question: What is the average diff when games played are more than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (diff INTEGER, played INTEGER)
SELECT AVG(diff) FROM table_name_84 WHERE played > 6
Write a SQL query that answers the following question: What is the highest draws when more than 6 are played and the points against are 54?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (drawn INTEGER, against VARCHAR, played VARCHAR)
SELECT MAX(drawn) FROM table_name_92 WHERE against = 54 AND played > 6
Write a SQL query that answers the following question: What is the maximum number of points against when the team has more than 0 losses and plays fewer than 6 games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (against INTEGER, lost VARCHAR, played VARCHAR)
SELECT MAX(against) FROM table_name_18 WHERE lost > 0 AND played < 6
Write a SQL query that answers the following question: What is the number of games played for the team with 12 points and an against smaller than 52?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (played INTEGER, points VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_59 WHERE points = 12 AND against < 52
Write a SQL query that answers the following question: What is the lowest average parish size with 47.2% of adherents and 4,936 regular attendees?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (average_parish_size INTEGER, _percentage_of_adherents VARCHAR, regular_attendees VARCHAR)
SELECT MIN(average_parish_size) FROM table_name_25 WHERE _percentage_of_adherents = "47.2%" AND regular_attendees > 4 OFFSET 936
Write a SQL query that answers the following question: What is the average regular number of attendees that has 79 parishes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (regular_attendees INTEGER, parishes VARCHAR)
SELECT AVG(regular_attendees) FROM table_name_36 WHERE parishes = 79
Write a SQL query that answers the following question: Which Grand Prix has the Circuit of Lille?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (name VARCHAR, circuit VARCHAR)
SELECT name FROM table_name_20 WHERE circuit = "lille"
Write a SQL query that answers the following question: Which winning driver of the Roussillon Grand Prix had an Alfa Romeo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (winning_driver VARCHAR, winning_constructor VARCHAR, name VARCHAR)
SELECT winning_driver FROM table_name_53 WHERE winning_constructor = "alfa romeo" AND name = "roussillon grand prix"
Write a SQL query that answers the following question: Which Constructor won the Roussillon Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (winning_constructor VARCHAR, name VARCHAR)
SELECT winning_constructor FROM table_name_95 WHERE name = "roussillon grand prix"
Write a SQL query that answers the following question: Which Driver won the Circuit of Rio de Janeiro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (winning_driver VARCHAR, circuit VARCHAR)
SELECT winning_driver FROM table_name_13 WHERE circuit = "rio de janeiro"
Write a SQL query that answers the following question: What day did the VFL pay MCG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_90 WHERE venue = "mcg"
Write a SQL query that answers the following question: What was November 4, 1973 attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (attendance VARCHAR, date VARCHAR)
SELECT attendance FROM table_name_64 WHERE date = "november 4, 1973"
Write a SQL query that answers the following question: What is the number of laps with a Constructor of renault, and a driver of jacques villeneuve?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (laps VARCHAR, constructor VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_73 WHERE constructor = "renault" AND driver = "jacques villeneuve"
Write a SQL query that answers the following question: What is the time/retired for grid 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_19 WHERE grid = 3
Write a SQL query that answers the following question: What is the time/retired for grid 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_95 WHERE grid = 8
Write a SQL query that answers the following question: What is the time/retired for a grid larger than 11, laps larger than 41, and nick heidfeld?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (time_retired VARCHAR, driver VARCHAR, grid VARCHAR, laps VARCHAR)
SELECT time_retired FROM table_name_32 WHERE grid > 11 AND laps > 41 AND driver = "nick heidfeld"
Write a SQL query that answers the following question: Who was the driver with less than 53 laps, Grid larger than 17, and a Time/Retired of spin?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_3 WHERE laps < 53 AND grid > 17 AND time_retired = "spin"
Write a SQL query that answers the following question: Who has won $98,860?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (driver VARCHAR, winnings VARCHAR)
SELECT driver FROM table_name_97 WHERE winnings = "$98,860"
Write a SQL query that answers the following question: What team is travelling to play Hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_17 WHERE home_team = "hawthorn"