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_22 (record VARCHAR, location_attendance VARCHAR) Question: Which Record has a Location/Attendance of palace of auburn hills 8,108? [/INST] Here is the SQLite query to answer to the question: Which Record has a Location/Attendance of palace of auburn hills 8,108?: ``` SELECT record FROM table_name_22 WHERE location_attendance = "palace of auburn hills 8,108" ```
[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 (driver VARCHAR, time VARCHAR) Question: What is name of the drive with a Time of +13.315? [/INST] Here is the SQLite query to answer to the question: What is name of the drive with a Time of +13.315?: ``` SELECT driver FROM table_name_85 WHERE time = "+13.315" ```
[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 (points INTEGER, grid VARCHAR) Question: What is the point low with 2 grids? [/INST] Here is the SQLite query to answer to the question: What is the point low with 2 grids?: ``` SELECT MIN(points) FROM table_name_88 WHERE grid = "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_7 (range VARCHAR, name VARCHAR, rank VARCHAR) Question: Which range includes Mount Fukushima, and is ranked 38? [/INST] Here is the SQLite query to answer to the question: Which range includes Mount Fukushima, and is ranked 38?: ``` SELECT range FROM table_name_7 WHERE name = "mount fukushima" AND rank = 38 ```
[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 (score VARCHAR, home VARCHAR) Question: What was the score of the Red Wings game when Vancouver was the home team? [/INST] Here is the SQLite query to answer to the question: What was the score of the Red Wings game when Vancouver was the home team?: ``` SELECT score FROM table_name_71 WHERE home = "vancouver" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_34 (socket VARCHAR, release_date VARCHAR, order_part_number VARCHAR) Question: What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date? [/INST] Here is the SQLite query to answer to the question: What is the socket with an order part number of amm300dbo22gq and a September 10, 2009 release date?: ``` SELECT socket FROM table_name_34 WHERE release_date = "september 10, 2009" AND order_part_number = "amm300dbo22gq" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_28 (result VARCHAR, category VARCHAR) Question: what is the result when the category is best sound design? [/INST] Here is the SQLite query to answer to the question: what is the result when the category is best sound design?: ``` SELECT result FROM table_name_28 WHERE category = "best sound design" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_51 (tickets_sold___available VARCHAR, gross_revenue__2011_ VARCHAR) Question: How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011? [/INST] Here is the SQLite query to answer to the question: How many tickets were sold / available for the venue that had a gross revenue of $333,100 in 2011?: ``` SELECT tickets_sold___available FROM table_name_51 WHERE gross_revenue__2011_ = "$333,100" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341472_49 (party VARCHAR, district VARCHAR) Question: how many party with district being washington 7 [/INST] Here is the SQLite query to answer to the question: how many party with district being washington 7: ``` SELECT COUNT(party) FROM table_1341472_49 WHERE district = "Washington 7" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE accounts (name VARCHAR) Question: List all customers’ names in the alphabetical order. [/INST] Here is the SQLite query to answer to the question: List all customers’ names in the alphabetical order.: ``` SELECT name FROM accounts ORDER BY name ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10556257_1 (cup_goals INTEGER, season VARCHAR) Question: What is the most cup goals for seasson 1911-12? [/INST] Here is the SQLite query to answer to the question: What is the most cup goals for seasson 1911-12?: ``` SELECT MAX(cup_goals) FROM table_10556257_1 WHERE season = "1911-12" ```
[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 (against INTEGER, status VARCHAR, date VARCHAR) Question: What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"? [/INST] Here is the SQLite query to answer to the question: What is the lowest Against, when Status is "First Test", and when Date is "26/05/2007"?: ``` SELECT MIN(against) FROM table_name_42 WHERE status = "first test" AND date = "26/05/2007" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11200856_1 (hand VARCHAR) Question: How many 4 credits is the hand two pair? [/INST] Here is the SQLite query to answer to the question: How many 4 credits is the hand two pair?: ``` SELECT COUNT(4 AS _credits) FROM table_11200856_1 WHERE hand = "Two pair" ```
[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 (college VARCHAR, overall VARCHAR, round VARCHAR) Question: What is the college when the over is larger than 15 in round 7? [/INST] Here is the SQLite query to answer to the question: What is the college when the over is larger than 15 in round 7?: ``` SELECT college FROM table_name_41 WHERE overall > 15 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_18733814_2 (general_classification VARCHAR, winner VARCHAR) Question: When danilo di luca is the winner who is the general classification? [/INST] Here is the SQLite query to answer to the question: When danilo di luca is the winner who is the general classification? : ``` SELECT general_classification FROM table_18733814_2 WHERE winner = "Danilo Di Luca" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_14 (date VARCHAR, home_team VARCHAR) Question: What date did home team Gold Coast Blaze play? [/INST] Here is the SQLite query to answer to the question: What date did home team Gold Coast Blaze play?: ``` SELECT date FROM table_name_14 WHERE home_team = "gold coast blaze" ```
[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 (score_in_the_final VARCHAR, partnering VARCHAR) Question: What was the final score for the match with a partnering of Tessa Price? [/INST] Here is the SQLite query to answer to the question: What was the final score for the match with a partnering of Tessa Price?: ``` SELECT score_in_the_final FROM table_name_48 WHERE partnering = "tessa price" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17941032_1 (lost VARCHAR, tries_for VARCHAR) Question: When 55 is the tries for what is the lost? [/INST] Here is the SQLite query to answer to the question: When 55 is the tries for what is the lost?: ``` SELECT lost FROM table_17941032_1 WHERE tries_for = "55" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27723526_13 (game INTEGER, date VARCHAR) Question: What is the game number played on April 3? [/INST] Here is the SQLite query to answer to the question: What is the game number played on April 3?: ``` SELECT MAX(game) FROM table_27723526_13 WHERE date = "April 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_62 (date VARCHAR, opponent VARCHAR) Question: When was the opponent Arsenal? [/INST] Here is the SQLite query to answer to the question: When was the opponent Arsenal?: ``` SELECT date FROM table_name_62 WHERE opponent = "arsenal" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (total INTEGER, league_cup VARCHAR, fa_cup VARCHAR) Question: What is the total when the league cup is less than 1, and the fa cup is less than 1? [/INST] Here is the SQLite query to answer to the question: What is the total when the league cup is less than 1, and the fa cup is less than 1?: ``` SELECT SUM(total) FROM table_name_45 WHERE league_cup < 1 AND fa_cup < 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_85 (score VARCHAR, attendance VARCHAR) Question: What is the Score of the game with arsenal win 4-2 on penalties in the attendance field? [/INST] Here is the SQLite query to answer to the question: What is the Score of the game with arsenal win 4-2 on penalties in the attendance field?: ``` SELECT score FROM table_name_85 WHERE attendance = "arsenal win 4-2 on penalties" ```
[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 (arabic_country_name VARCHAR, english_capital_name VARCHAR) Question: What is the name of the country in Arabic that has Moroni as the name of its capital in English? [/INST] Here is the SQLite query to answer to the question: What is the name of the country in Arabic that has Moroni as the name of its capital in English?: ``` SELECT arabic_country_name FROM table_name_68 WHERE english_capital_name = "moroni" ```
[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 (city VARCHAR, erp__analog__digital_ VARCHAR) Question: Which City has 600kw 500kw ERP (Analog/ Digital)? [/INST] Here is the SQLite query to answer to the question: Which City has 600kw 500kw ERP (Analog/ Digital)?: ``` SELECT city FROM table_name_41 WHERE erp__analog__digital_ = "600kw 500kw" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_91 (loss VARCHAR, date VARCHAR) Question: What was the loss for August 19? [/INST] Here is the SQLite query to answer to the question: What was the loss for August 19?: ``` SELECT loss FROM table_name_91 WHERE date = "august 19" ```
[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 (score VARCHAR, opponents_in_the_final VARCHAR) Question: What is the score for the match where the opponent in the final was james cerretani todd perry? [/INST] Here is the SQLite query to answer to the question: What is the score for the match where the opponent in the final was james cerretani todd perry?: ``` SELECT score FROM table_name_5 WHERE opponents_in_the_final = "james cerretani todd perry" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_171666_1 (comparable_country VARCHAR, national_share___percentage_ VARCHAR) Question: What comparable country has a national share of 1.08? [/INST] Here is the SQLite query to answer to the question: What comparable country has a national share of 1.08?: ``` SELECT comparable_country FROM table_171666_1 WHERE national_share___percentage_ = "1.08" ```
[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 (result VARCHAR, opponent VARCHAR) Question: how many result with opponent being cleveland browns [/INST] Here is the SQLite query to answer to the question: how many result with opponent being cleveland browns: ``` SELECT COUNT(result) FROM table_14951643_1 WHERE opponent = "Cleveland Browns" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17309500_1 (assists VARCHAR, blocks VARCHAR) Question: Name the total number of assists for 77 blocks [/INST] Here is the SQLite query to answer to the question: Name the total number of assists for 77 blocks: ``` SELECT COUNT(assists) FROM table_17309500_1 WHERE blocks = "77" ```
[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 (label VARCHAR, media VARCHAR, release_date VARCHAR) Question: What is the label for a CD released in 2004? [/INST] Here is the SQLite query to answer to the question: What is the label for a CD released in 2004?: ``` SELECT label FROM table_name_25 WHERE media = "cd" AND release_date = 2004 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE perpetrator (People_ID VARCHAR); CREATE TABLE people (Name VARCHAR, People_ID VARCHAR, Weight VARCHAR) Question: What is the name of the perpetrator with the biggest weight. [/INST] Here is the SQLite query to answer to the question: What is the name of the perpetrator with the biggest weight.: ``` SELECT T1.Name FROM people AS T1 JOIN perpetrator AS T2 ON T1.People_ID = T2.People_ID ORDER BY T1.Weight 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_27813010_2 (weeks_in_top_10 INTEGER, artist VARCHAR) Question: How many weeks in the top 10 was spent by a song performed by Peter Kay? [/INST] Here is the SQLite query to answer to the question: How many weeks in the top 10 was spent by a song performed by Peter Kay?: ``` SELECT MAX(weeks_in_top_10) FROM table_27813010_2 WHERE artist = "Peter Kay" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28059992_2 (college VARCHAR, position VARCHAR) Question: Name the college for dl [/INST] Here is the SQLite query to answer to the question: Name the college for dl: ``` SELECT college FROM table_28059992_2 WHERE position = "DL" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_13 (signed VARCHAR, school VARCHAR) Question: Was the University of Michigan Signed? [/INST] Here is the SQLite query to answer to the question: Was the University of Michigan Signed?: ``` SELECT signed FROM table_name_13 WHERE school = "university of michigan" ```
[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 (year VARCHAR, match VARCHAR) Question: Which Year has a Match of 63? [/INST] Here is the SQLite query to answer to the question: Which Year has a Match of 63?: ``` SELECT year FROM table_name_82 WHERE match = 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_39 (mascot VARCHAR, _number___county VARCHAR) Question: what's the mascot for 66 pulaski 2? [/INST] Here is the SQLite query to answer to the question: what's the mascot for 66 pulaski 2?: ``` SELECT mascot FROM table_name_39 WHERE _number___county = "66 pulaski 2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11585313_1 (number_of_goals VARCHAR, date_of_debut VARCHAR) Question: What is the total number of goals on the debut date of 14-04-1907? [/INST] Here is the SQLite query to answer to the question: What is the total number of goals on the debut date of 14-04-1907?: ``` SELECT COUNT(number_of_goals) FROM table_11585313_1 WHERE date_of_debut = "14-04-1907" ```
[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 (winning_car VARCHAR, circuit VARCHAR, winning_driver VARCHAR) Question: What car did Tony Trimmer drive at the Oulton Park Circuit? [/INST] Here is the SQLite query to answer to the question: What car did Tony Trimmer drive at the Oulton Park Circuit?: ``` SELECT winning_car FROM table_name_35 WHERE circuit = "oulton park" AND winning_driver = "tony trimmer" ```
[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 (nat VARCHAR, principal_victims VARCHAR) Question: What is the nationality of the ship when the principle victims are civilians? [/INST] Here is the SQLite query to answer to the question: What is the nationality of the ship when the principle victims are civilians?: ``` SELECT nat FROM table_name_49 WHERE principal_victims = "civilians" ```
[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, name VARCHAR) Question: What is the highest round number for donnie caraway? [/INST] Here is the SQLite query to answer to the question: What is the highest round number for donnie caraway?: ``` SELECT MAX(round) FROM table_name_6 WHERE name = "donnie caraway" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Documents (project_id VARCHAR) Question: Show project ids and the number of documents in each project. [/INST] Here is the SQLite query to answer to the question: Show project ids and the number of documents in each project.: ``` SELECT project_id, COUNT(*) FROM Documents GROUP BY project_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_27 (südbayern VARCHAR, year VARCHAR) Question: What's the Südbayern in 1928? [/INST] Here is the SQLite query to answer to the question: What's the Südbayern in 1928?: ``` SELECT südbayern FROM table_name_27 WHERE year = 1928 ```
[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 (player VARCHAR, nationality VARCHAR, years_in_toronto VARCHAR) Question: Who is the player from United States who play in year 2003-06 in Toronto? [/INST] Here is the SQLite query to answer to the question: Who is the player from United States who play in year 2003-06 in Toronto?: ``` SELECT player FROM table_name_8 WHERE nationality = "united states" AND years_in_toronto = "2003-06" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22654073_7 (high_assists VARCHAR, date VARCHAR) Question: Name the high assists for december 13 [/INST] Here is the SQLite query to answer to the question: Name the high assists for december 13: ``` SELECT high_assists FROM table_22654073_7 WHERE date = "December 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_56 (date VARCHAR, attendance VARCHAR) Question: What date was the game when 45,943 attended? [/INST] Here is the SQLite query to answer to the question: What date was the game when 45,943 attended?: ``` SELECT date FROM table_name_56 WHERE attendance = "45,943" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27969432_3 (no_in_series INTEGER) Question: What is the lowest numbered episode in the series? [/INST] Here is the SQLite query to answer to the question: What is the lowest numbered episode in the series?: ``` SELECT MIN(no_in_series) FROM table_27969432_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_59 (water_depth VARCHAR, location VARCHAR, name VARCHAR) Question: What is the water depth of Sedco 702, located in Nigeria? [/INST] Here is the SQLite query to answer to the question: What is the water depth of Sedco 702, located in Nigeria?: ``` SELECT water_depth FROM table_name_59 WHERE location = "nigeria" AND name = "sedco 702" ```
[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 (score VARCHAR, date VARCHAR) Question: What score has april 28 as the date? [/INST] Here is the SQLite query to answer to the question: What score has april 28 as the date?: ``` SELECT score FROM table_name_5 WHERE date = "april 28" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (nationality VARCHAR, school VARCHAR) Question: Which nationality does Florida Tech have? [/INST] Here is the SQLite query to answer to the question: Which nationality does Florida Tech have?: ``` SELECT nationality FROM table_name_1 WHERE school = "florida tech" ```
[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 (bronze VARCHAR, total INTEGER) Question: What is the total number of bronzes that is less than 1 in total? [/INST] Here is the SQLite query to answer to the question: What is the total number of bronzes that is less than 1 in total?: ``` SELECT COUNT(bronze) FROM table_name_24 WHERE total < 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_2 (rd__number INTEGER, player VARCHAR, pick__number VARCHAR) Question: What's the average Rd number for dane jackson with a pick number over 44? [/INST] Here is the SQLite query to answer to the question: What's the average Rd number for dane jackson with a pick number over 44?: ``` SELECT AVG(rd__number) FROM table_name_2 WHERE player = "dane jackson" AND pick__number > 44 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_61 (pick VARCHAR, position VARCHAR) Question: How many Picks have a Position of defensive back? [/INST] Here is the SQLite query to answer to the question: How many Picks have a Position of defensive back?: ``` SELECT COUNT(pick) FROM table_name_61 WHERE position = "defensive back" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25818630_1 (affiliation VARCHAR, candidate VARCHAR) Question: What is every affiliation for candidate Daren Ireland? [/INST] Here is the SQLite query to answer to the question: What is every affiliation for candidate Daren Ireland?: ``` SELECT affiliation FROM table_25818630_1 WHERE candidate = "Daren Ireland" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23214055_2 (district VARCHAR, others VARCHAR) Question: Name the district for others being 18.3 [/INST] Here is the SQLite query to answer to the question: Name the district for others being 18.3: ``` SELECT district FROM table_23214055_2 WHERE others = "18.3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_22948559_1 (production_code VARCHAR, written_by VARCHAR) Question: Name the production code by paul lieberstein [/INST] Here is the SQLite query to answer to the question: Name the production code by paul lieberstein: ``` SELECT production_code FROM table_22948559_1 WHERE written_by = "Paul Lieberstein" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE station (station_id VARCHAR); CREATE TABLE train_station (station_id VARCHAR); CREATE TABLE train_station (train_id VARCHAR, station_id VARCHAR); CREATE TABLE train (name VARCHAR, train_id VARCHAR) Question: Find the names of the trains that do not pass any station located in London. [/INST] Here is the SQLite query to answer to the question: Find the names of the trains that do not pass any station located in London.: ``` SELECT T2.name FROM train_station AS T1 JOIN train AS T2 ON T1.train_id = T2.train_id WHERE NOT T1.station_id IN (SELECT T4.station_id FROM train_station AS T3 JOIN station AS T4 ON T3.station_id = T4.station_id WHERE t4.location = "London") ```
[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 (weight INTEGER, height VARCHAR) Question: Can you tell me the average Weight that has Height of 6-9? [/INST] Here is the SQLite query to answer to the question: Can you tell me the average Weight that has Height of 6-9?: ``` SELECT AVG(weight) FROM table_name_69 WHERE height = "6-9" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_27 (team VARCHAR, make VARCHAR) Question: What team drove a Dodge vehicle? [/INST] Here is the SQLite query to answer to the question: What team drove a Dodge vehicle?: ``` SELECT team FROM table_name_27 WHERE make = "dodge" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28211988_1 (womens_singles VARCHAR, season VARCHAR) Question: How many people are women's singles in the season of 2000/01? [/INST] Here is the SQLite query to answer to the question: How many people are women's singles in the season of 2000/01?: ``` SELECT COUNT(womens_singles) FROM table_28211988_1 WHERE season = "2000/01" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_298883_5 (dimensions VARCHAR, reverse VARCHAR) Question: What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side? [/INST] Here is the SQLite query to answer to the question: What are the dimensions of the coin with western sea barrage and locks at taedong gang on the reverse side?: ``` SELECT dimensions FROM table_298883_5 WHERE reverse = "Western sea barrage and locks at Taedong Gang" ```
[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 (attempts VARCHAR, team VARCHAR, yards VARCHAR) Question: What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249? [/INST] Here is the SQLite query to answer to the question: What was the number of attempts for Vanderberg on Iowa when the recorded yards were 2,249?: ``` SELECT attempts FROM table_name_42 WHERE team = "iowa" AND yards = "2,249" ```
[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 (score VARCHAR, opponent_team VARCHAR, opponent VARCHAR) Question: What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens? [/INST] Here is the SQLite query to answer to the question: What is Score, when Opponent Team is Belgium, and when Opponent is Kirsten Flipkens?: ``` SELECT score FROM table_name_83 WHERE opponent_team = "belgium" AND opponent = "kirsten flipkens" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Financial_transactions (account_id VARCHAR); CREATE TABLE Accounts (account_name VARCHAR, account_id VARCHAR) Question: Show the account name, id and the number of transactions for each account. [/INST] Here is the SQLite query to answer to the question: Show the account name, id and the number of transactions for each account.: ``` SELECT T2.account_name, T1.account_id, COUNT(*) FROM Financial_transactions AS T1 JOIN Accounts AS T2 ON T1.account_id = T2.account_id GROUP BY T1.account_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_21 (points VARCHAR, record VARCHAR, january VARCHAR) Question: How many Points have a Record of 25–10–11, and a January larger than 28? [/INST] Here is the SQLite query to answer to the question: How many Points have a Record of 25–10–11, and a January larger than 28?: ``` SELECT COUNT(points) FROM table_name_21 WHERE record = "25–10–11" AND january > 28 ```
[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 (rank VARCHAR, time VARCHAR) Question: What is the Rank of the Athletes with a Time of 3:43.491? [/INST] Here is the SQLite query to answer to the question: What is the Rank of the Athletes with a Time of 3:43.491?: ``` SELECT COUNT(rank) FROM table_name_21 WHERE time = "3:43.491" ```
[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 (points VARCHAR, year VARCHAR, chassis VARCHAR) Question: How many points were there before 1979 with a ferrari 312b2 chassis? [/INST] Here is the SQLite query to answer to the question: How many points were there before 1979 with a ferrari 312b2 chassis?: ``` SELECT points FROM table_name_3 WHERE year < 1979 AND chassis = "ferrari 312b2" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_16799784_7 (diameter__km_ VARCHAR, longitude VARCHAR) Question: what is the diameter (km) of longitude 170.1e [/INST] Here is the SQLite query to answer to the question: what is the diameter (km) of longitude 170.1e: ``` SELECT diameter__km_ FROM table_16799784_7 WHERE longitude = "170.1E" ```
[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 (home__2nd_leg_ VARCHAR, aggregate VARCHAR) Question: What is the home of aggregate's 3-4? [/INST] Here is the SQLite query to answer to the question: What is the home of aggregate's 3-4?: ``` SELECT home__2nd_leg_ FROM table_name_87 WHERE aggregate = "3-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_82 (surface VARCHAR, date VARCHAR) Question: What surface was the match on November 6, 1982 played on? [/INST] Here is the SQLite query to answer to the question: What surface was the match on November 6, 1982 played on?: ``` SELECT surface FROM table_name_82 WHERE date = "november 6, 1982" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23916462_3 (week INTEGER) Question: What is the least value for week? [/INST] Here is the SQLite query to answer to the question: What is the least value for week?: ``` SELECT MIN(week) FROM table_23916462_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_76 (league VARCHAR, fa_cup VARCHAR, total VARCHAR) Question: Which league has an FA cup greater than 0, with a total greater than 21? [/INST] Here is the SQLite query to answer to the question: Which league has an FA cup greater than 0, with a total greater than 21?: ``` SELECT league FROM table_name_76 WHERE fa_cup > 0 AND total > 21 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE catalog_contents (catalog_entry_name VARCHAR, height VARCHAR) Question: What is the product with the highest height? Give me the catalog entry name. [/INST] Here is the SQLite query to answer to the question: What is the product with the highest height? Give me the catalog entry name.: ``` SELECT catalog_entry_name FROM catalog_contents ORDER BY height 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_2328113_1 (percentage__2006_ VARCHAR, mother_tongue VARCHAR) Question: What was the percentage in 2006 whose natives is Polish? [/INST] Here is the SQLite query to answer to the question: What was the percentage in 2006 whose natives is Polish?: ``` SELECT percentage__2006_ FROM table_2328113_1 WHERE mother_tongue = "Polish" ```
[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 (bronze INTEGER, silver VARCHAR, rank VARCHAR) Question: WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE? [/INST] Here is the SQLite query to answer to the question: WHAT COUNTRY HAS THE HIGHEST BRONZE COUNT, MORE THAN 1 SILVER METAL, AND LESS THAN 1ST PLACE?: ``` SELECT MAX(bronze) FROM table_name_46 WHERE silver > 1 AND rank > 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_62 (time VARCHAR, reaction_time VARCHAR, lane VARCHAR) Question: How many Times have a Reaction Time larger than 0.17500000000000002, and a Lane of 3? [/INST] Here is the SQLite query to answer to the question: How many Times have a Reaction Time larger than 0.17500000000000002, and a Lane of 3?: ``` SELECT COUNT(time) FROM table_name_62 WHERE reaction_time > 0.17500000000000002 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_name_14 (name VARCHAR, time VARCHAR) Question: What Name has a Time of 01:17:01? [/INST] Here is the SQLite query to answer to the question: What Name has a Time of 01:17:01?: ``` SELECT name FROM table_name_14 WHERE time = "01:17:01" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_2 (played VARCHAR, position VARCHAR, points VARCHAR) Question: What's the value for played when points is 8 and position is 11th? [/INST] Here is the SQLite query to answer to the question: What's the value for played when points is 8 and position is 11th?: ``` SELECT played FROM table_name_2 WHERE position = "11th" AND points = "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_61 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR) Question: How many total wins does Ballarat FL of East point have when the against is greater than 1000? [/INST] Here is the SQLite query to answer to the question: How many total wins does Ballarat FL of East point have when the against is greater than 1000?: ``` SELECT COUNT(wins) FROM table_name_61 WHERE ballarat_fl = "east point" AND against > 1000 ```
[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 (perpetrator VARCHAR, location VARCHAR) Question: Who went on a rampage in Baghdad? [/INST] Here is the SQLite query to answer to the question: Who went on a rampage in Baghdad?: ``` SELECT perpetrator FROM table_name_85 WHERE location = "baghdad" ```
[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 (winner_nominee_s_ VARCHAR, result VARCHAR, film VARCHAR) Question: Who is nominated for the film Rugrats Go Wild? [/INST] Here is the SQLite query to answer to the question: Who is nominated for the film Rugrats Go Wild?: ``` SELECT winner_nominee_s_ FROM table_name_44 WHERE result = "nominated" AND film = "rugrats go wild" ```
[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 (Lieutenant VARCHAR, left_office VARCHAR) Question: Who was lieutenant governor to the governor that left office on October 16, 2000? [/INST] Here is the SQLite query to answer to the question: Who was lieutenant governor to the governor that left office on October 16, 2000?: ``` SELECT Lieutenant AS governor FROM table_name_90 WHERE left_office = "october 16, 2000" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_27 (source VARCHAR, date VARCHAR) Question: What is the source on 6 September? [/INST] Here is the SQLite query to answer to the question: What is the source on 6 September?: ``` SELECT source FROM table_name_27 WHERE date = "6 september" ```
[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 (attendance VARCHAR, opponent VARCHAR, result VARCHAR) Question: What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1? [/INST] Here is the SQLite query to answer to the question: What is the number of attendance values for ties having an opponent of Middlesbrough and result of 3-1?: ``` SELECT COUNT(attendance) FROM table_name_2 WHERE opponent = "middlesbrough" AND result = "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_1 (second INTEGER, first VARCHAR, total VARCHAR, premier VARCHAR) Question: What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18? [/INST] Here is the SQLite query to answer to the question: What is the sum of Second, when Total is less than 70, when Premier is less than 20, and when First is greater than 18?: ``` SELECT SUM(second) FROM table_name_1 WHERE total < 70 AND premier < 20 AND first > 18 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2385460_1 (stops VARCHAR, stations VARCHAR) Question: Name the stops for stations 36 [/INST] Here is the SQLite query to answer to the question: Name the stops for stations 36: ``` SELECT stops FROM table_2385460_1 WHERE stations = 36 ```
[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 (country VARCHAR, mountain VARCHAR, height__m_ VARCHAR, range VARCHAR) Question: Which Country has a Height (m) larger than 4100, and a Range of arsi mountains, and a Mountain of bada? [/INST] Here is the SQLite query to answer to the question: Which Country has a Height (m) larger than 4100, and a Range of arsi mountains, and a Mountain of bada?: ``` SELECT country FROM table_name_15 WHERE height__m_ > 4100 AND range = "arsi mountains" AND mountain = "bada" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_45 (round_4 VARCHAR, round_1 VARCHAR, round_2 VARCHAR) Question: Round 4 for larger than 19 Round 1 and a 27 Round 2? [/INST] Here is the SQLite query to answer to the question: Round 4 for larger than 19 Round 1 and a 27 Round 2?: ``` SELECT round_4 FROM table_name_45 WHERE round_1 > 19 AND round_2 = "27" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17311797_10 (score VARCHAR, game VARCHAR) Question: What was the score in game 81? [/INST] Here is the SQLite query to answer to the question: What was the score in game 81?: ``` SELECT score FROM table_17311797_10 WHERE game = 81 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1140073_2 (race VARCHAR, location VARCHAR) Question: Which race is located in kyalami? [/INST] Here is the SQLite query to answer to the question: Which race is located in kyalami?: ``` SELECT race FROM table_1140073_2 WHERE location = "Kyalami" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25642873_2 (safeties INTEGER) Question: What is the smallest number of safeties? [/INST] Here is the SQLite query to answer to the question: What is the smallest number of safeties? : ``` SELECT MIN(safeties) FROM table_25642873_2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11274401_3 (timeslot VARCHAR, air_date VARCHAR) Question: What was the timeslot for the episode that aired on May 12, 2009? [/INST] Here is the SQLite query to answer to the question: What was the timeslot for the episode that aired on May 12, 2009?: ``` SELECT timeslot FROM table_11274401_3 WHERE air_date = "May 12, 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_19 (country VARCHAR, supermarkets VARCHAR) Question: What country has 50 supermarkets? [/INST] Here is the SQLite query to answer to the question: What country has 50 supermarkets?: ``` SELECT country FROM table_name_19 WHERE supermarkets = "50" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23851574_2 (name VARCHAR, nationality_sponsors VARCHAR) Question: Which telescopes were sponsored by or originated in Belgium? [/INST] Here is the SQLite query to answer to the question: Which telescopes were sponsored by or originated in Belgium?: ``` SELECT name FROM table_23851574_2 WHERE nationality_sponsors = "Belgium" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12338595_1 (swimsuit VARCHAR, state VARCHAR) Question: What swimsuit score did the state of Virginia contestant achieve? [/INST] Here is the SQLite query to answer to the question: What swimsuit score did the state of Virginia contestant achieve?: ``` SELECT COUNT(swimsuit) FROM table_12338595_1 WHERE state = "Virginia" ```
[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 (type VARCHAR, elected VARCHAR) Question: What type had an election day in 1980 [/INST] Here is the SQLite query to answer to the question: What type had an election day in 1980: ``` SELECT type FROM table_1602620_1 WHERE elected = 1980 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21761882_4 (date VARCHAR, week VARCHAR) Question: What was the date of the game in week 3? [/INST] Here is the SQLite query to answer to the question: What was the date of the game in week 3?: ``` SELECT date FROM table_21761882_4 WHERE week = 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_11 (score VARCHAR, date VARCHAR) Question: What's the score on December 12, 1998? [/INST] Here is the SQLite query to answer to the question: What's the score on December 12, 1998?: ``` SELECT score FROM table_name_11 WHERE date = "december 12, 1998" ```
[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 (peak_position VARCHAR, date VARCHAR) Question: Which Peak Position has a Date of 10 june 1998? [/INST] Here is the SQLite query to answer to the question: Which Peak Position has a Date of 10 june 1998?: ``` SELECT peak_position FROM table_name_21 WHERE date = "10 june 1998" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_29 (start INTEGER, pens VARCHAR, conv VARCHAR, tries VARCHAR) Question: What is the largest start for a player with 14 conv, 10 tries and more than 22 pens? [/INST] Here is the SQLite query to answer to the question: What is the largest start for a player with 14 conv, 10 tries and more than 22 pens?: ``` SELECT MAX(start) FROM table_name_29 WHERE conv = 14 AND tries = 10 AND pens > 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_5 (method VARCHAR, time VARCHAR) Question: what is the method when the time is 0:51? [/INST] Here is the SQLite query to answer to the question: what is the method when the time is 0:51?: ``` SELECT method FROM table_name_5 WHERE time = "0:51" ```