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_23274514_8 (date VARCHAR, location_attendance VARCHAR) Question: On what date was the attendance at TD Garden 18,624? [/INST] Here is the SQLite query to answer to the question: On what date was the attendance at TD Garden 18,624?: ``` SELECT date FROM table_23274514_8 WHERE location_attendance = "TD Garden 18,624" ```
[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, competition VARCHAR) Question: On what date was there an International Friendly competition? [/INST] Here is the SQLite query to answer to the question: On what date was there an International Friendly competition?: ``` SELECT date FROM table_name_2 WHERE competition = "international friendly" ```
[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 (operating_system_version VARCHAR, memory___ram__ VARCHAR) Question: Which operating system has 1GB (mobile ddr) memory (RAM)? [/INST] Here is the SQLite query to answer to the question: Which operating system has 1GB (mobile ddr) memory (RAM)?: ``` SELECT operating_system_version FROM table_name_27 WHERE memory___ram__ = "1gb (mobile ddr)" ```
[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 (team VARCHAR, replaced_by VARCHAR) Question: I want the team with replaced by being csaba lászló [/INST] Here is the SQLite query to answer to the question: I want the team with replaced by being csaba lászló: ``` SELECT team FROM table_name_24 WHERE replaced_by = "csaba lászló" ```
[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 (col__m_ INTEGER, prominence__m_ VARCHAR) Question: What is the maximum Col (m) when 3,046 is the Prominence (m)? [/INST] Here is the SQLite query to answer to the question: What is the maximum Col (m) when 3,046 is the Prominence (m)?: ``` SELECT MAX(col__m_) FROM table_name_94 WHERE prominence__m_ = 3 OFFSET 046 ```
[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 (season VARCHAR, apps VARCHAR) Question: What season did he have 7 appearances? [/INST] Here is the SQLite query to answer to the question: What season did he have 7 appearances?: ``` SELECT season FROM table_name_91 WHERE apps = 7 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_32 (player VARCHAR, rank INTEGER) Question: Who's ranked less than 2? [/INST] Here is the SQLite query to answer to the question: Who's ranked less than 2?: ``` SELECT player FROM table_name_32 WHERE rank < 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_66 (score VARCHAR, home_team VARCHAR, date VARCHAR) Question: What was Saskatoon Accelerators score on January 6, 2008? [/INST] Here is the SQLite query to answer to the question: What was Saskatoon Accelerators score on January 6, 2008?: ``` SELECT score FROM table_name_66 WHERE home_team = "saskatoon accelerators" AND date = "january 6, 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_28 (m60a3_patton VARCHAR, leclerc VARCHAR) Question: What is the M60A3 that has 40 rounds as Leclerc? [/INST] Here is the SQLite query to answer to the question: What is the M60A3 that has 40 rounds as Leclerc?: ``` SELECT m60a3_patton FROM table_name_28 WHERE leclerc = "40 rounds" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_21 (attendance INTEGER, date VARCHAR) Question: What was the attendance on September 11, 1988? [/INST] Here is the SQLite query to answer to the question: What was the attendance on September 11, 1988?: ``` SELECT AVG(attendance) FROM table_name_21 WHERE date = "september 11, 1988" ```
[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 (label VARCHAR, year INTEGER) Question: What label is after 2004? [/INST] Here is the SQLite query to answer to the question: What label is after 2004?: ``` SELECT label FROM table_name_24 WHERE year > 2004 ```
[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 (bronze INTEGER, nation VARCHAR) Question: Which Bronze has a Nation of spain? [/INST] Here is the SQLite query to answer to the question: Which Bronze has a Nation of spain?: ``` SELECT MAX(bronze) FROM table_name_99 WHERE nation = "spain" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (silver INTEGER, rank VARCHAR, bronze VARCHAR, gold VARCHAR) Question: How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5? [/INST] Here is the SQLite query to answer to the question: How many silver for rank 22 when gold count was more than 0 and Bronze count was less than 5?: ``` SELECT SUM(silver) FROM table_name_45 WHERE bronze < 5 AND gold > 0 AND rank = "22" ```
[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 (winner VARCHAR, date VARCHAR) Question: What is the Winner of the Game on November 26? [/INST] Here is the SQLite query to answer to the question: What is the Winner of the Game on November 26?: ``` SELECT winner FROM table_name_7 WHERE date = "november 26" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1912713_2 (方位_direction VARCHAR, 性情_personality VARCHAR) Question: What is the total number of gentle personalities? [/INST] Here is the SQLite query to answer to the question: What is the total number of gentle personalities?: ``` SELECT COUNT(方位_direction) FROM table_1912713_2 WHERE 性情_personality = "Gentle" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_19576091_1 (man_of_the_match VARCHAR, result VARCHAR) Question: Who was the man of the match when the Rockets won by 9 wickets? [/INST] Here is the SQLite query to answer to the question: Who was the man of the match when the Rockets won by 9 wickets? : ``` SELECT man_of_the_match FROM table_19576091_1 WHERE result = "Rockets won by 9 wickets" ```
[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 (d_48 VARCHAR, d_43 VARCHAR) Question: What is the D48 when D 43 is plurality ↑?? [/INST] Here is the SQLite query to answer to the question: What is the D48 when D 43 is plurality ↑??: ``` SELECT d_48 FROM table_name_27 WHERE d_43 = "plurality ↑" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (total INTEGER, bronze INTEGER) Question: How many Total medals did the Nation the got 0 Bronze medals receive? [/INST] Here is the SQLite query to answer to the question: How many Total medals did the Nation the got 0 Bronze medals receive?: ``` SELECT AVG(total) FROM table_name_47 WHERE bronze < 0 ```
[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 (network VARCHAR, language VARCHAR, origin_of_programming VARCHAR, genre VARCHAR) Question: What network has an origin in India, a genre of general, and broadcasts in Bengali? [/INST] Here is the SQLite query to answer to the question: What network has an origin in India, a genre of general, and broadcasts in Bengali?: ``` SELECT network FROM table_name_20 WHERE origin_of_programming = "india" AND genre = "general" AND language = "bengali" ```
[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 (position VARCHAR, team VARCHAR, played VARCHAR) Question: How many positions have figueirense as the team, with a played greater than 38? [/INST] Here is the SQLite query to answer to the question: How many positions have figueirense as the team, with a played greater than 38?: ``` SELECT COUNT(position) FROM table_name_39 WHERE team = "figueirense" AND played > 38 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18173916_6 (episodes VARCHAR, tuesday VARCHAR) Question: What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday? [/INST] Here is the SQLite query to answer to the question: What were the dates when 224 Assassin's Creed: Brotherhood Circus Training was shown on Tuesday?: ``` SELECT episodes FROM table_18173916_6 WHERE tuesday = "224 Assassin's Creed: Brotherhood Circus Training" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_4 (transfer_fee VARCHAR, ends VARCHAR, moving_from VARCHAR) Question: What transfer fee did Birmingham City get on 30 June 2010? [/INST] Here is the SQLite query to answer to the question: What transfer fee did Birmingham City get on 30 June 2010?: ``` SELECT transfer_fee FROM table_name_4 WHERE ends = "30 june 2010" AND moving_from = "birmingham city" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_171361_1 (population VARCHAR, area_km_2 VARCHAR) Question: How many population values are listed for the community with an area of 10.25 sq.km.? [/INST] Here is the SQLite query to answer to the question: How many population values are listed for the community with an area of 10.25 sq.km.?: ``` SELECT COUNT(population) FROM table_171361_1 WHERE area_km_2 = "10.25" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10408617_5 (approx_premium VARCHAR, tariff_code VARCHAR) Question: What is the premium associated with tariff code g9? [/INST] Here is the SQLite query to answer to the question: What is the premium associated with tariff code g9?: ``` SELECT approx_premium FROM table_10408617_5 WHERE tariff_code = "g9" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (opponent VARCHAR, date VARCHAR, championship VARCHAR, surface VARCHAR, outcome VARCHAR) Question: who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996? [/INST] Here is the SQLite query to answer to the question: who is the opponent when the surface is clay, the outcome is winner and the championship is estoril on 15 april 1996?: ``` SELECT opponent FROM table_name_93 WHERE surface = "clay" AND outcome = "winner" AND championship = "estoril" AND date = "15 april 1996" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_171361_1 (population VARCHAR, status VARCHAR) Question: What is the population of each community with city status? [/INST] Here is the SQLite query to answer to the question: What is the population of each community with city status?: ``` SELECT population FROM table_171361_1 WHERE status = "City" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10566855_1 (attendance INTEGER, score VARCHAR) Question: what is the minimum attendance with score 8.16 (64) – 8.12 (60) [/INST] Here is the SQLite query to answer to the question: what is the minimum attendance with score 8.16 (64) – 8.12 (60): ``` SELECT MIN(attendance) FROM table_10566855_1 WHERE score = "8.16 (64) – 8.12 (60)" ```
[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 (tc VARCHAR, wins VARCHAR, races VARCHAR) Question: Which T.C. has a Win of 1, and a Race of 21? [/INST] Here is the SQLite query to answer to the question: Which T.C. has a Win of 1, and a Race of 21?: ``` SELECT tc FROM table_name_40 WHERE wins = 1 AND races = 21 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_63 (venue VARCHAR, notes VARCHAR) Question: What venue featured a notes of 2:38:44? [/INST] Here is the SQLite query to answer to the question: What venue featured a notes of 2:38:44?: ``` SELECT venue FROM table_name_63 WHERE notes = "2:38:44" ```
[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 (pos VARCHAR, driver VARCHAR) Question: Tell me the pos for adrian sutil [/INST] Here is the SQLite query to answer to the question: Tell me the pos for adrian sutil: ``` SELECT pos FROM table_name_75 WHERE driver = "adrian sutil" ```
[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 (result VARCHAR, champions VARCHAR, year VARCHAR, runners_up VARCHAR) Question: What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007? [/INST] Here is the SQLite query to answer to the question: What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007?: ``` SELECT result FROM table_name_39 WHERE year > 2007 AND runners_up = "seoul samsung thunders" AND champions = "jeonju kcc egis" ```
[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 (round INTEGER, position VARCHAR, player VARCHAR) Question: What is the highest round where a back named Ed Cody can be found? [/INST] Here is the SQLite query to answer to the question: What is the highest round where a back named Ed Cody can be found?: ``` SELECT MAX(round) FROM table_name_53 WHERE position = "back" AND player = "ed cody" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14834801_1 (list_votes VARCHAR, list_pct VARCHAR) Question: Name the total number of list votes for 20.95% [/INST] Here is the SQLite query to answer to the question: Name the total number of list votes for 20.95%: ``` SELECT COUNT(list_votes) FROM table_14834801_1 WHERE list_pct = "20.95%" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2889810_1 (motogp_500cc INTEGER) Question: What is the minimum MotoGP/500cc ranking? [/INST] Here is the SQLite query to answer to the question: What is the minimum MotoGP/500cc ranking?: ``` SELECT MIN(motogp_500cc) FROM table_2889810_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_20 (crowd INTEGER, venue VARCHAR) Question: What is the lowest crowd at corio oval? [/INST] Here is the SQLite query to answer to the question: What is the lowest crowd at corio oval?: ``` SELECT MIN(crowd) FROM table_name_20 WHERE venue = "corio oval" ```
[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 (record VARCHAR, method VARCHAR) Question: What is the record for the Ko (head kick) method? [/INST] Here is the SQLite query to answer to the question: What is the record for the Ko (head kick) method?: ``` SELECT record FROM table_name_24 WHERE method = "ko (head kick)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17104539_9 (record VARCHAR, date VARCHAR) Question: Name the record for june 7 [/INST] Here is the SQLite query to answer to the question: Name the record for june 7: ``` SELECT record FROM table_17104539_9 WHERE date = "June 7" ```
[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 (year VARCHAR, events_won_by_kclMS INTEGER) Question: How many years were the events won by KCLMS less than 7? [/INST] Here is the SQLite query to answer to the question: How many years were the events won by KCLMS less than 7?: ``` SELECT COUNT(year) FROM table_name_8 WHERE events_won_by_kclMS < 7 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_96 (league VARCHAR, sport VARCHAR) Question: What is the name of a league in the sport of baseball? [/INST] Here is the SQLite query to answer to the question: What is the name of a league in the sport of baseball?: ``` SELECT league FROM table_name_96 WHERE sport = "baseball" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_82 (catalogue VARCHAR, time VARCHAR) Question: What catalogue has a length of 2:10? [/INST] Here is the SQLite query to answer to the question: What catalogue has a length of 2:10?: ``` SELECT catalogue FROM table_name_82 WHERE time = "2:10" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (order VARCHAR, olympic_games VARCHAR) Question: What was the order of the Tokyo olympic games? [/INST] Here is the SQLite query to answer to the question: What was the order of the Tokyo olympic games?: ``` SELECT order FROM table_name_9 WHERE olympic_games = "tokyo" ```
[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 (exaltation VARCHAR, domicile VARCHAR, sign VARCHAR) Question: Which exaltation has a domicile of Saturn and Capricorn as a sign? [/INST] Here is the SQLite query to answer to the question: Which exaltation has a domicile of Saturn and Capricorn as a sign?: ``` SELECT exaltation FROM table_name_10 WHERE domicile = "saturn" AND sign = "capricorn" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21756039_1 (regular_season_results VARCHAR, year VARCHAR) Question: What is the regular season results for the year 2011-2012? [/INST] Here is the SQLite query to answer to the question: What is the regular season results for the year 2011-2012?: ``` SELECT regular_season_results FROM table_21756039_1 WHERE year = "2011-2012" ```
[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 (participants INTEGER, rank VARCHAR, silver VARCHAR) Question: What is listed as the highest Participants that also have a Rank of 5, and Silver that's smaller than 0? [/INST] Here is the SQLite query to answer to the question: What is listed as the highest Participants that also have a Rank of 5, and Silver that's smaller than 0?: ``` SELECT MAX(participants) FROM table_name_13 WHERE rank = 5 AND silver < 0 ```
[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 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR) Question: Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897? [/INST] Here is the SQLite query to answer to the question: Which qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897?: ``` SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897 ```
[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 (venue VARCHAR, away_team VARCHAR) Question: Where was the game held where North Melbourne was the away team? [/INST] Here is the SQLite query to answer to the question: Where was the game held where North Melbourne was the away team?: ``` SELECT venue FROM table_name_89 WHERE away_team = "north melbourne" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24540893_6 (school VARCHAR, position VARCHAR) Question: What school did the rb drafted attend? [/INST] Here is the SQLite query to answer to the question: What school did the rb drafted attend?: ``` SELECT school FROM table_24540893_6 WHERE position = "RB" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23285805_5 (record VARCHAR, game VARCHAR) Question: Name the number of records for 30 game [/INST] Here is the SQLite query to answer to the question: Name the number of records for 30 game: ``` SELECT COUNT(record) FROM table_23285805_5 WHERE game = 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_17 (crowd INTEGER, away_team VARCHAR) Question: What was the Average crowd when the away team was north melbourne? [/INST] Here is the SQLite query to answer to the question: What was the Average crowd when the away team was north melbourne?: ``` SELECT AVG(crowd) FROM table_name_17 WHERE away_team = "north melbourne" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE exhibition (artist_id VARCHAR, year VARCHAR); CREATE TABLE artist (name VARCHAR); CREATE TABLE artist (name VARCHAR, artist_id VARCHAR) Question: Show all artist names who didn't have an exhibition in 2004. [/INST] Here is the SQLite query to answer to the question: Show all artist names who didn't have an exhibition in 2004.: ``` SELECT name FROM artist EXCEPT SELECT T2.name FROM exhibition AS T1 JOIN artist AS T2 ON T1.artist_id = T2.artist_id WHERE T1.year = 2004 ```
[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 (pick__number VARCHAR, player VARCHAR) Question: What's sawyer hannay's total pick number? [/INST] Here is the SQLite query to answer to the question: What's sawyer hannay's total pick number?: ``` SELECT COUNT(pick__number) FROM table_name_39 WHERE player = "sawyer hannay" ```
[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 (bronze INTEGER, gold VARCHAR, total VARCHAR, rank VARCHAR) Question: What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1? [/INST] Here is the SQLite query to answer to the question: What is the most number of Bronze medals won among the countries that have won more than 1 medal, more than 1 gold medal, and have a rank bigger than 1?: ``` SELECT MAX(bronze) FROM table_name_49 WHERE total > 1 AND rank > 1 AND gold > 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE country (Population INTEGER, GNP INTEGER, Continent VARCHAR) Question: What is the total population and maximum GNP in Asia? [/INST] Here is the SQLite query to answer to the question: What is the total population and maximum GNP in Asia?: ``` SELECT SUM(Population), MAX(GNP) FROM country WHERE Continent = "Asia" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11621747_1 (tournament VARCHAR) Question: How many prizes were there at the transamerica? [/INST] Here is the SQLite query to answer to the question: How many prizes were there at the transamerica?: ``` SELECT COUNT(1 AS st_prize__) AS $__ FROM table_11621747_1 WHERE tournament = "The Transamerica" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE journalist (Name VARCHAR, Nationality VARCHAR) Question: Show the names of journalists from "England" or "Wales". [/INST] Here is the SQLite query to answer to the question: Show the names of journalists from "England" or "Wales".: ``` SELECT Name FROM journalist WHERE Nationality = "England" OR Nationality = "Wales" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_88 (Id VARCHAR) Question: What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658? [/INST] Here is the SQLite query to answer to the question: What is the maximum 1985 GDP for the region where 1990 GDP is less than 267, 2000 GDP is 333 and 2005 GDP is less than 658?: ``` SELECT MAX(1985) FROM table_name_88 WHERE 1990 < 267 AND 2000 = 333 AND 2005 < 658 ```
[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 (result VARCHAR, game VARCHAR) Question: Which Result has a Game of game 1? [/INST] Here is the SQLite query to answer to the question: Which Result has a Game of game 1?: ``` SELECT result FROM table_name_86 WHERE game = "game 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_66 (player VARCHAR, year VARCHAR) Question: What player played in 2000? [/INST] Here is the SQLite query to answer to the question: What player played in 2000?: ``` SELECT player FROM table_name_66 WHERE 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_87 (gpu_frequency VARCHAR, cores VARCHAR) Question: What's the GPU frequency that has ultra-low power in cores? [/INST] Here is the SQLite query to answer to the question: What's the GPU frequency that has ultra-low power in cores?: ``` SELECT gpu_frequency FROM table_name_87 WHERE cores = "ultra-low power" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21091145_1 (opponent VARCHAR, black_knights_points VARCHAR) Question: Name the opponent for black knights points 27 [/INST] Here is the SQLite query to answer to the question: Name the opponent for black knights points 27: ``` SELECT opponent FROM table_21091145_1 WHERE black_knights_points = 27 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_44 (score VARCHAR, opponent_in_the_final VARCHAR) Question: What was the score when the opponent in the final was iroda tulyaganova? [/INST] Here is the SQLite query to answer to the question: What was the score when the opponent in the final was iroda tulyaganova?: ``` SELECT score FROM table_name_44 WHERE opponent_in_the_final = "iroda tulyaganova" ```
[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 (pick INTEGER, nfl_club VARCHAR, round VARCHAR) Question: What is the highest pick of the houston oilers NFL club, which has a round greater than 10? [/INST] Here is the SQLite query to answer to the question: What is the highest pick of the houston oilers NFL club, which has a round greater than 10?: ``` SELECT MAX(pick) FROM table_name_87 WHERE nfl_club = "houston oilers" AND round > 10 ```
[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 (opponent VARCHAR, game VARCHAR) Question: Who was the opponent for game 5? [/INST] Here is the SQLite query to answer to the question: Who was the opponent for game 5?: ``` SELECT opponent FROM table_name_29 WHERE game = 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_18 (yeast_ortholog VARCHAR, mouse_ortholog VARCHAR) Question: What is the yeast ortholog of mouse ortholog MMS19? [/INST] Here is the SQLite query to answer to the question: What is the yeast ortholog of mouse ortholog MMS19?: ``` SELECT yeast_ortholog FROM table_name_18 WHERE mouse_ortholog = "mms19" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_93 (club VARCHAR, played VARCHAR, lost VARCHAR) Question: What club has a played number of 19, and the lost of 14? [/INST] Here is the SQLite query to answer to the question: What club has a played number of 19, and the lost of 14?: ``` SELECT club FROM table_name_93 WHERE played = "19" AND lost = "14" ```
[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 (away_team VARCHAR, home_team VARCHAR) Question: Who played Blackpool when Blackpool was at home? [/INST] Here is the SQLite query to answer to the question: Who played Blackpool when Blackpool was at home?: ``` SELECT away_team FROM table_name_2 WHERE home_team = "blackpool" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27374004_2 (team_captain VARCHAR, shirt_sponsor VARCHAR) Question: What is the team captain when the shirt sponser is quick? [/INST] Here is the SQLite query to answer to the question: What is the team captain when the shirt sponser is quick?: ``` SELECT team_captain FROM table_27374004_2 WHERE shirt_sponsor = "Quick" ```
[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 (competition VARCHAR, town VARCHAR, opponent VARCHAR) Question: what is the competition played in budva against italy? [/INST] Here is the SQLite query to answer to the question: what is the competition played in budva against italy?: ``` SELECT competition FROM table_name_56 WHERE town = "budva" AND opponent = "italy" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14460085_3 (points VARCHAR, team VARCHAR) Question: How many points total for san lorenzo? [/INST] Here is the SQLite query to answer to the question: How many points total for san lorenzo?: ``` SELECT COUNT(points) FROM table_14460085_3 WHERE team = "San Lorenzo" ```
[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 (county VARCHAR, listed VARCHAR, construction_completed VARCHAR) Question: In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located? [/INST] Here is the SQLite query to answer to the question: In what county is the entry that has a Construction Completed date of 07/19/2000 and a Listed date of 09/21/1984 located?: ``` SELECT county FROM table_name_68 WHERE listed = "09/21/1984" AND construction_completed = "07/19/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_2 (date VARCHAR, against VARCHAR) Question: What date has an against of pohang steelers? [/INST] Here is the SQLite query to answer to the question: What date has an against of pohang steelers?: ``` SELECT date FROM table_name_2 WHERE against = "pohang steelers" ```
[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 (enrollment INTEGER, ihsaa_class VARCHAR, location VARCHAR) Question: What is the average enrollment of the IHSAA A class in wolcott? [/INST] Here is the SQLite query to answer to the question: What is the average enrollment of the IHSAA A class in wolcott?: ``` SELECT AVG(enrollment) FROM table_name_34 WHERE ihsaa_class = "a" AND location = "wolcott" ```
[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 (total_goals VARCHAR, league_cup_goals INTEGER) Question: How many Total Goals values have 0 League Cup Goals? [/INST] Here is the SQLite query to answer to the question: How many Total Goals values have 0 League Cup Goals?: ``` SELECT COUNT(total_goals) FROM table_name_27 WHERE league_cup_goals < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_44 (position VARCHAR, pick VARCHAR, school VARCHAR) Question: What position has a pick less than 25 for the university of california? [/INST] Here is the SQLite query to answer to the question: What position has a pick less than 25 for the university of california?: ``` SELECT position FROM table_name_44 WHERE pick < 25 AND school = "university of california" ```
[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 (surface VARCHAR, score_in_final VARCHAR) Question: What is Surface, when Score in Final is 3-6, 6-3, 6-2? [/INST] Here is the SQLite query to answer to the question: What is Surface, when Score in Final is 3-6, 6-3, 6-2?: ``` SELECT surface FROM table_name_23 WHERE score_in_final = "3-6, 6-3, 6-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_93 (semifinalists VARCHAR, tournament VARCHAR) Question: What is Semifinalists, when Tournament is Rome [/INST] Here is the SQLite query to answer to the question: What is Semifinalists, when Tournament is Rome: ``` SELECT semifinalists FROM table_name_93 WHERE tournament = "rome" ```
[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 (event VARCHAR, position VARCHAR, year VARCHAR) Question: What event did she finish 3rd in 2010? [/INST] Here is the SQLite query to answer to the question: What event did she finish 3rd in 2010?: ``` SELECT event FROM table_name_37 WHERE position = "3rd" 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_name_57 (compression_ratio VARCHAR, dx_10_name VARCHAR, fourcc VARCHAR) Question: Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4? [/INST] Here is the SQLite query to answer to the question: Which Compression ratio has a (none) DX 10 Name and a FOURCC of dxt4?: ``` SELECT compression_ratio FROM table_name_57 WHERE dx_10_name = "(none)" AND fourcc = "dxt4" ```
[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 (chassis VARCHAR, engine VARCHAR) Question: Name the chassis for engine of brm v12 [/INST] Here is the SQLite query to answer to the question: Name the chassis for engine of brm v12: ``` SELECT chassis FROM table_name_49 WHERE engine = "brm v12" ```
[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 (theme VARCHAR, mintage VARCHAR) Question: What theme has a mintage of 3527? [/INST] Here is the SQLite query to answer to the question: What theme has a mintage of 3527?: ``` SELECT theme FROM table_name_91 WHERE mintage = "3527" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1973816_2 (location VARCHAR, institution VARCHAR) Question: Where is Southern Vermont College located? [/INST] Here is the SQLite query to answer to the question: Where is Southern Vermont College located?: ``` SELECT location FROM table_1973816_2 WHERE institution = "Southern Vermont College" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_44 (wins VARCHAR, points VARCHAR) Question: How many wins does the driver with 217 points have? [/INST] Here is the SQLite query to answer to the question: How many wins does the driver with 217 points have?: ``` SELECT wins FROM table_name_44 WHERE points = 217 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_51 (engine VARCHAR, team VARCHAR, chassis VARCHAR) Question: Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761? [/INST] Here is the SQLite query to answer to the question: Which Engine has a Team of Chesterfield Racing and include a Chassis of March 761?: ``` SELECT engine FROM table_name_51 WHERE team = "chesterfield racing" AND chassis = "march 761" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE customer (cust_name VARCHAR, cust_id VARCHAR); CREATE TABLE loan (cust_id VARCHAR) Question: Find the name of customers who have more than one loan. [/INST] Here is the SQLite query to answer to the question: Find the name of customers who have more than one loan.: ``` SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id GROUP BY T1.cust_name HAVING COUNT(*) > 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_34 (gold VARCHAR, silver VARCHAR, total VARCHAR) Question: What is the total number of Gold, when Silver is 2, and when Total is less than 7? [/INST] Here is the SQLite query to answer to the question: What is the total number of Gold, when Silver is 2, and when Total is less than 7?: ``` SELECT COUNT(gold) FROM table_name_34 WHERE silver = 2 AND total < 7 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_59 (height_in_ft VARCHAR, school_club_team_country VARCHAR) Question: Name the height in ft for the player from wyoming [/INST] Here is the SQLite query to answer to the question: Name the height in ft for the player from wyoming: ``` SELECT height_in_ft FROM table_name_59 WHERE school_club_team_country = "wyoming" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25595209_1 (sail_number VARCHAR, skipper VARCHAR) Question: What is Matt Allen's sail number? [/INST] Here is the SQLite query to answer to the question: What is Matt Allen's sail number?: ``` SELECT sail_number FROM table_25595209_1 WHERE skipper = "Matt Allen" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_44 (director_s_ VARCHAR, writer_s_ VARCHAR) Question: Who was the director that worked with Dana Dorian as the writer? [/INST] Here is the SQLite query to answer to the question: Who was the director that worked with Dana Dorian as the writer?: ``` SELECT director_s_ FROM table_name_44 WHERE writer_s_ = "dana dorian" ```
[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 (producer VARCHAR, location VARCHAR) Question: What company is the producer at the poolavadi location [/INST] Here is the SQLite query to answer to the question: What company is the producer at the poolavadi location: ``` SELECT producer FROM table_name_99 WHERE location = "poolavadi" ```
[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 (position VARCHAR, notes VARCHAR, year VARCHAR) Question: What position had notes of 20km and a year earlier than 2002? [/INST] Here is the SQLite query to answer to the question: What position had notes of 20km and a year earlier than 2002?: ``` SELECT position FROM table_name_29 WHERE notes = "20km" AND year < 2002 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_72 (first_performance VARCHAR, name VARCHAR, style VARCHAR, status VARCHAR) Question: when was the first performance for the ballet with peter mazurowski in the final cast? [/INST] Here is the SQLite query to answer to the question: when was the first performance for the ballet with peter mazurowski in the final cast?: ``` SELECT first_performance FROM table_name_72 WHERE style = "ballet" AND status = "final cast" AND name = "peter mazurowski" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_46 (wednesday VARCHAR, monday VARCHAR) Question: Which Wednesday has a Monday of 月曜日 getsuyōbi? [/INST] Here is the SQLite query to answer to the question: Which Wednesday has a Monday of 月曜日 getsuyōbi?: ``` SELECT wednesday FROM table_name_46 WHERE monday = "月曜日 getsuyōbi" ```
[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 (tournament VARCHAR, date VARCHAR) Question: What tournament was on Jan 29, 2012? [/INST] Here is the SQLite query to answer to the question: What tournament was on Jan 29, 2012?: ``` SELECT tournament FROM table_name_8 WHERE date = "jan 29, 2012" ```
[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 (opponent VARCHAR, home_away VARCHAR, result VARCHAR) Question: Name the opponent when the result is w 16-15 and has home/away of home [/INST] Here is the SQLite query to answer to the question: Name the opponent when the result is w 16-15 and has home/away of home: ``` SELECT opponent FROM table_name_37 WHERE home_away = "home" AND result = "w 16-15" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17632217_2 (third_place VARCHAR, total_wins VARCHAR) Question: Who took third-place when there were 4 total wins? [/INST] Here is the SQLite query to answer to the question: Who took third-place when there were 4 total wins?: ``` SELECT third_place FROM table_17632217_2 WHERE total_wins = 4 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_30121046_1 (poor_law_union VARCHAR, townland VARCHAR) Question: What is the poor law union of the Lackenagobidane townland? [/INST] Here is the SQLite query to answer to the question: What is the poor law union of the Lackenagobidane townland?: ``` SELECT poor_law_union FROM table_30121046_1 WHERE townland = "Lackenagobidane" ```
[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 (home_team VARCHAR, game VARCHAR) Question: What is the Home Team in Game 2? [/INST] Here is the SQLite query to answer to the question: What is the Home Team in Game 2?: ``` SELECT home_team FROM table_name_80 WHERE game = "game 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 (eastern__number2 VARCHAR, western__number2 VARCHAR) Question: Tell me the eastern #2 for western #2 of oakland [/INST] Here is the SQLite query to answer to the question: Tell me the eastern #2 for western #2 of oakland: ``` SELECT eastern__number2 FROM table_name_23 WHERE western__number2 = "oakland" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (set_3 VARCHAR, set_1 VARCHAR, set_2 VARCHAR) Question: Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25? [/INST] Here is the SQLite query to answer to the question: Which set 3 has a Set 1 of 19-25, and a Set 2 of 19-25?: ``` SELECT set_3 FROM table_name_9 WHERE set_1 = "19-25" AND set_2 = "19-25" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13759592_1 (location VARCHAR, nickname VARCHAR) Question: Which location has a team that is nicknamed the Vikings? [/INST] Here is the SQLite query to answer to the question: Which location has a team that is nicknamed the Vikings?: ``` SELECT location FROM table_13759592_1 WHERE nickname = "Vikings" ```