instruction stringlengths 67 299 | input stringlengths 88 550 | output stringlengths 32 484 |
|---|---|---|
Write a SQL query that answers the following question: What is the ISSN number of a publication range of 1984-? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_36 (issn VARCHAR, publication_range VARCHAR) | SELECT issn FROM table_name_36 WHERE publication_range = "1984-" |
Write a SQL query that answers the following question: What is the language for a journal that has a frequency of 3 times per year and has an ISSN number of 1136-7385? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (language VARCHAR, frequency VARCHAR, issn VARCHAR) | SELECT language FROM table_name_43 WHERE frequency = "3 times per year" AND issn = "1136-7385" |
Write a SQL query that answers the following question: What is the region 4 release that has july 20, 2009 as the region 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_99 (region_4_release VARCHAR, region_2_release VARCHAR) | SELECT region_4_release FROM table_name_99 WHERE region_2_release = "july 20, 2009" |
Write a SQL query that answers the following question: What is the region 1 release that has july 20, 2009 as the region 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_39 (region_1_release VARCHAR, region_2_release VARCHAR) | SELECT region_1_release FROM table_name_39 WHERE region_2_release = "july 20, 2009" |
Write a SQL query that answers the following question: What is the average episode that has September 11, 2007 as a region 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (episodes INTEGER, region_1_release VARCHAR) | SELECT AVG(episodes) FROM table_name_70 WHERE region_1_release = "september 11, 2007" |
Write a SQL query that answers the following question: What is the scheduled value for the farm having a capacity under 32.5MW, type of Nordex n90 2.5MW, and a farm of Glenough Extension? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (scheduled VARCHAR, wind_farm VARCHAR, capacity__mw_ VARCHAR, type VARCHAR) | SELECT scheduled FROM table_name_13 WHERE capacity__mw_ < 32.5 AND type = "nordex n90 2.5mw" AND wind_farm = "glenough extension" |
Write a SQL query that answers the following question: What is the type of turbine having fewer than 17 units and located in County Laois? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (type VARCHAR, turbines VARCHAR, location VARCHAR) | SELECT type FROM table_name_65 WHERE turbines < 17 AND location = "county laois" |
Write a SQL query that answers the following question: When is the scheduled date for the farm having 17 turbines? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_96 (scheduled VARCHAR, turbines VARCHAR) | SELECT scheduled FROM table_name_96 WHERE turbines = 17 |
Write a SQL query that answers the following question: What is the average capacity for the farm at Gortahile having more than 8 turbines? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (capacity__mw_ INTEGER, wind_farm VARCHAR, turbines VARCHAR) | SELECT AVG(capacity__mw_) FROM table_name_84 WHERE wind_farm = "gortahile" AND turbines > 8 |
Write a SQL query that answers the following question: What is the title of the king who left office in 982 and entered office in 949? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (title VARCHAR, left_office VARCHAR, entered_office VARCHAR) | SELECT title FROM table_name_64 WHERE left_office = "982" AND entered_office = "949" |
Write a SQL query that answers the following question: When did the king who entered office in 1012 leave office? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (left_office VARCHAR, entered_office VARCHAR) | SELECT left_office FROM table_name_34 WHERE entered_office = "1012" |
Write a SQL query that answers the following question: What are the family relations of the king with the throne name 303? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (family_relations VARCHAR, throne_name VARCHAR) | SELECT family_relations FROM table_name_20 WHERE throne_name = "303" |
Write a SQL query that answers the following question: What is teh born-died dates of the king with a throne name 315 and left office in 1021? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (born_died VARCHAR, left_office VARCHAR, throne_name VARCHAR) | SELECT born_died FROM table_name_74 WHERE left_office = "1021" AND throne_name = "315" |
Write a SQL query that answers the following question: Which Opponents have a Partner of irina-camelia begu, and a Surface of hard? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_15 (opponents VARCHAR, partner VARCHAR, surface VARCHAR) | SELECT opponents FROM table_name_15 WHERE partner = "irina-camelia begu" AND surface = "hard" |
Write a SQL query that answers the following question: Which Surface has a Partner of galina voskoboeva? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_45 (surface VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_45 WHERE partner = "galina voskoboeva" |
Write a SQL query that answers the following question: Which Opponents have a Surface of hard, and an Outcome of runner-up, and a Partner of jarmila gajdošová? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_80 (opponents VARCHAR, partner VARCHAR, surface VARCHAR, outcome VARCHAR) | SELECT opponents FROM table_name_80 WHERE surface = "hard" AND outcome = "runner-up" AND partner = "jarmila gajdošová" |
Write a SQL query that answers the following question: Which Partner has a Date of 12 july 2009? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_18 (partner VARCHAR, date VARCHAR) | SELECT partner FROM table_name_18 WHERE date = "12 july 2009" |
Write a SQL query that answers the following question: Which Surface has a Partner of sorana cîrstea? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_93 (surface VARCHAR, partner VARCHAR) | SELECT surface FROM table_name_93 WHERE partner = "sorana cîrstea" |
Write a SQL query that answers the following question: Name the least overall with pick number more than 27 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (overall INTEGER, pick__number INTEGER) | SELECT MIN(overall) FROM table_name_56 WHERE pick__number > 27 |
Write a SQL query that answers the following question: what's the first leg with gran canaria as team #2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_56 (team__number2 VARCHAR) | SELECT 1 AS st_leg FROM table_name_56 WHERE team__number2 = "gran canaria" |
Write a SQL query that answers the following question: with team #1 as lukoil academic what is team #2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (team__number2 VARCHAR, team__number1 VARCHAR) | SELECT team__number2 FROM table_name_67 WHERE team__number1 = "lukoil academic" |
Write a SQL query that answers the following question: with team #2 as akasvayu girona what is team #1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_12 (team__number1 VARCHAR, team__number2 VARCHAR) | SELECT team__number1 FROM table_name_12 WHERE team__number2 = "akasvayu girona" |
Write a SQL query that answers the following question: Which virtue is acedia(Latin)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (virtue VARCHAR, acedia VARCHAR, latin VARCHAR) | SELECT virtue FROM table_name_13 WHERE (latin) = acedia |
Write a SQL query that answers the following question: Which Virtue has a (vice) of lust? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_31 (virtue VARCHAR, _vice_ VARCHAR) | SELECT virtue FROM table_name_31 WHERE _vice_ = "lust" |
Write a SQL query that answers the following question: Which virtue is Invidia(Latin)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (virtue VARCHAR, invidia VARCHAR, latin VARCHAR) | SELECT virtue FROM table_name_20 WHERE (latin) = invidia |
Write a SQL query that answers the following question: What's the gloss with Castitas(Latin)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_79 (gloss VARCHAR, latin VARCHAR) | SELECT gloss FROM table_name_79 WHERE latin = "castitas" |
Write a SQL query that answers the following question: What is the Diligence Virtues Gloss? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (gloss VARCHAR, virtue VARCHAR) | SELECT gloss FROM table_name_22 WHERE virtue = "diligence" |
Write a SQL query that answers the following question: What is the Virtue of Temperance in Latin? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (latin VARCHAR, virtue VARCHAR) | SELECT latin FROM table_name_64 WHERE virtue = "temperance" |
Write a SQL query that answers the following question: In what year(s) did South Korea win silver? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_14 (year VARCHAR, silver VARCHAR) | SELECT year FROM table_name_14 WHERE silver = "south korea" |
Write a SQL query that answers the following question: Which nation(s) won silver in Doha? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_51 (silver VARCHAR, location VARCHAR) | SELECT silver FROM table_name_51 WHERE location = "doha" |
Write a SQL query that answers the following question: What was the first year that South Korea won gold and Malaysia won bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_74 (year INTEGER, gold VARCHAR, bronze VARCHAR) | SELECT MIN(year) FROM table_name_74 WHERE gold = "south korea" AND bronze = "malaysia" |
Write a SQL query that answers the following question: What country won gold in the year(s) that Chinese Taipei won bronze? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (gold VARCHAR, bronze VARCHAR) | SELECT gold FROM table_name_50 WHERE bronze = "chinese taipei" |
Write a SQL query that answers the following question: Which European competitions have a Pos of 6? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (european_competitions VARCHAR, pos VARCHAR) | SELECT european_competitions FROM table_name_85 WHERE pos = 6 |
Write a SQL query that answers the following question: Which Pos has a Dutch Cup of winner, and a Tier larger than 1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_1 (pos INTEGER, dutch_cup VARCHAR, tier VARCHAR) | SELECT AVG(pos) FROM table_name_1 WHERE dutch_cup = "winner" AND tier > 1 |
Write a SQL query that answers the following question: What is the average Frequency MHz that is on farwell, texas? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (frequency_mhz INTEGER, city_of_license VARCHAR) | SELECT AVG(frequency_mhz) FROM table_name_72 WHERE city_of_license = "farwell, texas" |
Write a SQL query that answers the following question: WHich City of license has a FCC info of fcc, and 10,000 horizontal 3,000 vertical ERP W | The relevant table was constructed using the following SQL : CREATE TABLE table_name_42 (city_of_license VARCHAR, fcc_info VARCHAR, erp_w VARCHAR) | SELECT city_of_license FROM table_name_42 WHERE fcc_info = "fcc" AND erp_w = "10,000 horizontal 3,000 vertical" |
Write a SQL query that answers the following question: WHich FCC info has 3,000 ERP W? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (fcc_info VARCHAR, erp_w VARCHAR) | SELECT fcc_info FROM table_name_22 WHERE erp_w = "3,000" |
Write a SQL query that answers the following question: What's the average game against the New Jersey Devils with 19 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_22 (game INTEGER, points VARCHAR, opponent VARCHAR) | SELECT AVG(game) FROM table_name_22 WHERE points = 19 AND opponent = "new jersey devils" |
Write a SQL query that answers the following question: Opponent of at boston patriots, and a Week larger than 3 had what average attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (attendance INTEGER, opponent VARCHAR, week VARCHAR) | SELECT AVG(attendance) FROM table_name_54 WHERE opponent = "at boston patriots" AND week > 3 |
Write a SQL query that answers the following question: Name the average fall 07 for fall 07 more than 219 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (fall_07 INTEGER, fall_06 INTEGER) | SELECT AVG(fall_07) FROM table_name_34 WHERE fall_06 > 219 |
Write a SQL query that answers the following question: Name the player for fc dallas pick number less than 3 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_69 (player VARCHAR, pick__number VARCHAR, mls_team VARCHAR) | SELECT player FROM table_name_69 WHERE pick__number < 3 AND mls_team = "fc dallas" |
Write a SQL query that answers the following question: Name the most pick number for real salt lake and affiliation of ucla los angeles storm | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (pick__number INTEGER, mls_team VARCHAR, affiliation VARCHAR) | SELECT MAX(pick__number) FROM table_name_63 WHERE mls_team = "real salt lake" AND affiliation = "ucla los angeles storm" |
Write a SQL query that answers the following question: Name the player with pick number of 7 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (player VARCHAR, pick__number VARCHAR) | SELECT player FROM table_name_63 WHERE pick__number = 7 |
Write a SQL query that answers the following question: Which Game has a March smaller than 12, and a Score of 10–1? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (game INTEGER, march VARCHAR, score VARCHAR) | SELECT MIN(game) FROM table_name_10 WHERE march < 12 AND score = "10–1" |
Write a SQL query that answers the following question: Which Score has Points of 88, and a Record of 38–22–12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_84 (score VARCHAR, points VARCHAR, record VARCHAR) | SELECT score FROM table_name_84 WHERE points = 88 AND record = "38–22–12" |
Write a SQL query that answers the following question: Which Game has an Opponent of detroit red wings, and a March smaller than 12? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (game VARCHAR, opponent VARCHAR, march VARCHAR) | SELECT COUNT(game) FROM table_name_13 WHERE opponent = "detroit red wings" AND march < 12 |
Write a SQL query that answers the following question: Which Points have a Game smaller than 70, and a Score of 4–8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (points INTEGER, game VARCHAR, score VARCHAR) | SELECT MIN(points) FROM table_name_85 WHERE game < 70 AND score = "4–8" |
Write a SQL query that answers the following question: Which segment a's Netflix is S05E22? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (segment_a VARCHAR, netflix VARCHAR) | SELECT segment_a FROM table_name_86 WHERE netflix = "s05e22" |
Write a SQL query that answers the following question: Which series episode has a segment c that is Electric pole s transformer? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_59 (series_ep VARCHAR, segment_c VARCHAR) | SELECT series_ep FROM table_name_59 WHERE segment_c = "electric pole s transformer" |
Write a SQL query that answers the following question: What largest episode number's Netflix is S05E23? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (episode INTEGER, netflix VARCHAR) | SELECT MAX(episode) FROM table_name_23 WHERE netflix = "s05e23" |
Write a SQL query that answers the following question: Which segment c's segment b is refrigerators? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_58 (segment_c VARCHAR, segment_b VARCHAR) | SELECT segment_c FROM table_name_58 WHERE segment_b = "refrigerators" |
Write a SQL query that answers the following question: Which races did they accumulate at least 125 points? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_38 (races VARCHAR, points VARCHAR) | SELECT races FROM table_name_38 WHERE points = "125" |
Write a SQL query that answers the following question: Which Series has a Score of 3 – 8? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_63 (series VARCHAR, score VARCHAR) | SELECT series FROM table_name_63 WHERE score = "3 – 8" |
Write a SQL query that answers the following question: Which Date has a Decision of myre? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (date VARCHAR, decision VARCHAR) | SELECT date FROM table_name_48 WHERE decision = "myre" |
Write a SQL query that answers the following question: How many Attendances on may 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_75 (attendance INTEGER, date VARCHAR) | SELECT MIN(attendance) FROM table_name_75 WHERE date = "may 24" |
Write a SQL query that answers the following question: Which Series are on may 18? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_86 (series VARCHAR, date VARCHAR) | SELECT series FROM table_name_86 WHERE date = "may 18" |
Write a SQL query that answers the following question: How many Attendances that has a Visitor of philadelphia on may 20? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (attendance INTEGER, visitor VARCHAR, date VARCHAR) | SELECT AVG(attendance) FROM table_name_48 WHERE visitor = "philadelphia" AND date = "may 20" |
Write a SQL query that answers the following question: who is the Visitor that has a Series of series tied 2–2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_33 (visitor VARCHAR, series VARCHAR) | SELECT visitor FROM table_name_33 WHERE series = "series tied 2–2" |
Write a SQL query that answers the following question: How many Attendances have a Score of 4 – 5? Question 4 | The relevant table was constructed using the following SQL : CREATE TABLE table_name_88 (attendance INTEGER, score VARCHAR) | SELECT MAX(attendance) FROM table_name_88 WHERE score = "4 – 5" |
Write a SQL query that answers the following question: WHo has a Home of philadelphia and a Series of flyers lead 1–0? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_54 (visitor VARCHAR, home VARCHAR, series VARCHAR) | SELECT visitor FROM table_name_54 WHERE home = "philadelphia" AND series = "flyers lead 1–0" |
Write a SQL query that answers the following question: What is the class of the Charlotte Camel gt 500 race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_76 (class VARCHAR, race VARCHAR) | SELECT class FROM table_name_76 WHERE race = "charlotte camel gt 500" |
Write a SQL query that answers the following question: What is the race 12 hours in length? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_20 (race VARCHAR, length VARCHAR) | SELECT race FROM table_name_20 WHERE length = "12 hours" |
Write a SQL query that answers the following question: What is the class of the Coca-cola classic 12 hours of sebring race? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (class VARCHAR, race VARCHAR) | SELECT class FROM table_name_35 WHERE race = "coca-cola classic 12 hours of sebring" |
Write a SQL query that answers the following question: What is the class of the Budweiser Grand Prix of Miami race with a length of 3 hours? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_13 (class VARCHAR, race VARCHAR, length VARCHAR) | SELECT class FROM table_name_13 WHERE race = "budweiser grand prix of miami" AND length = "3 hours" |
Write a SQL query that answers the following question: What is the date of the Paul Revere 250 race in the Daytona International Speedway circuit? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_66 (date VARCHAR, circuit VARCHAR, race VARCHAR) | SELECT date FROM table_name_66 WHERE circuit = "daytona international speedway" AND race = "paul revere 250" |
Write a SQL query that answers the following question: What race is 12 hours in length? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_52 (race VARCHAR, length VARCHAR) | SELECT race FROM table_name_52 WHERE length = "12 hours" |
Write a SQL query that answers the following question: What is the highest round for the pick from Finland? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_55 (round INTEGER, nationality VARCHAR) | SELECT MAX(round) FROM table_name_55 WHERE nationality = "finland" |
Write a SQL query that answers the following question: What is the total number of rounds that Joe Barnes was picked? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (round VARCHAR, player VARCHAR) | SELECT COUNT(round) FROM table_name_34 WHERE player = "joe barnes" |
Write a SQL query that answers the following question: What was the order of the Tokyo olympic games? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR) | SELECT order FROM table_name_9 WHERE olympic_games = "tokyo" |
Write a SQL query that answers the following question: What was the 15th club in 2012? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_46 (club VARCHAR, year VARCHAR, order VARCHAR) | SELECT club FROM table_name_46 WHERE year = 2012 AND order = "15th" |
Write a SQL query that answers the following question: What medal did Michael Conlon, with a weight of fly, win? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_48 (medal VARCHAR, weight VARCHAR, boxer VARCHAR) | SELECT medal FROM table_name_48 WHERE weight = "fly" AND boxer = "michael conlon" |
Write a SQL query that answers the following question: How many losses have more than 45,036 attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_50 (loss VARCHAR, attendance INTEGER) | SELECT loss FROM table_name_50 WHERE attendance > 45 OFFSET 036 |
Write a SQL query that answers the following question: on april 29, what was the attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_68 (attendance INTEGER, date VARCHAR) | SELECT SUM(attendance) FROM table_name_68 WHERE date = "april 29" |
Write a SQL query that answers the following question: on april 9 what was the attendance? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_40 (attendance INTEGER, date VARCHAR) | SELECT AVG(attendance) FROM table_name_40 WHERE date = "april 9" |
Write a SQL query that answers the following question: What date has postponed (rain) rescheduled for august 7 as the score? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_27 (date VARCHAR, score VARCHAR) | SELECT date FROM table_name_27 WHERE score = "postponed (rain) rescheduled for august 7" |
Write a SQL query that answers the following question: Failures larger than 0, and a Successes of 1 has what lowest partial failures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_64 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR) | SELECT MIN(partial_failures) FROM table_name_64 WHERE failures > 0 AND successes = 1 |
Write a SQL query that answers the following question: Successes smaller than 6, and Launches larger than 1, and a Failures of 2 is what sum of the partial failures? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_35 (partial_failures INTEGER, failures VARCHAR, successes VARCHAR, launches VARCHAR) | SELECT SUM(partial_failures) FROM table_name_35 WHERE successes < 6 AND launches > 1 AND failures = 2 |
Write a SQL query that answers the following question: Who was the opposing team during a game in the Pontiac Silverdome? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_89 (opponent VARCHAR, location VARCHAR) | SELECT opponent FROM table_name_89 WHERE location = "pontiac silverdome" |
Write a SQL query that answers the following question: What was the final score for the January 23 game? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_23 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_23 WHERE date = "january 23" |
Write a SQL query that answers the following question: What is the highest Feb value having an opponent of the Philadelphia Flyers and is after game 63? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_43 (february INTEGER, opponent VARCHAR, game VARCHAR) | SELECT MAX(february) FROM table_name_43 WHERE opponent = "philadelphia flyers" AND game > 63 |
Write a SQL query that answers the following question: Who was the opponent in games over 58, after Feb 16, and having a record of 40-20-4? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_47 (opponent VARCHAR, record VARCHAR, game VARCHAR, february VARCHAR) | SELECT opponent FROM table_name_47 WHERE game > 58 AND february > 16 AND record = "40-20-4" |
Write a SQL query that answers the following question: Which Year has a Genre of rock (track)? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (year INTEGER, genre VARCHAR) | SELECT SUM(year) FROM table_name_3 WHERE genre = "rock (track)" |
Write a SQL query that answers the following question: Which Year Inducted is the highest one that has a Year smaller than 1965? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_28 (year INTEGER) | SELECT MAX(year) AS Inducted FROM table_name_28 WHERE year < 1965 |
Write a SQL query that answers the following question: Which Overall is the highest one that has a Pick # smaller than 9, and a Name of mike pearson? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_3 (overall INTEGER, pick__number VARCHAR, name VARCHAR) | SELECT MAX(overall) FROM table_name_3 WHERE pick__number < 9 AND name = "mike pearson" |
Write a SQL query that answers the following question: Which Round is the lowest one that has a Position of wide receiver, and an Overall smaller than 222? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_34 (round INTEGER, position VARCHAR, overall VARCHAR) | SELECT MIN(round) FROM table_name_34 WHERE position = "wide receiver" AND overall < 222 |
Write a SQL query that answers the following question: What was the Record on September 21? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_78 WHERE date = "september 21" |
Write a SQL query that answers the following question: What was the record the day David Weathers (15) had a save? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (record VARCHAR, save VARCHAR) | SELECT record FROM table_name_10 WHERE save = "david weathers (15)" |
Write a SQL query that answers the following question: Who had a save on September 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_49 (save VARCHAR, date VARCHAR) | SELECT save FROM table_name_49 WHERE date = "september 2" |
Write a SQL query that answers the following question: What was the loss on September 2? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_16 (loss VARCHAR, date VARCHAR) | SELECT loss FROM table_name_16 WHERE date = "september 2" |
Write a SQL query that answers the following question: What is the total number of byes that are associated with 1 draw, 5 wins, and fewer than 12 losses? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_70 (byes INTEGER, losses VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT SUM(byes) FROM table_name_70 WHERE draws = 1 AND wins = 5 AND losses < 12 |
Write a SQL query that answers the following question: What is the total number of byes associated with fewer than 8 wins and fewer than 1 draw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_67 (byes VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT COUNT(byes) FROM table_name_67 WHERE draws < 1 AND wins < 8 |
Write a SQL query that answers the following question: What is the NTFA Div 1 team that has 15 wins and less than 1 draw? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_30 (ntfa_div_1 VARCHAR, draws VARCHAR, wins VARCHAR) | SELECT ntfa_div_1 FROM table_name_30 WHERE draws < 1 AND wins = 15 |
Write a SQL query that answers the following question: What is the average number of losses for teams with 0 draws and 0 byes? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_78 (losses INTEGER, draws VARCHAR, byes VARCHAR) | SELECT AVG(losses) FROM table_name_78 WHERE draws = 0 AND byes < 0 |
Write a SQL query that answers the following question: What is the most number of losses for teams with 5 wins and an against value under 1607? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_65 (losses INTEGER, wins VARCHAR, against VARCHAR) | SELECT MAX(losses) FROM table_name_65 WHERE wins = 5 AND against < 1607 |
Write a SQL query that answers the following question: Race that has a Podium larger than 1, and a Season of 1982, and a flap smaller than 1 had how many number of races? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_72 (race VARCHAR, flap VARCHAR, podium VARCHAR, season VARCHAR) | SELECT COUNT(race) FROM table_name_72 WHERE podium > 1 AND season = "1982" AND flap < 1 |
Write a SQL query that answers the following question: Pole smaller than 0 had what lowest podium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_92 (podium INTEGER, pole INTEGER) | SELECT MIN(podium) FROM table_name_92 WHERE pole < 0 |
Write a SQL query that answers the following question: Flap of 0, and a Race smaller than 2, and a Season of 1989, and a Pole smaller than 0 had what average podium? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_10 (podium INTEGER, pole VARCHAR, season VARCHAR, flap VARCHAR, race VARCHAR) | SELECT AVG(podium) FROM table_name_10 WHERE flap = 0 AND race < 2 AND season = "1989" AND pole < 0 |
Write a SQL query that answers the following question: What was the record on august 24? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_73 (record VARCHAR, date VARCHAR) | SELECT record FROM table_name_73 WHERE date = "august 24" |
Write a SQL query that answers the following question: Elevation of 11,158 feet 3401 m had what route? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_85 (route VARCHAR, elevation VARCHAR) | SELECT route FROM table_name_85 WHERE elevation = "11,158 feet 3401 m" |
Write a SQL query that answers the following question: Route larger than 24, and a Highway of trail ridge road had what elevation? | The relevant table was constructed using the following SQL : CREATE TABLE table_name_24 (elevation VARCHAR, route VARCHAR, highway VARCHAR) | SELECT elevation FROM table_name_24 WHERE route > 24 AND highway = "trail ridge road" |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.