instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the attendance at the week 7 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (attendance VARCHAR, week VARCHAR)
SELECT attendance FROM table_name_43 WHERE week = 7
Write a SQL query that answers the following question: What was the result of the game after week 3 against the New York Giants?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, opponent VARCHAR)
SELECT result FROM table_name_94 WHERE week > 3 AND opponent = "new york giants"
Write a SQL query that answers the following question: Who was the opponent at the week 6 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_52 WHERE week = 6
Write a SQL query that answers the following question: What is the lowest loss that Jarius Wright has had where he also has had a gain bigger than 1.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (loss INTEGER, name VARCHAR, gain VARCHAR)
SELECT MIN(loss) FROM table_name_80 WHERE name = "jarius wright" AND gain > 1
Write a SQL query that answers the following question: How much was the first place prize for the American golf classic located in Ohio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (location VARCHAR, tournament VARCHAR)
SELECT 1 AS st_prize___$__ FROM table_name_80 WHERE location = "ohio" AND tournament = "american golf classic"
Write a SQL query that answers the following question: What date was the Monsanto open located in Florida?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (date VARCHAR, location VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_58 WHERE location = "florida" AND tournament = "monsanto open"
Write a SQL query that answers the following question: What was the score of Johnny Miller (7)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (score VARCHAR, winner VARCHAR)
SELECT score FROM table_name_80 WHERE winner = "johnny miller (7)"
Write a SQL query that answers the following question: What is the total number of years that have divisions greater than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (year VARCHAR, division INTEGER)
SELECT COUNT(year) FROM table_name_62 WHERE division > 4
Write a SQL query that answers the following question: What is the highest division for years earlier than 2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (division INTEGER, year INTEGER)
SELECT MAX(division) FROM table_name_27 WHERE year < 2011
Write a SQL query that answers the following question: What is the Week number on November 30, 1958 with more than 33,240 in Attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (week VARCHAR, date VARCHAR, attendance VARCHAR)
SELECT COUNT(week) FROM table_name_64 WHERE date = "november 30, 1958" AND attendance > 33 OFFSET 240
Write a SQL query that answers the following question: What was the Result on November 9, 1958?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_77 WHERE date = "november 9, 1958"
Write a SQL query that answers the following question: What was the Attendance on Week 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (attendance INTEGER, week VARCHAR)
SELECT AVG(attendance) FROM table_name_70 WHERE week = 8
Write a SQL query that answers the following question: Which season did not qualify for UEFA competitions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (season VARCHAR, against VARCHAR)
SELECT season FROM table_name_70 WHERE against = "did not qualify for uefa competitions"
Write a SQL query that answers the following question: How many games were lost that had goals against of 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (lost VARCHAR, goals_against VARCHAR)
SELECT lost FROM table_name_15 WHERE goals_against = "5"
Write a SQL query that answers the following question: How many draws were there with goals against that did not qualify for UEFA competitions?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (drew VARCHAR, goals_against VARCHAR)
SELECT drew FROM table_name_56 WHERE goals_against = "did not qualify for uefa competitions"
Write a SQL query that answers the following question: Which competition did not qualify for UEFA competitions in the 1970-71 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (competition VARCHAR, lost VARCHAR, season VARCHAR)
SELECT competition FROM table_name_67 WHERE lost = "did not qualify for uefa competitions" AND season = "1970-71"
Write a SQL query that answers the following question: What is the attendance in texas stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (attendance INTEGER, venue VARCHAR)
SELECT SUM(attendance) FROM table_name_86 WHERE venue = "texas stadium"
Write a SQL query that answers the following question: What is the home team score for the team that has a home field of the Telstra Dome?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (home_team VARCHAR, ground VARCHAR)
SELECT home_team AS score FROM table_name_98 WHERE ground = "telstra dome"
Write a SQL query that answers the following question: Which home team had an away team of the Brisbane Lions?
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 = "brisbane lions"
Write a SQL query that answers the following question: What was the sensor with a resolution of 355x288 for a Naturalpoint Trackir 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (sensor VARCHAR, sensor_resolution VARCHAR, camera VARCHAR)
SELECT sensor FROM table_name_53 WHERE sensor_resolution = "355x288" AND camera = "naturalpoint trackir 3"
Write a SQL query that answers the following question: What was the sensor resolution with a minimal CPU usage for a naturalpoint trackir 3 pro?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (sensor_resolution VARCHAR, cpu_usage VARCHAR, camera VARCHAR)
SELECT sensor_resolution FROM table_name_39 WHERE cpu_usage = "minimal" AND camera = "naturalpoint trackir 3 pro"
Write a SQL query that answers the following question: What was the output with no IR LEDs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (output VARCHAR, ir_leds VARCHAR)
SELECT output FROM table_name_90 WHERE ir_leds = "no"
Write a SQL query that answers the following question: What sensor has a resolution of 640x480 with small CPU usage, jpeg compressed output and a camera of sony playstation eyetoy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (sensor VARCHAR, camera VARCHAR, output VARCHAR, sensor_resolution VARCHAR, cpu_usage VARCHAR)
SELECT sensor FROM table_name_21 WHERE sensor_resolution = "640x480" AND cpu_usage = "small" AND output = "jpeg compressed" AND camera = "sony playstation eyetoy"
Write a SQL query that answers the following question: What is the max speed of the unit with an 8+4 quantity built before 1971?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (max_speed__km_h_ INTEGER, quantity_built VARCHAR, year_built VARCHAR)
SELECT SUM(max_speed__km_h_) FROM table_name_22 WHERE quantity_built = "8+4" AND year_built < 1971
Write a SQL query that answers the following question: What is the numbers of the thn unit with a power greater than 220?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (numbers VARCHAR, power__horsepower_ VARCHAR, type VARCHAR)
SELECT numbers FROM table_name_49 WHERE power__horsepower_ > 220 AND type = "thn"
Write a SQL query that answers the following question: What is the power of the unit built after 1995?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (power__horsepower_ INTEGER, year_built INTEGER)
SELECT SUM(power__horsepower_) FROM table_name_71 WHERE year_built > 1995
Write a SQL query that answers the following question: Week larger than 6, and a Date of november 22, 1959 had what result?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_5 WHERE week > 6 AND date = "november 22, 1959"
Write a SQL query that answers the following question: Result of w 21–7 had what average week?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (week INTEGER, result VARCHAR)
SELECT AVG(week) FROM table_name_96 WHERE result = "w 21–7"
Write a SQL query that answers the following question: Date of november 29, 1959 had what lowest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (attendance INTEGER, date VARCHAR)
SELECT MIN(attendance) FROM table_name_7 WHERE date = "november 29, 1959"
Write a SQL query that answers the following question: Week that has a Date of december 5, 1959 had what week?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (week VARCHAR, date VARCHAR)
SELECT week FROM table_name_4 WHERE date = "december 5, 1959"
Write a SQL query that answers the following question: Which Game has an Opponent of @ carolina hurricanes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (game INTEGER, opponent VARCHAR)
SELECT SUM(game) FROM table_name_94 WHERE opponent = "@ carolina hurricanes"
Write a SQL query that answers the following question: How many games have a November of 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (game VARCHAR, november VARCHAR)
SELECT COUNT(game) FROM table_name_10 WHERE november = 10
Write a SQL query that answers the following question: Which Game has a November of 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (game INTEGER, november VARCHAR)
SELECT SUM(game) FROM table_name_32 WHERE november = 22
Write a SQL query that answers the following question: What is the mean year of marriage when her age was more than 19 and his age was 30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (year_of_marriage INTEGER, her_age VARCHAR, his_age VARCHAR)
SELECT AVG(year_of_marriage) FROM table_name_6 WHERE her_age > 19 AND his_age = 30
Write a SQL query that answers the following question: What is the lowest figure for her age when the year of marriage is before 1853, the number of children is less than 8, and the bride was Eliza Maria Partridge?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (her_age INTEGER, name VARCHAR, year_of_marriage VARCHAR, _number_of_children VARCHAR)
SELECT MIN(her_age) FROM table_name_60 WHERE year_of_marriage < 1853 AND _number_of_children < 8 AND name = "eliza maria partridge"
Write a SQL query that answers the following question: What is the total number of her age figures where his age is less than 33, the bride was diontha walker, and the number of children was less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (her_age INTEGER, _number_of_children VARCHAR, his_age VARCHAR, name VARCHAR)
SELECT SUM(her_age) FROM table_name_84 WHERE his_age < 33 AND name = "diontha walker" AND _number_of_children < 0
Write a SQL query that answers the following question: How much Lost has an Against larger than 19, and a Drawn smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (lost INTEGER, against VARCHAR, drawn VARCHAR)
SELECT SUM(lost) FROM table_name_67 WHERE against > 19 AND drawn < 1
Write a SQL query that answers the following question: Which Played has a Lost of 3, and an Against of 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (played INTEGER, lost VARCHAR, against VARCHAR)
SELECT AVG(played) FROM table_name_63 WHERE lost = 3 AND against = 23
Write a SQL query that answers the following question: Which Played is the highest one that has an Against smaller than 18, and Points smaller than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (played INTEGER, against VARCHAR, points VARCHAR)
SELECT MAX(played) FROM table_name_92 WHERE against < 18 AND points < 10
Write a SQL query that answers the following question: Which Against is the highest one that has a Drawn larger than 1, and a Team of corinthians, and a Played smaller than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (against INTEGER, played VARCHAR, drawn VARCHAR, team VARCHAR)
SELECT MAX(against) FROM table_name_31 WHERE drawn > 1 AND team = "corinthians" AND played < 7
Write a SQL query that answers the following question: What opponent has october less than 20, and 8 for points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (opponent VARCHAR, october VARCHAR, points VARCHAR)
SELECT opponent FROM table_name_13 WHERE october < 20 AND points = 8
Write a SQL query that answers the following question: What position does Drew Callander play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_1 WHERE player = "drew callander"
Write a SQL query that answers the following question: What round did Ray Kurpis play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (round VARCHAR, player VARCHAR)
SELECT round FROM table_name_2 WHERE player = "ray kurpis"
Write a SQL query that answers the following question: Which Built by has a Name of northern jaeger?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (built_by VARCHAR, name VARCHAR)
SELECT built_by FROM table_name_44 WHERE name = "northern jaeger"
Write a SQL query that answers the following question: How many Horsepowers have a Year smaller than 1974, and a Tonnage of 4437?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (horsepowers INTEGER, year VARCHAR, tonnage VARCHAR)
SELECT SUM(horsepowers) FROM table_name_51 WHERE year < 1974 AND tonnage = 4437
Write a SQL query that answers the following question: When was the 2014 fifa world cup qualification?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (date VARCHAR, competition VARCHAR)
SELECT date FROM table_name_96 WHERE competition = "2014 fifa world cup qualification"
Write a SQL query that answers the following question: When was the date of an event at Tokyo venue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_86 WHERE venue = "tokyo"
Write a SQL query that answers the following question: What city did Yugoslavia play against Poland in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (city VARCHAR, opponent VARCHAR)
SELECT city FROM table_name_58 WHERE opponent = "poland"
Write a SQL query that answers the following question: What day did Yugoslavia play Luxembourg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (date VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_56 WHERE opponent = "luxembourg"
Write a SQL query that answers the following question: What type of game was played in Ljubljana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (type_of_game VARCHAR, city VARCHAR)
SELECT type_of_game FROM table_name_97 WHERE city = "ljubljana"
Write a SQL query that answers the following question: What's the result of the game played in Belgrade?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (resultsΒΉ VARCHAR, city VARCHAR)
SELECT resultsΒΉ FROM table_name_70 WHERE city = "belgrade"
Write a SQL query that answers the following question: What was the score on March 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_2 WHERE date = "march 23"
Write a SQL query that answers the following question: When the Vancouver Canucks were visiting, what was the record when the score was 4-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (record VARCHAR, score VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_6 WHERE score = "4-2" AND visitor = "vancouver canucks"
Write a SQL query that answers the following question: Which Partner has a Score of 6–7, 7–6, 6–7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_79 WHERE score = "6–7, 7–6, 6–7"
Write a SQL query that answers the following question: Which Score has a Date of 13 april 1997?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_50 WHERE date = "13 april 1997"
Write a SQL query that answers the following question: Which Partner has a Score of 7–6, 6–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (partner VARCHAR, score VARCHAR)
SELECT partner FROM table_name_38 WHERE score = "7–6, 6–3"
Write a SQL query that answers the following question: Which Date has a Tournament of bmw open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (date VARCHAR, tournament VARCHAR)
SELECT date FROM table_name_63 WHERE tournament = "bmw open"
Write a SQL query that answers the following question: Which Partner has a Tournament of catella swedish open?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (partner VARCHAR, tournament VARCHAR)
SELECT partner FROM table_name_13 WHERE tournament = "catella swedish open"
Write a SQL query that answers the following question: Which Date has a Surface of clay, and a Score of 6–3, 5–7, 2–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (date VARCHAR, surface VARCHAR, score VARCHAR)
SELECT date FROM table_name_89 WHERE surface = "clay" AND score = "6–3, 5–7, 2–6"
Write a SQL query that answers the following question: Who was the winner of the tre valli varesine race?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (winner VARCHAR, race_name VARCHAR)
SELECT winner FROM table_name_60 WHERE race_name = "tre valli varesine"
Write a SQL query that answers the following question: What is the date of the omloop van de vlaamse scheldeboorden race with a UCI rating of 1.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (date VARCHAR, uci_rating VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_22 WHERE uci_rating = "1.1" AND race_name = "omloop van de vlaamse scheldeboorden"
Write a SQL query that answers the following question: What is the date of the gp cittΓ  di camaiore race?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (date VARCHAR, race_name VARCHAR)
SELECT date FROM table_name_54 WHERE race_name = "gp cittΓ  di camaiore"
Write a SQL query that answers the following question: What is the UCI rating of the race in Italy with the progetto ciclismo alplast team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (uci_rating VARCHAR, location VARCHAR, team VARCHAR)
SELECT uci_rating FROM table_name_81 WHERE location = "italy" AND team = "progetto ciclismo alplast"
Write a SQL query that answers the following question: What is the date of the game being played at Schaeffer Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (date VARCHAR, game_site VARCHAR)
SELECT date FROM table_name_52 WHERE game_site = "schaeffer stadium"
Write a SQL query that answers the following question: Which Points have a Year larger than 1966, and Wins larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (points INTEGER, year VARCHAR, wins VARCHAR)
SELECT AVG(points) FROM table_name_78 WHERE year > 1966 AND wins > 1
Write a SQL query that answers the following question: Which Year is the lowest one that has Wins smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (year INTEGER, wins INTEGER)
SELECT MIN(year) FROM table_name_47 WHERE wins < 0
Write a SQL query that answers the following question: Which Points have Wins larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (points INTEGER, wins INTEGER)
SELECT AVG(points) FROM table_name_15 WHERE wins > 1
Write a SQL query that answers the following question: Which Wins have a Year of 1963, and a Class of 50cc?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (wins INTEGER, year VARCHAR, class VARCHAR)
SELECT AVG(wins) FROM table_name_54 WHERE year = 1963 AND class = "50cc"
Write a SQL query that answers the following question: What is the player from Australia's rank with more than 16 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rank VARCHAR, wins VARCHAR, country VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE wins > 16 AND country = "australia"
Write a SQL query that answers the following question: What is the highest earnings of a player with more than 19 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (earnings___ INTEGER, wins INTEGER)
SELECT MAX(earnings___) AS $__ FROM table_name_16 WHERE wins > 19
Write a SQL query that answers the following question: Which average Opened has a Manufacturer of vekoma?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (opened INTEGER, manufacturer VARCHAR)
SELECT AVG(opened) FROM table_name_19 WHERE manufacturer = "vekoma"
Write a SQL query that answers the following question: Which Opened is the highest one that has a Themed Area of aerial park, and a Manufacturer of zamperla?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (opened INTEGER, themed_area VARCHAR, manufacturer VARCHAR)
SELECT MAX(opened) FROM table_name_76 WHERE themed_area = "aerial park" AND manufacturer = "zamperla"
Write a SQL query that answers the following question: Which Themed Area has a Name of troublesome trucks runaway coaster?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (themed_area VARCHAR, name VARCHAR)
SELECT themed_area FROM table_name_12 WHERE name = "troublesome trucks runaway coaster"
Write a SQL query that answers the following question: Which Manufacturer has a Style of steel sit down, and an Opened larger than 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (manufacturer VARCHAR, style VARCHAR, opened VARCHAR)
SELECT manufacturer FROM table_name_31 WHERE style = "steel sit down" AND opened > 2008
Write a SQL query that answers the following question: What position has a pick less than 25 for the university of california?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR)
SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california"
Write a SQL query that answers the following question: What is the pick number for tulane university?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (pick INTEGER, school VARCHAR)
SELECT SUM(pick) FROM table_name_23 WHERE school = "tulane university"
Write a SQL query that answers the following question: What is the pick number for the kansas city royals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR)
SELECT SUM(pick) FROM table_name_12 WHERE team = "kansas city royals"
Write a SQL query that answers the following question: What is the average Pick for the Pasco, Wa school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (pick INTEGER, school VARCHAR)
SELECT AVG(pick) FROM table_name_87 WHERE school = "pasco, wa"
Write a SQL query that answers the following question: What Label released a CD single in 1993?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (label VARCHAR, format VARCHAR, date VARCHAR)
SELECT label FROM table_name_5 WHERE format = "cd single" AND date = "1993"
Write a SQL query that answers the following question: Where was home with a record of 7–5–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (home VARCHAR, record VARCHAR)
SELECT home FROM table_name_77 WHERE record = "7–5–2"
Write a SQL query that answers the following question: On what date was the record 8–6–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_14 WHERE record = "8–6–3"
Write a SQL query that answers the following question: What was the score when Pittsburgh was the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (score VARCHAR, visitor VARCHAR)
SELECT score FROM table_name_42 WHERE visitor = "pittsburgh"
Write a SQL query that answers the following question: On what date were the NY Rangers home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_98 WHERE home = "ny rangers"
Write a SQL query that answers the following question: Which visitor had a record of 7–5–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_49 WHERE record = "7–5–3"
Write a SQL query that answers the following question: Who was home when Detroit was visiting with a score of 4 – 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (home VARCHAR, visitor VARCHAR, score VARCHAR)
SELECT home FROM table_name_89 WHERE visitor = "detroit" AND score = "4 – 1"
Write a SQL query that answers the following question: What is the earliest date with Great Expectations label with LP format?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (date INTEGER, label VARCHAR, format VARCHAR)
SELECT MIN(date) FROM table_name_92 WHERE label = "great expectations" AND format = "lp"
Write a SQL query that answers the following question: What format was used for Mobil 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (format VARCHAR, catalog VARCHAR)
SELECT format FROM table_name_21 WHERE catalog = "mobil 1"
Write a SQL query that answers the following question: what team won the friendly match
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (result VARCHAR, competition VARCHAR)
SELECT result FROM table_name_98 WHERE competition = "friendly match"
Write a SQL query that answers the following question: Which Runner-up has a Last win smaller than 1998, and Wins of 1, and a Rank larger than 13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (runner_up VARCHAR, rank VARCHAR, last_win VARCHAR, wins VARCHAR)
SELECT COUNT(runner_up) FROM table_name_71 WHERE last_win < 1998 AND wins = 1 AND rank > 13
Write a SQL query that answers the following question: How many Last wins have a Club of mansfield town, and Wins smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (last_win VARCHAR, club VARCHAR, wins VARCHAR)
SELECT COUNT(last_win) FROM table_name_42 WHERE club = "mansfield town" AND wins < 1
Write a SQL query that answers the following question: Which Driver has a Date of 16th september 1951, and a Race of dns?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (driver VARCHAR, date VARCHAR, race VARCHAR)
SELECT driver FROM table_name_8 WHERE date = "16th september 1951" AND race = "dns"
Write a SQL query that answers the following question: At which race did reg parnell win the goodwood trophy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (race VARCHAR, event VARCHAR, driver VARCHAR)
SELECT race FROM table_name_47 WHERE event = "goodwood trophy" AND driver = "reg parnell"
Write a SQL query that answers the following question: Which Race has a Date of 31st may 1953, and an Event of grand prix de l'albigeois final?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (race VARCHAR, date VARCHAR, event VARCHAR)
SELECT race FROM table_name_20 WHERE date = "31st may 1953" AND event = "grand prix de l'albigeois final"
Write a SQL query that answers the following question: What's the average total cargo in metric tonnes that has an 11.8% Change?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (total_cargo__metric_tonnes_ INTEGER, _percentage_change VARCHAR)
SELECT AVG(total_cargo__metric_tonnes_) FROM table_name_97 WHERE _percentage_change = "11.8%"
Write a SQL query that answers the following question: What is the highest rank of Tokyo International Airport?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (rank INTEGER, airport VARCHAR)
SELECT MAX(rank) FROM table_name_72 WHERE airport = "tokyo international airport"
Write a SQL query that answers the following question: Where the games are smaller than 5 and the points are 6, what is the average lost?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (lost INTEGER, points VARCHAR, games VARCHAR)
SELECT AVG(lost) FROM table_name_92 WHERE points = 6 AND games < 5
Write a SQL query that answers the following question: with build 5/69-6/69 what's the order?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (order INTEGER, built VARCHAR)
SELECT SUM(order) FROM table_name_89 WHERE built = "5/69-6/69"
Write a SQL query that answers the following question: Which Outcome has a Score of 6–2, 6–2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_20 WHERE score = "6–2, 6–2"
Write a SQL query that answers the following question: Which Date has an Outcome of winner, and a Score of 7–5, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (date VARCHAR, outcome VARCHAR, score VARCHAR)
SELECT date FROM table_name_69 WHERE outcome = "winner" AND score = "7–5, 6–4"
Write a SQL query that answers the following question: Which Tournament has an Outcome of winner, and a Surface of clay, and a Score of 6–4, 6–1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (tournament VARCHAR, score VARCHAR, outcome VARCHAR, surface VARCHAR)
SELECT tournament FROM table_name_23 WHERE outcome = "winner" AND surface = "clay" AND score = "6–4, 6–1"