instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: When the Total is less than 1, and Bronze is 0, how many Gold medals are there?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (gold INTEGER, bronze VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_73 WHERE bronze = 0 AND total < 1
Write a SQL query that answers the following question: What is the Rank of the Nation of Germany when the Total is more than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (rank VARCHAR, nation VARCHAR, total VARCHAR)
SELECT COUNT(rank) FROM table_name_63 WHERE nation = "germany" AND total > 2
Write a SQL query that answers the following question: Which weightlifter with a snatch larger than 117.5 had the lowest bodyweight?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (bodyweight INTEGER, snatch INTEGER)
SELECT MIN(bodyweight) FROM table_name_35 WHERE snatch > 117.5
Write a SQL query that answers the following question: Which weightlifter, who had a bodyweight of less than 136.16 and a clean and jerk larger than 135, had the highest Total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (total__kg_ INTEGER, bodyweight VARCHAR, clean_ VARCHAR, _jerk VARCHAR)
SELECT MAX(total__kg_) FROM table_name_43 WHERE bodyweight < 136.16 AND clean_ & _jerk > 135
Write a SQL query that answers the following question: Of weightlifters who weighed more than 136.16, who had the highest Total?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (total__kg_ INTEGER, bodyweight INTEGER)
SELECT MAX(total__kg_) FROM table_name_82 WHERE bodyweight > 136.16
Write a SQL query that answers the following question: What was the average clean and jerk of all weightlifters who had a bodyweight smaller than 87.5 and a snatch of less than 95?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (_jerk VARCHAR, clean_ INTEGER, bodyweight VARCHAR, snatch VARCHAR)
SELECT AVG(clean_) & _jerk FROM table_name_94 WHERE bodyweight = 87.5 AND snatch < 95
Write a SQL query that answers the following question: What is the sum of the weight that all weightlifters managed to clean and jerk, among weightlifters who had a snatch of more than 95 and a Total of more than 200?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (_jerk VARCHAR, clean_ VARCHAR, total__kg_ VARCHAR, snatch VARCHAR)
SELECT COUNT(clean_) & _jerk FROM table_name_8 WHERE total__kg_ = 200 AND snatch > 95
Write a SQL query that answers the following question: What kilometer (Rizal Park-basis) has a kilometer of 25?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (kilometer_no__rizal_park_basis_ VARCHAR, kilometer_no__layac_basis_ VARCHAR)
SELECT kilometer_no__rizal_park_basis_ FROM table_name_92 WHERE kilometer_no__layac_basis_ = "25"
Write a SQL query that answers the following question: Which Barangay has an exit of Sisiman toll barrier?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (barangay VARCHAR, exit VARCHAR)
SELECT barangay FROM table_name_66 WHERE exit = "sisiman toll barrier"
Write a SQL query that answers the following question: What kilometer (Layac-basis) has a Barangay of general lim (capot)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (kilometer_no__layac_basis_ VARCHAR, barangay VARCHAR)
SELECT kilometer_no__layac_basis_ FROM table_name_29 WHERE barangay = "general lim (capot)"
Write a SQL query that answers the following question: In which municipality is Barangay Poblacion?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (municipality VARCHAR, barangay VARCHAR)
SELECT municipality FROM table_name_42 WHERE barangay = "poblacion"
Write a SQL query that answers the following question: What is the exit at kilometer (Rizal Park-basis) 164?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (exit VARCHAR, kilometer_no__rizal_park_basis_ VARCHAR)
SELECT exit FROM table_name_57 WHERE kilometer_no__rizal_park_basis_ = "164"
Write a SQL query that answers the following question: What is the competition on 23 February 1929?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_27 WHERE date = "23 february 1929"
Write a SQL query that answers the following question: What is the club/province of Sireli Bobo, who plays wing and has less than 24 caps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (club_province VARCHAR, player VARCHAR, position VARCHAR, caps VARCHAR)
SELECT club_province FROM table_name_93 WHERE position = "wing" AND caps < 24 AND player = "sireli bobo"
Write a SQL query that answers the following question: What is the total number of Caps Aca Ratuva, a flanker, has?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (caps VARCHAR, position VARCHAR, player VARCHAR)
SELECT COUNT(caps) FROM table_name_40 WHERE position = "flanker" AND player = "aca ratuva"
Write a SQL query that answers the following question: What is the date of birth of Kameli Ratuvou?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT date_of_birth__age_ FROM table_name_45 WHERE player = "kameli ratuvou"
Write a SQL query that answers the following question: What is the date of birth of Henry Qiodravu?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (date_of_birth__age_ VARCHAR, player VARCHAR)
SELECT date_of_birth__age_ FROM table_name_49 WHERE player = "henry qiodravu"
Write a SQL query that answers the following question: What is the lowest medal total with less than 3 gold medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (total INTEGER, gold INTEGER)
SELECT MIN(total) FROM table_name_89 WHERE gold < 3
Write a SQL query that answers the following question: What's the lowest amount of laps with a start of 21?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (laps INTEGER, start VARCHAR)
SELECT MIN(laps) FROM table_name_32 WHERE start = "21"
Write a SQL query that answers the following question: What was the start of the competitor with a qualifying time of 84.300?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (start VARCHAR, qual VARCHAR)
SELECT start FROM table_name_20 WHERE qual = "84.300"
Write a SQL query that answers the following question: In what year were there more laps than 200 in a race?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (year VARCHAR, laps INTEGER)
SELECT year FROM table_name_38 WHERE laps > 200
Write a SQL query that answers the following question: what is the current version of the project64 with gpl v2 license?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (current_version VARCHAR, license VARCHAR, name VARCHAR)
SELECT current_version FROM table_name_38 WHERE license = "gpl v2" AND name = "project64"
Write a SQL query that answers the following question: what is the current version of the name mupen64plus with gpl v2 license?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (current_version VARCHAR, license VARCHAR, name VARCHAR)
SELECT current_version FROM table_name_97 WHERE license = "gpl v2" AND name = "mupen64plus"
Write a SQL query that answers the following question: what is the current version with license gpl v3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (current_version VARCHAR, license VARCHAR)
SELECT current_version FROM table_name_77 WHERE license = "gpl v3"
Write a SQL query that answers the following question: What leading man earlier than 1932 was directed by archie mayo?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (leading_man VARCHAR, year VARCHAR, director VARCHAR)
SELECT leading_man FROM table_name_1 WHERE year < 1932 AND director = "archie mayo"
Write a SQL query that answers the following question: What year was the role nan taylor, alias of nan ellis, aka mrs. andrews and directed by William keighley?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (year INTEGER, role VARCHAR, director VARCHAR)
SELECT SUM(year) FROM table_name_56 WHERE role = "nan taylor, alias of nan ellis, aka mrs. andrews" AND director = "william keighley"
Write a SQL query that answers the following question: What is the latest year for the role of joan gordon, aka francine la rue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (year INTEGER, role VARCHAR)
SELECT MAX(year) FROM table_name_65 WHERE role = "joan gordon, aka francine la rue"
Write a SQL query that answers the following question: What film has a leading man of adolphe menjou in 1939?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (film VARCHAR, leading_man VARCHAR, year VARCHAR)
SELECT film FROM table_name_91 WHERE leading_man = "adolphe menjou" AND year = 1939
Write a SQL query that answers the following question: What film was the director william a. wellman, later than 1931 with a leading man of george brent, and a Role of joan gordon, aka francine la rue?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (film VARCHAR, role VARCHAR, leading_man VARCHAR, director VARCHAR, year VARCHAR)
SELECT film FROM table_name_54 WHERE director = "william a. wellman" AND year > 1931 AND leading_man = "george brent" AND role = "joan gordon, aka francine la rue"
Write a SQL query that answers the following question: What director directed the role of shelby barret wyatt in 1935?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (director VARCHAR, year VARCHAR, role VARCHAR)
SELECT director FROM table_name_14 WHERE year = 1935 AND role = "shelby barret wyatt"
Write a SQL query that answers the following question: What is the weekly rank for a share of 9 and 9.42 million viewers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (weekly_rank___number_ VARCHAR, share VARCHAR, viewers__m_ VARCHAR)
SELECT weekly_rank___number_ FROM table_name_53 WHERE share = 9 AND viewers__m_ = 9.42
Write a SQL query that answers the following question: What is the sum of all ratings at a weekly rank of 10 and a share less than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (rating INTEGER, weekly_rank___number_ VARCHAR, share VARCHAR)
SELECT SUM(rating) FROM table_name_33 WHERE weekly_rank___number_ = "10" AND share < 11
Write a SQL query that answers the following question: What is the highest number of viewers for a rating greater than 9.4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (viewers__m_ INTEGER, rating INTEGER)
SELECT MAX(viewers__m_) FROM table_name_47 WHERE rating > 9.4
Write a SQL query that answers the following question: Which athlete performed before 1984 in an 800 m event?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (athlete VARCHAR, year VARCHAR, event VARCHAR)
SELECT athlete FROM table_name_40 WHERE year < 1984 AND event = "800 m"
Write a SQL query that answers the following question: What is the lowest number of points that Tevita Vaikona scored when making more than 23 tries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (points INTEGER, tries VARCHAR, player VARCHAR)
SELECT MIN(points) FROM table_name_97 WHERE tries > 23 AND player = "tevita vaikona"
Write a SQL query that answers the following question: What is the average number of points scored by Joe Vagana when making fewer than 2 tries?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (points INTEGER, player VARCHAR, tries VARCHAR)
SELECT AVG(points) FROM table_name_46 WHERE player = "joe vagana" AND tries < 2
Write a SQL query that answers the following question: What is the competition that had a win result and a score of 3-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (competition VARCHAR, result VARCHAR, score VARCHAR)
SELECT competition FROM table_name_19 WHERE result = "win" AND score = "3-1"
Write a SQL query that answers the following question: What is the venue of the match that had a win result and a score of 0-4 in the 2002 Tiger Cup Group Stage?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (venue VARCHAR, score VARCHAR, result VARCHAR, competition VARCHAR)
SELECT venue FROM table_name_33 WHERE result = "win" AND competition = "2002 tiger cup group stage" AND score = "0-4"
Write a SQL query that answers the following question: What is the score of the match on July 22, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (score VARCHAR, date VARCHAR)
SELECT score FROM table_name_98 WHERE date = "july 22, 2008"
Write a SQL query that answers the following question: What is the score of the 2002 Tiger Cup third/fourth place match?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (score VARCHAR, competition VARCHAR)
SELECT score FROM table_name_16 WHERE competition = "2002 tiger cup third/fourth place"
Write a SQL query that answers the following question: What is the competition on October 15, 2008?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (competition VARCHAR, date VARCHAR)
SELECT competition FROM table_name_37 WHERE date = "october 15, 2008"
Write a SQL query that answers the following question: What is the player that went to st. benedict's prep?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (player VARCHAR, school VARCHAR)
SELECT player FROM table_name_61 WHERE school = "st. benedict's prep"
Write a SQL query that answers the following question: What is the NBA draft for ohio state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (nba_draft VARCHAR, college VARCHAR)
SELECT nba_draft FROM table_name_58 WHERE college = "ohio state"
Write a SQL query that answers the following question: What school did the player that is 6-6 go to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_69 WHERE height = "6-6"
Write a SQL query that answers the following question: What school did samardo samuels go to?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_28 WHERE player = "samardo samuels"
Write a SQL query that answers the following question: What is the final for middleweight –75 kg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (final VARCHAR, event VARCHAR)
SELECT final FROM table_name_88 WHERE event = "middleweight –75 kg"
Write a SQL query that answers the following question: For the light heavyweight –81 kg event that did not advance to semifinal, who was the athlete?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (athlete VARCHAR, semifinal VARCHAR, event VARCHAR)
SELECT athlete FROM table_name_26 WHERE semifinal = "did not advance" AND event = "light heavyweight –81 kg"
Write a SQL query that answers the following question: What was the final for rouhollah hosseini?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (final VARCHAR, athlete VARCHAR)
SELECT final FROM table_name_78 WHERE athlete = "rouhollah hosseini"
Write a SQL query that answers the following question: When the round of 32 was n/a and quarterfinal was did not advance, what was the round of 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (round_of_16 VARCHAR, quarterfinal VARCHAR, round_of_32 VARCHAR)
SELECT round_of_16 FROM table_name_75 WHERE quarterfinal = "did not advance" AND round_of_32 = "n/a"
Write a SQL query that answers the following question: Can you tell me the Home team that has a Venue of Windy Hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_17 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What was the lowest attendance at a game when Pittsburgh was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance INTEGER, home VARCHAR)
SELECT MIN(attendance) FROM table_name_68 WHERE home = "pittsburgh"
Write a SQL query that answers the following question: What was the date of the game when Atlanta was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (date VARCHAR, home VARCHAR)
SELECT date FROM table_name_81 WHERE home = "atlanta"
Write a SQL query that answers the following question: What was the decision of the game when Montreal was the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (decision VARCHAR, home VARCHAR)
SELECT decision FROM table_name_90 WHERE home = "montreal"
Write a SQL query that answers the following question: What was the date of the game with a decision of Niittymaki and when the Flyers had a record of 30–21–5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (date VARCHAR, decision VARCHAR, record VARCHAR)
SELECT date FROM table_name_26 WHERE decision = "niittymaki" AND record = "30–21–5"
Write a SQL query that answers the following question: Which Position has a Nationality of united states, and a Pick of 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (position VARCHAR, nationality VARCHAR, pick VARCHAR)
SELECT position FROM table_name_19 WHERE nationality = "united states" AND pick = 9
Write a SQL query that answers the following question: What is the average Pick with a Position of pg, and a Round less than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (pick INTEGER, position VARCHAR, round VARCHAR)
SELECT AVG(pick) FROM table_name_14 WHERE position = "pg" AND round < 1
Write a SQL query that answers the following question: Which top ten, having less than 12 cuts less than 2 top five, and events smaller than 14, is the highest?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (top_10 INTEGER, events VARCHAR, cuts_made VARCHAR, top_5 VARCHAR)
SELECT MAX(top_10) FROM table_name_92 WHERE cuts_made < 12 AND top_5 < 2 AND events < 14
Write a SQL query that answers the following question: What is the average for the top five having a number of 42 cuts made.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (top_5 INTEGER, cuts_made VARCHAR)
SELECT AVG(top_5) FROM table_name_79 WHERE cuts_made = 42
Write a SQL query that answers the following question: Tell me the score on april 27 with visitor of buffalo
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (score VARCHAR, visitor VARCHAR, date VARCHAR)
SELECT score FROM table_name_8 WHERE visitor = "buffalo" AND date = "april 27"
Write a SQL query that answers the following question: How many people attended Melbourne's away game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (crowd INTEGER, away_team VARCHAR)
SELECT SUM(crowd) FROM table_name_4 WHERE away_team = "melbourne"
Write a SQL query that answers the following question: Who won the game at Dairy farmers stadium with a score of 28-24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (result VARCHAR, venue VARCHAR, score VARCHAR)
SELECT result FROM table_name_66 WHERE venue = "dairy farmers stadium" AND score = "28-24"
Write a SQL query that answers the following question: Who won that game on 24 July 2010?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (result VARCHAR, date VARCHAR)
SELECT result FROM table_name_26 WHERE date = "24 july 2010"
Write a SQL query that answers the following question: Who loss the 24-28 game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (opponent VARCHAR, result VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_20 WHERE result = "loss" AND score = "24-28"
Write a SQL query that answers the following question: Who scored 18-19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (opponent VARCHAR, score VARCHAR)
SELECT opponent FROM table_name_69 WHERE score = "18-19"
Write a SQL query that answers the following question: Which rank has more than 1 silver and a total nation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (rank VARCHAR, silver VARCHAR, nation VARCHAR)
SELECT rank FROM table_name_1 WHERE silver > 1 AND nation = "total"
Write a SQL query that answers the following question: What is the lowest total from slovenia with a Gold smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (total INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MIN(total) FROM table_name_79 WHERE nation = "slovenia" AND gold < 0
Write a SQL query that answers the following question: What class has less than 12 numbers built operated by southern?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (class VARCHAR, no_built VARCHAR, operator VARCHAR)
SELECT class FROM table_name_1 WHERE no_built < 12 AND operator = "southern"
Write a SQL query that answers the following question: Name the episode for viewers bigger than 5.63 and the households rating is 4.5/7
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (episode VARCHAR, viewers__m_ VARCHAR, households__rating_share_ VARCHAR)
SELECT episode FROM table_name_62 WHERE viewers__m_ > 5.63 AND households__rating_share_ = "4.5/7"
Write a SQL query that answers the following question: Name the 18-49 rating for weekly rank of 30
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (weekly_rank___number_ VARCHAR)
SELECT 18 AS _49__rating_share_ FROM table_name_1 WHERE weekly_rank___number_ = "30"
Write a SQL query that answers the following question: Who was the driver with 29 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (driver VARCHAR, laps VARCHAR)
SELECT driver FROM table_name_39 WHERE laps = "29"
Write a SQL query that answers the following question: What was the retired time for someone who was on grid 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_76 WHERE grid = "18"
Write a SQL query that answers the following question: Jacques Villeneuve was on what grid?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_84 WHERE driver = "jacques villeneuve"
Write a SQL query that answers the following question: What's the time for someone on grid 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_34 WHERE grid = "9"
Write a SQL query that answers the following question: What was the grid of Alex Yoong?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (grid VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_77 WHERE driver = "alex yoong"
Write a SQL query that answers the following question: What date was the game played at Lake Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (date VARCHAR, venue VARCHAR)
SELECT date FROM table_name_80 WHERE venue = "lake oval"
Write a SQL query that answers the following question: How many people came to the game at Victoria Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (crowd VARCHAR, venue VARCHAR)
SELECT COUNT(crowd) FROM table_name_17 WHERE venue = "victoria park"
Write a SQL query that answers the following question: Who lost to moyer (9–4)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_26 WHERE loss = "moyer (9–4)"
Write a SQL query that answers the following question: How many people attended when the record was broken with 47–63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (attendance VARCHAR, record VARCHAR)
SELECT attendance FROM table_name_38 WHERE record = "47–63"
Write a SQL query that answers the following question: What is the score of the home team that played Collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_70 WHERE away_team = "collingwood"
Write a SQL query that answers the following question: Who was the visitor when ward recorded the decision with a record of 22–21–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (visitor VARCHAR, decision VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_4 WHERE decision = "ward" AND record = "22–21–4"
Write a SQL query that answers the following question: What is the score of the game when they had a record of 22–19–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_77 WHERE record = "22–19–4"
Write a SQL query that answers the following question: What is the 1st week sales for the album finding forever before the number 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (album VARCHAR, number VARCHAR)
SELECT SUM(1 AS st_week_sales) FROM table_name_51 WHERE album = "finding forever" AND number < 6
Write a SQL query that answers the following question: What is the sum number of grid where time/retired is 2:41:38.4 and laps were more than 40?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (grid VARCHAR, time_retired VARCHAR, laps VARCHAR)
SELECT COUNT(grid) FROM table_name_60 WHERE time_retired = "2:41:38.4" AND laps > 40
Write a SQL query that answers the following question: Which constructor had laps amounting to more than 21 where the driver was John Surtees?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_14 WHERE laps > 21 AND driver = "john surtees"
Write a SQL query that answers the following question: How many laps did Jo Bonnier driver when the grid number was smaller than 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT SUM(laps) FROM table_name_6 WHERE driver = "jo bonnier" AND grid < 11
Write a SQL query that answers the following question: How many laps were there when time/retired was gearbox?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_53 WHERE time_retired = "gearbox"
Write a SQL query that answers the following question: How many were in attendance at the game where the visiting team was the Jazz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (attendance INTEGER, visitor VARCHAR)
SELECT SUM(attendance) FROM table_name_67 WHERE visitor = "jazz"
Write a SQL query that answers the following question: Who did the Chiefs play at the game attended by 34,063?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (opponent VARCHAR, attendance VARCHAR)
SELECT opponent FROM table_name_82 WHERE attendance = "34,063"
Write a SQL query that answers the following question: Which week's game was attended by 33,057 people?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (week VARCHAR, attendance VARCHAR)
SELECT week FROM table_name_48 WHERE attendance = "33,057"
Write a SQL query that answers the following question: what is the organisation when the year is less than 2005 and the award is the best variety show host?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (organisation VARCHAR, year VARCHAR, award VARCHAR)
SELECT organisation FROM table_name_84 WHERE year < 2005 AND award = "best variety show host"
Write a SQL query that answers the following question: what is the organisation when the nominated work title is n/a in the year 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (organisation VARCHAR, nominated_work_title VARCHAR, year VARCHAR)
SELECT organisation FROM table_name_79 WHERE nominated_work_title = "n/a" AND year = 2005
Write a SQL query that answers the following question: what is the lowest year with the result is nominated for the work title is love bites?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE result = "nominated" AND nominated_work_title = "love bites"
Write a SQL query that answers the following question: what is the year when then organisation is star awards, the result is won and the nominated work title is n/a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (year VARCHAR, nominated_work_title VARCHAR, organisation VARCHAR, result VARCHAR)
SELECT year FROM table_name_98 WHERE organisation = "star awards" AND result = "won" AND nominated_work_title = "n/a"
Write a SQL query that answers the following question: what is the latest year that has the result of nominated and the nominated work title is n/a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (year INTEGER, result VARCHAR, nominated_work_title VARCHAR)
SELECT MAX(year) FROM table_name_85 WHERE result = "nominated" AND nominated_work_title = "n/a"
Write a SQL query that answers the following question: what is the nominated work title when the result is won, the organisation is star awards and the award is top 10 most popular female artiste in the year 2007?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (nominated_work_title VARCHAR, year VARCHAR, award VARCHAR, result VARCHAR, organisation VARCHAR)
SELECT nominated_work_title FROM table_name_52 WHERE result = "won" AND organisation = "star awards" AND award = "top 10 most popular female artiste" AND year > 2007
Write a SQL query that answers the following question: What is the rank of the games that had 9 gold and 9 silvers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (rank VARCHAR, gold VARCHAR, silver VARCHAR)
SELECT rank FROM table_name_47 WHERE gold = "9" AND silver = "9"
Write a SQL query that answers the following question: How many golds were there in a game that has 17 bronze and a total of 31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (gold VARCHAR, bronze VARCHAR, total VARCHAR)
SELECT gold FROM table_name_8 WHERE bronze = "17" AND total = "31"
Write a SQL query that answers the following question: Which game had 8 bronze and 4 gold?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (games VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT games FROM table_name_61 WHERE bronze = "8" AND gold = "4"
Write a SQL query that answers the following question: When did San Jose visit the St. Louis?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_91 WHERE visitor = "san jose"
Write a SQL query that answers the following question: How many total wins with the latest win at the 1999 Italian Grand Prix at a rank of 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (wins INTEGER, latest_win VARCHAR, rank VARCHAR)
SELECT SUM(wins) FROM table_name_12 WHERE latest_win = "1999 italian grand prix" AND rank > 15