instruction
stringlengths 67
299
| input
stringlengths 110
572
| output
stringlengths 18
557
|
---|---|---|
Write a SQL query that answers the following question: What is Race 4, when Race 1 is 28? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_51 (race_4 VARCHAR, race_1 VARCHAR) | SELECT race_4 FROM table_name_51 WHERE race_1 = "28" |
Write a SQL query that answers the following question: what is the average total when bronze is more than 0, gold is 0, the nation is united states (usa) and silver is 0? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_99 (total INTEGER, silver VARCHAR, nation VARCHAR, bronze VARCHAR, gold VARCHAR) | SELECT AVG(total) FROM table_name_99 WHERE bronze > 0 AND gold = 0 AND nation = "united states (usa)" AND silver < 0 |
Write a SQL query that answers the following question: What is the sum of skin depth with a resistivity of 1.12 and a relative permeability larger than 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_30 (_inches VARCHAR, skin_depth INTEGER, resistivity__10_−6_ohm_inches_ VARCHAR, relative_permeability VARCHAR) | SELECT SUM(skin_depth), _inches FROM table_name_30 WHERE resistivity__10_−6_ohm_inches_ = 1.12 AND relative_permeability > 1 |
Write a SQL query that answers the following question: Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE employees (first_name VARCHAR, last_name VARCHAR, department_id VARCHAR, salary INTEGER) | SELECT first_name, last_name, department_id FROM employees WHERE salary IN (SELECT MIN(salary) FROM employees GROUP BY department_id) |
Write a SQL query that answers the following question: Which result has sunderland as opponent? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_38 (result VARCHAR, opponent VARCHAR) | SELECT result FROM table_name_38 WHERE opponent = "sunderland" |
Write a SQL query that answers the following question: Which award took place after 2009? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_88 (award VARCHAR, year INTEGER) | SELECT award FROM table_name_88 WHERE year > 2009 |
Write a SQL query that answers the following question: When are all years that tournament location is Western Turnpike Golf Course? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_15315816_1 (year VARCHAR, tournament_location VARCHAR) | SELECT year FROM table_15315816_1 WHERE tournament_location = "Western Turnpike Golf Course" |
Write a SQL query that answers the following question: Rich round has an H/A of A and the opponent Sheffield United? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (round VARCHAR, h___a VARCHAR, opponents VARCHAR) | SELECT round FROM table_name_83 WHERE h___a = "a" AND opponents = "sheffield united" |
Write a SQL query that answers the following question: Who are the contenders In the New York 29 polling area race? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1342256_32 (candidates VARCHAR, district VARCHAR) | SELECT candidates FROM table_1342256_32 WHERE district = "New York 29" |
Write a SQL query that answers the following question: What is the position of player Tobias Lindberg? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11803648_22 (position VARCHAR, player VARCHAR) | SELECT position FROM table_11803648_22 WHERE player = "Tobias Lindberg" |
Write a SQL query that answers the following question: What is the earliest year built for the ship refurbished earlier than 2013? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_47 (year_built INTEGER, last_refurbished INTEGER) | SELECT MIN(year_built) FROM table_name_47 WHERE last_refurbished < 2013 |
Write a SQL query that answers the following question: Which opponent plays on September 19? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_11 (opponent VARCHAR, date VARCHAR) | SELECT opponent FROM table_name_11 WHERE date = "september 19" |
Write a SQL query that answers the following question: Who was the Elevator of Giacomo Colonna? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_21 (elevator VARCHAR, elector VARCHAR) | SELECT elevator FROM table_name_21 WHERE elector = "giacomo colonna" |
Write a SQL query that answers the following question: What is the number of s sikh where 955 is the number of buddhists? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14598_5 (s_sikh VARCHAR, buddhist VARCHAR) | SELECT s_sikh FROM table_14598_5 WHERE buddhist = "955" |
Write a SQL query that answers the following question: What point against has tries against of 77, and a lost of 16? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_93 (points_against VARCHAR, tries_against VARCHAR, lost VARCHAR) | SELECT points_against FROM table_name_93 WHERE tries_against = "77" AND lost = "16" |
Write a SQL query that answers the following question: Which team was team 1 that had a team 2 that was la nuova piovese (veneto a)? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_2 (team_1 VARCHAR, team_2 VARCHAR) | SELECT team_1 FROM table_name_2 WHERE team_2 = "la nuova piovese (veneto a)" |
Write a SQL query that answers the following question: Which birthplace's height in inches was more than 192 when the position was d and the birthday was April 5, 1983? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_70 (birthplace VARCHAR, birthdate VARCHAR, height__in_ VARCHAR, position VARCHAR) | SELECT birthplace FROM table_name_70 WHERE height__in_ > 192 AND position = "d" AND birthdate = "april 5, 1983" |
Write a SQL query that answers the following question: Which event won by KCLMS in 2008 has KCLMS as the winner and less than 10 wins by KCL? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_74 (events_won_by_kcl VARCHAR, year VARCHAR, winner VARCHAR, events_won_by_kclMS VARCHAR) | SELECT events_won_by_kcl FROM table_name_74 WHERE winner = "kclms" AND events_won_by_kclMS < 10 AND year = 2008 |
Write a SQL query that answers the following question: What is the stadium when the date of the game is December 14? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_12 (stadium VARCHAR, date VARCHAR) | SELECT stadium FROM table_name_12 WHERE date = "december 14" |
Write a SQL query that answers the following question: what's the bleeding time with condition being liver failure, end-stage | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_14006_1 (bleeding_time VARCHAR, condition VARCHAR) | SELECT bleeding_time FROM table_14006_1 WHERE condition = "Liver failure, end-stage" |
Write a SQL query that answers the following question: What is the Nationality of the Player with more than 8 Goals and Apps of 52? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_5 (nationality VARCHAR, goals VARCHAR, apps VARCHAR) | SELECT nationality FROM table_name_5 WHERE goals > 8 AND apps = 52 |
Write a SQL query that answers the following question: Which Award has a Result of nominated, and a Year of 2003? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_85 (award VARCHAR, result VARCHAR, year VARCHAR) | SELECT award FROM table_name_85 WHERE result = "nominated" AND year = 2003 |
Write a SQL query that answers the following question: Which suzuki gsx-r1000 k7 has the highest time of retirement? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (grid INTEGER, time VARCHAR, bike VARCHAR) | SELECT MAX(grid) FROM table_name_8 WHERE time = "retirement" AND bike = "suzuki gsx-r1000 k7" |
Write a SQL query that answers the following question: what is the total number of round where opponents is haugar | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1061075_1 (round VARCHAR, opponents VARCHAR) | SELECT COUNT(round) FROM table_1061075_1 WHERE opponents = "Haugar" |
Write a SQL query that answers the following question: What was the date of the Cross Code debut that had an Int'l Debut in the year 2008? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_20 (date VARCHAR, year VARCHAR) | SELECT date FROM table_name_20 WHERE year = "2008" |
Write a SQL query that answers the following question: What is the L2 cache with a 13.5x multi 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_87 (l2_cache VARCHAR, multi_1 VARCHAR) | SELECT l2_cache FROM table_name_87 WHERE multi_1 = "13.5x" |
Write a SQL query that answers the following question: Show different nominees and the number of musicals they have been nominated. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE musical (Nominee VARCHAR) | SELECT Nominee, COUNT(*) FROM musical GROUP BY Nominee |
Write a SQL query that answers the following question: Name the general classification for mauricio soler | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_29077342_19 (general_classification VARCHAR, winner VARCHAR) | SELECT general_classification FROM table_29077342_19 WHERE winner = "Mauricio Soler" |
Write a SQL query that answers the following question: Who were the guests on a show where the production code is 6152? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_25691838_12 (guest VARCHAR, production_code VARCHAR) | SELECT guest FROM table_25691838_12 WHERE production_code = 6152 |
Write a SQL query that answers the following question: What is the Nationality of Mike Gatting, who played 551 games? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (nationality VARCHAR, games VARCHAR, player VARCHAR) | SELECT nationality FROM table_name_7 WHERE games = "551" AND player = "mike gatting" |
Write a SQL query that answers the following question: What is the completion/attempts value for the year with an average per game of 36.5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_10 (comp_att VARCHAR, avg_g VARCHAR) | SELECT comp_att FROM table_name_10 WHERE avg_g = "36.5" |
Write a SQL query that answers the following question: What is the Record of the game with a Result of l 14–16? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (record VARCHAR, result VARCHAR) | SELECT record FROM table_name_82 WHERE result = "l 14–16" |
Write a SQL query that answers the following question: Which Opponent has a Time of 4:51? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_84 (opponent VARCHAR, time VARCHAR) | SELECT opponent FROM table_name_84 WHERE time = "4:51" |
Write a SQL query that answers the following question: Where was the game with record 20–23 and how many people attended it | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17058116_7 (location_attendance VARCHAR, record VARCHAR) | SELECT location_attendance FROM table_17058116_7 WHERE record = "20–23" |
Write a SQL query that answers the following question: Name the total number of golds when total is 1 and silver is 1 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_50 (gold VARCHAR, total VARCHAR, silver VARCHAR) | SELECT COUNT(gold) FROM table_name_50 WHERE total = 1 AND silver = 1 |
Write a SQL query that answers the following question: What is the Continent that also has the United States listed as a country? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_30 (continent VARCHAR, country VARCHAR) | SELECT continent FROM table_name_30 WHERE country = "united states" |
Write a SQL query that answers the following question: What year did the finish of 15 happen in? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_16 (year VARCHAR, finish VARCHAR) | SELECT year FROM table_name_16 WHERE finish = "15" |
Write a SQL query that answers the following question: Who is the position for the 2009-2010 season, number 1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_26 (position VARCHAR, season VARCHAR, number VARCHAR) | SELECT position FROM table_name_26 WHERE season = "2009-2010" AND number = "1" |
Write a SQL query that answers the following question: What was the Opponent in Week 9? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_15 (opponent VARCHAR, week VARCHAR) | SELECT opponent FROM table_name_15 WHERE week = 9 |
Write a SQL query that answers the following question: What's the oil rig of the song that ended on 7th place? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_20183474_1 (oil_rig VARCHAR, place VARCHAR) | SELECT oil_rig FROM table_20183474_1 WHERE place = "7th" |
Write a SQL query that answers the following question: What is the highest Z (p) when the N (n) is less than 30, and scandium is the element? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_37 (z___p__ INTEGER, n___n__ VARCHAR, element VARCHAR) | SELECT AVG(z___p__) FROM table_name_37 WHERE n___n__ < 30 AND element = "scandium" |
Write a SQL query that answers the following question: What is Package/Option, when Content is Poker? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_3 (package_option VARCHAR, content VARCHAR) | SELECT package_option FROM table_name_3 WHERE content = "poker" |
Write a SQL query that answers the following question: Who was the coach who had 215 losses? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_33 (coach VARCHAR, losses VARCHAR) | SELECT coach FROM table_name_33 WHERE losses = 215 |
Write a SQL query that answers the following question: How many countries are the Tata Sabaya Lava domes located in? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1081235_1 (country VARCHAR, name_of_lava_dome VARCHAR) | SELECT COUNT(country) FROM table_1081235_1 WHERE name_of_lava_dome = "Tata Sabaya lava domes" |
Write a SQL query that answers the following question: Show the name, average attendance, total attendance for stadiums where no accidents happened. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR, id VARCHAR); CREATE TABLE stadium (name VARCHAR, average_attendance VARCHAR, total_attendance VARCHAR); CREATE TABLE game (stadium_id VARCHAR, id VARCHAR); CREATE TABLE injury_accident (game_id VARCHAR) | SELECT name, average_attendance, total_attendance FROM stadium EXCEPT SELECT T2.name, T2.average_attendance, T2.total_attendance FROM game AS T1 JOIN stadium AS T2 ON T1.stadium_id = T2.id JOIN injury_accident AS T3 ON T1.id = T3.game_id |
Write a SQL query that answers the following question: When the grid is under 5 and justin wilson is driving for the team mi-jack conquest racing, what's the highest number of laps driven? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_65 (laps INTEGER, grid VARCHAR, team VARCHAR, driver VARCHAR) | SELECT MAX(laps) FROM table_name_65 WHERE team = "mi-jack conquest racing" AND driver = "justin wilson" AND grid < 5 |
Write a SQL query that answers the following question: What number of years did the red bull sauber petronas have greater than 6 points? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_90 (year VARCHAR, entrant VARCHAR, points VARCHAR) | SELECT COUNT(year) FROM table_name_90 WHERE entrant = "red bull sauber petronas" AND points > 6 |
Write a SQL query that answers the following question: What is the Livery when the Number is 31468? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_57 (livery VARCHAR, number VARCHAR) | SELECT livery FROM table_name_57 WHERE number = 31468 |
Write a SQL query that answers the following question: What is High Assists, when Team is "@ Milwaukee"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (high_assists VARCHAR, team VARCHAR) | SELECT high_assists FROM table_name_83 WHERE team = "@ milwaukee" |
Write a SQL query that answers the following question: How many were penanced for a total of 7666? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_48 (penanced VARCHAR, total VARCHAR) | SELECT penanced FROM table_name_48 WHERE total = "7666" |
Write a SQL query that answers the following question: When the driver jonathan summerton won and dane cameron had the fastest lap, what was the report? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_42 (report VARCHAR, winning_driver VARCHAR, fastest_lap VARCHAR) | SELECT report FROM table_name_42 WHERE winning_driver = "jonathan summerton" AND fastest_lap = "dane cameron" |
Write a SQL query that answers the following question: What episode number of the series had a production code of bdf409? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_28019988_5 (series__number INTEGER, production_code VARCHAR) | SELECT MIN(series__number) FROM table_28019988_5 WHERE production_code = "BDF409" |
Write a SQL query that answers the following question: Which music is jive? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_20 (music VARCHAR, style VARCHAR) | SELECT music FROM table_name_20 WHERE style = "jive" |
Write a SQL query that answers the following question: What is the average public debt % of GDP in 2013 Q1 of the country with a member slate sorted by GDP of Czech Republic and a GDP per capita in PPP US dollars in 2012 greater than 27,191? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (public_debt__percentage_of_gdp__2013_q1_ INTEGER, member_state_sorted_by_gdp VARCHAR, gdp_per_capita_in_ppp_us$__2012_ VARCHAR) | SELECT AVG(public_debt__percentage_of_gdp__2013_q1_) FROM table_name_7 WHERE member_state_sorted_by_gdp = "czech republic" AND gdp_per_capita_in_ppp_us$__2012_ > 27 OFFSET 191 |
Write a SQL query that answers the following question: What year did J. Jones, trearddur bay build a boat with a current status of tbsc? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_54 (year_built VARCHAR, current_status VARCHAR, boat_builder VARCHAR) | SELECT year_built FROM table_name_54 WHERE current_status = "tbsc" AND boat_builder = "j. jones, trearddur bay" |
Write a SQL query that answers the following question: What type of institution is San Diego Christian college? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2562113_1 (type VARCHAR, institution VARCHAR) | SELECT type FROM table_2562113_1 WHERE institution = "San Diego Christian College" |
Write a SQL query that answers the following question: Who has a license of proprietary (available on inquiry)? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_67 (name VARCHAR, license VARCHAR) | SELECT name FROM table_name_67 WHERE license = "proprietary (available on inquiry)" |
Write a SQL query that answers the following question: From which club is player C. Dickinson? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_35 (loan_club VARCHAR, name VARCHAR) | SELECT loan_club FROM table_name_35 WHERE name = "c. dickinson" |
Write a SQL query that answers the following question: What district had an election with incumbent john smilie? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2668374_13 (district VARCHAR, incumbent VARCHAR) | SELECT district FROM table_2668374_13 WHERE incumbent = "John Smilie" |
Write a SQL query that answers the following question: How many votes did candice sjostrom receive? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_94 (popular_votes INTEGER, candidate VARCHAR) | SELECT AVG(popular_votes) FROM table_name_94 WHERE candidate = "candice sjostrom" |
Write a SQL query that answers the following question: Name the status for unemployment rate being 6.7% | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_22815568_12 (status VARCHAR, unemployment_rate VARCHAR) | SELECT status FROM table_22815568_12 WHERE unemployment_rate = "6.7%" |
Write a SQL query that answers the following question: What is the name in Basque of the municipality whose official name is Kuartango? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_300283_1 (name_in_basque VARCHAR, official_name VARCHAR) | SELECT name_in_basque FROM table_300283_1 WHERE official_name = "Kuartango" |
Write a SQL query that answers the following question: What is the average for matches with a prize money amount of £3,000? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_56 (matches INTEGER, prize_money VARCHAR) | SELECT AVG(matches) FROM table_name_56 WHERE prize_money = "£3,000" |
Write a SQL query that answers the following question: What is the league of player ian schultz? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_7 (league VARCHAR, player VARCHAR) | SELECT league FROM table_name_7 WHERE player = "ian schultz" |
Write a SQL query that answers the following question: What is the number of departments in Division "AS"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE DEPARTMENT (Division VARCHAR) | SELECT COUNT(*) FROM DEPARTMENT WHERE Division = "AS" |
Write a SQL query that answers the following question: Where is the player Davis Love III? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_82 (place VARCHAR, player VARCHAR) | SELECT place FROM table_name_82 WHERE player = "davis love iii" |
Write a SQL query that answers the following question: What entrant had less than 3 points before 1963? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (entrant VARCHAR, year VARCHAR, points VARCHAR) | SELECT entrant FROM table_name_28 WHERE year < 1963 AND points < 3 |
Write a SQL query that answers the following question: what is the name of the report that lists the race name as long beach grand prix? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10707142_2 (report VARCHAR, race_name VARCHAR) | SELECT report FROM table_10707142_2 WHERE race_name = "Long Beach Grand Prix" |
Write a SQL query that answers the following question: How many players hometown was Cincinnati, Ohio? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_11677691_4 (player VARCHAR, hometown VARCHAR) | SELECT COUNT(player) FROM table_11677691_4 WHERE hometown = "Cincinnati, Ohio" |
Write a SQL query that answers the following question: Which title had rank 9? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_28 (title VARCHAR, rank VARCHAR) | SELECT title FROM table_name_28 WHERE rank = 9 |
Write a SQL query that answers the following question: What is the Spouse of the Duchess that has a Death on 6 april 1780? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_61 (spouse VARCHAR, death VARCHAR) | SELECT spouse FROM table_name_61 WHERE death = "6 april 1780" |
Write a SQL query that answers the following question: How many nicknames were associated with Milton, Massachusetts? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1973729_1 (nickname VARCHAR, location VARCHAR) | SELECT COUNT(nickname) FROM table_1973729_1 WHERE location = "Milton, Massachusetts" |
Write a SQL query that answers the following question: What is the name of the highest rated wine? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE WINE (Name VARCHAR, Score VARCHAR) | SELECT Name FROM WINE ORDER BY Score LIMIT 1 |
Write a SQL query that answers the following question: Name the further cities for slovakia and west direction | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_197286_4 (further_cities VARCHAR, country VARCHAR, direction VARCHAR) | SELECT further_cities FROM table_197286_4 WHERE country = "Slovakia" AND direction = "West" |
Write a SQL query that answers the following question: Which Programming is on Channel 26.5? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_98 (programming VARCHAR, channel VARCHAR) | SELECT programming FROM table_name_98 WHERE channel = 26.5 |
Write a SQL query that answers the following question: What song has 24 votes? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_19763199_3 (song VARCHAR, total_votes VARCHAR) | SELECT song FROM table_19763199_3 WHERE total_votes = 24 |
Write a SQL query that answers the following question: What was the date that the episode with Jeff Davis as the second performer originally aired? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_23294081_10 (original_airdate VARCHAR, performer_2 VARCHAR) | SELECT original_airdate FROM table_23294081_10 WHERE performer_2 = "Jeff Davis" |
Write a SQL query that answers the following question: On which date was the record 1-4? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_17118657_7 (date VARCHAR, record VARCHAR) | SELECT date FROM table_17118657_7 WHERE record = "1-4" |
Write a SQL query that answers the following question: What is the date of the away game when the team has a league position of 9th? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_34 (date VARCHAR, h___a VARCHAR, league_position VARCHAR) | SELECT date FROM table_name_34 WHERE h___a = "a" AND league_position = "9th" |
Write a SQL query that answers the following question: What was the Stage when Pascal Richard had the Mountains classification and Vladimir Poulnikov won? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_71 (stage VARCHAR, mountains_classification VARCHAR, winner VARCHAR) | SELECT stage FROM table_name_71 WHERE mountains_classification = "pascal richard" AND winner = "vladimir poulnikov" |
Write a SQL query that answers the following question: What is the ICAO for Asiana Airlines? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_8 (icao VARCHAR, airline VARCHAR) | SELECT icao FROM table_name_8 WHERE airline = "asiana airlines" |
Write a SQL query that answers the following question: Find the name of dorms that do not have amenity TV Lounge. | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE dorm (dorm_name VARCHAR, dormid VARCHAR); CREATE TABLE has_amenity (dormid VARCHAR, amenid VARCHAR); CREATE TABLE dorm (dorm_name VARCHAR); CREATE TABLE dorm_amenity (amenid VARCHAR, amenity_name VARCHAR) | SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid = T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid = T3.amenid WHERE T3.amenity_name = 'TV Lounge' |
Write a SQL query that answers the following question: What School/Club Team is Player Howard Wood from? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_83 (school_club_team VARCHAR, player VARCHAR) | SELECT school_club_team FROM table_name_83 WHERE player = "howard wood" |
Write a SQL query that answers the following question: What network airs on virtual channel 23.1? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_2857352_3 (network VARCHAR, virtual_channel VARCHAR) | SELECT network FROM table_2857352_3 WHERE virtual_channel = "23.1" |
Write a SQL query that answers the following question: Where is the poll source when Hillary clinton was the democrat, john mccain was the republican, and the margin of error was less than 4.5 on May 2-7, 2007? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_41 (poll_source VARCHAR, date VARCHAR, republican VARCHAR, democrat VARCHAR, margin_of_error VARCHAR) | SELECT poll_source FROM table_name_41 WHERE democrat = "hillary clinton" AND margin_of_error < 4.5 AND republican = "john mccain" AND date = "may 2-7, 2007" |
Write a SQL query that answers the following question: What is the Rank of the Athletes with a Time of 3:43.491? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_21 (rank VARCHAR, time VARCHAR) | SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491" |
Write a SQL query that answers the following question: Name the record with home of bucks on 24 november 2007 | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_76 (record VARCHAR, home VARCHAR, date VARCHAR) | SELECT record FROM table_name_76 WHERE home = "bucks" AND date = "24 november 2007" |
Write a SQL query that answers the following question: What is the score of the game on January 18? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR) | SELECT score FROM table_name_85 WHERE date = "january 18" |
Write a SQL query that answers the following question: who is the the candidates with incumbent being james o'connor | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1342393_17 (candidates VARCHAR, incumbent VARCHAR) | SELECT candidates FROM table_1342393_17 WHERE incumbent = "James O'Connor" |
Write a SQL query that answers the following question: What is the score of the game that resulted in a 15-9 record? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_46 (score VARCHAR, record VARCHAR) | SELECT score FROM table_name_46 WHERE record = "15-9" |
Write a SQL query that answers the following question: What is the 2006 total with a 2010 value greater than 417.9? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_95 (Id VARCHAR) | SELECT COUNT(2006) FROM table_name_95 WHERE 2010 > 417.9 |
Write a SQL query that answers the following question: What is Name, when Builder is "Kerr Stuart"? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_54 (name VARCHAR, builder VARCHAR) | SELECT name FROM table_name_54 WHERE builder = "kerr stuart" |
Write a SQL query that answers the following question: What is the date of the games that saw a record of 43.66 m? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_25 (date VARCHAR, record VARCHAR) | SELECT date FROM table_name_25 WHERE record = "43.66 m" |
Write a SQL query that answers the following question: What is the original title of season number 3? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_1481865_1 (title__original_ VARCHAR, number_of_season VARCHAR) | SELECT title__original_ FROM table_1481865_1 WHERE number_of_season = 3 |
Write a SQL query that answers the following question: Which Location has an Enrollment larger than 543? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER) | SELECT location FROM table_name_62 WHERE enrollment > 543 |
Write a SQL query that answers the following question: What's the score for the t10 player from zimbabwe? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_19 (score VARCHAR, place VARCHAR, country VARCHAR) | SELECT score FROM table_name_19 WHERE place = "t10" AND country = "zimbabwe" |
Write a SQL query that answers the following question: What is the Name of the Space Telescope Terminated on March 1993? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_31 (name VARCHAR, terminated VARCHAR) | SELECT name FROM table_name_31 WHERE terminated = "march 1993" |
Write a SQL query that answers the following question: What's the total number of directors who've directed episodes seen by 11.34 million US viewers? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_12159115_2 (directed_by VARCHAR, us_viewers__millions_ VARCHAR) | SELECT COUNT(directed_by) FROM table_12159115_2 WHERE us_viewers__millions_ = "11.34" |
Write a SQL query that answers the following question: Which Class has a Facility ID greater than 85076 and a Call Sign of K289au? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_name_19 (class VARCHAR, facility_id VARCHAR, call_sign VARCHAR) | SELECT class FROM table_name_19 WHERE facility_id > 85076 AND call_sign = "k289au" |
Write a SQL query that answers the following question: How many people attended the game against the indianapolis colts? | The relevant table was constructed using the following SQL CREATE TABLE statement: CREATE TABLE table_10647639_1 (attendance VARCHAR, opponent VARCHAR) | SELECT COUNT(attendance) FROM table_10647639_1 WHERE opponent = "Indianapolis Colts" |
End of preview. Expand
in Dataset Viewer.
Dataset Card for "sql-create-context_alpaca_style"
We provide a minor modification of the sql-create-context dataset. In particular, we 1) prepend each instruction with the phrase, "Write a SQL query that answers the following question: " and 2) prepend each context with the phrase, "The relevant table was constructed using the following SQL CREATE TABLE statement: ".
Numbers:
Prompts: 78577
Tokens: 6438971 using the EleutherAI/gpt-neox-20b tokenizer (counting instruction+input+output)
- Downloads last month
- 48