instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which is the total number of evening gowns for swimsui less than 9.36 and average less than 9.23?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (evening_gown VARCHAR, swimsuit VARCHAR, average VARCHAR)
SELECT COUNT(evening_gown) FROM table_name_57 WHERE swimsuit < 9.36 AND average < 9.23
Write a SQL query that answers the following question: Name the lowest average for interview more than 9.57 and delaware and evening gown more than 9.77
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (average INTEGER, evening_gown VARCHAR, interview VARCHAR, country VARCHAR)
SELECT MIN(average) FROM table_name_42 WHERE interview > 9.57 AND country = "delaware" AND evening_gown > 9.77
Write a SQL query that answers the following question: Name the sum of swimsuit for average more than 9.23 for delaware for interview more than 9.73
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (swimsuit INTEGER, interview VARCHAR, average VARCHAR, country VARCHAR)
SELECT SUM(swimsuit) FROM table_name_31 WHERE average > 9.23 AND country = "delaware" AND interview > 9.73
Write a SQL query that answers the following question: Name the sum of average for interview more than 9.57 and swimsuit more than 9.65
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (average INTEGER, interview VARCHAR, swimsuit VARCHAR)
SELECT SUM(average) FROM table_name_99 WHERE interview > 9.57 AND swimsuit > 9.65
Write a SQL query that answers the following question: Name the evening gown for swimsuit more than 9.51 for maryland
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (evening_gown VARCHAR, swimsuit VARCHAR, country VARCHAR)
SELECT evening_gown FROM table_name_90 WHERE swimsuit > 9.51 AND country = "maryland"
Write a SQL query that answers the following question: What points awarded are higher than 6 but smaller than 9
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (points_awarded__platinum_ INTEGER, points_awarded__gold_ VARCHAR, points_awarded__silver_ VARCHAR)
SELECT MAX(points_awarded__platinum_) FROM table_name_51 WHERE points_awarded__gold_ = 9 AND points_awarded__silver_ > 6
Write a SQL query that answers the following question: In the Canadian Grand Prix, what tyre was used when Jacky Ickx held pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (tyre VARCHAR, pole_position VARCHAR, race VARCHAR)
SELECT tyre FROM table_name_50 WHERE pole_position = "jacky ickx" AND race = "canadian grand prix"
Write a SQL query that answers the following question: When Jackie Stewart had the fastest lap and Jochen Rindt held the pole position with a D tyre, what was the circuit?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (circuit VARCHAR, fastest_lap VARCHAR, tyre VARCHAR, pole_position VARCHAR)
SELECT circuit FROM table_name_16 WHERE tyre = "d" AND pole_position = "jochen rindt" AND fastest_lap = "jackie stewart"
Write a SQL query that answers the following question: What was the circuit when Jochen Rindt won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (circuit VARCHAR, winning_driver VARCHAR)
SELECT circuit FROM table_name_28 WHERE winning_driver = "jochen rindt"
Write a SQL query that answers the following question: What tyre was used in Kyalami?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (tyre VARCHAR, circuit VARCHAR)
SELECT tyre FROM table_name_81 WHERE circuit = "kyalami"
Write a SQL query that answers the following question: Which driver had a grid number of 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (driver VARCHAR, grid VARCHAR)
SELECT driver FROM table_name_11 WHERE grid = 10
Write a SQL query that answers the following question: Which constructor had a grid number of less than 3 and where the Time/Retired was 1:34:31.522?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (constructor VARCHAR, grid VARCHAR, time_retired VARCHAR)
SELECT constructor FROM table_name_55 WHERE grid < 3 AND time_retired = "1:34:31.522"
Write a SQL query that answers the following question: Which constructor had a Time/Retired of collision, where the grid number was less than 18 and Nick Heidfeld was the driver?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (constructor VARCHAR, driver VARCHAR, time_retired VARCHAR, grid VARCHAR)
SELECT constructor FROM table_name_22 WHERE time_retired = "collision" AND grid < 18 AND driver = "nick heidfeld"
Write a SQL query that answers the following question: What was the record on May 20?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_64 WHERE date = "may 20"
Write a SQL query that answers the following question: What is the height in feet of player number 24?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (height_in_ft VARCHAR, no_s_ VARCHAR)
SELECT height_in_ft FROM table_name_70 WHERE no_s_ = "24"
Write a SQL query that answers the following question: Who is the school, club, team or country that the Rockets played for 1967-68?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (school_club_team_country VARCHAR, years_for_rockets VARCHAR)
SELECT school_club_team_country FROM table_name_27 WHERE years_for_rockets = "1967-68"
Write a SQL query that answers the following question: Which player has a Position of infielder, and a Hometown of atlanta, ga?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (player VARCHAR, position VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_48 WHERE position = "infielder" AND hometown = "atlanta, ga"
Write a SQL query that answers the following question: What MLB draft has a School of green valley high school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (mlb_draft VARCHAR, school VARCHAR)
SELECT mlb_draft FROM table_name_7 WHERE school = "green valley high school"
Write a SQL query that answers the following question: Which position has a School of green valley high school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_26 WHERE school = "green valley high school"
Write a SQL query that answers the following question: Which position has a Player of chad hutchinson?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (position VARCHAR, player VARCHAR)
SELECT position FROM table_name_61 WHERE player = "chad hutchinson"
Write a SQL query that answers the following question: Which position has a School of petal high school?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (position VARCHAR, school VARCHAR)
SELECT position FROM table_name_71 WHERE school = "petal high school"
Write a SQL query that answers the following question: What is the date of week 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (date VARCHAR, week VARCHAR)
SELECT date FROM table_name_23 WHERE week = 8
Write a SQL query that answers the following question: Which week has the lowest attendance of 48,102?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (week INTEGER, attendance VARCHAR)
SELECT MIN(week) FROM table_name_4 WHERE attendance = 48 OFFSET 102
Write a SQL query that answers the following question: What was the year with runs of 144?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year VARCHAR, runs VARCHAR)
SELECT year FROM table_name_68 WHERE runs = "144"
Write a SQL query that answers the following question: Name the place where adelaide oval is
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (city_country VARCHAR, venue VARCHAR)
SELECT city_country FROM table_name_51 WHERE venue = "adelaide oval"
Write a SQL query that answers the following question: Name the average zone for waddon marsh tram stop
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (zone INTEGER, stations VARCHAR)
SELECT AVG(zone) FROM table_name_64 WHERE stations = "waddon marsh tram stop"
Write a SQL query that answers the following question: Name the stations for zone 5 and 1 platform by tramlink
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (stations VARCHAR, platforms VARCHAR, managed_by VARCHAR, zone VARCHAR)
SELECT stations FROM table_name_58 WHERE managed_by = "tramlink" AND zone = 5 AND platforms = 1
Write a SQL query that answers the following question: Name the total number of platforms that waddon railway station has
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (platforms VARCHAR, stations VARCHAR)
SELECT COUNT(platforms) FROM table_name_41 WHERE stations = "waddon railway station"
Write a SQL query that answers the following question: Name the average zone for waddon railway station and has more than 2 platforms
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (zone INTEGER, stations VARCHAR, platforms VARCHAR)
SELECT AVG(zone) FROM table_name_54 WHERE stations = "waddon railway station" AND platforms > 2
Write a SQL query that answers the following question: What is Bob Ostovich's opponents record?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_20 WHERE opponent = "bob ostovich"
Write a SQL query that answers the following question: What location is Jimmy Smith fighting in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (location VARCHAR, opponent VARCHAR)
SELECT location FROM table_name_72 WHERE opponent = "jimmy smith"
Write a SQL query that answers the following question: What is the away score with a record of 7-4, win% of 0.637, and 2010 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (away VARCHAR, season VARCHAR, record VARCHAR, win__percentage VARCHAR)
SELECT away FROM table_name_22 WHERE record = "7-4" AND win__percentage = 0.637 AND season = "2010"
Write a SQL query that answers the following question: What was the lowest win% with an away score of 3-2 in 2011 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (win__percentage INTEGER, away VARCHAR, season VARCHAR)
SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011"
Write a SQL query that answers the following question: What is the lowest win% in the 1999-2013 season?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (win__percentage INTEGER, season VARCHAR)
SELECT MIN(win__percentage) FROM table_name_66 WHERE season = "1999-2013"
Write a SQL query that answers the following question: What's the record during 1925?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (record VARCHAR, year VARCHAR)
SELECT record FROM table_name_99 WHERE year = 1925
Write a SQL query that answers the following question: What is the earliest year that the discus throw event occur?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (year INTEGER, event VARCHAR)
SELECT MIN(year) FROM table_name_2 WHERE event = "discus throw"
Write a SQL query that answers the following question: What Haydon had a 33 Ben-Tahir?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (haydon VARCHAR, ben_tahir VARCHAR)
SELECT haydon FROM table_name_68 WHERE ben_tahir = "33"
Write a SQL query that answers the following question: What Gauthier had a 15 Liscumb?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (gauthier VARCHAR, liscumb VARCHAR)
SELECT gauthier FROM table_name_65 WHERE liscumb = "15"
Write a SQL query that answers the following question: What Ben-Tahir has a 6 Liscumb and 3 Libweshya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (ben_tahir VARCHAR, liscumb VARCHAR, libweshya VARCHAR)
SELECT ben_tahir FROM table_name_82 WHERE liscumb = "6" AND libweshya = "3"
Write a SQL query that answers the following question: What Bello has a 27 Liscumb and 6539 Libweshya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (bello VARCHAR, liscumb VARCHAR, libweshya VARCHAR)
SELECT bello FROM table_name_35 WHERE liscumb = "27" AND libweshya = "6539"
Write a SQL query that answers the following question: What is the Furtenbacher with a 6 Liscumb, 10 Lawrance, and a 24 Ben-Tahir?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (furtenbacher VARCHAR, ben_tahir VARCHAR, liscumb VARCHAR, lawrance VARCHAR)
SELECT furtenbacher FROM table_name_6 WHERE liscumb = "6" AND lawrance = "10" AND ben_tahir = "24"
Write a SQL query that answers the following question: What is the Ben-Tahir with a 3269 Doucet?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (ben_tahir VARCHAR, doucet VARCHAR)
SELECT ben_tahir FROM table_name_92 WHERE doucet = "3269"
Write a SQL query that answers the following question: How many attended the game that was a Loss of k. gross (1-1)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance INTEGER, loss VARCHAR)
SELECT MAX(attendance) FROM table_name_68 WHERE loss = "k. gross (1-1)"
Write a SQL query that answers the following question: What is the score of the game with tie number 65?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (score VARCHAR, tie_no VARCHAR)
SELECT score FROM table_name_23 WHERE tie_no = "65"
Write a SQL query that answers the following question: Which Home team had attendance 160?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (home_team VARCHAR, attendance VARCHAR)
SELECT home_team FROM table_name_91 WHERE attendance = "160"
Write a SQL query that answers the following question: What is the record of the game with a decision of Ellis and Vancouver as the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (record VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT record FROM table_name_79 WHERE decision = "ellis" AND visitor = "vancouver"
Write a SQL query that answers the following question: What is the record of the game with Mason as the decision and Nashville as the home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (record VARCHAR, decision VARCHAR, home VARCHAR)
SELECT record FROM table_name_45 WHERE decision = "mason" AND home = "nashville"
Write a SQL query that answers the following question: What is the date with Ellis as the decision and St. Louis as the visitor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, decision VARCHAR, visitor VARCHAR)
SELECT date FROM table_name_27 WHERE decision = "ellis" AND visitor = "st. louis"
Write a SQL query that answers the following question: Which visiting team had a record of 31–31–8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (visitor VARCHAR, record VARCHAR)
SELECT visitor FROM table_name_67 WHERE record = "31–31–8"
Write a SQL query that answers the following question: Where is Jeff Lebo's hometown?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (hometown VARCHAR, player VARCHAR)
SELECT hometown FROM table_name_45 WHERE player = "jeff lebo"
Write a SQL query that answers the following question: Who is the player from Houston, TX?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (player VARCHAR, hometown VARCHAR)
SELECT player FROM table_name_49 WHERE hometown = "houston, tx"
Write a SQL query that answers the following question: What is the earliest year with an entry from Rotary Watches Stanley BRM and a BRM P207 with more than 0 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (year INTEGER, points VARCHAR, entrant VARCHAR, chassis VARCHAR)
SELECT MIN(year) FROM table_name_99 WHERE entrant = "rotary watches stanley brm" AND chassis = "brm p207" AND points > 0
Write a SQL query that answers the following question: How many points were there in a year earlier than 1977, a Cosworth V8 engine, and an entry from HB Bewaking alarm systems?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (points VARCHAR, entrant VARCHAR, year VARCHAR, engine VARCHAR)
SELECT points FROM table_name_68 WHERE year < 1977 AND engine = "cosworth v8" AND entrant = "hb bewaking alarm systems"
Write a SQL query that answers the following question: What is the report for the race of Argentine Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (report VARCHAR, race VARCHAR)
SELECT report FROM table_name_88 WHERE race = "argentine grand prix"
Write a SQL query that answers the following question: What is the Tyre when Jerry Hoyt was the pole position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (tyre VARCHAR, pole_position VARCHAR)
SELECT tyre FROM table_name_22 WHERE pole_position = "jerry hoyt"
Write a SQL query that answers the following question: Who was the constructor when Eugenio Castellotti was the pole position and the race had a C tyre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (constructor VARCHAR, tyre VARCHAR, pole_position VARCHAR)
SELECT constructor FROM table_name_89 WHERE tyre = "c" AND pole_position = "eugenio castellotti"
Write a SQL query that answers the following question: What was the fastest lap time at the British Grand Prix with Mercedes as the constructor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (fastest_lap VARCHAR, constructor VARCHAR, race VARCHAR)
SELECT fastest_lap FROM table_name_2 WHERE constructor = "mercedes" AND race = "british grand prix"
Write a SQL query that answers the following question: Who scored the High points in the game with High rebounds by Nick Collison (14)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (high_points VARCHAR, high_rebounds VARCHAR)
SELECT high_points FROM table_name_20 WHERE high_rebounds = "nick collison (14)"
Write a SQL query that answers the following question: What is henry transfer fee at fcbarcelona.cat in fra?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (transfer_fee VARCHAR, name VARCHAR, source VARCHAR, country VARCHAR)
SELECT transfer_fee FROM table_name_41 WHERE source = "fcbarcelona.cat" AND country = "fra" AND name = "henry"
Write a SQL query that answers the following question: What was the Grid with a hydraulics time/required?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (grid VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_57 WHERE time_retired = "hydraulics"
Write a SQL query that answers the following question: What is the grid with a Toyota constructor and +1:09.718 as time/retired?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (grid VARCHAR, constructor VARCHAR, time_retired VARCHAR)
SELECT grid FROM table_name_24 WHERE constructor = "toyota" AND time_retired = "+1:09.718"
Write a SQL query that answers the following question: What is the grid with 71 laps and the driver, Allan McNish.
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (grid VARCHAR, laps VARCHAR, driver VARCHAR)
SELECT grid FROM table_name_55 WHERE laps = "71" AND driver = "allan mcnish"
Write a SQL query that answers the following question: How many laps did Jacques Villeneuve have?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (laps VARCHAR, driver VARCHAR)
SELECT laps FROM table_name_60 WHERE driver = "jacques villeneuve"
Write a SQL query that answers the following question: What is the constructor of the driver Heinz-Harald Frentzen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (constructor VARCHAR, driver VARCHAR)
SELECT constructor FROM table_name_50 WHERE driver = "heinz-harald frentzen"
Write a SQL query that answers the following question: Tell me the rank for year of 2012 and out of larger than 176
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (rank VARCHAR, year VARCHAR, out_of VARCHAR)
SELECT rank FROM table_name_66 WHERE year = "2012" AND out_of > 176
Write a SQL query that answers the following question: Tell me the year for rank more than 35 and out of 167
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (year VARCHAR, rank VARCHAR, out_of VARCHAR)
SELECT year FROM table_name_11 WHERE rank > 35 AND out_of = 167
Write a SQL query that answers the following question: How many UCI points did Rabobank score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (uci_points VARCHAR, team VARCHAR)
SELECT uci_points FROM table_name_88 WHERE team = "rabobank"
Write a SQL query that answers the following question: What team in France had 15 UCi points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (team VARCHAR, country VARCHAR, uci_points VARCHAR)
SELECT team FROM table_name_81 WHERE country = "france" AND uci_points = "15"
Write a SQL query that answers the following question: Which country has assets of x, an inception of 2007, and an abbreviation of adic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (country VARCHAR, abbreviation VARCHAR, assets_us$billion VARCHAR, inception VARCHAR)
SELECT country FROM table_name_24 WHERE assets_us$billion = "x" AND inception = "2007" AND abbreviation = "adic"
Write a SQL query that answers the following question: What's the abbreviation for libya?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (abbreviation VARCHAR, country VARCHAR)
SELECT abbreviation FROM table_name_88 WHERE country = "libya"
Write a SQL query that answers the following question: What's the origin for the country abbreviated atf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (origin VARCHAR, abbreviation VARCHAR)
SELECT origin FROM table_name_1 WHERE abbreviation = "atf"
Write a SQL query that answers the following question: What's the inception for the country with 25.5 billion USD in assets and an abbreviation of psf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (inception VARCHAR, assets_us$billion VARCHAR, abbreviation VARCHAR)
SELECT inception FROM table_name_47 WHERE assets_us$billion = "25.5" AND abbreviation = "psf"
Write a SQL query that answers the following question: Which country has an abbreviation of kia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (country VARCHAR, abbreviation VARCHAR)
SELECT country FROM table_name_61 WHERE abbreviation = "kia"
Write a SQL query that answers the following question: What's the abbreviation for the country with an inception of 1999 and US$Billion assets of 7.1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (abbreviation VARCHAR, inception VARCHAR, assets_us$billion VARCHAR)
SELECT abbreviation FROM table_name_79 WHERE inception = "1999" AND assets_us$billion = "7.1"
Write a SQL query that answers the following question: What was the opponent of the home team of essendon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_47 WHERE home_team = "essendon"
Write a SQL query that answers the following question: Tell me the cast for b. reeves eason and joseph kane
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (cast VARCHAR, director VARCHAR)
SELECT cast FROM table_name_80 WHERE director = "b. reeves eason and joseph kane"
Write a SQL query that answers the following question: I want the director for heroes of the wild
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (director VARCHAR, serial_title VARCHAR)
SELECT director FROM table_name_29 WHERE serial_title = "heroes of the wild"
Write a SQL query that answers the following question: I want the year for the three musketeers
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (year VARCHAR, serial_title VARCHAR)
SELECT year FROM table_name_13 WHERE serial_title = "the three musketeers"
Write a SQL query that answers the following question: I want the cast for director of colbert clark and armand schaefer for burn 'em up barnes
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (cast VARCHAR, director VARCHAR, serial_title VARCHAR)
SELECT cast FROM table_name_75 WHERE director = "colbert clark and armand schaefer" AND serial_title = "burn 'em up barnes"
Write a SQL query that answers the following question: How large was the crowd at the Kardinia Park venue games?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (crowd INTEGER, venue VARCHAR)
SELECT SUM(crowd) FROM table_name_69 WHERE venue = "kardinia park"
Write a SQL query that answers the following question: What was the score of the Home team that played against Carlton's Away game?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team AS score FROM table_name_3 WHERE away_team = "carlton"
Write a SQL query that answers the following question: What was the pick number when mark hayes was drafted?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (pick VARCHAR, player VARCHAR)
SELECT pick FROM table_name_42 WHERE player = "mark hayes"
Write a SQL query that answers the following question: Which team had a pick of 63?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (school_club_team VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_93 WHERE pick = 63
Write a SQL query that answers the following question: Which team had a position of linebacker with a pick smaller of 288?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (school_club_team VARCHAR, position VARCHAR, pick VARCHAR)
SELECT school_club_team FROM table_name_44 WHERE position = "linebacker" AND pick < 288
Write a SQL query that answers the following question: What player did louisville pick when the round was below 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (player VARCHAR, round VARCHAR, school_club_team VARCHAR)
SELECT player FROM table_name_70 WHERE round < 8 AND school_club_team = "louisville"
Write a SQL query that answers the following question: What was the outcome of the game that had a score of 3–6, 6–3, 6–0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (outcome VARCHAR, score VARCHAR)
SELECT outcome FROM table_name_81 WHERE score = "3–6, 6–3, 6–0"
Write a SQL query that answers the following question: On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR)
SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003"
Write a SQL query that answers the following question: What was the final score of the game against Lenka Novotná?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_29 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_29 WHERE opponent_in_the_final = "lenka novotná"
Write a SQL query that answers the following question: In the surface of clay who was the opponent in the game resulting in a score of 6–4, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (opponent_in_the_final VARCHAR, surface VARCHAR, score VARCHAR)
SELECT opponent_in_the_final FROM table_name_23 WHERE surface = "clay" AND score = "6–4, 6–4"
Write a SQL query that answers the following question: What was the final score of the game against opponent Ana Ivanovic?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (score VARCHAR, opponent_in_the_final VARCHAR)
SELECT score FROM table_name_75 WHERE opponent_in_the_final = "ana ivanovic"
Write a SQL query that answers the following question: What is the total grid number where the time/retired is +58.182 and the lap number is less than 67?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (grid INTEGER, time_retired VARCHAR, laps VARCHAR)
SELECT SUM(grid) FROM table_name_12 WHERE time_retired = "+58.182" AND laps < 67
Write a SQL query that answers the following question: What horse was induced in 2011 with a sire of cowboy p-12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (name_of_horse VARCHAR, year_inducted VARCHAR, broodmare_sire VARCHAR)
SELECT name_of_horse FROM table_name_77 WHERE year_inducted = 2011 AND broodmare_sire = "cowboy p-12"
Write a SQL query that answers the following question: Who was the home team that played against hawthorn?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (home_team VARCHAR, away_team VARCHAR)
SELECT home_team FROM table_name_65 WHERE away_team = "hawthorn"
Write a SQL query that answers the following question: Who was the away team playing against collingwood?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (away_team VARCHAR, home_team VARCHAR)
SELECT away_team FROM table_name_15 WHERE home_team = "collingwood"
Write a SQL query that answers the following question: What was the biggest crowd at punt road oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (crowd INTEGER, venue VARCHAR)
SELECT MAX(crowd) FROM table_name_65 WHERE venue = "punt road oval"
Write a SQL query that answers the following question: Who is the home team based at windy hill?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (home_team VARCHAR, venue VARCHAR)
SELECT home_team FROM table_name_56 WHERE venue = "windy hill"
Write a SQL query that answers the following question: What is the low gold total for nations with under 23 silvers, ranked beloe 5, and 6 bronzes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (gold INTEGER, bronze VARCHAR, silver VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_45 WHERE silver < 23 AND rank > 5 AND bronze = 6
Write a SQL query that answers the following question: What is the high silver total for nations with 3 golds and under 5 bronzes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (silver INTEGER, gold VARCHAR, bronze VARCHAR)
SELECT MAX(silver) FROM table_name_61 WHERE gold = 3 AND bronze < 5
Write a SQL query that answers the following question: How many silvers for nations with over 3 golds and under 6 bronzes?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (silver VARCHAR, bronze VARCHAR, gold VARCHAR)
SELECT COUNT(silver) FROM table_name_60 WHERE bronze < 6 AND gold > 3
Write a SQL query that answers the following question: What was the smallest crowd in games at the corio oval?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (crowd INTEGER, venue VARCHAR)
SELECT MIN(crowd) FROM table_name_13 WHERE venue = "corio oval"