instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What was the crowd attendance when the home team was Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_73 WHERE home_team = "melbourne"
Write a SQL query that answers the following question: What was the away team when the venue was Lake Oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (away_team VARCHAR, venue VARCHAR)
SELECT away_team FROM table_name_30 WHERE venue = "lake oval"
Write a SQL query that answers the following question: What was the away team when the home team was Carlton?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "carlton"
Write a SQL query that answers the following question: What player is picked 302 in round 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (player VARCHAR, round VARCHAR, pick VARCHAR)
SELECT player FROM table_name_27 WHERE round = 11 AND pick = 302
Write a SQL query that answers the following question: How many laps did Jackie Oliver do?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_41 WHERE driver = "jackie oliver"
Write a SQL query that answers the following question: How many laps with a grid larger than 7 did a Lotus - Ford do with a Time/Retired of + 2 laps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (laps INTEGER, time_retired VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT SUM(laps) FROM table_name_68 WHERE grid > 7 AND constructor = "lotus - ford" AND time_retired = "+ 2 laps"
Write a SQL query that answers the following question: What is the name of the constellation that has a NGC number smaller tha 5457?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (constellation VARCHAR, ngc_number INTEGER)
SELECT constellation FROM table_name_19 WHERE ngc_number < 5457
Write a SQL query that answers the following question: What is the Apparent magnitude of a Declination (J2000) of Β°39β€²45β€³?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (apparent_magnitude INTEGER, declination___j2000__ VARCHAR)
SELECT MIN(apparent_magnitude) FROM table_name_67 WHERE declination___j2000__ = "Β°39β€²45β€³"
Write a SQL query that answers the following question: Which supercharger gear ratio has a Octane rating of 68?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (supercharger_gear_ratio VARCHAR, octane_rating VARCHAR)
SELECT supercharger_gear_ratio FROM table_name_22 WHERE octane_rating = "68"
Write a SQL query that answers the following question: What is the elite eight result for the big west?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (elite_eight VARCHAR, conference VARCHAR)
SELECT elite_eight FROM table_name_56 WHERE conference = "big west"
Write a SQL query that answers the following question: What is the vote % for Cliff Breitkreuz?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (votes__percentage VARCHAR, candidate VARCHAR)
SELECT votes__percentage FROM table_name_24 WHERE candidate = "cliff breitkreuz"
Write a SQL query that answers the following question: What is the time/retired for damon hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (time_retired VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_36 WHERE driver = "damon hill"
Write a SQL query that answers the following question: Who constructed olivier panis' car that retired after +1 lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (constructor VARCHAR, time_retired VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_4 WHERE time_retired = "+1 lap" AND driver = "olivier panis"
Write a SQL query that answers the following question: What is the high assists of Hamilton (24)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (high_assists VARCHAR, high_points VARCHAR)
SELECT high_assists FROM table_name_22 WHERE high_points = "hamilton (24)"
Write a SQL query that answers the following question: What series had a high points of Prince (23)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (series VARCHAR, high_points VARCHAR)
SELECT series FROM table_name_32 WHERE high_points = "prince (23)"
Write a SQL query that answers the following question: What category of the British Soap Awards resulted in nominated?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (category VARCHAR, awards VARCHAR, result VARCHAR)
SELECT category FROM table_name_18 WHERE awards = "british soap awards" AND result = "nominated"
Write a SQL query that answers the following question: What category was nominated in 2010 fo the British Soap Awards?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (category VARCHAR, awards VARCHAR, year VARCHAR, result VARCHAR)
SELECT category FROM table_name_38 WHERE year = 2010 AND result = "nominated" AND awards = "british soap awards"
Write a SQL query that answers the following question: Which country is Dyer from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (country VARCHAR, name VARCHAR)
SELECT country FROM table_name_14 WHERE name = "dyer"
Write a SQL query that answers the following question: What country is the athlete moving from Everton from?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (country VARCHAR, moving_from VARCHAR)
SELECT country FROM table_name_32 WHERE moving_from = "everton"
Write a SQL query that answers the following question: Name the tournament for 2009 2r
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (tournament VARCHAR)
SELECT tournament FROM table_name_32 WHERE 2009 = "2r"
Write a SQL query that answers the following question: Name the 2011 for 2009 being 2r at wimbledon
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (tournament VARCHAR)
SELECT 2011 FROM table_name_7 WHERE 2009 = "2r" AND tournament = "wimbledon"
Write a SQL query that answers the following question: Name the 2012 for 2009 of 1r
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (Id VARCHAR)
SELECT 2012 FROM table_name_19 WHERE 2009 = "1r"
Write a SQL query that answers the following question: Who was the away team when the home team was South Melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_7 WHERE home_team = "south melbourne"
Write a SQL query that answers the following question: What is the total swimsuit number with gowns larger than 9.48 with interviews larger than 8.94 in florida?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (swimsuit VARCHAR, interview VARCHAR, evening_gown VARCHAR, country VARCHAR)
SELECT COUNT(swimsuit) FROM table_name_35 WHERE evening_gown > 9.48 AND country = "florida" AND interview > 8.94
Write a SQL query that answers the following question: What is the total average for swimsuits smaller than 9.62 in Colorado?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (average INTEGER, swimsuit VARCHAR, country VARCHAR)
SELECT SUM(average) FROM table_name_70 WHERE swimsuit < 9.62 AND country = "colorado"
Write a SQL query that answers the following question: What was the bronze medal count of the team that finished with 47 total medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (bronze INTEGER, total VARCHAR)
SELECT AVG(bronze) FROM table_name_86 WHERE total = 47
Write a SQL query that answers the following question: What is the silver medal count of the team that finished with 8 bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (silver INTEGER, bronze VARCHAR)
SELECT SUM(silver) FROM table_name_41 WHERE bronze = 8
Write a SQL query that answers the following question: What is the status of renΓ© hoppe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (status VARCHAR, athlete VARCHAR)
SELECT status FROM table_name_10 WHERE athlete = "renΓ© hoppe"
Write a SQL query that answers the following question: How many times does Switzerland have under 7 golds and less than 3 silvers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (total VARCHAR, silver VARCHAR, country VARCHAR, gold VARCHAR)
SELECT COUNT(total) FROM table_name_17 WHERE country = "switzerland" AND gold < 7 AND silver < 3
Write a SQL query that answers the following question: What athlete has less than 7 gold and 14 total medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (athlete VARCHAR, gold VARCHAR, total VARCHAR)
SELECT athlete FROM table_name_87 WHERE gold < 7 AND total = 14
Write a SQL query that answers the following question: What is the average crowd size for the home team hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (crowd INTEGER, home_team VARCHAR)
SELECT AVG(crowd) FROM table_name_13 WHERE home_team = "hawthorn"
Write a SQL query that answers the following question: Where does St Kilda play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (venue VARCHAR, home_team VARCHAR)
SELECT venue FROM table_name_48 WHERE home_team = "st kilda"
Write a SQL query that answers the following question: Who was the home team when Fitzroy was the away team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_76 WHERE away_team = "fitzroy"
Write a SQL query that answers the following question: What was the home team score at Kardinia Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (home_team VARCHAR, venue VARCHAR)
SELECT home_team AS score FROM table_name_43 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: What was the lowest crowd size for the Carlton at home?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (crowd INTEGER, home_team VARCHAR)
SELECT MIN(crowd) FROM table_name_2 WHERE home_team = "carlton"
Write a SQL query that answers the following question: Name the engine with rounds of 7 with geki driver
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (engine VARCHAR, rounds VARCHAR, driver VARCHAR)
SELECT engine FROM table_name_57 WHERE rounds = "7" AND driver = "geki"
Write a SQL query that answers the following question: Name the driver for 3 rounds
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (driver VARCHAR, rounds VARCHAR)
SELECT driver FROM table_name_24 WHERE rounds = "3"
Write a SQL query that answers the following question: What was the attendance of the North Melbourne's home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_6 WHERE home_team = "north melbourne"
Write a SQL query that answers the following question: What was the attendance at the Fitzroy home game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (crowd INTEGER, home_team VARCHAR)
SELECT SUM(crowd) FROM table_name_36 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: What was Richmond's highest attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR)
SELECT MAX(crowd) FROM table_name_46 WHERE home_team = "richmond"
Write a SQL query that answers the following question: Which ground is match 4 held on?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (ground VARCHAR, match VARCHAR)
SELECT ground FROM table_name_49 WHERE match = 4
Write a SQL query that answers the following question: Which game number did they play the Chicago team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (game VARCHAR, team VARCHAR)
SELECT game FROM table_name_15 WHERE team = "chicago"
Write a SQL query that answers the following question: What was the season record when the location attendance was Air Canada Centre 19,800?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (record VARCHAR, location_attendance VARCHAR)
SELECT record FROM table_name_26 WHERE location_attendance = "air canada centre 19,800"
Write a SQL query that answers the following question: Name the visitor for home of ny rangers
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (visitor VARCHAR, home VARCHAR)
SELECT visitor FROM table_name_29 WHERE home = "ny rangers"
Write a SQL query that answers the following question: What is the label for a CD released in 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (label VARCHAR, media VARCHAR, release_date VARCHAR)
SELECT label FROM table_name_25 WHERE media = "cd" AND release_date = 2004
Write a SQL query that answers the following question: Who made a release in the US in 1982?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (label VARCHAR, release_date VARCHAR, country VARCHAR)
SELECT label FROM table_name_89 WHERE release_date = 1982 AND country = "us"
Write a SQL query that answers the following question: In the match where the venue was arden street oval, what was the crowd attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_88 WHERE venue = "arden street oval"
Write a SQL query that answers the following question: What was the crowd attendance in the match at punt road oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_58 WHERE venue = "punt road oval"
Write a SQL query that answers the following question: What was the score when the home team had a crowd larger than 21,188?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (home_team VARCHAR, crowd INTEGER)
SELECT home_team AS score FROM table_name_32 WHERE crowd > 21 OFFSET 188
Write a SQL query that answers the following question: Where did north melbourne play while away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (venue VARCHAR, away_team VARCHAR)
SELECT venue FROM table_name_23 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: What did the team score at home in north melbourne?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_10 WHERE away_team = "north melbourne"
Write a SQL query that answers the following question: What was the time of the driver in grid 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (time_retired VARCHAR, grid INTEGER)
SELECT time_retired FROM table_name_54 WHERE grid < 2
Write a SQL query that answers the following question: What time did Carroll Shelby have in Grid 14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (time_retired VARCHAR, grid VARCHAR, driver VARCHAR)
SELECT time_retired FROM table_name_51 WHERE grid < 14 AND driver = "carroll shelby"
Write a SQL query that answers the following question: What time did the ferrari car that finished 62 laps have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (time_retired VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT time_retired FROM table_name_85 WHERE laps < 62 AND constructor = "ferrari"
Write a SQL query that answers the following question: What is the date of the game where the vistor team was the Knicks and more than 18,165 were in attendance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, visitor VARCHAR, attendance VARCHAR)
SELECT date FROM table_name_11 WHERE visitor = "knicks" AND attendance > 18 OFFSET 165
Write a SQL query that answers the following question: Whats teo fabi average lap time while having less than 9 grids?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (laps INTEGER, driver VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_79 WHERE driver = "teo fabi" AND grid < 9
Write a SQL query that answers the following question: Which driver drove in grid 19?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_12 WHERE grid = 19
Write a SQL query that answers the following question: Who was the opponent on April 29?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (opponent VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_5 WHERE date = "april 29"
Write a SQL query that answers the following question: How many attended the game on April 17?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (attendance INTEGER, date VARCHAR)
SELECT SUM(attendance) FROM table_name_50 WHERE date = "april 17"
Write a SQL query that answers the following question: What is the record on April 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_86 WHERE date = "april 3"
Write a SQL query that answers the following question: What is the weight of the display that has an internal storage of 16-64 GB and uses a wi-fi, 3G wireless network?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (weight VARCHAR, internal_storage VARCHAR, wireless_network VARCHAR)
SELECT weight FROM table_name_33 WHERE internal_storage = "16-64 gb" AND wireless_network = "wi-fi, 3g"
Write a SQL query that answers the following question: Which wireless network did LCD displays with 4 GB of internal storage use?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (wireless_network VARCHAR, screen_type VARCHAR, internal_storage VARCHAR)
SELECT wireless_network FROM table_name_6 WHERE screen_type = "lcd" AND internal_storage = "4 gb"
Write a SQL query that answers the following question: What's the lowest number of draws when the wins are less than 15, and against is 1228?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (draws INTEGER, wins VARCHAR, against VARCHAR)
SELECT MIN(draws) FROM table_name_98 WHERE wins < 15 AND against = 1228
Write a SQL query that answers the following question: What's the sum of draws for against larger than 1228 with fewer than 1 wins?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (draws INTEGER, against VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_72 WHERE against > 1228 AND wins < 1
Write a SQL query that answers the following question: On what dates did Jim Jarmusch win the Lifetime Achievement?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (dates VARCHAR, lifetime_achievement VARCHAR)
SELECT dates FROM table_name_27 WHERE lifetime_achievement = "jim jarmusch"
Write a SQL query that answers the following question: Which team was the home team when Colorado was the visitor and the record became 26–15–9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT home FROM table_name_45 WHERE visitor = "colorado" AND record = "26–15–9"
Write a SQL query that answers the following question: What was the score when the record became 25–14–9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (score VARCHAR, record VARCHAR)
SELECT score FROM table_name_78 WHERE record = "25–14–9"
Write a SQL query that answers the following question: What was the date the record became 26–14–9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_35 WHERE record = "26–14–9"
Write a SQL query that answers the following question: What team was the home team when Colorado was the visitor and the record became 22–13–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (home VARCHAR, visitor VARCHAR, record VARCHAR)
SELECT home FROM table_name_88 WHERE visitor = "colorado" AND record = "22–13–6"
Write a SQL query that answers the following question: What's the venue for the asian games tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (venue VARCHAR, tournament VARCHAR)
SELECT venue FROM table_name_55 WHERE tournament = "asian games"
Write a SQL query that answers the following question: Which tournament resulted in 6th place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (tournament VARCHAR, result VARCHAR)
SELECT tournament FROM table_name_48 WHERE result = "6th"
Write a SQL query that answers the following question: What's the latest year that Doha, Qatar hosted a tournament?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (year INTEGER, venue VARCHAR)
SELECT MAX(year) FROM table_name_19 WHERE venue = "doha, qatar"
Write a SQL query that answers the following question: What's the average of all years tournaments were hosted in Doha, Qatar?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year INTEGER, venue VARCHAR)
SELECT AVG(year) FROM table_name_81 WHERE venue = "doha, qatar"
Write a SQL query that answers the following question: What is the overall draft number for the running back drafted after round 1 from fresno state?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (overall INTEGER, college VARCHAR, position VARCHAR, round VARCHAR)
SELECT SUM(overall) FROM table_name_68 WHERE position = "running back" AND round > 1 AND college = "fresno state"
Write a SQL query that answers the following question: What is the overall total for players drafted from notre dame?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (overall INTEGER, college VARCHAR)
SELECT SUM(overall) FROM table_name_25 WHERE college = "notre dame"
Write a SQL query that answers the following question: Name the sum of gold which has a silver more than 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (gold INTEGER, silver INTEGER)
SELECT SUM(gold) FROM table_name_23 WHERE silver > 1
Write a SQL query that answers the following question: Name the average rank for west germany when gold is more than 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (rank INTEGER, nation VARCHAR, gold VARCHAR)
SELECT AVG(rank) FROM table_name_15 WHERE nation = "west germany" AND gold > 1
Write a SQL query that answers the following question: Name the average rank for when bronze is more than 1
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (rank INTEGER, bronze INTEGER)
SELECT AVG(rank) FROM table_name_86 WHERE bronze > 1
Write a SQL query that answers the following question: I want the sum of gold for silver being less than 0
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (gold INTEGER, silver INTEGER)
SELECT SUM(gold) FROM table_name_87 WHERE silver < 0
Write a SQL query that answers the following question: What dates does Alex Munter have 25% and the polling firm of Decima?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (polling_dates VARCHAR, alex_munter VARCHAR, polling_firm VARCHAR)
SELECT polling_dates FROM table_name_41 WHERE alex_munter = "25%" AND polling_firm = "decima"
Write a SQL query that answers the following question: What are the polling dates for polling firm Holinshed when Terry Kilrea dropped out and Bob Chiarelli has 22.5%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (terry_kilrea__dropped_out_ VARCHAR, polling_firm VARCHAR, bob_chiarelli VARCHAR)
SELECT terry_kilrea__dropped_out_ FROM table_name_63 WHERE polling_firm = "holinshed" AND bob_chiarelli = "22.5%"
Write a SQL query that answers the following question: What is Date, when Outcome is "Runner Up", and when Opponent is "Lu Jiaxiang"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (date VARCHAR, outcome VARCHAR, opponent VARCHAR)
SELECT date FROM table_name_91 WHERE outcome = "runner up" AND opponent = "lu jiaxiang"
Write a SQL query that answers the following question: What is Opponent, when Tournament is "Phuket , Thailand"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_8 (opponent VARCHAR, tournament VARCHAR)
SELECT opponent FROM table_name_8 WHERE tournament = "phuket , thailand"
Write a SQL query that answers the following question: What is Surface, when Tournament is "Saint Joseph , United States"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (surface VARCHAR, tournament VARCHAR)
SELECT surface FROM table_name_87 WHERE tournament = "saint joseph , united states"
Write a SQL query that answers the following question: What is Tournament, when Opponent is "Lu Jiaxiang"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (tournament VARCHAR, opponent VARCHAR)
SELECT tournament FROM table_name_98 WHERE opponent = "lu jiaxiang"
Write a SQL query that answers the following question: What is Outcome, when Tournament is "Chiang Mai , Thailand"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (outcome VARCHAR, tournament VARCHAR)
SELECT outcome FROM table_name_90 WHERE tournament = "chiang mai , thailand"
Write a SQL query that answers the following question: What is Outcome, when Date is "19 September 2012"?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (outcome VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_97 WHERE date = "19 september 2012"
Write a SQL query that answers the following question: What Poles have Races smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (poles INTEGER, races INTEGER)
SELECT AVG(poles) FROM table_name_59 WHERE races < 4
Write a SQL query that answers the following question: What is the sum of Points with a Series of italian formula renault 2.0, and Poles smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (points VARCHAR, series VARCHAR, poles VARCHAR)
SELECT COUNT(points) FROM table_name_39 WHERE series = "italian formula renault 2.0" AND poles < 0
Write a SQL query that answers the following question: What is the total number of Points with Wins larger than 0, a Position of 12th, and Poles larger than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (points INTEGER, poles VARCHAR, wins VARCHAR, position VARCHAR)
SELECT SUM(points) FROM table_name_67 WHERE wins > 0 AND position = "12th" AND poles > 0
Write a SQL query that answers the following question: What is the smallest Wins with a Position of 20th, and Poles smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (wins INTEGER, position VARCHAR, poles VARCHAR)
SELECT MIN(wins) FROM table_name_19 WHERE position = "20th" AND poles < 0
Write a SQL query that answers the following question: What is the date of the match located in Madrid, Esp?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (date VARCHAR, location VARCHAR)
SELECT date FROM table_name_69 WHERE location = "madrid, esp"
Write a SQL query that answers the following question: Can you tell me the Miss Pilipinas that has the Second runner-up of maria penson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (miss_maja_pilipinas VARCHAR, second_runner_up VARCHAR)
SELECT miss_maja_pilipinas FROM table_name_55 WHERE second_runner_up = "maria penson"
Write a SQL query that answers the following question: Can you tell me the Miss Maja Pilipinas that has the Year of 1969?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (miss_maja_pilipinas VARCHAR, year VARCHAR)
SELECT miss_maja_pilipinas FROM table_name_30 WHERE year = 1969
Write a SQL query that answers the following question: Can you tell me the Third runner-up that has the Year of 1969?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (third_runner_up VARCHAR, year VARCHAR)
SELECT third_runner_up FROM table_name_80 WHERE year = 1969
Write a SQL query that answers the following question: Which Byes have an Against smaller than 1466, and Losses smaller than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (byes VARCHAR, against VARCHAR, losses VARCHAR)
SELECT byes FROM table_name_91 WHERE against < 1466 AND losses < 6
Write a SQL query that answers the following question: What was week 2's opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (opponent VARCHAR, week VARCHAR)
SELECT opponent FROM table_name_47 WHERE week = 2
Write a SQL query that answers the following question: Which Week has an Attendance of 20,112?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (week INTEGER, attendance VARCHAR)
SELECT MAX(week) FROM table_name_91 WHERE attendance = 20 OFFSET 112
Write a SQL query that answers the following question: What is the margin of victory of the Dodge Intrepid?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (margin_of_victory VARCHAR, make VARCHAR)
SELECT margin_of_victory FROM table_name_37 WHERE make = "dodge intrepid"
Write a SQL query that answers the following question: What is the lowest car number sponsored by UPS before 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (car__number INTEGER, sponsor VARCHAR, season VARCHAR)
SELECT MIN(car__number) FROM table_name_22 WHERE sponsor = "ups" AND season < 2001