instruction
stringlengths
67
299
input
stringlengths
88
550
output
stringlengths
32
484
Write a SQL query that answers the following question: Which team were runners-up in 2007 and had 1 under winners?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (team VARCHAR, winners VARCHAR, years_runners_up VARCHAR)
SELECT team FROM table_name_24 WHERE winners = 1 AND years_runners_up = "2007"
Write a SQL query that answers the following question: What is the sum of winners when 1983 is the years won?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (winners VARCHAR, years_won VARCHAR)
SELECT COUNT(winners) FROM table_name_31 WHERE years_won = "1983"
Write a SQL query that answers the following question: Which Rank has a Total of 12?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (rank INTEGER, total VARCHAR)
SELECT AVG(rank) FROM table_name_72 WHERE total = 12
Write a SQL query that answers the following question: Which Rank has an Opposition of limerick?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (rank VARCHAR, opposition VARCHAR)
SELECT rank FROM table_name_12 WHERE opposition = "limerick"
Write a SQL query that answers the following question: How much Rank has a Tally of 0-10, and an Opposition of cork?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (rank VARCHAR, tally VARCHAR, opposition VARCHAR)
SELECT COUNT(rank) FROM table_name_37 WHERE tally = "0-10" AND opposition = "cork"
Write a SQL query that answers the following question: Which Total has a Rank smaller than 3, and a County of cork?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (total INTEGER, rank VARCHAR, county VARCHAR)
SELECT MIN(total) FROM table_name_18 WHERE rank < 3 AND county = "cork"
Write a SQL query that answers the following question: Which Rank has a Tally of 4-0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (rank INTEGER, tally VARCHAR)
SELECT AVG(rank) FROM table_name_36 WHERE tally = "4-0"
Write a SQL query that answers the following question: Which Lane has a Rank larger than 3, and a Time larger than 45.63, and a Reaction smaller than 0.28800000000000003, and an Athlete of geiner mosquera?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_60 (lane INTEGER, athlete VARCHAR, react VARCHAR, rank VARCHAR, time VARCHAR)
SELECT MAX(lane) FROM table_name_60 WHERE rank > 3 AND time > 45.63 AND react < 0.28800000000000003 AND athlete = "geiner mosquera"
Write a SQL query that answers the following question: How many reactions have an Athlete of alleyne francique, and a Lane larger than 9?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (react VARCHAR, athlete VARCHAR, lane VARCHAR)
SELECT COUNT(react) FROM table_name_24 WHERE athlete = "alleyne francique" AND lane > 9
Write a SQL query that answers the following question: What yeae has 6-08 (24) as a waterford score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (year VARCHAR, waterford_score VARCHAR)
SELECT year FROM table_name_67 WHERE waterford_score = "6-08 (24)"
Write a SQL query that answers the following question: What is the lowest year that has all-ireland hurling final as the competition, and 6-08 (24) as the waterford score?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (year INTEGER, competition VARCHAR, waterford_score VARCHAR)
SELECT MIN(year) FROM table_name_95 WHERE competition = "all-ireland hurling final" AND waterford_score = "6-08 (24)"
Write a SQL query that answers the following question: What is the waterford score that has a year prior to 1963, with all-ireland hurling final replay as the competition?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (waterford_score VARCHAR, year VARCHAR, competition VARCHAR)
SELECT waterford_score FROM table_name_7 WHERE year < 1963 AND competition = "all-ireland hurling final replay"
Write a SQL query that answers the following question: What rounds did RML Racing Silverline and James Nash compete?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (rounds VARCHAR, team VARCHAR, drivers VARCHAR)
SELECT rounds FROM table_name_28 WHERE team = "rml racing silverline" AND drivers = "james nash"
Write a SQL query that answers the following question: What class is Rob Collard in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (class VARCHAR, drivers VARCHAR)
SELECT class FROM table_name_28 WHERE drivers = "rob collard"
Write a SQL query that answers the following question: What is the car specs for team Airwaves BMW's driver Rob Collard?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (car_spec VARCHAR, team VARCHAR, drivers VARCHAR)
SELECT car_spec FROM table_name_68 WHERE team = "airwaves bmw" AND drivers = "rob collard"
Write a SQL query that answers the following question: What is the language of TV3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (language VARCHAR, name VARCHAR)
SELECT language FROM table_name_83 WHERE name = "tv3"
Write a SQL query that answers the following question: What is the group of ESPN International Sports?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (group VARCHAR, name VARCHAR)
SELECT group FROM table_name_70 WHERE name = "espn international sports"
Write a SQL query that answers the following question: What is the type of station for ESPN International Sports?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (type VARCHAR, name VARCHAR)
SELECT type FROM table_name_74 WHERE name = "espn international sports"
Write a SQL query that answers the following question: What is the type of station that is in the movies group?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (type VARCHAR, group VARCHAR)
SELECT type FROM table_name_18 WHERE group = "movies"
Write a SQL query that answers the following question: What is the name of the person with a total of 22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_6 (name VARCHAR, total VARCHAR)
SELECT name FROM table_name_6 WHERE total = 22
Write a SQL query that answers the following question: What's the nationality of Henry Carr having a time of 20.3y?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_82 (nationality VARCHAR, athlete VARCHAR, time VARCHAR)
SELECT nationality FROM table_name_82 WHERE athlete = "henry carr" AND time = "20.3y"
Write a SQL query that answers the following question: What's the nationality of Livio Berruti?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_53 (nationality VARCHAR, athlete VARCHAR)
SELECT nationality FROM table_name_53 WHERE athlete = "livio berruti"
Write a SQL query that answers the following question: What's the nationality of Ray norton with a time of 20.6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (nationality VARCHAR, time VARCHAR, athlete VARCHAR)
SELECT nationality FROM table_name_70 WHERE time = "20.6" AND athlete = "ray norton"
Write a SQL query that answers the following question: What is the sum of the prominence in m of slovakia?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (prominence__m_ INTEGER, country VARCHAR)
SELECT SUM(prominence__m_) FROM table_name_39 WHERE country = "slovakia"
Write a SQL query that answers the following question: What is the prominence in m of a col in m greater than 738?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_57 (prominence__m_ VARCHAR, col__m_ INTEGER)
SELECT prominence__m_ FROM table_name_57 WHERE col__m_ > 738
Write a SQL query that answers the following question: Whta is the lowest col in m of gerlachovský štít peak, which has an elevation greater than 2,655 m?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (col__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
SELECT MIN(col__m_) FROM table_name_69 WHERE peak = "gerlachovský štít" AND elevation__m_ > 2 OFFSET 655
Write a SQL query that answers the following question: What is the average prominence in m of pietrosul rodnei peak, which has an elevation less than 2,303?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (prominence__m_ INTEGER, peak VARCHAR, elevation__m_ VARCHAR)
SELECT AVG(prominence__m_) FROM table_name_48 WHERE peak = "pietrosul rodnei" AND elevation__m_ < 2 OFFSET 303
Write a SQL query that answers the following question: What is the Score of the Shooter with a Comp of OG?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (score VARCHAR, comp VARCHAR)
SELECT score FROM table_name_9 WHERE comp = "og"
Write a SQL query that answers the following question: What is the B Score when the total is more than 16.125, and position is 3rd?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (b_score INTEGER, total VARCHAR, position VARCHAR)
SELECT SUM(b_score) FROM table_name_70 WHERE total > 16.125 AND position = "3rd"
Write a SQL query that answers the following question: What is the lowest A Score when the B Score is 9.15, and total is 16.05?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_61 (a_score INTEGER, b_score VARCHAR, total VARCHAR)
SELECT MIN(a_score) FROM table_name_61 WHERE b_score = 9.15 AND total = 16.05
Write a SQL query that answers the following question: Who had a time of 7:14.64?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (athlete VARCHAR, time VARCHAR)
SELECT athlete FROM table_name_39 WHERE time = "7:14.64"
Write a SQL query that answers the following question: What rank was Lassi Karonen?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (rank VARCHAR, athlete VARCHAR)
SELECT COUNT(rank) FROM table_name_9 WHERE athlete = "lassi karonen"
Write a SQL query that answers the following question: What was the rank when then time was 7:52.53?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (rank INTEGER, time VARCHAR)
SELECT MIN(rank) FROM table_name_10 WHERE time = "7:52.53"
Write a SQL query that answers the following question: Who was the athlete from Germany with notes of Q?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (athlete VARCHAR, notes VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_73 WHERE notes = "q" AND country = "germany"
Write a SQL query that answers the following question: What rank is Germany?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (rank VARCHAR, country VARCHAR)
SELECT rank FROM table_name_74 WHERE country = "germany"
Write a SQL query that answers the following question: Who was the athlete from Hong Kong?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (athlete VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_71 WHERE country = "hong kong"
Write a SQL query that answers the following question: Which school has a mascot of the Blazers and in the Northeast Corner conference?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (school VARCHAR, conference_joined VARCHAR, mascot VARCHAR)
SELECT school FROM table_name_75 WHERE conference_joined = "northeast corner" AND mascot = "blazers"
Write a SQL query that answers the following question: Which mascot has an IHSAA Class and Football class of 2A/2A?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (mascot VARCHAR, ihsaa_class___football_class VARCHAR)
SELECT mascot FROM table_name_80 WHERE ihsaa_class___football_class = "2a/2a"
Write a SQL query that answers the following question: Which player was selected in rounds under 3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (player VARCHAR, round INTEGER)
SELECT player FROM table_name_33 WHERE round < 3
Write a SQL query that answers the following question: Which Water (sqmi) has a Pop (2010) of 359, and a Longitude smaller than -97.176811?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_91 (water__sqmi_ INTEGER, pop__2010_ VARCHAR, longitude VARCHAR)
SELECT MAX(water__sqmi_) FROM table_name_91 WHERE pop__2010_ = 359 AND longitude < -97.176811
Write a SQL query that answers the following question: Which Land (sqmi) has a Water (sqmi) smaller than 0.04, and a Longitude of -96.794706?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (land___sqmi__ INTEGER, water__sqmi_ VARCHAR, longitude VARCHAR)
SELECT MIN(land___sqmi__) FROM table_name_79 WHERE water__sqmi_ < 0.04 AND longitude = -96.794706
Write a SQL query that answers the following question: How much Latitude has a Water (sqmi) of 0.267, and an ANSI code larger than 1759605?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (latitude INTEGER, water__sqmi_ VARCHAR, ansi_code VARCHAR)
SELECT SUM(latitude) FROM table_name_9 WHERE water__sqmi_ = 0.267 AND ansi_code > 1759605
Write a SQL query that answers the following question: Which ANSI code has a GEO ID larger than 3809927140, and a Water (sqmi) smaller than 0.492, and a Pop (2010) of 37, and a Latitude larger than 48.245979?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (ansi_code INTEGER, latitude VARCHAR, pop__2010_ VARCHAR, geo_id VARCHAR, water__sqmi_ VARCHAR)
SELECT MIN(ansi_code) FROM table_name_48 WHERE geo_id > 3809927140 AND water__sqmi_ < 0.492 AND pop__2010_ = 37 AND latitude > 48.245979
Write a SQL query that answers the following question: What is the Owner of Frequency 00 99.3?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (owner VARCHAR, frequency VARCHAR)
SELECT owner FROM table_name_64 WHERE frequency = "00 99.3"
Write a SQL query that answers the following question: What is the Branding of Frequency 00 94.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (branding VARCHAR, frequency VARCHAR)
SELECT branding FROM table_name_70 WHERE frequency = "00 94.5"
Write a SQL query that answers the following question: What is the Call Sign of the Frequency by Owner CKUA Radio Foundation?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (call_sign VARCHAR, owner VARCHAR)
SELECT call_sign FROM table_name_33 WHERE owner = "ckua radio foundation"
Write a SQL query that answers the following question: What is the Owner of the Frequency with a Format of First Nations Community Radio?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (owner VARCHAR, format VARCHAR)
SELECT owner FROM table_name_40 WHERE format = "first nations community radio"
Write a SQL query that answers the following question: Which School has a Previous Conference of none (new school), and a Year Joined larger than 1960, and a Location of versailles?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (school VARCHAR, location VARCHAR, previous_conference VARCHAR, year_joined VARCHAR)
SELECT school FROM table_name_78 WHERE previous_conference = "none (new school)" AND year_joined > 1960 AND location = "versailles"
Write a SQL query that answers the following question: Which Location has a Previous Conference of independents, and a Mascot of hilltoppers?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (location VARCHAR, previous_conference VARCHAR, mascot VARCHAR)
SELECT location FROM table_name_95 WHERE previous_conference = "independents" AND mascot = "hilltoppers"
Write a SQL query that answers the following question: Which Year Joined has a Size larger than 93, and a Previous Conference of none (new school), and a Mascot of rebels?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (year_joined INTEGER, mascot VARCHAR, size VARCHAR, previous_conference VARCHAR)
SELECT AVG(year_joined) FROM table_name_88 WHERE size > 93 AND previous_conference = "none (new school)" AND mascot = "rebels"
Write a SQL query that answers the following question: How many years Joined have a Size smaller than 417, and an IHSAA Class of A, and a School of jac-cen-del?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (year_joined VARCHAR, school VARCHAR, size VARCHAR, ihsaa_class VARCHAR)
SELECT COUNT(year_joined) FROM table_name_68 WHERE size < 417 AND ihsaa_class = "a" AND school = "jac-cen-del"
Write a SQL query that answers the following question: What is the 1957 number when the 1955 is smaller than 0.63, and 1952 is larger than 0.22?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_71 (Id VARCHAR)
SELECT COUNT(1957) FROM table_name_71 WHERE 1955 < 0.63 AND 1952 > 0.22
Write a SQL query that answers the following question: What is the 1952 rate when the 1954 is more than 4.2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (Id VARCHAR)
SELECT SUM(1952) FROM table_name_37 WHERE 1954 > 4.2
Write a SQL query that answers the following question: What is the 1955 rate when the 1956 is more than 2.9, and 1953 is larger than 4.5?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (Id VARCHAR)
SELECT SUM(1955) FROM table_name_7 WHERE 1956 > 2.9 AND 1953 > 4.5
Write a SQL query that answers the following question: In what Week resulting in the bottom 3 was Endre Jansen Partner?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_97 (week INTEGER, result VARCHAR, partner VARCHAR)
SELECT MAX(week) FROM table_name_97 WHERE result = "bottom 3" AND partner = "endre jansen"
Write a SQL query that answers the following question: What Dance in Week 1 resulted in Safe?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (dance VARCHAR, result VARCHAR, week VARCHAR)
SELECT dance FROM table_name_16 WHERE result = "safe" AND week = 1
Write a SQL query that answers the following question: In what Week was the Locking Dance?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (week INTEGER, dance VARCHAR)
SELECT MAX(week) FROM table_name_16 WHERE dance = "locking"
Write a SQL query that answers the following question: What position has 7 as the round, with a pick # less than 214?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR)
SELECT position FROM table_name_5 WHERE round = 7 AND pick__number < 214
Write a SQL query that answers the following question: What college has a round greater than 1, with dylan mcfarland as the player?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_95 (college VARCHAR, round VARCHAR, player VARCHAR)
SELECT college FROM table_name_95 WHERE round > 1 AND player = "dylan mcfarland"
Write a SQL query that answers the following question: What player has a pick # greater than 207?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (player VARCHAR, pick__number INTEGER)
SELECT player FROM table_name_44 WHERE pick__number > 207
Write a SQL query that answers the following question: Which artist had a 4x platinum?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (artist VARCHAR, certification VARCHAR)
SELECT artist FROM table_name_42 WHERE certification = "4x platinum"
Write a SQL query that answers the following question: What was the highest peak position for the album one of the boys?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (peak_position INTEGER, album VARCHAR)
SELECT MAX(peak_position) FROM table_name_48 WHERE album = "one of the boys"
Write a SQL query that answers the following question: How many sales had a peak position of 1 and a certification of 6x platinum?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT COUNT(sales) FROM table_name_31 WHERE peak_position = 1 AND certification = "6x platinum"
Write a SQL query that answers the following question: What album had a peak position of 6 and a certification of 3x platinum?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (album VARCHAR, certification VARCHAR, peak_position VARCHAR)
SELECT album FROM table_name_25 WHERE certification = "3x platinum" AND peak_position = 6
Write a SQL query that answers the following question: How many sales had a peak position more than 2 and a Certification of 3x platinum?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_44 (sales VARCHAR, peak_position VARCHAR, certification VARCHAR)
SELECT COUNT(sales) FROM table_name_44 WHERE peak_position > 2 AND certification = "3x platinum"
Write a SQL query that answers the following question: Who were the rowers who had a time of 7:39.70?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (rowers VARCHAR, time VARCHAR)
SELECT rowers FROM table_name_18 WHERE time = "7:39.70"
Write a SQL query that answers the following question: Who were the rowers from china wh had a rank smaller than 4?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (rowers VARCHAR, rank VARCHAR, country VARCHAR)
SELECT rowers FROM table_name_51 WHERE rank < 4 AND country = "china"
Write a SQL query that answers the following question: What is the notes for the rowers from denmark?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_26 (notes VARCHAR, country VARCHAR)
SELECT notes FROM table_name_26 WHERE country = "denmark"
Write a SQL query that answers the following question: Which Bronze has a Nation of austria, and a Total larger than 6?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_21 (bronze INTEGER, nation VARCHAR, total VARCHAR)
SELECT MAX(bronze) FROM table_name_21 WHERE nation = "austria" AND total > 6
Write a SQL query that answers the following question: Which Rank has a Silver of 1, and a Gold of 0, and a Nation of austria?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (rank VARCHAR, nation VARCHAR, silver VARCHAR, gold VARCHAR)
SELECT rank FROM table_name_13 WHERE silver = 1 AND gold = 0 AND nation = "austria"
Write a SQL query that answers the following question: Which Total has a Rank of 5, and a Bronze smaller than 0?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (total INTEGER, rank VARCHAR, bronze VARCHAR)
SELECT AVG(total) FROM table_name_67 WHERE rank = "5" AND bronze < 0
Write a SQL query that answers the following question: Which Total has a Bronze of 5, and a Silver smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_37 (total INTEGER, bronze VARCHAR, silver VARCHAR)
SELECT MIN(total) FROM table_name_37 WHERE bronze = 5 AND silver < 1
Write a SQL query that answers the following question: What is the highest year with a formula of Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_25 (year INTEGER, formula VARCHAR)
SELECT MAX(year) FROM table_name_25 WHERE formula = "grand prix"
Write a SQL query that answers the following question: Which formula had a driver of John Moore-Brabazon?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (formula VARCHAR, driver VARCHAR)
SELECT formula FROM table_name_64 WHERE driver = "john moore-brabazon"
Write a SQL query that answers the following question: Which driver had a year under 1905?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (driver VARCHAR, year INTEGER)
SELECT driver FROM table_name_51 WHERE year < 1905
Write a SQL query that answers the following question: How many years had a formula of Grand Prix?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (year VARCHAR, formula VARCHAR)
SELECT COUNT(year) FROM table_name_46 WHERE formula = "grand prix"
Write a SQL query that answers the following question: Which location was won by George Heath?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (location VARCHAR, driver VARCHAR)
SELECT location FROM table_name_15 WHERE driver = "george heath"
Write a SQL query that answers the following question: What is the 2010 total for ghana?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (country VARCHAR)
SELECT COUNT(2010) FROM table_name_64 WHERE country = "ghana"
Write a SQL query that answers the following question: Which country is the nnamdi azikiwe international airport in?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (country VARCHAR, airport VARCHAR)
SELECT country FROM table_name_73 WHERE airport = "nnamdi azikiwe international airport"
Write a SQL query that answers the following question: What is the average lane for Kenya with react larger than 0.212?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (lane INTEGER, nationality VARCHAR, react VARCHAR)
SELECT AVG(lane) FROM table_name_79 WHERE nationality = "kenya" AND react > 0.212
Write a SQL query that answers the following question: what is the highest rank for tim maeyens?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (rank INTEGER, athlete VARCHAR)
SELECT MAX(rank) FROM table_name_34 WHERE athlete = "tim maeyens"
Write a SQL query that answers the following question: what is the notes for andre vonarburg?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (notes VARCHAR, athlete VARCHAR)
SELECT notes FROM table_name_24 WHERE athlete = "andre vonarburg"
Write a SQL query that answers the following question: Who is the athlete from greece?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (athlete VARCHAR, country VARCHAR)
SELECT athlete FROM table_name_13 WHERE country = "greece"
Write a SQL query that answers the following question: who is the athlete with the rank smaller than 2?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (athlete VARCHAR, rank INTEGER)
SELECT athlete FROM table_name_10 WHERE rank < 2
Write a SQL query that answers the following question: what is the notes for the athlete with the time of 7:38.87?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (notes VARCHAR, time VARCHAR)
SELECT notes FROM table_name_86 WHERE time = "7:38.87"
Write a SQL query that answers the following question: What is the sum of the gold medals of the nation with 4 silvers and more than 6 total medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (gold INTEGER, silver VARCHAR, total VARCHAR)
SELECT SUM(gold) FROM table_name_74 WHERE silver = 4 AND total > 6
Write a SQL query that answers the following question: What is the highest number of bronze medals of west germany, which has more than 0 golds?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_4 (bronze INTEGER, nation VARCHAR, gold VARCHAR)
SELECT MAX(bronze) FROM table_name_4 WHERE nation = "west germany" AND gold > 0
Write a SQL query that answers the following question: What is the average total medals of the soviet union, which has more than 2 bronze and more than 0 silver medals?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_2 (total INTEGER, nation VARCHAR, bronze VARCHAR, silver VARCHAR)
SELECT AVG(total) FROM table_name_2 WHERE bronze > 2 AND silver > 0 AND nation = "soviet union"
Write a SQL query that answers the following question: What year did the ship Europa, have the dates of 14 – 23 October?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_32 (year INTEGER, ship VARCHAR, dates VARCHAR)
SELECT AVG(year) FROM table_name_32 WHERE ship = "europa" AND dates = "14 – 23 october"
Write a SQL query that answers the following question: What is the Days, hours, minutes for 21 – 26 October?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_81 (days VARCHAR, _hours VARCHAR, _minutes VARCHAR, dates VARCHAR)
SELECT days, _hours, _minutes FROM table_name_81 WHERE dates = "21 – 26 october"
Write a SQL query that answers the following question: Which year did the school with the mascot of the Vikings join?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_83 (year_joined VARCHAR, mascot VARCHAR)
SELECT year_joined FROM table_name_83 WHERE mascot = "vikings"
Write a SQL query that answers the following question: Who wrote the album recorded at funhouse studios with a time of 3:27?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)
SELECT writer_s_ FROM table_name_64 WHERE recorded_at = "funhouse studios" AND time = "3:27"
Write a SQL query that answers the following question: Who performed the song recorded at the Cabin in the Woods Studio with a Time of 3:16?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (performer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR)
SELECT performer_s_ FROM table_name_45 WHERE recorded_at = "the cabin in the woods studio" AND time = "3:16"
Write a SQL query that answers the following question: Which League Cup Goals have a League Cup Apps of 1 (1)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (league_cup_goals VARCHAR, league_cup_apps VARCHAR)
SELECT league_cup_goals FROM table_name_45 WHERE league_cup_apps = "1 (1)"
Write a SQL query that answers the following question: Which FA Cup Apps have Total Goals larger than 6, and an FA Cup Goals smaller than 1?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_90 (fa_cup_apps VARCHAR, total_goals VARCHAR, fa_cup_goals VARCHAR)
SELECT fa_cup_apps FROM table_name_90 WHERE total_goals > 6 AND fa_cup_goals < 1
Write a SQL query that answers the following question: How many League Goals have an FA Cup Apps of 0 (1)?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (league_goals VARCHAR, fa_cup_apps VARCHAR)
SELECT COUNT(league_goals) FROM table_name_84 WHERE fa_cup_apps = "0 (1)"
Write a SQL query that answers the following question: What is the lowest round number in which Will Wilcox was selected?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (round INTEGER, player VARCHAR)
SELECT MIN(round) FROM table_name_55 WHERE player = "will wilcox"
Write a SQL query that answers the following question: Which player went to college at Tennessee-Chattanooga?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_7 (player VARCHAR, college VARCHAR)
SELECT player FROM table_name_7 WHERE college = "tennessee-chattanooga"
Write a SQL query that answers the following question: Which Col (m) has an Elevation (m) smaller than 1,624?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (col__m_ INTEGER, elevation__m_ INTEGER)
SELECT MIN(col__m_) FROM table_name_88 WHERE elevation__m_ < 1 OFFSET 624
Write a SQL query that answers the following question: How much Elevation (m) has a Prominence (m) larger than 1,754?
The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (elevation__m_ INTEGER, prominence__m_ INTEGER)
SELECT SUM(elevation__m_) FROM table_name_45 WHERE prominence__m_ > 1 OFFSET 754