text
stringlengths
354
1.06k
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (vs_terran VARCHAR, vs_zerg VARCHAR) Question: What is the score vs. Terran when the score vs. Zerg is 69? [/INST] Here is the SQLite query to answer to the question: What is the score vs. Terran when the score vs. Zerg is 69?: ``` SELECT vs_terran FROM table_name_12 WHERE vs_zerg = "69" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (venue VARCHAR, away_team VARCHAR) Question: Where was the game played where Collingwood was the away team? [/INST] Here is the SQLite query to answer to the question: Where was the game played where Collingwood was the away team?: ``` SELECT venue FROM table_name_99 WHERE away_team = "collingwood" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22180353_1 (construction VARCHAR, registration VARCHAR) Question: What is every construction date for the registration of HB-HOS? [/INST] Here is the SQLite query to answer to the question: What is every construction date for the registration of HB-HOS?: ``` SELECT construction AS date FROM table_22180353_1 WHERE registration = "HB-HOS" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_68 (effic INTEGER, avg_g VARCHAR) Question: What is the highest effic with an avg/g of 91.9? [/INST] Here is the SQLite query to answer to the question: What is the highest effic with an avg/g of 91.9?: ``` SELECT MAX(effic) FROM table_name_68 WHERE avg_g = 91.9 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_7 (no_2 VARCHAR, no_6 VARCHAR, no_3 VARCHAR) Question: What name is in the number 2 spot when Ethan is in the number 6 spot and Mason is in the number 3 spot? [/INST] Here is the SQLite query to answer to the question: What name is in the number 2 spot when Ethan is in the number 6 spot and Mason is in the number 3 spot?: ``` SELECT no_2 FROM table_name_7 WHERE no_6 = "ethan" AND no_3 = "mason" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (ast_avg INTEGER, total_assists VARCHAR, games VARCHAR, rank VARCHAR) Question: WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331? [/INST] Here is the SQLite query to answer to the question: WHAT IS THE AVG AST FOR GAMES LARGER THAN 101, RANK 5, TOTAL ASSISTS SMALLER THAN 331?: ``` SELECT AVG(ast_avg) FROM table_name_74 WHERE games > 101 AND rank = 5 AND total_assists < 331 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (election INTEGER, outcome_of_election VARCHAR, seats VARCHAR) Question: What is the earliest election with 2 seats and the outcome of the election of minority in parliament? [/INST] Here is the SQLite query to answer to the question: What is the earliest election with 2 seats and the outcome of the election of minority in parliament?: ``` SELECT MIN(election) FROM table_name_67 WHERE outcome_of_election = "minority in parliament" AND seats = "2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17382360_7 (score VARCHAR, team VARCHAR) Question: what is the score in february 12 of the boston celtics team [/INST] Here is the SQLite query to answer to the question: what is the score in february 12 of the boston celtics team: ``` SELECT score FROM table_17382360_7 WHERE team = "Boston Celtics" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18277458_2 (ticket_price_s_ VARCHAR, date_s_ VARCHAR) Question: How much do the tickets cost for August 7, 1987? [/INST] Here is the SQLite query to answer to the question: How much do the tickets cost for August 7, 1987?: ``` SELECT ticket_price_s_ FROM table_18277458_2 WHERE date_s_ = "August 7, 1987" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12030612_3 (written_by VARCHAR, series__number VARCHAR) Question: Who were the authors of series episode #25? [/INST] Here is the SQLite query to answer to the question: Who were the authors of series episode #25?: ``` SELECT written_by FROM table_12030612_3 WHERE series__number = 25 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (years VARCHAR, league VARCHAR) Question: The league of 400 (21) has what years listed? [/INST] Here is the SQLite query to answer to the question: The league of 400 (21) has what years listed?: ``` SELECT years FROM table_name_87 WHERE league = "400 (21)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25214321_1 (winner VARCHAR, third_place VARCHAR) Question: Who was the winner when Mateus Rocha finished in 3rd place? [/INST] Here is the SQLite query to answer to the question: Who was the winner when Mateus Rocha finished in 3rd place? : ``` SELECT winner FROM table_25214321_1 WHERE third_place = "Mateus Rocha" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (elected VARCHAR, party VARCHAR, incumbent VARCHAR) Question: What was the year Elected of Republican Incumbent Dave Reichert? [/INST] Here is the SQLite query to answer to the question: What was the year Elected of Republican Incumbent Dave Reichert?: ``` SELECT elected FROM table_name_31 WHERE party = "republican" AND incumbent = "dave reichert" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_18 (evening VARCHAR, sunday VARCHAR, name VARCHAR) Question: Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express? [/INST] Here is the SQLite query to answer to the question: Name the Evening that has a Sunday of no, and a Name of s. vidal/plant express?: ``` SELECT evening FROM table_name_18 WHERE sunday = "no" AND name = "s. vidal/plant express" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (opponent VARCHAR, city VARCHAR) Question: Who was Milwaukee's opponent? [/INST] Here is the SQLite query to answer to the question: Who was Milwaukee's opponent?: ``` SELECT opponent FROM table_name_98 WHERE city = "milwaukee" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (extra VARCHAR, result VARCHAR) Question: What is the extra result of the 4th game? [/INST] Here is the SQLite query to answer to the question: What is the extra result of the 4th game?: ``` SELECT extra FROM table_name_37 WHERE result = "4th" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_7 (title_rank VARCHAR, series VARCHAR, character VARCHAR) Question: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13? [/INST] Here is the SQLite query to answer to the question: What is the title rank of the actor who played the character of arthur hastings during series 1-8, 13?: ``` SELECT title_rank FROM table_name_7 WHERE series = "1-8, 13" AND character = "arthur hastings" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (place VARCHAR, country VARCHAR, player VARCHAR) Question: What was United States place when the player was Fred Couples? [/INST] Here is the SQLite query to answer to the question: What was United States place when the player was Fred Couples?: ``` SELECT place FROM table_name_26 WHERE country = "united states" AND player = "fred couples" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (sixth VARCHAR, fourth VARCHAR, first VARCHAR) Question: What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first? [/INST] Here is the SQLite query to answer to the question: What team placed sixth during the season where Western Australia placed fourth and Tasmania placed first?: ``` SELECT sixth FROM table_name_91 WHERE fourth = "western australia" AND first = "tasmania" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (build_date VARCHAR, total_produced VARCHAR) Question: What is the build date when total produced is 2? [/INST] Here is the SQLite query to answer to the question: What is the build date when total produced is 2?: ``` SELECT build_date FROM table_name_80 WHERE total_produced = 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_20626467_1 (class VARCHAR, winner_2nd VARCHAR) Question: What class was the 2nd - portillo? [/INST] Here is the SQLite query to answer to the question: What class was the 2nd - portillo?: ``` SELECT class FROM table_20626467_1 WHERE winner_2nd = "2nd - Portillo" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_89 (counting_method VARCHAR, basis VARCHAR) Question: What is the counting method for a network-centric basis? [/INST] Here is the SQLite query to answer to the question: What is the counting method for a network-centric basis?: ``` SELECT counting_method FROM table_name_89 WHERE basis = "network-centric" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_39 (fcc_info VARCHAR, city_of_license VARCHAR) Question: Can you tell me what is FCC info for harmony township, new jersey? [/INST] Here is the SQLite query to answer to the question: Can you tell me what is FCC info for harmony township, new jersey?: ``` SELECT fcc_info FROM table_name_39 WHERE city_of_license = "harmony township, new jersey" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_38 (club VARCHAR, losses VARCHAR, goals_for VARCHAR, draws VARCHAR) Question: What club has more than 35 goals, more than 7 draws, and 20 losses? [/INST] Here is the SQLite query to answer to the question: What club has more than 35 goals, more than 7 draws, and 20 losses?: ``` SELECT club FROM table_name_38 WHERE goals_for > 35 AND draws > 7 AND losses = 20 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_19210674_1 (rank VARCHAR, hk_viewers VARCHAR) Question: How was the episode seen by 2.26 million HK viewers ranked? [/INST] Here is the SQLite query to answer to the question: How was the episode seen by 2.26 million HK viewers ranked?: ``` SELECT rank FROM table_19210674_1 WHERE hk_viewers = "2.26 million" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_11 (total INTEGER, rank VARCHAR, silver VARCHAR) Question: Which Total has a Rank of 4, and a Silver larger than 2? [/INST] Here is the SQLite query to answer to the question: Which Total has a Rank of 4, and a Silver larger than 2?: ``` SELECT MIN(total) FROM table_name_11 WHERE rank = "4" AND silver > 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_94 (loss VARCHAR, name VARCHAR) Question: What was the loss for Boris Picano-Nacci? [/INST] Here is the SQLite query to answer to the question: What was the loss for Boris Picano-Nacci?: ``` SELECT loss FROM table_name_94 WHERE name = "boris picano-nacci" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_76 (byes INTEGER, wins VARCHAR, draws VARCHAR, mininera_dfl VARCHAR) Question: WHAT ARE THE BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6? [/INST] Here is the SQLite query to answer to the question: WHAT ARE THE BYES WITH A DRAWS OF 1, SMW ROVERS, AND WINS LARGER THAN 6?: ``` SELECT AVG(byes) FROM table_name_76 WHERE draws = 1 AND mininera_dfl = "smw rovers" AND wins > 6 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (date VARCHAR, game VARCHAR, score VARCHAR) Question: On what date did a game higher than 10 have a score of 99-89? [/INST] Here is the SQLite query to answer to the question: On what date did a game higher than 10 have a score of 99-89?: ``` SELECT date FROM table_name_26 WHERE game > 10 AND score = "99-89" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_166346_1 (region VARCHAR, production___bbl__day_ VARCHAR) Question: Which regions had a production (bbl/day) of 1,213,000 (21st)? [/INST] Here is the SQLite query to answer to the question: Which regions had a production (bbl/day) of 1,213,000 (21st)?: ``` SELECT region FROM table_166346_1 WHERE production___bbl__day_ = "1,213,000 (21st)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_53 (gold VARCHAR, sport VARCHAR, bronze VARCHAR) Question: When tennis has less than 2 bronze, what is the total number of Gold? [/INST] Here is the SQLite query to answer to the question: When tennis has less than 2 bronze, what is the total number of Gold?: ``` SELECT COUNT(gold) FROM table_name_53 WHERE sport = "tennis" AND bronze < 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2267345_2 (general_classification VARCHAR, young_rider_classification VARCHAR, winner VARCHAR) Question: Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker? [/INST] Here is the SQLite query to answer to the question: Who was the general classification leader when the young rider classification leader was Salvatore Commesso and the winner was Erik Dekker?: ``` SELECT general_classification FROM table_2267345_2 WHERE young_rider_classification = "Salvatore Commesso" AND winner = "Erik Dekker" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1771753_3 (race_time VARCHAR, team VARCHAR, laps VARCHAR) Question: When 228 is the lap and chip ganassi racing is the team what is the race time? [/INST] Here is the SQLite query to answer to the question: When 228 is the lap and chip ganassi racing is the team what is the race time?: ``` SELECT race_time FROM table_1771753_3 WHERE team = "Chip Ganassi Racing" AND laps = "228" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE musical (Nominee VARCHAR, Award VARCHAR) Question: Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks". [/INST] Here is the SQLite query to answer to the question: Show the musical nominee with award "Bob Fosse" or "Cleavant Derricks".: ``` SELECT Nominee FROM musical WHERE Award = "Tony Award" OR Award = "Cleavant Derricks" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_50 (pick INTEGER, position VARCHAR) Question: What was the highest guard picked? [/INST] Here is the SQLite query to answer to the question: What was the highest guard picked?: ``` SELECT MAX(pick) FROM table_name_50 WHERE position = "guard" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (lane INTEGER, rank VARCHAR, time VARCHAR, name VARCHAR) Question: Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank? [/INST] Here is the SQLite query to answer to the question: Which lane has a time less than 49.67, is from Michael Klim and less than 1 rank?: ``` SELECT MAX(lane) FROM table_name_87 WHERE time < 49.67 AND name = "michael klim" AND rank < 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (winner VARCHAR, year INTEGER) Question: Who was the winner after 2011? [/INST] Here is the SQLite query to answer to the question: Who was the winner after 2011?: ``` SELECT winner FROM table_name_81 WHERE year > 2011 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18536769_1 (call_sign VARCHAR, owner VARCHAR) Question: When vista radio is the owner how many call signs are there? [/INST] Here is the SQLite query to answer to the question: When vista radio is the owner how many call signs are there?: ``` SELECT COUNT(call_sign) FROM table_18536769_1 WHERE owner = "Vista Radio" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16570286_2 (matches VARCHAR) Question: How many numbers were recorde under 50s when there was 2 matches? [/INST] Here is the SQLite query to answer to the question: How many numbers were recorde under 50s when there was 2 matches?: ``` SELECT COUNT(50 AS s) FROM table_16570286_2 WHERE matches = 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12919003_3 (director VARCHAR, viewers_millions_ VARCHAR) Question: What's the total number of directors whose episodes have been seen by 9.14 million viewers? [/INST] Here is the SQLite query to answer to the question: What's the total number of directors whose episodes have been seen by 9.14 million viewers?: ``` SELECT COUNT(director) FROM table_12919003_3 WHERE viewers_millions_ = "9.14" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE STUDENT (LName VARCHAR, StuID VARCHAR); CREATE TABLE VOTING_RECORD (CLASS_President_VOTE VARCHAR) Question: Find the distinct last names of the students who have class president votes. [/INST] Here is the SQLite query to answer to the question: Find the distinct last names of the students who have class president votes.: ``` SELECT DISTINCT T1.LName FROM STUDENT AS T1 JOIN VOTING_RECORD AS T2 ON T1.StuID = T2.CLASS_President_VOTE ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_69 (team VARCHAR, points VARCHAR, year VARCHAR) Question: What team did carlos cardus drive for in 1983 when he got less than 21 points? [/INST] Here is the SQLite query to answer to the question: What team did carlos cardus drive for in 1983 when he got less than 21 points?: ``` SELECT team FROM table_name_69 WHERE points < 21 AND year = 1983 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (date VARCHAR, set_3 VARCHAR) Question: When was set 3 of 18-25? [/INST] Here is the SQLite query to answer to the question: When was set 3 of 18-25?: ``` SELECT date FROM table_name_2 WHERE set_3 = "18-25" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_29 (top_5 INTEGER, position VARCHAR, year VARCHAR) Question: Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000? [/INST] Here is the SQLite query to answer to the question: Name the average Top 5 which has a Position of 52nd with a Year smaller than 2000?: ``` SELECT AVG(top_5) FROM table_name_29 WHERE position = "52nd" AND year < 2000 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_60 (english_transliteration VARCHAR, english_translation VARCHAR) Question: What is the english transliteration of late dew? [/INST] Here is the SQLite query to answer to the question: What is the english transliteration of late dew?: ``` SELECT english_transliteration FROM table_name_60 WHERE english_translation = "late dew" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10935205_1 (title VARCHAR, us_airdate VARCHAR) Question: For the episode(s) aired in the U.S. on 4 april 2008, what were the names? [/INST] Here is the SQLite query to answer to the question: For the episode(s) aired in the U.S. on 4 april 2008, what were the names?: ``` SELECT title FROM table_10935205_1 WHERE us_airdate = "4 April 2008" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_67 (points INTEGER, played INTEGER) Question: Can you tell me the highest Points that has the Played smaller than 30? [/INST] Here is the SQLite query to answer to the question: Can you tell me the highest Points that has the Played smaller than 30?: ``` SELECT MAX(points) FROM table_name_67 WHERE played < 30 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_75 (capital VARCHAR, voivodeship_or_city VARCHAR) Question: Voivodeship or city of nowogródzkie has what capital? [/INST] Here is the SQLite query to answer to the question: Voivodeship or city of nowogródzkie has what capital?: ``` SELECT capital FROM table_name_75 WHERE voivodeship_or_city = "nowogródzkie" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_3 (tournament VARCHAR, winning_score VARCHAR) Question: What tournament had a winning score of −27 (64-64-61=189)? [/INST] Here is the SQLite query to answer to the question: What tournament had a winning score of −27 (64-64-61=189)?: ``` SELECT tournament FROM table_name_3 WHERE winning_score = −27(64 - 64 - 61 = 189) ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_81 (Id VARCHAR) Question: What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R? [/INST] Here is the SQLite query to answer to the question: What is 1995 Grand Slam Tournament if 1997 is LQ and 1989 is 1R?: ``` SELECT 1995 FROM table_name_81 WHERE 1997 = "lq" AND 1989 = "1r" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Employees (role_code VARCHAR) Question: Show all role codes with at least 3 employees. [/INST] Here is the SQLite query to answer to the question: Show all role codes with at least 3 employees.: ``` SELECT role_code FROM Employees GROUP BY role_code HAVING COUNT(*) >= 3 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23390604_1 (mahmoud_ahmadinejad VARCHAR, mir_hossein_mousavi VARCHAR) Question: List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes. [/INST] Here is the SQLite query to answer to the question: List all the results for mahmoud ahmadinejad when candidate mir-hossein mousavi obtained 218481 votes.: ``` SELECT mahmoud_ahmadinejad FROM table_23390604_1 WHERE mir_hossein_mousavi = 218481 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (team_name VARCHAR, losses VARCHAR, season VARCHAR) Question: Which team had more than 15 losses in 1988? [/INST] Here is the SQLite query to answer to the question: Which team had more than 15 losses in 1988?: ``` SELECT team_name FROM table_name_23 WHERE losses > 15 AND season = "1988" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21100348_10 (innings VARCHAR, average VARCHAR) Question: How man innings were there during the period with a career average of 41.43? [/INST] Here is the SQLite query to answer to the question: How man innings were there during the period with a career average of 41.43?: ``` SELECT innings FROM table_21100348_10 WHERE average = "41.43" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_10 (goals_for VARCHAR, lost VARCHAR, position VARCHAR) Question: how many times is lost less than 7 and the position 2? [/INST] Here is the SQLite query to answer to the question: how many times is lost less than 7 and the position 2?: ``` SELECT COUNT(goals_for) FROM table_name_10 WHERE lost < 7 AND position = 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_87 (regular_season VARCHAR, playoffs VARCHAR) Question: Which regular season had the playoffs of 0 mls cups? [/INST] Here is the SQLite query to answer to the question: Which regular season had the playoffs of 0 mls cups?: ``` SELECT regular_season FROM table_name_87 WHERE playoffs = "0 mls cups" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_24 (assists INTEGER, games_played INTEGER) Question: What is the lowest amount of assists for more than 5 games? [/INST] Here is the SQLite query to answer to the question: What is the lowest amount of assists for more than 5 games?: ``` SELECT MIN(assists) FROM table_name_24 WHERE games_played > 5 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_20 (Box VARCHAR, score VARCHAR) Question: What was the box score during a game that had a score of 86-96? [/INST] Here is the SQLite query to answer to the question: What was the box score during a game that had a score of 86-96?: ``` SELECT Box AS score FROM table_name_20 WHERE score = "86-96" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_49 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR) Question: What is the School/Junior/Club Group (Association) that has a Round bigger than 6, and a Place of winger, and a Player of evgeny afanasiev? [/INST] Here is the SQLite query to answer to the question: What is the School/Junior/Club Group (Association) that has a Round bigger than 6, and a Place of winger, and a Player of evgeny afanasiev?: ``` SELECT college_junior_club_team__league_ FROM table_name_49 WHERE round > 6 AND position = "winger" AND player = "evgeny afanasiev" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (player VARCHAR, draft VARCHAR, round VARCHAR) Question: Which player had a draft before 1975 and before round 6? [/INST] Here is the SQLite query to answer to the question: Which player had a draft before 1975 and before round 6?: ``` SELECT player FROM table_name_79 WHERE draft < 1975 AND round < 6 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_29535057_4 (challenge_leader VARCHAR, winner VARCHAR) Question: How many challenge leaders were there of the games won by virginia (87-79)? [/INST] Here is the SQLite query to answer to the question: How many challenge leaders were there of the games won by virginia (87-79)?: ``` SELECT COUNT(challenge_leader) FROM table_29535057_4 WHERE winner = "Virginia (87-79)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_89 (region VARCHAR, catalog VARCHAR) Question: What is the Region with a Catalog of alca-487? [/INST] Here is the SQLite query to answer to the question: What is the Region with a Catalog of alca-487?: ``` SELECT region FROM table_name_89 WHERE catalog = "alca-487" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16278825_1 (area__km²_ INTEGER, name_of_county VARCHAR) Question: Name the least area for vas [/INST] Here is the SQLite query to answer to the question: Name the least area for vas: ``` SELECT MIN(area__km²_) FROM table_16278825_1 WHERE name_of_county = "Vas" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_70 (money___$__ VARCHAR, score VARCHAR) Question: What is the Money of the Player with a Score of 69-71-69-72=281? [/INST] Here is the SQLite query to answer to the question: What is the Money of the Player with a Score of 69-71-69-72=281?: ``` SELECT money___$__ FROM table_name_70 WHERE score = 69 - 71 - 69 - 72 = 281 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_26 (role VARCHAR, notes VARCHAR, title VARCHAR) Question: What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field? [/INST] Here is the SQLite query to answer to the question: What is the name of the role that has a Title of Salud, Dinero y Amor and antagonist in the notes field?: ``` SELECT role FROM table_name_26 WHERE notes = "antagonist" AND title = "salud, dinero y amor" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_25 (score VARCHAR, att VARCHAR) Question: What was the score for the matchup having attendance of 354? [/INST] Here is the SQLite query to answer to the question: What was the score for the matchup having attendance of 354?: ``` SELECT score FROM table_name_25 WHERE att = 354 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_86 (position VARCHAR, round INTEGER) Question: What position has round less than 2? [/INST] Here is the SQLite query to answer to the question: What position has round less than 2?: ``` SELECT position FROM table_name_86 WHERE round < 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (opponent VARCHAR, date VARCHAR) Question: who is the opponent on 18 january 1993? [/INST] Here is the SQLite query to answer to the question: who is the opponent on 18 january 1993?: ``` SELECT opponent FROM table_name_23 WHERE date = "18 january 1993" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_14 (away_team VARCHAR, crowd INTEGER) Question: Which Away team played when they had a Crowd of over 29,000 people? [/INST] Here is the SQLite query to answer to the question: Which Away team played when they had a Crowd of over 29,000 people?: ``` SELECT away_team FROM table_name_14 WHERE crowd > 29 OFFSET 000 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (description VARCHAR, reserve VARCHAR) Question: What is the description when the reserve is Half Moon Caye? [/INST] Here is the SQLite query to answer to the question: What is the description when the reserve is Half Moon Caye?: ``` SELECT description FROM table_name_40 WHERE reserve = "half moon caye" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (rank INTEGER, country VARCHAR) Question: What is the smallest rank for new zealand? [/INST] Here is the SQLite query to answer to the question: What is the smallest rank for new zealand?: ``` SELECT MIN(rank) FROM table_name_23 WHERE country = "new zealand" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_64 (writer_s_ VARCHAR, recorded_at VARCHAR, time VARCHAR) Question: Who wrote the album recorded at funhouse studios with a time of 3:27? [/INST] Here is the SQLite query to answer to the question: Who wrote the album recorded at funhouse studios with a time of 3:27?: ``` SELECT writer_s_ FROM table_name_64 WHERE recorded_at = "funhouse studios" AND time = "3:27" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21297652_1 (driver VARCHAR, series VARCHAR, winnings VARCHAR) Question: Which drivers won $40,000 in the NASCAR Winston Cup? [/INST] Here is the SQLite query to answer to the question: Which drivers won $40,000 in the NASCAR Winston Cup?: ``` SELECT driver FROM table_21297652_1 WHERE series = "NASCAR Winston Cup" AND winnings = "$40,000" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (ceased_to_be_countess VARCHAR, birth VARCHAR) Question: When did the person born on 3 May 1446 cease to be countess? [/INST] Here is the SQLite query to answer to the question: When did the person born on 3 May 1446 cease to be countess?: ``` SELECT ceased_to_be_countess FROM table_name_19 WHERE birth = "3 may 1446" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_56 (game INTEGER, opponent VARCHAR) Question: Can you tell me the highest Game that has the Opponent of atlanta hawks? [/INST] Here is the SQLite query to answer to the question: Can you tell me the highest Game that has the Opponent of atlanta hawks?: ``` SELECT MAX(game) FROM table_name_56 WHERE opponent = "atlanta hawks" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_86 (place INTEGER, units_sold_in_the_uk VARCHAR) Question: Of the games that sold 321,000 units in the UK, what is their average place? [/INST] Here is the SQLite query to answer to the question: Of the games that sold 321,000 units in the UK, what is their average place?: ``` SELECT AVG(place) FROM table_name_86 WHERE units_sold_in_the_uk = "321,000" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25691838_12 (production_code VARCHAR, original_airdate VARCHAR) Question: What is the production code of the episode with an original airdate of december 01? [/INST] Here is the SQLite query to answer to the question: What is the production code of the episode with an original airdate of december 01?: ``` SELECT production_code FROM table_25691838_12 WHERE original_airdate = "December 01" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_60 (region VARCHAR, catalog__number VARCHAR) Question: What is the region for the album with a catalog number of 7567-83061-2? [/INST] Here is the SQLite query to answer to the question: What is the region for the album with a catalog number of 7567-83061-2?: ``` SELECT region FROM table_name_60 WHERE catalog__number = "7567-83061-2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (attendance INTEGER, date VARCHAR) Question: On January 15, what was the most in attendance? [/INST] Here is the SQLite query to answer to the question: On January 15, what was the most in attendance?: ``` SELECT MAX(attendance) FROM table_name_42 WHERE date = "january 15" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_13 (rank VARCHAR, alliance VARCHAR, country VARCHAR) Question: How many airlines have the star alliance and are in brazil? [/INST] Here is the SQLite query to answer to the question: How many airlines have the star alliance and are in brazil?: ``` SELECT COUNT(rank) FROM table_name_13 WHERE alliance = "star alliance" AND country = "brazil" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (pennant VARCHAR, builder VARCHAR) Question: what is the pennant when the builder is yarrow, scotstoun? [/INST] Here is the SQLite query to answer to the question: what is the pennant when the builder is yarrow, scotstoun?: ``` SELECT pennant FROM table_name_23 WHERE builder = "yarrow, scotstoun" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_8 (Final VARCHAR, week_1 VARCHAR, week_3 VARCHAR) Question: What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3? [/INST] Here is the SQLite query to answer to the question: What was the week 12 standing for the housemate that nominated Deepak P Rahul in week 1 and Amit Carol in week 3?: ``` SELECT Final AS week_12 FROM table_name_8 WHERE week_1 = "deepak p rahul" AND week_3 = "amit carol" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_98 (tie_no VARCHAR, home_team VARCHAR) Question: What is the Tie no when Scarborough is the Home team? [/INST] Here is the SQLite query to answer to the question: What is the Tie no when Scarborough is the Home team?: ``` SELECT tie_no FROM table_name_98 WHERE home_team = "scarborough" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_34 (pick VARCHAR, player VARCHAR) Question: What is Pick, when Player is "Dexter Bailey"? [/INST] Here is the SQLite query to answer to the question: What is Pick, when Player is "Dexter Bailey"?: ``` SELECT pick FROM table_name_34 WHERE player = "dexter bailey" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_27 (land___sqmi__ INTEGER, longitude VARCHAR, water__sqmi_ VARCHAR) Question: What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water? [/INST] Here is the SQLite query to answer to the question: What is the lowest land in sq mi with a longitude of -99.172785 and less than 0.973 sq mi of water?: ``` SELECT MIN(land___sqmi__) FROM table_name_27 WHERE longitude = -99.172785 AND water__sqmi_ < 0.973 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (wins INTEGER, points VARCHAR, year VARCHAR, championship_finish VARCHAR) Question: Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168? [/INST] Here is the SQLite query to answer to the question: Which Wins is the highest one that has a Year larger than 1996, and a Championship Finish of 1st, and Points smaller than 168?: ``` SELECT MAX(wins) FROM table_name_40 WHERE year > 1996 AND championship_finish = "1st" AND points < 168 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_12 (away_team VARCHAR, home_team VARCHAR) Question: What is the score of the away team when the home team is Essendon? [/INST] Here is the SQLite query to answer to the question: What is the score of the away team when the home team is Essendon?: ``` SELECT away_team AS score FROM table_name_12 WHERE home_team = "essendon" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_84 (attendance VARCHAR, date VARCHAR) Question: What is the Attendance of the game on December 12, 2004? [/INST] Here is the SQLite query to answer to the question: What is the Attendance of the game on December 12, 2004?: ``` SELECT attendance FROM table_name_84 WHERE date = "december 12, 2004" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22669375_1 (location VARCHAR, race_name VARCHAR) Question: Name the location for trenton 300 [/INST] Here is the SQLite query to answer to the question: Name the location for trenton 300: ``` SELECT location FROM table_22669375_1 WHERE race_name = "Trenton 300" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_62 (snatch VARCHAR, bodyweight VARCHAR, total__kg_ VARCHAR, clean_ VARCHAR, _jerk VARCHAR) Question: Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63 [/INST] Here is the SQLite query to answer to the question: Tell me the total number of snatches for clean and jerk more than 132.5 when the total kg was 315 and bodyweight was 68.63: ``` SELECT COUNT(snatch) FROM table_name_62 WHERE clean_ & _jerk > 132.5 AND total__kg_ = 315 AND bodyweight = 68.63 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16376436_1 (college VARCHAR, position VARCHAR) Question: What college did the defensive back attend? [/INST] Here is the SQLite query to answer to the question: What college did the defensive back attend?: ``` SELECT college FROM table_16376436_1 WHERE position = "Defensive Back" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_69 (notes VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR) Question: What was the notes of the 400 m event before 2004 with a position of 12th (h)? [/INST] Here is the SQLite query to answer to the question: What was the notes of the 400 m event before 2004 with a position of 12th (h)?: ``` SELECT notes FROM table_name_69 WHERE event = "400 m" AND year < 2004 AND position = "12th (h)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (conference VARCHAR, city VARCHAR, school VARCHAR) Question: Which Conference has a City of boca raton, and a School of florida atlantic university? [/INST] Here is the SQLite query to answer to the question: Which Conference has a City of boca raton, and a School of florida atlantic university?: ``` SELECT conference FROM table_name_74 WHERE city = "boca raton" AND school = "florida atlantic university" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_57 (built VARCHAR, cr_no VARCHAR, lms_no VARCHAR) Question: What's the built date when the CR number is more than 940 and the LMS number is 14760? [/INST] Here is the SQLite query to answer to the question: What's the built date when the CR number is more than 940 and the LMS number is 14760?: ``` SELECT built FROM table_name_57 WHERE cr_no > 940 AND lms_no = 14760 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE products_for_hire (product_name VARCHAR, product_description VARCHAR, product_type_code VARCHAR, daily_hire_cost VARCHAR) Question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20? [/INST] Here is the SQLite query to answer to the question: What are the names and descriptions of the products that are of 'Cutlery' type and have daily hire cost lower than 20?: ``` SELECT product_name, product_description FROM products_for_hire WHERE product_type_code = 'Cutlery' AND daily_hire_cost < 20 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_95 (theme VARCHAR, result VARCHAR) Question: Which Theme has a Result of eliminated? [/INST] Here is the SQLite query to answer to the question: Which Theme has a Result of eliminated?: ``` SELECT theme FROM table_name_95 WHERE result = "eliminated" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_18 (venue VARCHAR, silver VARCHAR, year VARCHAR) Question: Where was 2010 tournament where the United States received the silver? [/INST] Here is the SQLite query to answer to the question: Where was 2010 tournament where the United States received the silver?: ``` SELECT venue FROM table_name_18 WHERE silver = "united states" AND year = 2010 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1585609_2 (japanese VARCHAR, name VARCHAR) Question: Name the total number of japanese for amagasaki [/INST] Here is the SQLite query to answer to the question: Name the total number of japanese for amagasaki: ``` SELECT COUNT(japanese) FROM table_1585609_2 WHERE name = "Amagasaki" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (points VARCHAR, record VARCHAR) Question: Record of 21–29–10 had what total number of points? [/INST] Here is the SQLite query to answer to the question: Record of 21–29–10 had what total number of points?: ``` SELECT COUNT(points) FROM table_name_2 WHERE record = "21–29–10" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2856898_1 (turnover__£m_ VARCHAR, profit_before_tax__£m_ VARCHAR) Question: What was the turnover when the profit before tax was 29.47? [/INST] Here is the SQLite query to answer to the question: What was the turnover when the profit before tax was 29.47?: ``` SELECT turnover__£m_ FROM table_2856898_1 WHERE profit_before_tax__£m_ = "29.47" ```