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_60 (inchicore_class VARCHAR, gswr_class VARCHAR, type VARCHAR) Question: What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t? [/INST] Here is the SQLite query to answer to the question: What Inchicore Class has a GSWR Class smaller than 268, and a Type of 0-4-2t?: ``` SELECT inchicore_class FROM table_name_60 WHERE gswr_class < 268 AND type = "0-4-2t" ```
[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 (year VARCHAR, round VARCHAR) Question: Which year has a Round of 17? [/INST] Here is the SQLite query to answer to the question: Which year has a Round of 17?: ``` SELECT year FROM table_name_2 WHERE round = "17" ```
[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 (built VARCHAR, registry VARCHAR, passengers VARCHAR) Question: What's the total built by the United Kingdom and holds 1,300 passengers? [/INST] Here is the SQLite query to answer to the question: What's the total built by the United Kingdom and holds 1,300 passengers?: ``` SELECT COUNT(built) FROM table_name_68 WHERE registry = "united kingdom" AND passengers = 1 OFFSET 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_98 (total INTEGER, bronze INTEGER) Question: What is the average total for 0 bronze? [/INST] Here is the SQLite query to answer to the question: What is the average total for 0 bronze?: ``` SELECT AVG(total) FROM table_name_98 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_59 (year INTEGER, start INTEGER) Question: Name the most year with start more than 2 [/INST] Here is the SQLite query to answer to the question: Name the most year with start more than 2: ``` SELECT MAX(year) FROM table_name_59 WHERE start > 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_62 (gold INTEGER, silver VARCHAR, total VARCHAR, rank VARCHAR) Question: What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has? [/INST] Here is the SQLite query to answer to the question: What is the lowest amount of gold a team with less than 2 total medals, ranked 17, and more than 0 silver medals, has?: ``` SELECT MIN(gold) FROM table_name_62 WHERE total < 2 AND rank = 17 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_23 (Id VARCHAR) Question: what is the production in 2010 with 2011 production of 2,240,000? [/INST] Here is the SQLite query to answer to the question: what is the production in 2010 with 2011 production of 2,240,000?: ``` SELECT 2010 FROM table_name_23 WHERE 2011 = "2,240,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_60 (date VARCHAR, opponent_in_the_final VARCHAR) Question: When did Mathieu play against Antonio Veić? [/INST] Here is the SQLite query to answer to the question: When did Mathieu play against Antonio Veić?: ``` SELECT date FROM table_name_60 WHERE opponent_in_the_final = "antonio veić" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_65 (date VARCHAR, home_team VARCHAR) Question: What was the date of the game where North Melbourne was the home team? [/INST] Here is the SQLite query to answer to the question: What was the date of the game where North Melbourne was the home team?: ``` SELECT date FROM table_name_65 WHERE home_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_15887683_10 (package_option VARCHAR, television_service VARCHAR) Question: Name the number of package options for music box italia [/INST] Here is the SQLite query to answer to the question: Name the number of package options for music box italia: ``` SELECT COUNT(package_option) FROM table_15887683_10 WHERE television_service = "Music Box Italia" ```
[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 (week VARCHAR, stadium VARCHAR) Question: How many weeks in total were games played at Cleveland Browns Stadium? [/INST] Here is the SQLite query to answer to the question: How many weeks in total were games played at Cleveland Browns Stadium?: ``` SELECT COUNT(week) FROM table_name_81 WHERE stadium = "cleveland browns stadium" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_48 (signed VARCHAR, position VARCHAR, school VARCHAR) Question: Was position ss from carson city high school signed? [/INST] Here is the SQLite query to answer to the question: Was position ss from carson city high school signed?: ``` SELECT signed FROM table_name_48 WHERE position = "ss" AND school = "carson city high school" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22871316_6 (record VARCHAR, high_points VARCHAR) Question: What's the record of the game in which Carlos Delfino (17) did the most high points? [/INST] Here is the SQLite query to answer to the question: What's the record of the game in which Carlos Delfino (17) did the most high points?: ``` SELECT record FROM table_22871316_6 WHERE high_points = "Carlos Delfino (17)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_6 (round INTEGER, location VARCHAR, method VARCHAR) Question: Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)? [/INST] Here is the SQLite query to answer to the question: Can you tell me the lowest Round that has the Location of indiana, united states, and the Method of submission (guillotine choke)?: ``` SELECT MIN(round) FROM table_name_6 WHERE location = "indiana, united states" AND method = "submission (guillotine choke)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_58 (written_by VARCHAR, directed_by VARCHAR) Question: Who wrote the episode that was directed by Terry Ingram? [/INST] Here is the SQLite query to answer to the question: Who wrote the episode that was directed by Terry Ingram?: ``` SELECT written_by FROM table_name_58 WHERE directed_by = "terry ingram" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_5 (position VARCHAR, round VARCHAR, pick__number VARCHAR) Question: What position has 7 as the round, with a pick # less than 214? [/INST] Here is the SQLite query to answer to the question: What position has 7 as the round, with a pick # less than 214?: ``` SELECT position FROM table_name_5 WHERE round = 7 AND pick__number < 214 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_255188_1 (founded INTEGER, nickname VARCHAR) Question: When were the Avenging Angels founded? [/INST] Here is the SQLite query to answer to the question: When were the Avenging Angels founded?: ``` SELECT MAX(founded) FROM table_255188_1 WHERE nickname = "Avenging Angels" ```
[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 (outgoing_manager VARCHAR, replaced_by VARCHAR) Question: Who was the outgoing manager that was replaced by Thomas Von Heesen? [/INST] Here is the SQLite query to answer to the question: Who was the outgoing manager that was replaced by Thomas Von Heesen?: ``` SELECT outgoing_manager FROM table_name_80 WHERE replaced_by = "thomas von heesen" ```
[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_in_the_final VARCHAR, opponent_in_the_final VARCHAR, surface VARCHAR, championship VARCHAR) Question: What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl? [/INST] Here is the SQLite query to answer to the question: What Score in the final has a Surface of hard, a Championship of washington, d.c. , u.s., and an Opponent in the final of ivan lendl?: ``` SELECT score_in_the_final FROM table_name_44 WHERE surface = "hard" AND championship = "washington, d.c. , u.s." AND opponent_in_the_final = "ivan lendl" ```
[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 (solidat__ INTEGER, sn_sb___percentage_ VARCHAR, liquidat__Β°c_ VARCHAR) Question: When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)? [/INST] Here is the SQLite query to answer to the question: When the Sn/Sb (%) of 13/17, and a Liquidat (c) bigger than 283 what's the solidat (c)?: ``` SELECT SUM(solidat__) AS Β°c_ FROM table_name_46 WHERE sn_sb___percentage_ = "13/17" AND liquidat__Β°c_ > 283 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15400878_1 (against INTEGER, team VARCHAR) Question: Name the most against for minas gerais [/INST] Here is the SQLite query to answer to the question: Name the most against for minas gerais: ``` SELECT MAX(against) FROM table_15400878_1 WHERE team = "Minas Gerais" ```
[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 (score VARCHAR, home_team VARCHAR) Question: Which Score has a Home team of yeovil town won 5–3 on penalties? [/INST] Here is the SQLite query to answer to the question: Which Score has a Home team of yeovil town won 5–3 on penalties?: ``` SELECT score FROM table_name_82 WHERE home_team = "yeovil town won 5–3 on penalties" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Maintenance_Engineers (first_name VARCHAR, last_name VARCHAR, other_details VARCHAR, engineer_id VARCHAR); CREATE TABLE Engineer_Skills (engineer_id VARCHAR, skill_id VARCHAR); CREATE TABLE Skills (skill_description VARCHAR, skill_id VARCHAR) Question: List all every engineer's first name, last name, details and coresponding skill description. [/INST] Here is the SQLite query to answer to the question: List all every engineer's first name, last name, details and coresponding skill description.: ``` SELECT T1.first_name, T1.last_name, T1.other_details, T3.skill_description FROM Maintenance_Engineers AS T1 JOIN Engineer_Skills AS T2 ON T1.engineer_id = T2.engineer_id JOIN Skills AS T3 ON T2.skill_id = T3.skill_id ```
[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 (december INTEGER, record VARCHAR) Question: What day in December was the game that resulted in a record of 6-3-1? [/INST] Here is the SQLite query to answer to the question: What day in December was the game that resulted in a record of 6-3-1?: ``` SELECT SUM(december) FROM table_name_64 WHERE record = "6-3-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_37 (s_default_argument VARCHAR, pseudorandom_number_generation VARCHAR, eval_function VARCHAR) Question: What is the s default argument without a pseudorandom number generation and no eval function? [/INST] Here is the SQLite query to answer to the question: What is the s default argument without a pseudorandom number generation and no eval function?: ``` SELECT s_default_argument FROM table_name_37 WHERE pseudorandom_number_generation = "no" AND eval_function = "no" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18461045_1 (kentucky VARCHAR, michigan VARCHAR) Question: What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? [/INST] Here is the SQLite query to answer to the question: What was the little league team from Kentucky when the little league team from Michigan was Grosse Pointe Farms-City LL Grosse Pointe Farms? : ``` SELECT kentucky FROM table_18461045_1 WHERE michigan = "Grosse Pointe Farms-City LL Grosse Pointe Farms" ```
[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 (date VARCHAR, away_team VARCHAR) Question: On what date was the away team Bournemouth? [/INST] Here is the SQLite query to answer to the question: On what date was the away team Bournemouth?: ``` SELECT date FROM table_name_24 WHERE away_team = "bournemouth" ```
[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 (prominence__m_ INTEGER, peak VARCHAR) Question: What is the sum of the prominence in m of moussa ali terara peak? [/INST] Here is the SQLite query to answer to the question: What is the sum of the prominence in m of moussa ali terara peak?: ``` SELECT SUM(prominence__m_) FROM table_name_88 WHERE peak = "moussa ali terara" ```
[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 (elected INTEGER, incumbent VARCHAR, party VARCHAR, district VARCHAR) Question: What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat? [/INST] Here is the SQLite query to answer to the question: What's the elected year of Nydia Velazquez in a district bigger than 2 and a democrat?: ``` SELECT AVG(elected) FROM table_name_69 WHERE party = "democrat" AND district > 2 AND incumbent = "nydia velazquez" ```
[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 (coach VARCHAR, runner_up VARCHAR, score VARCHAR) Question: Which Coach has a Runner-up of northeastern and a Score of 6–3? [/INST] Here is the SQLite query to answer to the question: Which Coach has a Runner-up of northeastern and a Score of 6–3?: ``` SELECT coach FROM table_name_82 WHERE runner_up = "northeastern" AND score = "6–3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25316812_1 (authority VARCHAR, budget_limit__Β£m_ VARCHAR) Question: What is the authority who set the budget limit (Β£m) at 900? [/INST] Here is the SQLite query to answer to the question: What is the authority who set the budget limit (Β£m) at 900?: ``` SELECT authority FROM table_25316812_1 WHERE budget_limit__Β£m_ = "900" ```
[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 (date VARCHAR, result VARCHAR) Question: What was the date of the game with a result of 3–2? [/INST] Here is the SQLite query to answer to the question: What was the date of the game with a result of 3–2?: ``` SELECT date FROM table_name_3 WHERE result = "3–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_95 (place VARCHAR, score VARCHAR) Question: What is the place of the player with a 71-69-66=206 score? [/INST] Here is the SQLite query to answer to the question: What is the place of the player with a 71-69-66=206 score?: ``` SELECT place FROM table_name_95 WHERE score = 71 - 69 - 66 = 206 ```
[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 (total INTEGER, silver VARCHAR, gold VARCHAR) Question: What's the total when the gold is less than 0 and silver is less than 1? [/INST] Here is the SQLite query to answer to the question: What's the total when the gold is less than 0 and silver is less than 1?: ``` SELECT AVG(total) FROM table_name_95 WHERE silver = 1 AND gold < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE airport (country VARCHAR) Question: how many airports are there in each country? [/INST] Here is the SQLite query to answer to the question: how many airports are there in each country?: ``` SELECT COUNT(*), country FROM airport GROUP BY country ```
[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 (year INTEGER, venue VARCHAR) Question: Name the most year for brookvale oval [/INST] Here is the SQLite query to answer to the question: Name the most year for brookvale oval: ``` SELECT MAX(year) FROM table_name_93 WHERE venue = "brookvale 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_98 (opponent VARCHAR, week VARCHAR) Question: In Week 13, who was the opponent? [/INST] Here is the SQLite query to answer to the question: In Week 13, who was the opponent?: ``` SELECT opponent FROM table_name_98 WHERE week = 13 ```
[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 (pick INTEGER, position VARCHAR) Question: What is the sum of the pick of the lw position player? [/INST] Here is the SQLite query to answer to the question: What is the sum of the pick of the lw position player?: ``` SELECT SUM(pick) FROM table_name_25 WHERE position = "lw" ```
[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 (to_par INTEGER, player VARCHAR, total VARCHAR) Question: What is the lowest To par of gary player, with more than 145 total? [/INST] Here is the SQLite query to answer to the question: What is the lowest To par of gary player, with more than 145 total?: ``` SELECT MIN(to_par) FROM table_name_8 WHERE player = "gary player" AND total > 145 ```
[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 (date VARCHAR, original_week VARCHAR, result VARCHAR) Question: Tell me the date for original week less than 16 and result of l 23–22 [/INST] Here is the SQLite query to answer to the question: Tell me the date for original week less than 16 and result of l 23–22: ``` SELECT date FROM table_name_81 WHERE original_week < 16 AND result = "l 23–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_12 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) Question: What was the date of appointment for paco chaparro's replacement? [/INST] Here is the SQLite query to answer to the question: What was the date of appointment for paco chaparro's replacement?: ``` SELECT date_of_appointment FROM table_name_12 WHERE outgoing_manager = "paco chaparro" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1602620_1 (location VARCHAR, term_ended VARCHAR) Question: What is the location for the office whose term ended December 2, 1976 [/INST] Here is the SQLite query to answer to the question: What is the location for the office whose term ended December 2, 1976: ``` SELECT location FROM table_1602620_1 WHERE term_ended = "December 2, 1976" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_55 (speed VARCHAR, rider VARCHAR) Question: What was John Hildreth's speed? [/INST] Here is the SQLite query to answer to the question: What was John Hildreth's speed?: ``` SELECT speed FROM table_name_55 WHERE rider = "john hildreth" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (format VARCHAR, region VARCHAR, catalog VARCHAR) Question: Which Format has a Region of united states, and a Catalog of kem 072? [/INST] Here is the SQLite query to answer to the question: Which Format has a Region of united states, and a Catalog of kem 072?: ``` SELECT format FROM table_name_61 WHERE region = "united states" AND catalog = "kem 072" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Apartment_Buildings (building_address VARCHAR, building_id VARCHAR); CREATE TABLE Apartments (building_id VARCHAR, bathroom_count INTEGER) Question: Show the addresses of the buildings that have apartments with more than 2 bathrooms. [/INST] Here is the SQLite query to answer to the question: Show the addresses of the buildings that have apartments with more than 2 bathrooms.: ``` SELECT T1.building_address FROM Apartment_Buildings AS T1 JOIN Apartments AS T2 ON T1.building_id = T2.building_id WHERE T2.bathroom_count > 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_85 (to_par VARCHAR, country VARCHAR, player VARCHAR) Question: What is To par, when Country is "United States", and when Player is "Jay Haas"? [/INST] Here is the SQLite query to answer to the question: What is To par, when Country is "United States", and when Player is "Jay Haas"?: ``` SELECT to_par FROM table_name_85 WHERE country = "united states" AND player = "jay haas" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE DEPARTMENT (DName VARCHAR, Division VARCHAR, Building VARCHAR) Question: Find the names of departments that are either in division AS or in division EN and in Building NEB. [/INST] Here is the SQLite query to answer to the question: Find the names of departments that are either in division AS or in division EN and in Building NEB.: ``` SELECT DName FROM DEPARTMENT WHERE Division = "AS" UNION SELECT DName FROM DEPARTMENT WHERE Division = "EN" AND Building = "NEB" ```
[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 (number INTEGER, artist VARCHAR) Question: What is the average number for Black Milk? [/INST] Here is the SQLite query to answer to the question: What is the average number for Black Milk?: ``` SELECT AVG(number) FROM table_name_18 WHERE artist = "black milk" ```
[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 (fourth_quarter VARCHAR, rank VARCHAR, second_quarter VARCHAR) Question: When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter? [/INST] Here is the SQLite query to answer to the question: When the rank is less than 4, and has a second quarter of exxon mobil 341,140.3, what is the fourth quarter?: ``` SELECT fourth_quarter FROM table_name_27 WHERE rank < 4 AND second_quarter = "exxon mobil 341,140.3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE stadium (country VARCHAR) Question: Find the country that has the most stadiums. [/INST] Here is the SQLite query to answer to the question: Find the country that has the most stadiums.: ``` SELECT country FROM stadium GROUP BY country ORDER BY COUNT(*) DESC LIMIT 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17085724_1 (brighton_cast VARCHAR, indianapolis_concerts VARCHAR) Question: Name the brighton cast for andrew verala [/INST] Here is the SQLite query to answer to the question: Name the brighton cast for andrew verala: ``` SELECT brighton_cast FROM table_17085724_1 WHERE indianapolis_concerts = "Andrew Verala" ```
[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 (goals INTEGER, name VARCHAR) Question: Name the most goals for josep samitier [/INST] Here is the SQLite query to answer to the question: Name the most goals for josep samitier: ``` SELECT MAX(goals) FROM table_name_8 WHERE name = "josep samitier" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21471897_2 (total_pts INTEGER, team_name VARCHAR) Question: Name the min total pts for team dennis conner [/INST] Here is the SQLite query to answer to the question: Name the min total pts for team dennis conner: ``` SELECT MIN(total_pts) FROM table_21471897_2 WHERE team_name = "Team Dennis Conner" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23014476_1 (gore__number VARCHAR, others__percentage VARCHAR) Question: Name the gore number for others % being 5.3% [/INST] Here is the SQLite query to answer to the question: Name the gore number for others % being 5.3%: ``` SELECT gore__number FROM table_23014476_1 WHERE others__percentage = "5.3%" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26200568_16 (percentage VARCHAR, points_for VARCHAR) Question: What is the percentage listed for the team who scored 63 points? [/INST] Here is the SQLite query to answer to the question: What is the percentage listed for the team who scored 63 points?: ``` SELECT percentage FROM table_26200568_16 WHERE points_for = 63 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Likes (student_id VARCHAR); CREATE TABLE Highschooler (name VARCHAR, id VARCHAR) Question: What is the name of the high schooler who has the greatest number of likes? [/INST] Here is the SQLite query to answer to the question: What is the name of the high schooler who has the greatest number of likes?: ``` SELECT T2.name FROM Likes AS T1 JOIN Highschooler AS T2 ON T1.student_id = T2.id GROUP BY T1.student_id ORDER BY COUNT(*) DESC LIMIT 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23759976_1 (rank VARCHAR, building_ VARCHAR, a_ VARCHAR) Question: How many different ranks does the Cathay Pacific Plaza 2 have? [/INST] Here is the SQLite query to answer to the question: How many different ranks does the Cathay Pacific Plaza 2 have?: ``` SELECT COUNT(rank) FROM table_23759976_1 WHERE building_[a_] = "Cathay Pacific Plaza 2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25173505_13 (special_edition VARCHAR, english_version VARCHAR) Question: what is the special edition where the english version is nick stewart? [/INST] Here is the SQLite query to answer to the question: what is the special edition where the english version is nick stewart?: ``` SELECT special_edition FROM table_25173505_13 WHERE english_version = "Nick Stewart" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_175980_2 (viewers__in_millions_ VARCHAR, ranking VARCHAR, timeslot VARCHAR) Question: What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot? [/INST] Here is the SQLite query to answer to the question: What is every value for viewers for ranking #51 for the Tuesday 9:00 p.m. timeslot?: ``` SELECT viewers__in_millions_ FROM table_175980_2 WHERE ranking = "#51" AND timeslot = "Tuesday 9:00 p.m." ```
[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 (lost INTEGER, match INTEGER) Question: Which average lost that has a match less than 14? [/INST] Here is the SQLite query to answer to the question: Which average lost that has a match less than 14?: ``` SELECT AVG(lost) FROM table_name_9 WHERE match < 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_78 (date VARCHAR, result_f_a VARCHAR, opponent VARCHAR) Question: What day did they play the bolton wanderers with a result F–A of 1–2? [/INST] Here is the SQLite query to answer to the question: What day did they play the bolton wanderers with a result F–A of 1–2?: ``` SELECT date FROM table_name_78 WHERE result_f_a = "1–2" AND opponent = "bolton wanderers" ```
[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 (location VARCHAR, circuit VARCHAR, race VARCHAR) Question: what is the location when the circuit is lowood circuit and the race is lowood trophy? [/INST] Here is the SQLite query to answer to the question: what is the location when the circuit is lowood circuit and the race is lowood trophy?: ``` SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy" ```
[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 (owner VARCHAR, seats VARCHAR) Question: Which owner has 84 seats? [/INST] Here is the SQLite query to answer to the question: Which owner has 84 seats?: ``` SELECT owner FROM table_name_60 WHERE seats = 84 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_5 (catalog VARCHAR, date VARCHAR) Question: What is the catalog number for the January 25, 1987 release? [/INST] Here is the SQLite query to answer to the question: What is the catalog number for the January 25, 1987 release?: ``` SELECT catalog FROM table_name_5 WHERE date = "january 25, 1987" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27329061_2 (codename VARCHAR, code_base VARCHAR, edition VARCHAR) Question: What is the the codename when the code base is ubuntu 8.04 and the edition is fluxbox ce? [/INST] Here is the SQLite query to answer to the question: What is the the codename when the code base is ubuntu 8.04 and the edition is fluxbox ce?: ``` SELECT codename FROM table_27329061_2 WHERE code_base = "Ubuntu 8.04" AND edition = "Fluxbox CE" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13758243_1 (nfl_team VARCHAR, player VARCHAR) Question: What team drafted steve scifres? [/INST] Here is the SQLite query to answer to the question: What team drafted steve scifres?: ``` SELECT nfl_team FROM table_13758243_1 WHERE player = "Steve Scifres" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_35 (rank INTEGER, time VARCHAR, lane VARCHAR) Question: What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger? [/INST] Here is the SQLite query to answer to the question: What is the Rank of the Athlete with a Time of 1:47.65 and in Lane 3 or larger?: ``` SELECT MAX(rank) FROM table_name_35 WHERE time = "1:47.65" AND lane > 3 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16175217_1 (donor_payment VARCHAR, children_per_donor VARCHAR, allowed_recipients VARCHAR) Question: What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients? [/INST] Here is the SQLite query to answer to the question: What is the status of donor payment in the country where there are 6 children per donor and no data on allowed recipients?: ``` SELECT donor_payment FROM table_16175217_1 WHERE children_per_donor = "6 children" AND allowed_recipients = "no data" ```
[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 (silver INTEGER, total INTEGER) Question: what is the average silver when the total is more than 20? [/INST] Here is the SQLite query to answer to the question: what is the average silver when the total is more than 20?: ``` SELECT AVG(silver) FROM table_name_66 WHERE total > 20 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Marketing_Regions (Marketing_Region_Descriptrion VARCHAR, Marketing_Region_Name VARCHAR) Question: What is the description of the marketing region China? [/INST] Here is the SQLite query to answer to the question: What is the description of the marketing region China?: ``` SELECT Marketing_Region_Descriptrion FROM Marketing_Regions WHERE Marketing_Region_Name = "China" ```
[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 (money___$__ VARCHAR, score VARCHAR) Question: What is the money for the player with a score of 68-69-67-73=277? [/INST] Here is the SQLite query to answer to the question: What is the money for the player with a score of 68-69-67-73=277?: ``` SELECT money___$__ FROM table_name_72 WHERE score = 68 - 69 - 67 - 73 = 277 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26996293_7 (pick__number VARCHAR, player VARCHAR) Question: How many times was player brian currie picked? [/INST] Here is the SQLite query to answer to the question: How many times was player brian currie picked?: ``` SELECT COUNT(pick__number) FROM table_26996293_7 WHERE player = "Brian Currie" ```
[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 (hdtv VARCHAR, television_service VARCHAR) Question: What is HDTV, when Television service is cartello promozionale sky hd? [/INST] Here is the SQLite query to answer to the question: What is HDTV, when Television service is cartello promozionale sky hd?: ``` SELECT hdtv FROM table_name_95 WHERE television_service = "cartello promozionale sky hd" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1670921_2 (batting_partners VARCHAR, batting_team VARCHAR) Question: What batting partners batted for pakistan? [/INST] Here is the SQLite query to answer to the question: What batting partners batted for pakistan?: ``` SELECT batting_partners FROM table_1670921_2 WHERE batting_team = "Pakistan" ```
[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 (almaty_ VARCHAR, _kazakhstan VARCHAR, sergey_filimonov___kaz__ VARCHAR) Question: What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg? [/INST] Here is the SQLite query to answer to the question: What is the Almaty, Kazakhstan when Sergey Filimonov ( KAZ ) is 210kg?: ``` SELECT almaty_, _kazakhstan FROM table_name_17 WHERE sergey_filimonov___kaz__ = "210kg" ```
[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 (result VARCHAR, score VARCHAR, competition VARCHAR) Question: What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification? [/INST] Here is the SQLite query to answer to the question: What result has a Score of 1–0, and a Competition of 2014 fifa world cup qualification?: ``` SELECT result FROM table_name_47 WHERE score = "1–0" AND competition = "2014 fifa world cup qualification" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12104319_1 (womens_singles VARCHAR, womens_doubles VARCHAR) Question: What are the womens singles of naoko fukuman kurumi yonao? [/INST] Here is the SQLite query to answer to the question: What are the womens singles of naoko fukuman kurumi yonao?: ``` SELECT womens_singles FROM table_12104319_1 WHERE womens_doubles = "Naoko Fukuman Kurumi Yonao" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_78 (prefix VARCHAR, group VARCHAR) Question: What prefix has Bromo as the group? [/INST] Here is the SQLite query to answer to the question: What prefix has Bromo as the group?: ``` SELECT prefix FROM table_name_78 WHERE group = "bromo" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_58 (total VARCHAR, rank VARCHAR, gold VARCHAR) Question: What's the sum of total where the rank is over 9 and the gold is less than 1? [/INST] Here is the SQLite query to answer to the question: What's the sum of total where the rank is over 9 and the gold is less than 1?: ``` SELECT COUNT(total) FROM table_name_58 WHERE rank > 9 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 table_name_77 (outcome VARCHAR, score VARCHAR, date VARCHAR) Question: On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3? [/INST] Here is the SQLite query to answer to the question: On 27 July 2003 what was the outcome of the game that resulted in a score of 7–5, 6–3?: ``` SELECT outcome FROM table_name_77 WHERE score = "7–5, 6–3" AND date = "27 july 2003" ```
[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 (bronze INTEGER, silver VARCHAR, rank VARCHAR) Question: What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5? [/INST] Here is the SQLite query to answer to the question: What is the fewest bronze medals for a team with fewer than 1 silver and rank lower than 5?: ``` SELECT MIN(bronze) FROM table_name_75 WHERE silver < 1 AND rank < 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_38 (airport VARCHAR) Question: Which 2011 has an Airport of bole international airport? [/INST] Here is the SQLite query to answer to the question: Which 2011 has an Airport of bole international airport?: ``` SELECT MAX(2011) FROM table_name_38 WHERE airport = "bole international airport" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_6 (visitor VARCHAR, venue VARCHAR, round VARCHAR) Question: Who is the visitor at the axa sports center in round 20? [/INST] Here is the SQLite query to answer to the question: Who is the visitor at the axa sports center in round 20?: ``` SELECT visitor FROM table_name_6 WHERE venue = "axa sports center" AND round = 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_90 (percentage___percentage_ VARCHAR, language VARCHAR) Question: What is the percentage for Russian? [/INST] Here is the SQLite query to answer to the question: What is the percentage for Russian?: ``` SELECT percentage___percentage_ FROM table_name_90 WHERE language = "russian" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_90 (record VARCHAR, round VARCHAR, event VARCHAR) Question: What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist? [/INST] Here is the SQLite query to answer to the question: What is his record for fights that went over 2 rounds in the Event of raging wolf 6: mayhem in the mist?: ``` SELECT record FROM table_name_90 WHERE round > 2 AND event = "raging wolf 6: mayhem in the mist" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_73 (result VARCHAR, week VARCHAR) Question: What was the result of week 16? [/INST] Here is the SQLite query to answer to the question: What was the result of week 16?: ``` SELECT result FROM table_name_73 WHERE week = 16 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE item (title VARCHAR, i_id VARCHAR); CREATE TABLE review (i_id VARCHAR, rating INTEGER) Question: Find the name and id of the item with the highest average rating. [/INST] Here is the SQLite query to answer to the question: Find the name and id of the item with the highest average rating.: ``` SELECT T1.title, T1.i_id FROM item AS T1 JOIN review AS T2 ON T1.i_id = T2.i_id GROUP BY T2.i_id ORDER BY AVG(T2.rating) DESC LIMIT 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25714995_2 (Ends VARCHAR, stolen_ends VARCHAR) Question: How many ends won catagories are listed when there are 8 stolen ends? [/INST] Here is the SQLite query to answer to the question: How many ends won catagories are listed when there are 8 stolen ends? : ``` SELECT COUNT(Ends) AS won FROM table_25714995_2 WHERE stolen_ends = 8 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_48 (date VARCHAR, score VARCHAR) Question: Which date has a Score of 6–4, 6–3? [/INST] Here is the SQLite query to answer to the question: Which date has a Score of 6–4, 6–3?: ``` SELECT date FROM table_name_48 WHERE score = "6–4, 6–3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR) Question: What is the average crowd size for princes park? [/INST] Here is the SQLite query to answer to the question: What is the average crowd size for princes park?: ``` SELECT AVG(crowd) FROM table_name_97 WHERE venue = "princes park" ```
[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 (score VARCHAR, record VARCHAR) Question: What was the score when the Blue Jays had a record of 39-20? [/INST] Here is the SQLite query to answer to the question: What was the score when the Blue Jays had a record of 39-20?: ``` SELECT score FROM table_name_56 WHERE record = "39-20" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17058116_6 (record VARCHAR, team VARCHAR) Question: How many times did the team play charlotte? [/INST] Here is the SQLite query to answer to the question: How many times did the team play charlotte?: ``` SELECT COUNT(record) FROM table_17058116_6 WHERE team = "Charlotte" ```
[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 (tie_no VARCHAR, home_team VARCHAR) Question: What was the Tie no when the Home team was carshalton athletic? [/INST] Here is the SQLite query to answer to the question: What was the Tie no when the Home team was carshalton athletic?: ``` SELECT tie_no FROM table_name_50 WHERE home_team = "carshalton athletic" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21373283_3 (date VARCHAR, pole_position VARCHAR, circuit VARCHAR) Question: What date did Renger Van Der Zande have the pole position at Donington Park? [/INST] Here is the SQLite query to answer to the question: What date did Renger Van Der Zande have the pole position at Donington Park?: ``` SELECT date FROM table_21373283_3 WHERE pole_position = "Renger van der Zande" AND circuit = "Donington Park" ```
[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 (class_aA VARCHAR, school_year VARCHAR) Question: Who was Class AA in School Year 1994-95? [/INST] Here is the SQLite query to answer to the question: Who was Class AA in School Year 1994-95?: ``` SELECT class_aA FROM table_name_26 WHERE school_year = "1994-95" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2668347_14 (party VARCHAR, candidates VARCHAR) Question: how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%? [/INST] Here is the SQLite query to answer to the question: how many times were the candidates thomas h. hubbard (dr) 51.5% simeon ford (f) 48.4%?: ``` SELECT COUNT(party) FROM table_2668347_14 WHERE candidates = "Thomas H. Hubbard (DR) 51.5% Simeon Ford (F) 48.4%" ```
[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 (outcome VARCHAR, date VARCHAR) Question: What was the outcome for the game that was played on 07-Jun-2010? [/INST] Here is the SQLite query to answer to the question: What was the outcome for the game that was played on 07-Jun-2010?: ``` SELECT outcome FROM table_name_8 WHERE date = "07-jun-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_46 (type VARCHAR, built VARCHAR) Question: Which type of locomotive was built in 1923? [/INST] Here is the SQLite query to answer to the question: Which type of locomotive was built in 1923?: ``` SELECT type FROM table_name_46 WHERE built = 1923 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_58 (year INTEGER, winner VARCHAR) Question: What is the average year for scatman winning? [/INST] Here is the SQLite query to answer to the question: What is the average year for scatman winning?: ``` SELECT AVG(year) FROM table_name_58 WHERE winner = "scatman" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22801331_1 (game VARCHAR, record VARCHAR) Question: What game was held against a team with a 6-3 record against the Cowboys? [/INST] Here is the SQLite query to answer to the question: What game was held against a team with a 6-3 record against the Cowboys?: ``` SELECT game FROM table_22801331_1 WHERE record = "6-3" ```