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_50 (venue VARCHAR, away_team VARCHAR) Question: When Essendon played away; where did they play? [/INST] Here is the SQLite query to answer to the question: When Essendon played away; where did they play?: ``` SELECT venue FROM table_name_50 WHERE away_team = "essendon" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (game INTEGER, opponent VARCHAR, record VARCHAR) Question: What is the lowest numbered game against Phoenix with a record of 29-17? [/INST] Here is the SQLite query to answer to the question: What is the lowest numbered game against Phoenix with a record of 29-17?: ``` SELECT MIN(game) FROM table_name_61 WHERE opponent = "phoenix" AND record = "29-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_37 (opponent VARCHAR, week VARCHAR) Question: Who did the Texan's play on Week 4? [/INST] Here is the SQLite query to answer to the question: Who did the Texan's play on Week 4?: ``` SELECT opponent FROM table_name_37 WHERE week = "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_70 (points INTEGER, touchdowns VARCHAR, extra_points VARCHAR) Question: Which Points have Touchdowns larger than 0, and an Extra points smaller than 0? [/INST] Here is the SQLite query to answer to the question: Which Points have Touchdowns larger than 0, and an Extra points smaller than 0?: ``` SELECT SUM(points) FROM table_name_70 WHERE touchdowns > 0 AND extra_points < 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_83 (name VARCHAR, moving_to VARCHAR, nat VARCHAR, transfer_window VARCHAR) Question: What is the name of the player who is Sco and moving to greenock morton in the summer? [/INST] Here is the SQLite query to answer to the question: What is the name of the player who is Sco and moving to greenock morton in the summer?: ``` SELECT name FROM table_name_83 WHERE nat = "sco" AND transfer_window = "summer" AND moving_to = "greenock morton" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE votes (contestant_number VARCHAR); CREATE TABLE contestants (contestant_number VARCHAR, contestant_name VARCHAR) Question: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes? [/INST] Here is the SQLite query to answer to the question: Of all the contestants who got voted, what is the contestant number and name of the contestant who got least votes?: ``` SELECT T1.contestant_number, T1.contestant_name FROM contestants AS T1 JOIN votes AS T2 ON T1.contestant_number = T2.contestant_number GROUP BY T1.contestant_number ORDER BY COUNT(*) 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_name_50 (venue VARCHAR, result VARCHAR) Question: Which venue had the result 7-1? [/INST] Here is the SQLite query to answer to the question: Which venue had the result 7-1?: ``` SELECT venue FROM table_name_50 WHERE result = "7-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_22 (Id VARCHAR) Question: What did the tournament that got an A in 1945 get in 1949? [/INST] Here is the SQLite query to answer to the question: What did the tournament that got an A in 1945 get in 1949?: ``` SELECT 1949 FROM table_name_22 WHERE 1945 = "a" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE college (state VARCHAR, enr INTEGER) Question: Find the states where have the colleges whose enrollments are less than the largest size. [/INST] Here is the SQLite query to answer to the question: Find the states where have the colleges whose enrollments are less than the largest size.: ``` SELECT DISTINCT state FROM college WHERE enr < (SELECT MAX(enr) FROM college) ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24648983_1 (title VARCHAR, us_viewers__million_ VARCHAR) Question: What is the name of the episode that had 9.89 million U.S. viewers? [/INST] Here is the SQLite query to answer to the question: What is the name of the episode that had 9.89 million U.S. viewers?: ``` SELECT title FROM table_24648983_1 WHERE us_viewers__million_ = "9.89" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Bookings (Workshop_Group_ID VARCHAR, Status_Code VARCHAR); CREATE TABLE Drama_Workshop_Groups (Store_Name VARCHAR, Workshop_Group_ID VARCHAR) Question: What are the names of the workshop groups that have bookings with status code "stop"? [/INST] Here is the SQLite query to answer to the question: What are the names of the workshop groups that have bookings with status code "stop"?: ``` SELECT T2.Store_Name FROM Bookings AS T1 JOIN Drama_Workshop_Groups AS T2 ON T1.Workshop_Group_ID = T2.Workshop_Group_ID WHERE T1.Status_Code = "stop" ```
[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 (location VARCHAR, opponenent VARCHAR) Question: Where was the opponent Germany? [/INST] Here is the SQLite query to answer to the question: Where was the opponent Germany?: ``` SELECT location FROM table_name_96 WHERE opponenent = "germany" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1342149_24 (candidates VARCHAR, result VARCHAR) Question: Name the candidates for result of lost renomination democratic loss [/INST] Here is the SQLite query to answer to the question: Name the candidates for result of lost renomination democratic loss: ``` SELECT candidates FROM table_1342149_24 WHERE result = "Lost renomination Democratic loss" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341930_5 (party VARCHAR, district VARCHAR) Question: What is the number of party in the arkansas 1 district [/INST] Here is the SQLite query to answer to the question: What is the number of party in the arkansas 1 district: ``` SELECT COUNT(party) FROM table_1341930_5 WHERE district = "Arkansas 1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12141496_1 (alt_name VARCHAR, id VARCHAR) Question: How many alt names does 1964-011a have? [/INST] Here is the SQLite query to answer to the question: How many alt names does 1964-011a have?: ``` SELECT COUNT(alt_name) FROM table_12141496_1 WHERE id = "1964-011A" ```
[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 (opponent VARCHAR, date VARCHAR) Question: Who is the opponent of the game played on November 20, 1995? [/INST] Here is the SQLite query to answer to the question: Who is the opponent of the game played on November 20, 1995?: ``` SELECT opponent FROM table_name_66 WHERE date = "november 20, 1995" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16331025_2 (tickets_sold___available VARCHAR, sellout___percentage_ VARCHAR) Question: What is the position of tickets sold/available when the sellout is 82%? [/INST] Here is the SQLite query to answer to the question: What is the position of tickets sold/available when the sellout is 82%?: ``` SELECT COUNT(tickets_sold___available) FROM table_16331025_2 WHERE sellout___percentage_ = "82%" ```
[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 (college_junior_club_team__league_ VARCHAR, round VARCHAR) Question: Which College/Junior/Club Team (League) did the player in round 6 play for? [/INST] Here is the SQLite query to answer to the question: Which College/Junior/Club Team (League) did the player in round 6 play for?: ``` SELECT college_junior_club_team__league_ FROM table_name_98 WHERE round = "6" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_94 (introduced INTEGER, retired VARCHAR, manufacturer VARCHAR, quantity VARCHAR) Question: How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999? [/INST] Here is the SQLite query to answer to the question: How many in the introduced section had Fokker as a manufacturer, a quantity of 5, and retired later than 1999?: ``` SELECT SUM(introduced) FROM table_name_94 WHERE manufacturer = "fokker" AND quantity = 5 AND retired > 1999 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27615445_1 (audition_venue VARCHAR, guest_fourth_judge VARCHAR) Question: Where was the audition venue where Peninha was the guest fourth judge? [/INST] Here is the SQLite query to answer to the question: Where was the audition venue where Peninha was the guest fourth judge?: ``` SELECT audition_venue FROM table_27615445_1 WHERE guest_fourth_judge = "Peninha" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1602858_1 (runner_s__up VARCHAR, tournament VARCHAR) Question: Who was the runner-up in the Memorial Tournament? [/INST] Here is the SQLite query to answer to the question: Who was the runner-up in the Memorial Tournament?: ``` SELECT runner_s__up FROM table_1602858_1 WHERE tournament = "Memorial tournament" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_83 (bonus_points VARCHAR, drawn VARCHAR, points_against VARCHAR) Question: What is the number of bonus points when there are 2 drawn and the points against is 599? [/INST] Here is the SQLite query to answer to the question: What is the number of bonus points when there are 2 drawn and the points against is 599?: ``` SELECT bonus_points FROM table_name_83 WHERE drawn = "2" AND points_against = "599" ```
[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 (game VARCHAR, genre VARCHAR) Question: Which game was a Platformer? [/INST] Here is the SQLite query to answer to the question: Which game was a Platformer?: ``` SELECT game FROM table_name_90 WHERE genre = "platformer" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (individual VARCHAR, event VARCHAR) Question: Who was the individual in the event of 1998 Pokljuka? [/INST] Here is the SQLite query to answer to the question: Who was the individual in the event of 1998 Pokljuka?: ``` SELECT individual FROM table_name_33 WHERE event = "1998 pokljuka" ```
[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 (pick__number INTEGER, college VARCHAR, round VARCHAR) Question: What's the average draft pick number from Carson-Newman College before Round 7? [/INST] Here is the SQLite query to answer to the question: What's the average draft pick number from Carson-Newman College before Round 7?: ``` SELECT AVG(pick__number) FROM table_name_21 WHERE college = "carson-newman" AND round < 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_27 (spouse_to VARCHAR, born_as VARCHAR) Question: Who was the spouse of the consort who was born as rania al yassin? [/INST] Here is the SQLite query to answer to the question: Who was the spouse of the consort who was born as rania al yassin?: ``` SELECT spouse_to FROM table_name_27 WHERE born_as = "rania al yassin" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_19662262_6 (wickets VARCHAR, strike_rate VARCHAR) Question: How many figures for wickets when the strike rate is 54.0? [/INST] Here is the SQLite query to answer to the question: How many figures for wickets when the strike rate is 54.0?: ``` SELECT COUNT(wickets) FROM table_19662262_6 WHERE strike_rate = "54.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_49 (communist_ticket VARCHAR, american_labor_ticket VARCHAR) Question: Who's the Communist ticket with an American Labor ticket of joseph v. o'leary? [/INST] Here is the SQLite query to answer to the question: Who's the Communist ticket with an American Labor ticket of joseph v. o'leary?: ``` SELECT communist_ticket FROM table_name_49 WHERE american_labor_ticket = "joseph v. o'leary" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_54 (hdi_2011 VARCHAR, di_2011 VARCHAR) Question: What is the HDI 2011 of the country with a DI 2011 of 7.63? [/INST] Here is the SQLite query to answer to the question: What is the HDI 2011 of the country with a DI 2011 of 7.63?: ``` SELECT hdi_2011 FROM table_name_54 WHERE di_2011 = "7.63" ```
[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 (against INTEGER, draws VARCHAR, losses VARCHAR) Question: How much Against has Draws of 2, and Losses smaller than 4? [/INST] Here is the SQLite query to answer to the question: How much Against has Draws of 2, and Losses smaller than 4?: ``` SELECT SUM(against) FROM table_name_17 WHERE draws = 2 AND losses < 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_24 (score VARCHAR, year VARCHAR, winners VARCHAR, runners_up VARCHAR) Question: What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up? [/INST] Here is the SQLite query to answer to the question: What was Galatasaray score when when he won in 1990 and Trabzonspor was the runner-up?: ``` SELECT score FROM table_name_24 WHERE winners = "galatasaray" AND runners_up = "trabzonspor" AND year = 1990 ```
[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 (runner_up VARCHAR, venue VARCHAR) Question: Who was the runner-up of the competition played at Minikahda Club? [/INST] Here is the SQLite query to answer to the question: Who was the runner-up of the competition played at Minikahda Club?: ``` SELECT runner_up FROM table_name_55 WHERE venue = "minikahda club" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (catalog VARCHAR, label VARCHAR) Question: What is the catalog number for the Grilled Cheese label? [/INST] Here is the SQLite query to answer to the question: What is the catalog number for the Grilled Cheese label?: ``` SELECT catalog FROM table_name_33 WHERE label = "grilled cheese" ```
[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 (opponent VARCHAR, result VARCHAR) Question: Which opponent had the result of W 24-14? [/INST] Here is the SQLite query to answer to the question: Which opponent had the result of W 24-14?: ``` SELECT opponent FROM table_name_64 WHERE result = "w 24-14" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2140071_7 (season INTEGER) Question: What is the newest season? [/INST] Here is the SQLite query to answer to the question: What is the newest season?: ``` SELECT MAX(season) FROM table_2140071_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 (surface VARCHAR, opponent_s_ VARCHAR) Question: Which Surface has an Opponent(s) of anna-lena grönefeld tatjana malek? [/INST] Here is the SQLite query to answer to the question: Which Surface has an Opponent(s) of anna-lena grönefeld tatjana malek?: ``` SELECT surface FROM table_name_8 WHERE opponent_s_ = "anna-lena grönefeld tatjana malek" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1348989_2 (TV VARCHAR, season VARCHAR) Question: In what TV season did the 3rd season air? [/INST] Here is the SQLite query to answer to the question: In what TV season did the 3rd season air?: ``` SELECT TV AS season FROM table_1348989_2 WHERE season = "3rd" ```
[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 (fastest_lap VARCHAR, constructor VARCHAR, location VARCHAR) Question: Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor? [/INST] Here is the SQLite query to answer to the question: Who ran the fastest lap in the team that competed in Zolder, in which Ferrari was the Constructor?: ``` SELECT fastest_lap FROM table_name_39 WHERE constructor = "ferrari" AND location = "zolder" ```
[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 (nba_draft VARCHAR, school VARCHAR) Question: What was the NBA draft status for Northeast High School? [/INST] Here is the SQLite query to answer to the question: What was the NBA draft status for Northeast High School?: ``` SELECT nba_draft FROM table_name_7 WHERE school = "northeast 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_name_96 (population__total_ INTEGER, year VARCHAR, _barcaldine_ VARCHAR) Question: What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780? [/INST] Here is the SQLite query to answer to the question: What is the high Population (total) from 1976 with a (Barcaldine) smaller than 1,780?: ``` SELECT MAX(population__total_) FROM table_name_96 WHERE year = 1976 AND _barcaldine_ < 1 OFFSET 780 ```
[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 (Id VARCHAR) Question: What 1953 has 2 as a 1949, and 3 as 1952? [/INST] Here is the SQLite query to answer to the question: What 1953 has 2 as a 1949, and 3 as 1952?: ``` SELECT 1953 FROM table_name_48 WHERE 1949 = "2" AND 1952 = "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_50 (losses VARCHAR, played INTEGER) Question: What is the total number of losses for the over 30 games played? [/INST] Here is the SQLite query to answer to the question: What is the total number of losses for the over 30 games played?: ``` SELECT COUNT(losses) FROM table_name_50 WHERE played > 30 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE artist (name VARCHAR, artist_id VARCHAR); CREATE TABLE exhibition (name VARCHAR, artist_id VARCHAR) Question: Show names for artists without any exhibition. [/INST] Here is the SQLite query to answer to the question: Show names for artists without any exhibition.: ``` SELECT name FROM artist WHERE NOT artist_id IN (SELECT artist_id FROM exhibition) ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE mountain (Country VARCHAR, Height INTEGER) Question: What are the countries of mountains with height bigger than 5000? [/INST] Here is the SQLite query to answer to the question: What are the countries of mountains with height bigger than 5000?: ``` SELECT Country FROM mountain WHERE Height > 5000 ```
[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 (money___ INTEGER, player VARCHAR) Question: What is the highest Money ( £ ), when Player is "Peter Hedblom"? [/INST] Here is the SQLite query to answer to the question: What is the highest Money ( £ ), when Player is "Peter Hedblom"?: ``` SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom" ```
[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 (date_of_appointment VARCHAR, team VARCHAR) Question: When was the appointment date for VFL Wolfsburg? [/INST] Here is the SQLite query to answer to the question: When was the appointment date for VFL Wolfsburg?: ``` SELECT date_of_appointment FROM table_name_72 WHERE team = "vfl wolfsburg" ```
[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 (language VARCHAR, network VARCHAR, genre VARCHAR, service VARCHAR) Question: What language is the moviein that is on UMP movies network through Sky service? [/INST] Here is the SQLite query to answer to the question: What language is the moviein that is on UMP movies network through Sky service?: ``` SELECT language FROM table_name_87 WHERE genre = "movies" AND service = "sky" AND network = "ump movies" ```
[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 (location VARCHAR, design_flow__lpm_ VARCHAR, construction_start VARCHAR) Question: What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june? [/INST] Here is the SQLite query to answer to the question: What Location has a Design flow (LPM) smaller than 1900, and a Construction Start of 2006 june?: ``` SELECT location FROM table_name_40 WHERE design_flow__lpm_ < 1900 AND construction_start = "2006 june" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15887683_1 (hdtv VARCHAR, television_service VARCHAR) Question: What high definition television options are available for Italia 1? [/INST] Here is the SQLite query to answer to the question: What high definition television options are available for Italia 1?: ``` SELECT hdtv FROM table_15887683_1 WHERE television_service = "Italia 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_17 (suffix VARCHAR, prefix VARCHAR) Question: Which suffix has the prefix of isothiocyanato- (-ncs)? [/INST] Here is the SQLite query to answer to the question: Which suffix has the prefix of isothiocyanato- (-ncs)?: ``` SELECT suffix FROM table_name_17 WHERE prefix = "isothiocyanato- (-ncs)" ```
[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 (enrollment INTEGER, school VARCHAR) Question: What is the enrollment at the school of Hamilton community? [/INST] Here is the SQLite query to answer to the question: What is the enrollment at the school of Hamilton community?: ``` SELECT AVG(enrollment) FROM table_name_3 WHERE school = "hamilton community" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_29566606_11 (date_of_return VARCHAR, programme VARCHAR) Question: What is the date of return for the program for the program "Big Brother"? [/INST] Here is the SQLite query to answer to the question: What is the date of return for the program for the program "Big Brother"?: ``` SELECT date_of_return FROM table_29566606_11 WHERE programme = "Big Brother" ```
[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 (date VARCHAR, opponent VARCHAR) Question: On what date was Patty Fendick an opponent? [/INST] Here is the SQLite query to answer to the question: On what date was Patty Fendick an opponent?: ``` SELECT date FROM table_name_95 WHERE opponent = "patty fendick" ```
[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 (position VARCHAR, years_for_grizzlies VARCHAR) Question: What position did the player who was with the grizzlies from 2007-2009 play? [/INST] Here is the SQLite query to answer to the question: What position did the player who was with the grizzlies from 2007-2009 play?: ``` SELECT position FROM table_name_89 WHERE years_for_grizzlies = "2007-2009" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Project_Staff (date_from VARCHAR, date_to VARCHAR, role_code VARCHAR) Question: When do all the researcher role staff start to work, and when do they stop working? [/INST] Here is the SQLite query to answer to the question: When do all the researcher role staff start to work, and when do they stop working?: ``` SELECT date_from, date_to FROM Project_Staff WHERE role_code = 'researcher' ```
[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 (analog VARCHAR, callsign VARCHAR) Question: what is the analog type for wxmi? [/INST] Here is the SQLite query to answer to the question: what is the analog type for wxmi?: ``` SELECT analog FROM table_name_9 WHERE callsign = "wxmi" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14951643_1 (record VARCHAR, result VARCHAR) Question: what's the record with result being w 21–7 [/INST] Here is the SQLite query to answer to the question: what's the record with result being w 21–7: ``` SELECT record FROM table_14951643_1 WHERE result = "W 21–7" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22815568_3 (market_income_per_capita VARCHAR, status VARCHAR, unemployment_rate VARCHAR) Question: What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? [/INST] Here is the SQLite query to answer to the question: What is the market income per capita in a county where the status is distressed and the unemployment rate is at 10.5%? : ``` SELECT market_income_per_capita FROM table_22815568_3 WHERE status = "Distressed" AND unemployment_rate = "10.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_64 (date VARCHAR, opponent_in_final VARCHAR) Question: What is Date, when Opponent in Final is "Guy Forget"? [/INST] Here is the SQLite query to answer to the question: What is Date, when Opponent in Final is "Guy Forget"?: ``` SELECT date FROM table_name_64 WHERE opponent_in_final = "guy forget" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16388047_1 (time VARCHAR, date VARCHAR) Question: Name the time for saturday 4 march 1995 [/INST] Here is the SQLite query to answer to the question: Name the time for saturday 4 march 1995: ``` SELECT time FROM table_16388047_1 WHERE date = "Saturday 4 March 1995" ```
[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 (win__percentage INTEGER, away VARCHAR, season VARCHAR) Question: What was the lowest win% with an away score of 3-2 in 2011 season? [/INST] Here is the SQLite query to answer to the question: What was the lowest win% with an away score of 3-2 in 2011 season?: ``` SELECT MIN(win__percentage) FROM table_name_53 WHERE away = "3-2" AND season = "2011" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1046170_5 (division VARCHAR, us_open_cup VARCHAR, year VARCHAR) Question: how many division did not qualify for u.s. open cup in 2003 [/INST] Here is the SQLite query to answer to the question: how many division did not qualify for u.s. open cup in 2003: ``` SELECT division FROM table_1046170_5 WHERE us_open_cup = "Did Not Qualify" AND year = 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_74 (album VARCHAR, length VARCHAR) Question: What album is 4:53 long? [/INST] Here is the SQLite query to answer to the question: What album is 4:53 long?: ``` SELECT album FROM table_name_74 WHERE length = "4:53" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_15 (format_s_ VARCHAR, label VARCHAR, catalog VARCHAR) Question: What are the formats associated with the Atlantic Records label, catalog number 512336? [/INST] Here is the SQLite query to answer to the question: What are the formats associated with the Atlantic Records label, catalog number 512336?: ``` SELECT format_s_ FROM table_name_15 WHERE label = "atlantic records" AND catalog = "512336" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2088_1 (naming VARCHAR, type_of_aphasia VARCHAR) Question: Name the number of naming for anomic aphasia [/INST] Here is the SQLite query to answer to the question: Name the number of naming for anomic aphasia: ``` SELECT COUNT(naming) FROM table_2088_1 WHERE type_of_aphasia = "Anomic aphasia" ```
[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 (result_f_a VARCHAR, league_position VARCHAR, date VARCHAR) Question: What was the Result F–A on 21 February 2009, when the league position was 1st? [/INST] Here is the SQLite query to answer to the question: What was the Result F–A on 21 February 2009, when the league position was 1st?: ``` SELECT result_f_a FROM table_name_55 WHERE league_position = "1st" AND date = "21 february 2009" ```
[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 (position VARCHAR, player VARCHAR) Question: What is position does Dan O'Sullivan play? [/INST] Here is the SQLite query to answer to the question: What is position does Dan O'Sullivan play?: ``` SELECT position FROM table_name_58 WHERE player = "dan o'sullivan" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2013618_1 (traditional VARCHAR, simplified VARCHAR) Question: Name the traditional for 屏南县 [/INST] Here is the SQLite query to answer to the question: Name the traditional for 屏南县: ``` SELECT traditional FROM table_2013618_1 WHERE simplified = "屏南县" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2668352_14 (district VARCHAR, incumbent VARCHAR) Question: Name the district for hugh glasgow [/INST] Here is the SQLite query to answer to the question: Name the district for hugh glasgow: ``` SELECT district FROM table_2668352_14 WHERE incumbent = "Hugh Glasgow" ```
[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 (being__qualities_ VARCHAR, having__things_ VARCHAR) Question: Name the being qualities for having things of friendships, family, relationships with nature [/INST] Here is the SQLite query to answer to the question: Name the being qualities for having things of friendships, family, relationships with nature: ``` SELECT being__qualities_ FROM table_name_20 WHERE having__things_ = "friendships, family, relationships with nature" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27403436_1 (no VARCHAR, production_code VARCHAR) Question: which number lists the production code as 2j5809 [/INST] Here is the SQLite query to answer to the question: which number lists the production code as 2j5809: ``` SELECT no FROM table_27403436_1 WHERE production_code = "2J5809" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13399573_3 (try_bonus VARCHAR) Question: What is listed under try bonus when listed under Tries for is tries for? [/INST] Here is the SQLite query to answer to the question: What is listed under try bonus when listed under Tries for is tries for?: ``` SELECT try_bonus FROM table_13399573_3 WHERE "tries_for" = "tries_for" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1918850_2 (championship VARCHAR, opponents_in_the_final VARCHAR) Question: which championship had arantxa sánchez vicario todd woodbridge as opponents in the final [/INST] Here is the SQLite query to answer to the question: which championship had arantxa sánchez vicario todd woodbridge as opponents in the final : ``` SELECT championship FROM table_1918850_2 WHERE opponents_in_the_final = "Arantxa Sánchez Vicario Todd Woodbridge" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_71 (tonnage INTEGER, nationality VARCHAR) Question: What is the highest tonnage of the ship from norway? [/INST] Here is the SQLite query to answer to the question: What is the highest tonnage of the ship from norway?: ``` SELECT MAX(tonnage) FROM table_name_71 WHERE nationality = "norway" ```
[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 (date VARCHAR, goal VARCHAR) Question: What was the date of the game where Esteban Paredes scored 2 goals? [/INST] Here is the SQLite query to answer to the question: What was the date of the game where Esteban Paredes scored 2 goals?: ``` SELECT date FROM table_name_62 WHERE goal = 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (away_team VARCHAR, home_team VARCHAR) Question: What is the Away team with Newcastle United as the Home team? [/INST] Here is the SQLite query to answer to the question: What is the Away team with Newcastle United as the Home team?: ``` SELECT away_team FROM table_name_42 WHERE home_team = "newcastle united" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17120964_9 (competition VARCHAR, opponent VARCHAR) Question: what was the competitoin where the opponent is sheffield scimitars? [/INST] Here is the SQLite query to answer to the question: what was the competitoin where the opponent is sheffield scimitars?: ``` SELECT competition FROM table_17120964_9 WHERE opponent = "Sheffield Scimitars" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (circuit VARCHAR, winning_driver VARCHAR, round VARCHAR) Question: Which Circuit has a Winning Driver of hans-joachim stuck, and a Round of 3? [/INST] Here is the SQLite query to answer to the question: Which Circuit has a Winning Driver of hans-joachim stuck, and a Round of 3?: ``` SELECT circuit FROM table_name_74 WHERE winning_driver = "hans-joachim stuck" AND round = 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_83 (capacity__thousands_of_metric_tons_ VARCHAR, operator VARCHAR) Question: What is the capacity of the mine that is operated by Cyprus Amax minerals? [/INST] Here is the SQLite query to answer to the question: What is the capacity of the mine that is operated by Cyprus Amax minerals?: ``` SELECT capacity__thousands_of_metric_tons_ FROM table_name_83 WHERE operator = "cyprus amax minerals" ```
[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 (partner VARCHAR, tournament VARCHAR) Question: Who was the Partner in the Algiers 2, Algeria Tournament? [/INST] Here is the SQLite query to answer to the question: Who was the Partner in the Algiers 2, Algeria Tournament?: ``` SELECT partner FROM table_name_2 WHERE tournament = "algiers 2, algeria" ```
[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 (no_result VARCHAR, wins VARCHAR, losses VARCHAR) Question: WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1? [/INST] Here is the SQLite query to answer to the question: WHAT kind of No Result has Wins smaller than 2, and Losses larger than 1?: ``` SELECT no_result FROM table_name_2 WHERE wins < 2 AND losses > 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_93 (opponent VARCHAR, game VARCHAR, record VARCHAR) Question: Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9? [/INST] Here is the SQLite query to answer to the question: Who did the Rangers play in a game that was later than 72 when the team record was 39-27-9?: ``` SELECT opponent FROM table_name_93 WHERE game > 72 AND record = "39-27-9" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28768469_10 (high_assists VARCHAR, game VARCHAR) Question: In game 73, what were the total number of high assists? [/INST] Here is the SQLite query to answer to the question: In game 73, what were the total number of high assists?: ``` SELECT COUNT(high_assists) FROM table_28768469_10 WHERE game = 73 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18373863_2 (mlb_team VARCHAR, years_played VARCHAR, fcsl_team VARCHAR) Question: when deland is the fcsl team and 2008 is the year played who is the mlb team? [/INST] Here is the SQLite query to answer to the question: when deland is the fcsl team and 2008 is the year played who is the mlb team?: ``` SELECT mlb_team FROM table_18373863_2 WHERE years_played = "2008" AND fcsl_team = "DeLand" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11406866_2 (a_ VARCHAR, kickoff_ VARCHAR) Question: what is the total number of kickoff [a ] where week is week [/INST] Here is the SQLite query to answer to the question: what is the total number of kickoff [a ] where week is week: ``` SELECT COUNT(kickoff_)[a_] FROM table_11406866_2 WHERE "week" = "week" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2387790_2 (position VARCHAR, year VARCHAR) Question: What position did he finish in 1987? [/INST] Here is the SQLite query to answer to the question: What position did he finish in 1987?: ``` SELECT position FROM table_2387790_2 WHERE year = 1987 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_41 (total INTEGER, player VARCHAR, to_par VARCHAR) Question: What was Gary Player's highest total when his To par was over 15? [/INST] Here is the SQLite query to answer to the question: What was Gary Player's highest total when his To par was over 15?: ``` SELECT MAX(total) FROM table_name_41 WHERE player = "gary player" AND to_par > 15 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_24 (split__50m_ INTEGER, name VARCHAR, lane VARCHAR) Question: What is the total sum of 50m splits for josefin lillhage in lanes above 8? [/INST] Here is the SQLite query to answer to the question: What is the total sum of 50m splits for josefin lillhage in lanes above 8?: ``` SELECT SUM(split__50m_) FROM table_name_24 WHERE name = "josefin lillhage" AND lane > 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_94 (place VARCHAR, player VARCHAR) Question: Where has Jimmy Demaret as a player? [/INST] Here is the SQLite query to answer to the question: Where has Jimmy Demaret as a player?: ``` SELECT place FROM table_name_94 WHERE player = "jimmy demaret" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_74 (goals_scored VARCHAR, points INTEGER) Question: What is the total number of Goals scored that has more than 45 Points? [/INST] Here is the SQLite query to answer to the question: What is the total number of Goals scored that has more than 45 Points?: ``` SELECT COUNT(goals_scored) FROM table_name_74 WHERE points > 45 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23248940_9 (score VARCHAR, game VARCHAR) Question: How did the game number 50 end? [/INST] Here is the SQLite query to answer to the question: How did the game number 50 end?: ``` SELECT score FROM table_23248940_9 WHERE game = 50 ```
[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 (player VARCHAR, round VARCHAR, position VARCHAR) Question: What player has a round larger than 2, and position of (d)? [/INST] Here is the SQLite query to answer to the question: What player has a round larger than 2, and position of (d)?: ``` SELECT player FROM table_name_20 WHERE round > 2 AND position = "(d)" ```
[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 (score VARCHAR, place VARCHAR, country VARCHAR) Question: What was sweden's score in T9 place? [/INST] Here is the SQLite query to answer to the question: What was sweden's score in T9 place?: ``` SELECT score FROM table_name_27 WHERE place = "t9" AND country = "sweden" ```
[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 (attendance VARCHAR, date VARCHAR) Question: What was the Attendance on November 26? [/INST] Here is the SQLite query to answer to the question: What was the Attendance on November 26?: ``` SELECT attendance FROM table_name_98 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_25214321_1 (third_place VARCHAR, winner VARCHAR) Question: Who finished in third place when the winner was Karina Bacchi? [/INST] Here is the SQLite query to answer to the question: Who finished in third place when the winner was Karina Bacchi? : ``` SELECT third_place FROM table_25214321_1 WHERE winner = "Karina Bacchi" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27383390_4 (date_of_appointment VARCHAR, position_in_table VARCHAR) Question: When is the date of appointment when the position in table is 16? [/INST] Here is the SQLite query to answer to the question: When is the date of appointment when the position in table is 16?: ``` SELECT date_of_appointment FROM table_27383390_4 WHERE position_in_table = 16 ```
[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, outcome VARCHAR, opponents VARCHAR) Question: What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"? [/INST] Here is the SQLite query to answer to the question: What is Date, when Outcome is "Winner", and when Opponents is "Paul Haarhuis Sandon Stolle"?: ``` SELECT date FROM table_name_48 WHERE outcome = "winner" AND opponents = "paul haarhuis sandon stolle" ```
[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 (location VARCHAR, years_in_gfl VARCHAR, nickname VARCHAR) Question: What is the location of the Saints having 1979- as Years in GFL? [/INST] Here is the SQLite query to answer to the question: What is the location of the Saints having 1979- as Years in GFL?: ``` SELECT location FROM table_name_37 WHERE years_in_gfl = "1979-" AND nickname = "saints" ```
[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 (team VARCHAR, game VARCHAR, date VARCHAR) Question: Who was the Team that was played against on February 24 and a game after game 55? [/INST] Here is the SQLite query to answer to the question: Who was the Team that was played against on February 24 and a game after game 55?: ``` SELECT team FROM table_name_61 WHERE game > 55 AND date = "february 24" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26460435_8 (monarch VARCHAR, heir VARCHAR) Question: Who is the monarch with the heir thado minsaw? [/INST] Here is the SQLite query to answer to the question: Who is the monarch with the heir thado minsaw?: ``` SELECT monarch FROM table_26460435_8 WHERE heir = "Thado Minsaw" ```