instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: what is the school that hosts jim goodman
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (school_club_team VARCHAR, player VARCHAR)
SELECT school_club_team FROM table_name_57 WHERE player = "jim goodman"
Write a SQL query that answers the following question: Which Surface has a Date of january 2, 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (surface VARCHAR, date VARCHAR)
SELECT surface FROM table_name_68 WHERE date = "january 2, 2006"
Write a SQL query that answers the following question: Which tournament happened on september 25, 2006?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (tournament VARCHAR, date VARCHAR)
SELECT tournament FROM table_name_78 WHERE date = "september 25, 2006"
Write a SQL query that answers the following question: When did joão souza play?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_11 (date VARCHAR, opponen VARCHAR)
SELECT date FROM table_name_11 WHERE opponen = "joão souza"
Write a SQL query that answers the following question: Which Surface has a Score of 7–5, 6–4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_17 (surface VARCHAR, score VARCHAR)
SELECT surface FROM table_name_17 WHERE score = "7–5, 6–4"
Write a SQL query that answers the following question: What is the highest NFL Draft that has jeff robinson as the player, with an overall pick less than 98?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (nfl_draft INTEGER, player VARCHAR, overall_pick VARCHAR)
SELECT MAX(nfl_draft) FROM table_name_47 WHERE player = "jeff robinson" AND overall_pick < 98
Write a SQL query that answers the following question: What position has 1958 as the NFL Draft, and jerry kramer as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (position VARCHAR, nfl_draft VARCHAR, player VARCHAR)
SELECT position FROM table_name_55 WHERE nfl_draft = 1958 AND player = "jerry kramer"
Write a SQL query that answers the following question: What is the highest overall pick that has c as the position, with an NFL Draft greater than 1977?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (overall_pick INTEGER, position VARCHAR, nfl_draft VARCHAR)
SELECT MAX(overall_pick) FROM table_name_27 WHERE position = "c" AND nfl_draft > 1977
Write a SQL query that answers the following question: What was the score at Spartan Stadium when San Jose was the Home team?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (score VARCHAR, home_team VARCHAR, venue VARCHAR)
SELECT score FROM table_name_18 WHERE home_team = "san jose" AND venue = "spartan stadium"
Write a SQL query that answers the following question: Where was the game on September 11, 2004?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (venue VARCHAR, date VARCHAR)
SELECT venue FROM table_name_95 WHERE date = "september 11, 2004"
Write a SQL query that answers the following question: Who was the home team on September 20, 1998 at Spartan Stadium?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (home_team VARCHAR, venue VARCHAR, date VARCHAR)
SELECT home_team FROM table_name_39 WHERE venue = "spartan stadium" AND date = "september 20, 1998"
Write a SQL query that answers the following question: What method has a round less than 3, and 3:36 as the time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (method VARCHAR, round VARCHAR, time VARCHAR)
SELECT method FROM table_name_5 WHERE round < 3 AND time = "3:36"
Write a SQL query that answers the following question: What method has randy couture as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (method VARCHAR, opponent VARCHAR)
SELECT method FROM table_name_15 WHERE opponent = "randy couture"
Write a SQL query that answers the following question: What is the median household income where the per capita is $28,789?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (median_household_income VARCHAR, per_capita_income VARCHAR)
SELECT median_household_income FROM table_name_27 WHERE per_capita_income = "$28,789"
Write a SQL query that answers the following question: What is the median income for a family whose per capita income is $18,296?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (median_family_income VARCHAR, per_capita_income VARCHAR)
SELECT median_family_income FROM table_name_14 WHERE per_capita_income = "$18,296"
Write a SQL query that answers the following question: What is the resolution of the network Canal de las Estrellas?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (resolution VARCHAR, network VARCHAR)
SELECT resolution FROM table_name_96 WHERE network = "canal de las estrellas"
Write a SQL query that answers the following question: What is the resolution of the network Carismatv?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (resolution VARCHAR, network VARCHAR)
SELECT resolution FROM table_name_47 WHERE network = "carismatv"
Write a SQL query that answers the following question: Which dish belongs to the network that has the official website of ksat.com?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (dish VARCHAR, official_website VARCHAR)
SELECT dish FROM table_name_46 WHERE official_website = "ksat.com"
Write a SQL query that answers the following question: In which city is the network latv licensed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (city_of_license VARCHAR, network VARCHAR)
SELECT city_of_license FROM table_name_93 WHERE network = "latv"
Write a SQL query that answers the following question: In which city is the network with the callsign kgns-dt3 licensed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (city_of_license VARCHAR, callsign VARCHAR)
SELECT city_of_license FROM table_name_71 WHERE callsign = "kgns-dt3"
Write a SQL query that answers the following question: How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (introduced INTEGER, retired VARCHAR, manufacturer VARCHAR, quantity VARCHAR)
SELECT SUM(introduced) FROM table_name_94 WHERE manufacturer = "fokker" AND quantity = 5 AND retired > 1999
Write a SQL query that answers the following question: What is the total number of quantity when the introductory year was 1984?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (quantity INTEGER, introduced VARCHAR)
SELECT SUM(quantity) FROM table_name_30 WHERE introduced = 1984
Write a SQL query that answers the following question: How many in the introduced segment retired later than 1994 and had Fokker as a manufacturer?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (introduced VARCHAR, retired VARCHAR, manufacturer VARCHAR)
SELECT COUNT(introduced) FROM table_name_80 WHERE retired > 1994 AND manufacturer = "fokker"
Write a SQL query that answers the following question: How many in the quantity section had Fokker as a manufacturer and retired later than 1999?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (quantity VARCHAR, manufacturer VARCHAR, retired VARCHAR)
SELECT COUNT(quantity) FROM table_name_68 WHERE manufacturer = "fokker" AND retired > 1999
Write a SQL query that answers the following question: Which Championship has a Scoreboard that is 22-14?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (champion VARCHAR, scoreboard VARCHAR)
SELECT champion FROM table_name_74 WHERE scoreboard = "22-14"
Write a SQL query that answers the following question: What year was the building with a top 3 rank and a height of 274 (84) ft (m) completed?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (year_completed INTEGER, rank VARCHAR, height_ft__m_ VARCHAR)
SELECT MAX(year_completed) FROM table_name_81 WHERE rank < 3 AND height_ft__m_ = "274 (84)"
Write a SQL query that answers the following question: How many floors are in the 274 (84) ft (m) building that is ranked number 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (floors__stories_ INTEGER, height_ft__m_ VARCHAR, rank VARCHAR)
SELECT AVG(floors__stories_) FROM table_name_99 WHERE height_ft__m_ = "274 (84)" AND rank > 1
Write a SQL query that answers the following question: Which is the highest ranked building with more than 15 floors?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (rank INTEGER, floors__stories_ INTEGER)
SELECT MAX(rank) FROM table_name_45 WHERE floors__stories_ > 15
Write a SQL query that answers the following question: What is the highest points scored for the team with a position larger than 5, who had less than 4 wins and more than 8 draws?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (scored INTEGER, draws VARCHAR, position VARCHAR, wins VARCHAR)
SELECT MAX(scored) FROM table_name_99 WHERE position > 5 AND wins < 4 AND draws > 8
Write a SQL query that answers the following question: What is the average number conceded for hte team that had less than 19 points, played more than 18 games and had a position less than 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (conceded INTEGER, played VARCHAR, points VARCHAR, position VARCHAR)
SELECT AVG(conceded) FROM table_name_65 WHERE points < 19 AND position < 10 AND played > 18
Write a SQL query that answers the following question: What was the sum of the draws for the team that had 11 wins, less than 38 points, and a position smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (draws INTEGER, points VARCHAR, position VARCHAR, wins VARCHAR)
SELECT SUM(draws) FROM table_name_19 WHERE position < 4 AND wins = 11 AND points < 38
Write a SQL query that answers the following question: What was the lowest number of wins for the team that scored more than 14 points and had a position of 7?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (wins INTEGER, position VARCHAR, scored VARCHAR)
SELECT MIN(wins) FROM table_name_78 WHERE position = 7 AND scored > 14
Write a SQL query that answers the following question: What is the total number scored for the team that had 19 points and a position larger than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (scored VARCHAR, position VARCHAR, points VARCHAR)
SELECT COUNT(scored) FROM table_name_48 WHERE position > 4 AND points = 19
Write a SQL query that answers the following question: What is the lowest number conceded for the team that had less than 8 wins, scored 21, and had less than 23 points?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (conceded INTEGER, points VARCHAR, wins VARCHAR, scored VARCHAR)
SELECT MIN(conceded) FROM table_name_77 WHERE wins < 8 AND scored = 21 AND points < 23
Write a SQL query that answers the following question: Which Date has a Result of l 14–13?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_88 WHERE result = "l 14–13"
Write a SQL query that answers the following question: Which Date has a Result of w 13–6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (date VARCHAR, result VARCHAR)
SELECT date FROM table_name_84 WHERE result = "w 13–6"
Write a SQL query that answers the following question: What is the Result of Week larger than 3 on 1971-11-07?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (result VARCHAR, week VARCHAR, date VARCHAR)
SELECT result FROM table_name_94 WHERE week > 3 AND date = "1971-11-07"
Write a SQL query that answers the following question: What is the pos with more than 1 tier during Pokal Slovenije 1. round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (pos VARCHAR, tier VARCHAR, cup_competitions VARCHAR)
SELECT pos FROM table_name_20 WHERE tier > 1 AND cup_competitions = "pokal slovenije 1. round"
Write a SQL query that answers the following question: What are the exact Cubic inches of the Metric value of 104.955 L?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (cubic_inches__exact_ VARCHAR, metric_value VARCHAR)
SELECT cubic_inches__exact_ FROM table_name_9 WHERE metric_value = "104.955 l"
Write a SQL query that answers the following question: What is the Translation of the US Customary value 0.263 pt?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (translation VARCHAR, us_customary VARCHAR)
SELECT translation FROM table_name_47 WHERE us_customary = "0.263 pt"
Write a SQL query that answers the following question: What is the Metric value of Russian че́тверть?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (metric_value VARCHAR, russian VARCHAR)
SELECT metric_value FROM table_name_19 WHERE russian = "че́тверть"
Write a SQL query that answers the following question: What are the exact Cubic inches of the Unit of kruzhka?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (cubic_inches__exact_ VARCHAR, unit VARCHAR)
SELECT cubic_inches__exact_ FROM table_name_86 WHERE unit = "kruzhka"
Write a SQL query that answers the following question: Which Zero Fighter has a count of 10?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (id_code_of_his_zero_fighter VARCHAR, count VARCHAR)
SELECT id_code_of_his_zero_fighter FROM table_name_1 WHERE count = "10"
Write a SQL query that answers the following question: On which day were the subtotal hours 9:30?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (date VARCHAR, sub_total VARCHAR)
SELECT date FROM table_name_9 WHERE sub_total = "9:30"
Write a SQL query that answers the following question: What is the count for the Zero Fighter with hours of 2:00?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (count VARCHAR, flight_hours VARCHAR)
SELECT count FROM table_name_5 WHERE flight_hours = "2:00"
Write a SQL query that answers the following question: Which record has Katsuomi Inagaki as an opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (record VARCHAR, opponent VARCHAR)
SELECT record FROM table_name_51 WHERE opponent = "katsuomi inagaki"
Write a SQL query that answers the following question: Which method has a 1:46 time?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (method VARCHAR, time VARCHAR)
SELECT method FROM table_name_63 WHERE time = "1:46"
Write a SQL query that answers the following question: What is Henri Crockett's highest overall with more than 3 picks?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (overall INTEGER, pick__number VARCHAR, name VARCHAR)
SELECT MAX(overall) FROM table_name_65 WHERE pick__number > 3 AND name = "henri crockett"
Write a SQL query that answers the following question: Which college has fewer than 2 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (college VARCHAR, round INTEGER)
SELECT college FROM table_name_7 WHERE round < 2
Write a SQL query that answers the following question: What are the total number of picks for a guard with fewer than 6 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (pick__number VARCHAR, position VARCHAR, round VARCHAR)
SELECT COUNT(pick__number) FROM table_name_66 WHERE position = "guard" AND round < 6
Write a SQL query that answers the following question: What is the lowest overall for a quarterback with fewer than 7 rounds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (overall INTEGER, position VARCHAR, round VARCHAR)
SELECT MIN(overall) FROM table_name_88 WHERE position = "quarterback" AND round < 7
Write a SQL query that answers the following question: What Playoffs had an Open Cup of 3rd round?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (playoffs VARCHAR, open_cup VARCHAR)
SELECT playoffs FROM table_name_83 WHERE open_cup = "3rd round"
Write a SQL query that answers the following question: What was the D segment for episode 60?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (segment_d VARCHAR, episode VARCHAR)
SELECT segment_d FROM table_name_25 WHERE episode = 60
Write a SQL query that answers the following question: What was the B segmint for Netlix S03E01?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (segment_b VARCHAR, netflix VARCHAR)
SELECT segment_b FROM table_name_54 WHERE netflix = "s03e01"
Write a SQL query that answers the following question: What was the D segment for episode 60?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (segment_d VARCHAR, episode VARCHAR)
SELECT segment_d FROM table_name_51 WHERE episode = 60
Write a SQL query that answers the following question: What racing club team made supercopa 1996?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (supercopa_1996 VARCHAR, team VARCHAR)
SELECT supercopa_1996 FROM table_name_14 WHERE team = "racing club"
Write a SQL query that answers the following question: Name the # country for new palestine
The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (_number___county VARCHAR, school VARCHAR)
SELECT _number___county FROM table_name_54 WHERE school = "new palestine"
Write a SQL query that answers the following question: Name the number of enrollment for county of 48 madison
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (enrollment VARCHAR, _number___county VARCHAR)
SELECT COUNT(enrollment) FROM table_name_47 WHERE _number___county = "48 madison"
Write a SQL query that answers the following question: Name the IHSAA class with county 18 delaware and tigers mascot
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (ihsaa_class VARCHAR, _number___county VARCHAR, mascot VARCHAR)
SELECT ihsaa_class FROM table_name_82 WHERE _number___county = "18 delaware" AND mascot = "tigers"
Write a SQL query that answers the following question: Name the mascot for shelbyville
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (mascot VARCHAR, school VARCHAR)
SELECT mascot FROM table_name_33 WHERE school = "shelbyville"
Write a SQL query that answers the following question: What's the capacity that has the highest greater than 1,763 and is at Hampden Park?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (capacity INTEGER, stadium VARCHAR, highest VARCHAR)
SELECT MIN(capacity) FROM table_name_37 WHERE stadium = "hampden park" AND highest > 1 OFFSET 763
Write a SQL query that answers the following question: What's the highest with a capacity of greater than 4,000 and an average of 615?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (highest INTEGER, average VARCHAR, capacity VARCHAR)
SELECT MAX(highest) FROM table_name_20 WHERE average = 615 AND capacity > 4 OFFSET 000
Write a SQL query that answers the following question: At Balmoor Stadium, what's the total average having a greater than 400 lowest?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (average VARCHAR, stadium VARCHAR, lowest VARCHAR)
SELECT COUNT(average) FROM table_name_77 WHERE stadium = "balmoor" AND lowest > 400
Write a SQL query that answers the following question: What was the score of Tommy Aaron (2) when the tournament was in georgia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (score VARCHAR, location VARCHAR, winner VARCHAR)
SELECT score FROM table_name_38 WHERE location = "georgia" AND winner = "tommy aaron (2)"
Write a SQL query that answers the following question: What was the score of Ken Still (3) when he won first place?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (score VARCHAR, winner VARCHAR)
SELECT score FROM table_name_14 WHERE winner = "ken still (3)"
Write a SQL query that answers the following question: Who beat Chic by 8fm?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (beat_by VARCHAR, distance VARCHAR)
SELECT beat_by FROM table_name_9 WHERE distance = "8fm"
Write a SQL query that answers the following question: What was the placing of the race in which Chic won by 8gf?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (placing VARCHAR, beat_by VARCHAR, distance VARCHAR)
SELECT placing FROM table_name_58 WHERE beat_by = "won" AND distance = "8gf"
Write a SQL query that answers the following question: What was the date in which Chic won at CHS?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (date VARCHAR, beat_by VARCHAR, location VARCHAR)
SELECT date FROM table_name_50 WHERE beat_by = "won" AND location = "chs"
Write a SQL query that answers the following question: Who is the opponent of game 54, which was in Los Angeles and was before day 18?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (opponent VARCHAR, game VARCHAR, location_attendance VARCHAR, date VARCHAR)
SELECT opponent FROM table_name_26 WHERE location_attendance = "los angeles" AND date < 18 AND game = 54
Write a SQL query that answers the following question: What is the earliest date of the game with a score of 2-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (date INTEGER, score VARCHAR)
SELECT MIN(date) FROM table_name_14 WHERE score = "2-2"
Write a SQL query that answers the following question: What is the average date of the game with the Detroit Red Wings as the opponent?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_19 (date INTEGER, opponent VARCHAR)
SELECT AVG(date) FROM table_name_19 WHERE opponent = "detroit red wings"
Write a SQL query that answers the following question: What is the date of the game with a score of 4-2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (date VARCHAR, score VARCHAR)
SELECT date FROM table_name_51 WHERE score = "4-2"
Write a SQL query that answers the following question: What was the loss of the game that had a record of 3-3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_41 (loss VARCHAR, record VARCHAR)
SELECT loss FROM table_name_41 WHERE record = "3-3"
Write a SQL query that answers the following question: What was the score of the game with a loss of Mercedes (0-1)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (score VARCHAR, loss VARCHAR)
SELECT score FROM table_name_47 WHERE loss = "mercedes (0-1)"
Write a SQL query that answers the following question: Who was the opponent at the game with a loss of Weaver (1-2)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (opponent VARCHAR, loss VARCHAR)
SELECT opponent FROM table_name_71 WHERE loss = "weaver (1-2)"
Write a SQL query that answers the following question: What's the Remixed by with a Version of Strings for Soul's Mix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (remixed_by VARCHAR, version VARCHAR)
SELECT remixed_by FROM table_name_47 WHERE version = "strings for soul's mix"
Write a SQL query that answers the following question: What the highest Year with a Remixed by Laurent Boutonnat?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (year INTEGER, remixed_by VARCHAR)
SELECT MAX(year) FROM table_name_38 WHERE remixed_by = "laurent boutonnat"
Write a SQL query that answers the following question: What's the total Year with a Length of 4:45 an has an Album of Les Mots?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (year INTEGER, length VARCHAR, album VARCHAR)
SELECT SUM(year) FROM table_name_36 WHERE length = "4:45" AND album = "les mots"
Write a SQL query that answers the following question: What's the Length with the Version of Album Version?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (length VARCHAR, version VARCHAR)
SELECT length FROM table_name_60 WHERE version = "album version"
Write a SQL query that answers the following question: What Album has a Year that's larger than 2001?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (album VARCHAR, year INTEGER)
SELECT album FROM table_name_39 WHERE year > 2001
Write a SQL query that answers the following question: What is the lowest position for bruce taylor?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (position INTEGER, pilot VARCHAR)
SELECT MIN(position) FROM table_name_6 WHERE pilot = "bruce taylor"
Write a SQL query that answers the following question: Which pilot has a position above 5 and a speed of 118.8km/h?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_98 (pilot VARCHAR, position VARCHAR, speed VARCHAR)
SELECT pilot FROM table_name_98 WHERE position > 5 AND speed = "118.8km/h"
Write a SQL query that answers the following question: What is Erwin Sommer's average position?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (position INTEGER, pilot VARCHAR)
SELECT AVG(position) FROM table_name_18 WHERE pilot = "erwin sommer"
Write a SQL query that answers the following question: What is the highest rank of the day with a gross of $38,916 and more than 6 screens?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (rank INTEGER, gross VARCHAR, screens VARCHAR)
SELECT MAX(rank) FROM table_name_27 WHERE gross = "$38,916" AND screens > 6
Write a SQL query that answers the following question: What is the gross in the United Kingdom?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (gross VARCHAR, territory VARCHAR)
SELECT gross FROM table_name_33 WHERE territory = "united kingdom"
Write a SQL query that answers the following question: What is the territory with 17 screens?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (territory VARCHAR, screens VARCHAR)
SELECT territory FROM table_name_91 WHERE screens = 17
Write a SQL query that answers the following question: What is the lowest number of Golds that has Participants smaller than 14, and Rank of 1, and Total larger than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (gold INTEGER, total VARCHAR, participants VARCHAR, rank VARCHAR)
SELECT MIN(gold) FROM table_name_1 WHERE participants < 14 AND rank = 1 AND total > 1
Write a SQL query that answers the following question: On what date was the record 39–54?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (date VARCHAR, record VARCHAR)
SELECT date FROM table_name_69 WHERE record = "39–54"
Write a SQL query that answers the following question: What was the record on July 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (record VARCHAR, date VARCHAR)
SELECT record FROM table_name_58 WHERE date = "july 1"
Write a SQL query that answers the following question: How many total matches with less than 1 win and a position higher than 8?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (matches INTEGER, wins VARCHAR, pos VARCHAR)
SELECT SUM(matches) FROM table_name_13 WHERE wins < 1 AND pos > 8
Write a SQL query that answers the following question: Which Liberal leader has Seats won smaller than 100, and Seats in House of 215, and a % of popular vote of 43.1%?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR, seats_won VARCHAR, seats_in_house VARCHAR)
SELECT liberal_leader FROM table_name_86 WHERE seats_won < 100 AND seats_in_house = 215 AND _percentage_of_popular_vote = "43.1%"
Write a SQL query that answers the following question: Which Popular vote has a Liberal leader of king, and Seats won larger than 116, and a Year of 1921?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (popular_vote INTEGER, year VARCHAR, liberal_leader VARCHAR, seats_won VARCHAR)
SELECT AVG(popular_vote) FROM table_name_32 WHERE liberal_leader = "king" AND seats_won > 116 AND year = "1921"
Write a SQL query that answers the following question: How many Liberal candidates have a Liberal leader of pearson, and a % of popular vote of 40.2%, and Seats won smaller than 131?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_94 (liberal_candidates VARCHAR, seats_won VARCHAR, liberal_leader VARCHAR, _percentage_of_popular_vote VARCHAR)
SELECT COUNT(liberal_candidates) FROM table_name_94 WHERE liberal_leader = "pearson" AND _percentage_of_popular_vote = "40.2%" AND seats_won < 131
Write a SQL query that answers the following question: What is the score during the 2006-2007 year?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (score VARCHAR, year VARCHAR)
SELECT score FROM table_name_81 WHERE year = "2006-2007"
Write a SQL query that answers the following question: Who were the winners in 2010-2011?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (winners VARCHAR, year VARCHAR)
SELECT winners FROM table_name_4 WHERE year = "2010-2011"
Write a SQL query that answers the following question: What is the score of the match with UTC as the runner-up and Saint-Gaudens Bears as the winners?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_77 (score VARCHAR, runner_up VARCHAR, winners VARCHAR)
SELECT score FROM table_name_77 WHERE runner_up = "utc" AND winners = "saint-gaudens bears"
Write a SQL query that answers the following question: Which year had UTC as the runner-up and Saint-Gaudens Bears as the winners?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (year VARCHAR, runner_up VARCHAR, winners VARCHAR)
SELECT year FROM table_name_3 WHERE runner_up = "utc" AND winners = "saint-gaudens bears"
Write a SQL query that answers the following question: What is the venue of the match with a score of 33-22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (venue VARCHAR, score VARCHAR)
SELECT venue FROM table_name_45 WHERE score = "33-22"
Write a SQL query that answers the following question: Who had the highest assists during the game on February 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (high_assists VARCHAR, date VARCHAR)
SELECT high_assists FROM table_name_28 WHERE date = "february 22"
Write a SQL query that answers the following question: What team did the Heat play against at the TD Waterhouse Centre?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (team VARCHAR, location_attendance VARCHAR)
SELECT team FROM table_name_55 WHERE location_attendance = "td waterhouse centre"