instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: What is the most bronze a team with more than 2 silvers has?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (bronze INTEGER, silver INTEGER)
SELECT MAX(bronze) FROM table_name_22 WHERE silver > 2
Write a SQL query that answers the following question: What is the total amount of bronze medals a team with 1 gold and more than 3 silver medals has?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (bronze INTEGER, gold VARCHAR, silver VARCHAR)
SELECT SUM(bronze) FROM table_name_67 WHERE gold = 1 AND silver > 3
Write a SQL query that answers the following question: What is the draw number that has 59 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (draw INTEGER, points VARCHAR)
SELECT AVG(draw) FROM table_name_86 WHERE points = 59
Write a SQL query that answers the following question: What place for roger pontare?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (place VARCHAR, artist VARCHAR)
SELECT place FROM table_name_62 WHERE artist = "roger pontare"
Write a SQL query that answers the following question: What song has draw number less than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (song VARCHAR, draw INTEGER)
SELECT song FROM table_name_41 WHERE draw < 2
Write a SQL query that answers the following question: What was the attendance when Essendon played as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (crowd VARCHAR, home_team VARCHAR)
SELECT COUNT(crowd) FROM table_name_42 WHERE home_team = "essendon"
Write a SQL query that answers the following question: Who played the home team at Windy Hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_3 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What was the date of the game that had a decision of wall?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (date VARCHAR, decision VARCHAR)
SELECT date FROM table_name_41 WHERE decision = "wall"
Write a SQL query that answers the following question: What is the name of the circuit when Jack Brabham is in the pole position and Graham Hill has the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (circuit VARCHAR, pole_position VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_name_84 WHERE pole_position = "jack brabham" AND fastest_lap = "graham hill"
Write a SQL query that answers the following question: What race contains the Monaco circuit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (race VARCHAR, circuit VARCHAR)
SELECT race FROM table_name_90 WHERE circuit = "monaco"
Write a SQL query that answers the following question: What is the date of the race when Jack Brabham is in the pole position and the circuit is Spa-Francorchamps?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR)
SELECT date FROM table_name_43 WHERE pole_position = "jack brabham" AND circuit = "spa-francorchamps"
Write a SQL query that answers the following question: What is the name of the circuit when Phil Hill has the fastest lap?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (circuit VARCHAR, fastest_lap VARCHAR)
SELECT circuit FROM table_name_1 WHERE fastest_lap = "phil hill"
Write a SQL query that answers the following question: What is the sum of every REG GP that Peter Andersson played as a pick# less than 143?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (reg_gp INTEGER, player VARCHAR, pick__number VARCHAR)
SELECT SUM(reg_gp) FROM table_name_28 WHERE player = "peter andersson" AND pick__number < 143
Write a SQL query that answers the following question: What is the total of PI GP played by Anton Rodin with a Reg GP less than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (pl_gp VARCHAR, player VARCHAR, reg_gp VARCHAR)
SELECT COUNT(pl_gp) FROM table_name_73 WHERE player = "anton rodin" AND reg_gp < 0
Write a SQL query that answers the following question: What is the total pick# played by Anton Rodin with a Reg GP over 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (pick__number VARCHAR, player VARCHAR, reg_gp VARCHAR)
SELECT COUNT(pick__number) FROM table_name_32 WHERE player = "anton rodin" AND reg_gp > 0
Write a SQL query that answers the following question: What is the lowest grid that has over 67 laps with stefan bellof driving?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (grid INTEGER, laps VARCHAR, driver VARCHAR)
SELECT MIN(grid) FROM table_name_52 WHERE laps > 67 AND driver = "stefan bellof"
Write a SQL query that answers the following question: How many laps have a grid under 14 and a time/retired of out of fuel?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (laps INTEGER, grid VARCHAR, time_retired VARCHAR)
SELECT SUM(laps) FROM table_name_2 WHERE grid < 14 AND time_retired = "out of fuel"
Write a SQL query that answers the following question: Who drove the renault that went over 23 laps and had a grid under 11?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (driver VARCHAR, laps VARCHAR, grid VARCHAR, constructor VARCHAR)
SELECT driver FROM table_name_21 WHERE grid < 11 AND constructor = "renault" AND laps > 23
Write a SQL query that answers the following question: What is the average NGC number that has a Apparent magnitude greater than 14.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (ngc_number INTEGER, apparent_magnitude INTEGER)
SELECT AVG(ngc_number) FROM table_name_59 WHERE apparent_magnitude > 14.2
Write a SQL query that answers the following question: What is the highest NGC number that has a Declination ( J2000 ) of °04′58″ and a Apparent magnitude larger than 7.3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (ngc_number INTEGER, declination___j2000__ VARCHAR, apparent_magnitude VARCHAR)
SELECT MAX(ngc_number) FROM table_name_5 WHERE declination___j2000__ = "°04′58″" AND apparent_magnitude > 7.3
Write a SQL query that answers the following question: What Constellation has a Object type of globular cluster and a NGC number of 5986?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (constellation VARCHAR, object_type VARCHAR, ngc_number VARCHAR)
SELECT constellation FROM table_name_17 WHERE object_type = "globular cluster" AND ngc_number = 5986
Write a SQL query that answers the following question: For clubs that have 0 gold and less than 5 points, what is the average amount of bronze medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (bronze INTEGER, points VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_43 WHERE points < 5 AND gold < 0
Write a SQL query that answers the following question: Club aik had over 9 small silver medals and more than 8 bronze medals, how many total points did they have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (points INTEGER, bronze VARCHAR, small_silver VARCHAR, club VARCHAR)
SELECT AVG(points) FROM table_name_78 WHERE small_silver > 9 AND club = "aik" AND bronze > 8
Write a SQL query that answers the following question: How many points did landskrona bois get when they were ranked below 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (points VARCHAR, club VARCHAR, rank VARCHAR)
SELECT COUNT(points) FROM table_name_68 WHERE club = "landskrona bois" AND rank < 18
Write a SQL query that answers the following question: Who was the opponent for game 5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (opponent VARCHAR, game VARCHAR)
SELECT opponent FROM table_name_29 WHERE game = 5
Write a SQL query that answers the following question: Name the team for pick more than 30 and position of c with round more than 4
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (team VARCHAR, round VARCHAR, pick VARCHAR, position VARCHAR)
SELECT team FROM table_name_28 WHERE pick > 30 AND position = "c" AND round > 4
Write a SQL query that answers the following question: What's the number of decimal digits when the total bits is more than 32 and the exponent is less than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (number_of_decimal_digits VARCHAR, total_bits VARCHAR, exponent VARCHAR)
SELECT number_of_decimal_digits FROM table_name_26 WHERE total_bits > 32 AND exponent < 15
Write a SQL query that answers the following question: What's the total number of signicand with ~34.0 decimal digits and more than 128 total bits?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (significand VARCHAR, number_of_decimal_digits VARCHAR, total_bits VARCHAR)
SELECT COUNT(significand) FROM table_name_41 WHERE number_of_decimal_digits = "~34.0" AND total_bits > 128
Write a SQL query that answers the following question: What's the sum of sign with more than 53 bits precision, double extended (80-bit) type, and more than 80 total bits?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (sign INTEGER, total_bits VARCHAR, bits_precision VARCHAR, type VARCHAR)
SELECT SUM(sign) FROM table_name_98 WHERE bits_precision > 53 AND type = "double extended (80-bit)" AND total_bits > 80
Write a SQL query that answers the following question: What's the lowest bits precision when the total bits are less than 16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (bits_precision INTEGER, total_bits INTEGER)
SELECT MIN(bits_precision) FROM table_name_32 WHERE total_bits < 16
Write a SQL query that answers the following question: How many years did the team that has a Singles win-Loss of 4-9 and first played before 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (years_played INTEGER, singles_win_loss VARCHAR, first_year_played VARCHAR)
SELECT SUM(years_played) FROM table_name_28 WHERE singles_win_loss = "4-9" AND first_year_played < 1999
Write a SQL query that answers the following question: What is the highest game number with a record of 12-8-1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (game INTEGER, record VARCHAR)
SELECT MAX(game) FROM table_name_29 WHERE record = "12-8-1"
Write a SQL query that answers the following question: What is the record when the decision was valiquette on November 23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (record VARCHAR, decision VARCHAR, november VARCHAR)
SELECT record FROM table_name_46 WHERE decision = "valiquette" AND november = 23
Write a SQL query that answers the following question: I want the driver for Laps more than 8 and ferrari with Grid of 8
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (driver VARCHAR, grid VARCHAR, laps VARCHAR, constructor VARCHAR)
SELECT driver FROM table_name_45 WHERE laps > 8 AND constructor = "ferrari" AND grid = 8
Write a SQL query that answers the following question: Which title has the Translation of vesoul?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (title VARCHAR, translation VARCHAR)
SELECT title FROM table_name_28 WHERE translation = "vesoul"
Write a SQL query that answers the following question: What was the orignal title for the winner and nominee, Breaking the Waves, in 1996 (11th)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (original_title VARCHAR, year VARCHAR, winner_and_nominees VARCHAR)
SELECT original_title FROM table_name_56 WHERE year = "1996 (11th)" AND winner_and_nominees = "breaking the waves"
Write a SQL query that answers the following question: What is the original title for the winner and nominees 'Secrets & Lies'?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (original_title VARCHAR, winner_and_nominees VARCHAR)
SELECT original_title FROM table_name_25 WHERE winner_and_nominees = "secrets & lies"
Write a SQL query that answers the following question: The winner and nominee 'Hidden Agenda' is from which country?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (country VARCHAR, winner_and_nominees VARCHAR)
SELECT country FROM table_name_69 WHERE winner_and_nominees = "hidden agenda"
Write a SQL query that answers the following question: What is the total amount of freight produced of u28c?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (total_produced VARCHAR, service VARCHAR, builder’s_model VARCHAR)
SELECT total_produced FROM table_name_49 WHERE service = "freight" AND builder’s_model = "u28c"
Write a SQL query that answers the following question: What is the build date for PRR Class gf30a?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (build_date VARCHAR, prr_class VARCHAR)
SELECT build_date FROM table_name_80 WHERE prr_class = "gf30a"
Write a SQL query that answers the following question: What is the PRR class for wheel arrangement c-c and total less than 15?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (prr_class VARCHAR, wheel_arrangement VARCHAR, total_produced VARCHAR)
SELECT prr_class FROM table_name_80 WHERE wheel_arrangement = "c-c" AND total_produced < 15
Write a SQL query that answers the following question: What was the model for PRR class of gf28a freight?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (builder’s_model VARCHAR, service VARCHAR, prr_class VARCHAR)
SELECT builder’s_model FROM table_name_61 WHERE service = "freight" AND prr_class = "gf28a"
Write a SQL query that answers the following question: Who got 189,524 votes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (queens VARCHAR, manhattan VARCHAR)
SELECT queens FROM table_name_21 WHERE manhattan = "189,524"
Write a SQL query that answers the following question: Which owner has the frequency of 103.3 FM?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_51 WHERE frequency = "103.3 fm"
Write a SQL query that answers the following question: What is the call sign of the Classic Country Music station?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (call_sign VARCHAR, format VARCHAR)
SELECT call_sign FROM table_name_25 WHERE format = "classic country"
Write a SQL query that answers the following question: Which owner has the call sign of KDSU?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (name VARCHAR, call_sign VARCHAR)
SELECT name FROM table_name_88 WHERE call_sign = "kdsu"
Write a SQL query that answers the following question: What is the call sign for Thunder 106.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_62 (call_sign VARCHAR, name VARCHAR)
SELECT call_sign FROM table_name_62 WHERE name = "thunder 106.1"
Write a SQL query that answers the following question: Which owner has a Contemporary Christian music station on 97.9 FM?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (name VARCHAR, format VARCHAR, frequency VARCHAR)
SELECT name FROM table_name_45 WHERE format = "contemporary christian music" AND frequency = "97.9 fm"
Write a SQL query that answers the following question: Who was the leading scorer in the game where the visiting team was the Pistons?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (leading_scorer VARCHAR, visitor VARCHAR)
SELECT leading_scorer FROM table_name_35 WHERE visitor = "pistons"
Write a SQL query that answers the following question: How many people attended the game where the leading scorer was Tim Duncan (24), and the home team was the Spurs?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (attendance INTEGER, leading_scorer VARCHAR, home VARCHAR)
SELECT MIN(attendance) FROM table_name_96 WHERE leading_scorer = "tim duncan (24)" AND home = "spurs"
Write a SQL query that answers the following question: What is the mean number of laps where Time/retired was a water leak and the grid number was bigger than 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (laps INTEGER, time_retired VARCHAR, grid VARCHAR)
SELECT AVG(laps) FROM table_name_53 WHERE time_retired = "water leak" AND grid > 12
Write a SQL query that answers the following question: What is the mean number of laps when time/retired was spun off and the driver was Nick Heidfeld?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (laps INTEGER, time_retired VARCHAR, driver VARCHAR)
SELECT AVG(laps) FROM table_name_60 WHERE time_retired = "spun off" AND driver = "nick heidfeld"
Write a SQL query that answers the following question: What is the sum grid number when the driver was Luciano Burti?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (grid VARCHAR, driver VARCHAR)
SELECT COUNT(grid) FROM table_name_55 WHERE driver = "luciano burti"
Write a SQL query that answers the following question: Which constructor had a laps number bigger than 3 when the driver was Jarno Trulli?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (constructor VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_5 WHERE laps > 3 AND driver = "jarno trulli"
Write a SQL query that answers the following question: Name the head of household for married filing jointly or qualified widow(er) being $137,051–$208,850
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (head_of_household VARCHAR, married_filing_jointly_or_qualified_widow_er_ VARCHAR)
SELECT head_of_household FROM table_name_32 WHERE married_filing_jointly_or_qualified_widow_er_ = "$137,051–$208,850"
Write a SQL query that answers the following question: Name the married filing jointly or qualified widow(er) with head of household being $117,451–$190,200
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (married_filing_jointly_or_qualified_widow_er_ VARCHAR, head_of_household VARCHAR)
SELECT married_filing_jointly_or_qualified_widow_er_ FROM table_name_61 WHERE head_of_household = "$117,451–$190,200"
Write a SQL query that answers the following question: Name the married filing separately for single of $0–$8,350
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (married_filing_separately VARCHAR, single VARCHAR)
SELECT married_filing_separately FROM table_name_77 WHERE single = "$0–$8,350"
Write a SQL query that answers the following question: Name the head of household that has married filing separately of $104,426–$186,475
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (head_of_household VARCHAR, married_filing_separately VARCHAR)
SELECT head_of_household FROM table_name_89 WHERE married_filing_separately = "$104,426–$186,475"
Write a SQL query that answers the following question: Name the marginal ordinary income tax rate that has a head of household of $372,951+
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (marginal_ordinary_income_tax_rate VARCHAR, head_of_household VARCHAR)
SELECT marginal_ordinary_income_tax_rate FROM table_name_40 WHERE head_of_household = "$372,951+"
Write a SQL query that answers the following question: What is the point average for the game that has FGM-FGA of 11-28 and a number smaller than 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (points INTEGER, fgm___fga VARCHAR, number VARCHAR)
SELECT AVG(points) FROM table_name_48 WHERE fgm___fga = "11-28" AND number < 7
Write a SQL query that answers the following question: What is the lowest number of floors recorded for buildings built by Dubai Marriott Harbour Hotel & Suites?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (floors INTEGER, name VARCHAR)
SELECT MIN(floors) FROM table_name_82 WHERE name = "dubai marriott harbour hotel & suites"
Write a SQL query that answers the following question: What is the name of the building housing more than 101 floors, that was built after 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (name VARCHAR, year VARCHAR, floors VARCHAR)
SELECT name FROM table_name_55 WHERE year > 2006 AND floors > 101
Write a SQL query that answers the following question: What was the crowd size on 4 july 1981, and a Away team of essendon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (crowd VARCHAR, date VARCHAR, away_team VARCHAR)
SELECT crowd FROM table_name_41 WHERE date = "4 july 1981" AND away_team = "essendon"
Write a SQL query that answers the following question: When did essendon play away?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_53 WHERE away_team = "essendon"
Write a SQL query that answers the following question: Which category won the Sundance Film Festival award in 1998?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (category VARCHAR, award VARCHAR, result VARCHAR, year VARCHAR)
SELECT category FROM table_name_95 WHERE result = "won" AND year = 1998 AND award = "sundance film festival"
Write a SQL query that answers the following question: Which award category was the film series The Wire nominated for after 2005?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (category VARCHAR, year VARCHAR, result VARCHAR, film_or_series VARCHAR)
SELECT category FROM table_name_20 WHERE result = "nominated" AND film_or_series = "the wire" AND year > 2005
Write a SQL query that answers the following question: What was the result for the nominee for Outstanding Supporting Actress in a Drama Series in 2009?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (result VARCHAR, category VARCHAR, year VARCHAR)
SELECT result FROM table_name_43 WHERE category = "outstanding supporting actress in a drama series" AND year = 2009
Write a SQL query that answers the following question: When st kilda played as the away team, what date was that?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (date VARCHAR, away_team VARCHAR)
SELECT date FROM table_name_67 WHERE away_team = "st kilda"
Write a SQL query that answers the following question: On what date did Fitzroy play as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (date VARCHAR, home_team VARCHAR)
SELECT date FROM table_name_74 WHERE home_team = "fitzroy"
Write a SQL query that answers the following question: Name the antonio thomas for Hikaru Sato of tanaka (8:09)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (antonio_thomas VARCHAR, hikaru_sato VARCHAR)
SELECT antonio_thomas FROM table_name_24 WHERE hikaru_sato = "tanaka (8:09)"
Write a SQL query that answers the following question: Tell me the block A for antonio thomas of kondo (13:24)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (block_a VARCHAR, antonio_thomas VARCHAR)
SELECT block_a FROM table_name_85 WHERE antonio_thomas = "kondo (13:24)"
Write a SQL query that answers the following question: Name the minoru that has a hikaru sato of x and super crazy of yang (8:36)
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (minoru VARCHAR, hikaru_sato VARCHAR, super_crazy VARCHAR)
SELECT minoru FROM table_name_22 WHERE hikaru_sato = "x" AND super_crazy = "yang (8:36)"
Write a SQL query that answers the following question: Atlanta was a visitor on December 8, what was their record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (record VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_68 WHERE visitor = "atlanta"
Write a SQL query that answers the following question: Tell me the team which has matches of 13
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (team VARCHAR, matches VARCHAR)
SELECT team FROM table_name_43 WHERE matches = 13
Write a SQL query that answers the following question: Tell me the sum of win % for drawn being larger than 35
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (win__percentage INTEGER, drawn INTEGER)
SELECT SUM(win__percentage) FROM table_name_55 WHERE drawn > 35
Write a SQL query that answers the following question: Name the most win % for 13 drawn
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (win__percentage INTEGER, drawn VARCHAR)
SELECT MAX(win__percentage) FROM table_name_91 WHERE drawn = 13
Write a SQL query that answers the following question: Name the average lost for matches of 6
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (lost INTEGER, matches VARCHAR)
SELECT AVG(lost) FROM table_name_53 WHERE matches = 6
Write a SQL query that answers the following question: What was the time recorded for grid 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (time_retired VARCHAR, grid VARCHAR)
SELECT time_retired FROM table_name_89 WHERE grid = 18
Write a SQL query that answers the following question: What catalogue has a track less than 16 and 2/3/56 recorded with a song titled Lawdy Miss Clawdy?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (catalogue VARCHAR, song_title VARCHAR, track VARCHAR, recorded VARCHAR)
SELECT catalogue FROM table_name_83 WHERE track < 16 AND recorded = "2/3/56" AND song_title = "lawdy miss clawdy"
Write a SQL query that answers the following question: What is the highest track for the song Rip it Up?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_87 (track INTEGER, song_title VARCHAR)
SELECT MAX(track) FROM table_name_87 WHERE song_title = "rip it up"
Write a SQL query that answers the following question: What is the sum of every track with a catalogue of EPA 4054 with a 2:05 length?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (track INTEGER, catalogue VARCHAR, time VARCHAR)
SELECT SUM(track) FROM table_name_12 WHERE catalogue = "epa 4054" AND time = "2:05"
Write a SQL query that answers the following question: What catalogue has a length of 2:10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (catalogue VARCHAR, time VARCHAR)
SELECT catalogue FROM table_name_82 WHERE time = "2:10"
Write a SQL query that answers the following question: When was the release date of a track greater than 4, 1/12/57 recorded, and a length of 2:31?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (release_date VARCHAR, time VARCHAR, track VARCHAR, recorded VARCHAR)
SELECT release_date FROM table_name_59 WHERE track > 4 AND recorded = "1/12/57" AND time = "2:31"
Write a SQL query that answers the following question: When was the cataglogue EPA 4054 released with a 1/12/57 recorded?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (release_date VARCHAR, catalogue VARCHAR, recorded VARCHAR)
SELECT release_date FROM table_name_31 WHERE catalogue = "epa 4054" AND recorded = "1/12/57"
Write a SQL query that answers the following question: Tell me the school with a height of 6-9
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_82 WHERE height = "6-9"
Write a SQL query that answers the following question: Which school did the player have a height of 6-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (school VARCHAR, height VARCHAR)
SELECT school FROM table_name_65 WHERE height = "6-4"
Write a SQL query that answers the following question: Tell me the college that paul davis went to
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (college VARCHAR, player VARCHAR)
SELECT college FROM table_name_32 WHERE player = "paul davis"
Write a SQL query that answers the following question: Tell me the school that jason fraser went to
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_14 WHERE player = "jason fraser"
Write a SQL query that answers the following question: What is the result of the game with 68,436 attending?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (result VARCHAR, attendance VARCHAR)
SELECT result FROM table_name_98 WHERE attendance = "68,436"
Write a SQL query that answers the following question: What is the NBA Draft status of the person who went to college at LSU?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (nba_draft VARCHAR, college VARCHAR)
SELECT nba_draft FROM table_name_38 WHERE college = "lsu"
Write a SQL query that answers the following question: What is Player Kenny Williams' Height?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (height VARCHAR, player VARCHAR)
SELECT height FROM table_name_53 WHERE player = "kenny williams"
Write a SQL query that answers the following question: What School did Player Billy Owens attend?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_37 WHERE player = "billy owens"
Write a SQL query that answers the following question: What School did Player Alonzo Mourning attend?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (school VARCHAR, player VARCHAR)
SELECT school FROM table_name_74 WHERE player = "alonzo mourning"
Write a SQL query that answers the following question: How many bronze's on average for nations with over 1 total, less than 2 golds, ranked 2nd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (bronze INTEGER, rank VARCHAR, total VARCHAR, gold VARCHAR)
SELECT AVG(bronze) FROM table_name_16 WHERE total > 1 AND gold < 2 AND rank = 2
Write a SQL query that answers the following question: How many silvers on average for nations with less than 3 total, ranked 6, and over 1 bronze?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (silver INTEGER, bronze VARCHAR, total VARCHAR, rank VARCHAR)
SELECT AVG(silver) FROM table_name_89 WHERE total < 3 AND rank = 6 AND bronze > 1
Write a SQL query that answers the following question: What is the date of the Cubs game when the Cubs had a record of 1-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_2 WHERE record = "1-0"
Write a SQL query that answers the following question: Who did the Cubs play when they had a record of 4-4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (opponent VARCHAR, record VARCHAR)
SELECT opponent FROM table_name_56 WHERE record = "4-4"
Write a SQL query that answers the following question: What is the frequency of WMAD?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (frequency VARCHAR, call_letters VARCHAR)
SELECT frequency FROM table_name_21 WHERE call_letters = "wmad"
Write a SQL query that answers the following question: Name the lfop 5/11/09 with opinion way of 5/11/09 of 2% and lpsos 3/14/09 of 2%
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (ifop_5_11_09 VARCHAR, opinionway_5_11_09 VARCHAR, ipsos_3_14_09 VARCHAR)
SELECT ifop_5_11_09 FROM table_name_23 WHERE opinionway_5_11_09 = "2%" AND ipsos_3_14_09 = "2%"
Write a SQL query that answers the following question: Name the lfop 4/24/09 for opinionway of 4/17/09 of 5% for party of left front
The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (ifop_4_24_09 VARCHAR, opinionway_4_17_09 VARCHAR, party VARCHAR)
SELECT ifop_4_24_09 FROM table_name_43 WHERE opinionway_4_17_09 = "5%" AND party = "left front"