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_2562572_22 (dominant_religion__2002_ VARCHAR, cyrillic_name_other_names VARCHAR) Question: Name the dominant religion for станишић [/INST] Here is the SQLite query to answer to the question: Name the dominant religion for станишић: ``` SELECT dominant_religion__2002_ FROM table_2562572_22 WHERE cyrillic_name_other_names = "Станишић" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27734769_9 (high_rebounds VARCHAR, team VARCHAR) Question: Who did the high rebounds for the team Minnesota? [/INST] Here is the SQLite query to answer to the question: Who did the high rebounds for the team Minnesota?: ``` SELECT high_rebounds FROM table_27734769_9 WHERE team = "Minnesota" ```
[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 (year VARCHAR, nominee VARCHAR) Question: In what year was Martin Sheen nominated? [/INST] Here is the SQLite query to answer to the question: In what year was Martin Sheen nominated?: ``` SELECT year FROM table_name_3 WHERE nominee = "martin sheen" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25711913_2 (field_goals VARCHAR, position VARCHAR) Question: How many numbers were recorded on the fields goals of the Left End player? [/INST] Here is the SQLite query to answer to the question: How many numbers were recorded on the fields goals of the Left End player?: ``` SELECT COUNT(field_goals) FROM table_25711913_2 WHERE position = "Left end" ```
[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 (country VARCHAR, to_par VARCHAR) Question: What is the country for the player who had a To Par of +4? [/INST] Here is the SQLite query to answer to the question: What is the country for the player who had a To Par of +4?: ``` SELECT country FROM table_name_76 WHERE to_par = "+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_64 (released VARCHAR, dvd_name VARCHAR) Question: What was escape to river cottage released? [/INST] Here is the SQLite query to answer to the question: What was escape to river cottage released?: ``` SELECT released FROM table_name_64 WHERE dvd_name = "escape to river cottage" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_79 (lost INTEGER, name VARCHAR, played VARCHAR) Question: Which Lost is the lowest one that has a Name of esc holzkirchen, and Played smaller than 14? [/INST] Here is the SQLite query to answer to the question: Which Lost is the lowest one that has a Name of esc holzkirchen, and Played smaller than 14?: ``` SELECT MIN(lost) FROM table_name_79 WHERE name = "esc holzkirchen" AND played < 14 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23423_2 (deaths_per_year VARCHAR, life_expectancy_females VARCHAR) Question: How many deaths per year have 66.3 as the life expectancy females? [/INST] Here is the SQLite query to answer to the question: How many deaths per year have 66.3 as the life expectancy females?: ``` SELECT deaths_per_year FROM table_23423_2 WHERE life_expectancy_females = "66.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_96 (wins INTEGER, losses VARCHAR) Question: What is the lowest amount of wins of someone who has 2 losses? [/INST] Here is the SQLite query to answer to the question: What is the lowest amount of wins of someone who has 2 losses?: ``` SELECT MIN(wins) FROM table_name_96 WHERE losses = 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_39 (nationality VARCHAR, date VARCHAR) Question: Which Nationality has a Date of 8 may 1942? [/INST] Here is the SQLite query to answer to the question: Which Nationality has a Date of 8 may 1942?: ``` SELECT nationality FROM table_name_39 WHERE date = "8 may 1942" ```
[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 (country VARCHAR, player VARCHAR) Question: What Country is Rocco Mediate from? [/INST] Here is the SQLite query to answer to the question: What Country is Rocco Mediate from?: ``` SELECT country FROM table_name_49 WHERE player = "rocco mediate" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE mill (architect_id VARCHAR); CREATE TABLE architect (id VARCHAR, name VARCHAR, gender VARCHAR); CREATE TABLE bridge (architect_id VARCHAR) Question: What are the ids, names and genders of the architects who built two bridges or one mill? [/INST] Here is the SQLite query to answer to the question: What are the ids, names and genders of the architects who built two bridges or one mill?: ``` SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN bridge AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 2 UNION SELECT T1.id, T1.name, T1.gender FROM architect AS T1 JOIN mill AS T2 ON T1.id = T2.architect_id GROUP BY T1.id HAVING COUNT(*) = 1 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26982362_2 (title VARCHAR, original_airdate VARCHAR) Question: What is the title of the episode whose original airdate is April 23, 2010? [/INST] Here is the SQLite query to answer to the question: What is the title of the episode whose original airdate is April 23, 2010?: ``` SELECT title FROM table_26982362_2 WHERE original_airdate = "April 23, 2010" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_62 (outgoing_manager VARCHAR, replaced_by VARCHAR) Question: What is the name of the manager that was replaced by Michael Oenning? [/INST] Here is the SQLite query to answer to the question: What is the name of the manager that was replaced by Michael Oenning?: ``` SELECT outgoing_manager FROM table_name_62 WHERE replaced_by = "michael oenning" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11963601_11 (series VARCHAR, game VARCHAR) Question: What was the series count at for game 5? [/INST] Here is the SQLite query to answer to the question: What was the series count at for game 5? : ``` SELECT series FROM table_11963601_11 WHERE game = 5 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_83 (number_of_dances INTEGER, place VARCHAR, average VARCHAR) Question: What is the lowest number of dances with a less than 2 place and an average smaller than 27.5? [/INST] Here is the SQLite query to answer to the question: What is the lowest number of dances with a less than 2 place and an average smaller than 27.5?: ``` SELECT MIN(number_of_dances) FROM table_name_83 WHERE place < 2 AND average < 27.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_26 (year_introduced INTEGER, memory__gb_ VARCHAR) Question: Which Year Introduced has a Memory (GB) of 0.125–2? [/INST] Here is the SQLite query to answer to the question: Which Year Introduced has a Memory (GB) of 0.125–2?: ``` SELECT MAX(year_introduced) FROM table_name_26 WHERE memory__gb_ = "0.125–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_6 (away_team VARCHAR, home_team VARCHAR) Question: What is the away team score when Home team is fitzroy? [/INST] Here is the SQLite query to answer to the question: What is the away team score when Home team is fitzroy?: ``` SELECT away_team AS score FROM table_name_6 WHERE home_team = "fitzroy" ```
[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 (location VARCHAR, year INTEGER) Question: What was the location for a year later than 2012? [/INST] Here is the SQLite query to answer to the question: What was the location for a year later than 2012?: ``` SELECT location FROM table_name_82 WHERE year > 2012 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_30 (opponent VARCHAR, attendance VARCHAR) Question: Who was the opponent in the game that had an attendance of 60,066? [/INST] Here is the SQLite query to answer to the question: Who was the opponent in the game that had an attendance of 60,066?: ``` SELECT opponent FROM table_name_30 WHERE attendance = "60,066" ```
[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 (bask VARCHAR, indoor_track VARCHAR, school VARCHAR) Question: What is the basketball status for Valparaiso who has an indoor track status of yes? [/INST] Here is the SQLite query to answer to the question: What is the basketball status for Valparaiso who has an indoor track status of yes?: ``` SELECT bask FROM table_name_69 WHERE indoor_track = "yes" AND school = "valparaiso" ```
[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 (rank INTEGER, player VARCHAR) Question: Which Rank has a Player of matt ruth? [/INST] Here is the SQLite query to answer to the question: Which Rank has a Player of matt ruth?: ``` SELECT SUM(rank) FROM table_name_62 WHERE player = "matt ruth" ```
[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 (city_location VARCHAR, pole_position VARCHAR, winning_driver VARCHAR) Question: Where did Rick Mears win, after starting in Pole Position? [/INST] Here is the SQLite query to answer to the question: Where did Rick Mears win, after starting in Pole Position?: ``` SELECT city_location FROM table_name_70 WHERE pole_position = "rick mears" AND winning_driver = "rick mears" ```
[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 VARCHAR, championship VARCHAR) Question: What is Date, when Championship is Mackay? [/INST] Here is the SQLite query to answer to the question: What is Date, when Championship is Mackay?: ``` SELECT date FROM table_name_72 WHERE championship = "mackay" ```
[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 (Severe INTEGER, strongest_storm VARCHAR, tropical_lows VARCHAR) Question: What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows. [/INST] Here is the SQLite query to answer to the question: What is the least number of tropical cyclones when the strongest storm was Tiffany and less than 10 tropical lows.: ``` SELECT MIN(Severe) AS tropical_cyclones FROM table_name_88 WHERE strongest_storm = "tiffany" AND tropical_lows > 10 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_48 (competition VARCHAR, away_result VARCHAR, season VARCHAR) Question: Away result of 0–3, and a Season of 1969-70 is what competition? [/INST] Here is the SQLite query to answer to the question: Away result of 0–3, and a Season of 1969-70 is what competition?: ``` SELECT competition FROM table_name_48 WHERE away_result = "0–3" AND season = "1969-70" ```
[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 (version VARCHAR, genre VARCHAR, title VARCHAR) Question: What is Version, when Genre is "Action", and when Title is "Hairball"? [/INST] Here is the SQLite query to answer to the question: What is Version, when Genre is "Action", and when Title is "Hairball"?: ``` SELECT version FROM table_name_39 WHERE genre = "action" AND title = "hairball" ```
[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 (season INTEGER, coach VARCHAR, actual_adjusted_record VARCHAR) Question: What is the average Season for coach Fisher, and an actual adjusted record of 0–11? [/INST] Here is the SQLite query to answer to the question: What is the average Season for coach Fisher, and an actual adjusted record of 0–11?: ``` SELECT AVG(season) FROM table_name_45 WHERE coach = "fisher" AND actual_adjusted_record = "0–11" ```
[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 (away_team VARCHAR, footytab_winner VARCHAR) Question: What is the Away team when the FootyTAB winner was st. george? [/INST] Here is the SQLite query to answer to the question: What is the Away team when the FootyTAB winner was st. george?: ``` SELECT away_team FROM table_name_13 WHERE footytab_winner = "st. george" ```
[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 (pick__number VARCHAR, player VARCHAR) Question: What is the Pick # for brent meeke? [/INST] Here is the SQLite query to answer to the question: What is the Pick # for brent meeke?: ``` SELECT pick__number FROM table_name_45 WHERE player = "brent meeke" ```
[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 (result VARCHAR, city VARCHAR) Question: What was the result of the game in halifax? [/INST] Here is the SQLite query to answer to the question: What was the result of the game in halifax?: ``` SELECT result FROM table_name_34 WHERE city = "halifax" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10818465_1 (ga_date VARCHAR, processor_frequency VARCHAR) Question: What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have? [/INST] Here is the SQLite query to answer to the question: What ga date do the models with 1.0, 1.2, 1.4ghz processor frequencies have?: ``` SELECT ga_date FROM table_10818465_1 WHERE processor_frequency = "1.0, 1.2, 1.4GHz" ```
[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 (attendance VARCHAR, record VARCHAR) Question: Name the attendance with record of 34-51 [/INST] Here is the SQLite query to answer to the question: Name the attendance with record of 34-51: ``` SELECT attendance FROM table_name_61 WHERE record = "34-51" ```
[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 (result VARCHAR, attendance VARCHAR) Question: What are the results for the game with 82,113 attending? [/INST] Here is the SQLite query to answer to the question: What are the results for the game with 82,113 attending?: ``` SELECT result FROM table_name_41 WHERE attendance = "82,113" ```
[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 (played INTEGER, first_game VARCHAR, drawn VARCHAR) Question: What is the average number of games played associated with a first game in 1997 and over 0 games drawn? [/INST] Here is the SQLite query to answer to the question: What is the average number of games played associated with a first game in 1997 and over 0 games drawn?: ``` SELECT AVG(played) FROM table_name_48 WHERE first_game = 1997 AND drawn > 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_64 (score VARCHAR, home VARCHAR) Question: Home of kings had what score? [/INST] Here is the SQLite query to answer to the question: Home of kings had what score?: ``` SELECT score FROM table_name_64 WHERE home = "kings" ```
[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 (top_10 VARCHAR, starts VARCHAR, avg_finish VARCHAR) Question: How many top 10s belong to the team with a start of 7 and an average finish less than 16.7? [/INST] Here is the SQLite query to answer to the question: How many top 10s belong to the team with a start of 7 and an average finish less than 16.7?: ``` SELECT COUNT(top_10) FROM table_name_69 WHERE starts = 7 AND avg_finish < 16.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_81 (Id VARCHAR) Question: What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2? [/INST] Here is the SQLite query to answer to the question: What is the highest value for 1970, when the value for 1960 is less than 61.9, when the value for 1980 is less than 3.8, when the value for 1990 is 3.3, and when the value for 2000 is greater than 3.2?: ``` SELECT MAX(1970) FROM table_name_81 WHERE 1960 < 61.9 AND 1980 < 3.8 AND 1990 = 3.3 AND 2000 > 3.2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11236195_2 (losingteam VARCHAR, score VARCHAR) Question: Which losing team had a score of 24-12? [/INST] Here is the SQLite query to answer to the question: Which losing team had a score of 24-12?: ``` SELECT losingteam FROM table_11236195_2 WHERE score = "24-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_95 (year INTEGER, round VARCHAR, winner VARCHAR) Question: What year did Ivanovic win with Ivanovic greater than 4 and round of R16? [/INST] Here is the SQLite query to answer to the question: What year did Ivanovic win with Ivanovic greater than 4 and round of R16?: ``` SELECT SUM(year) FROM table_name_95 WHERE winner = "ivanovic" AND "ivanovic" > 4 AND round = "r16" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2186447_1 (opponents VARCHAR, score VARCHAR) Question: Who was playing when the score was 5–7, 6–7 (4–7)? [/INST] Here is the SQLite query to answer to the question: Who was playing when the score was 5–7, 6–7 (4–7)?: ``` SELECT opponents FROM table_2186447_1 WHERE score = "5–7, 6–7 (4–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_42 (competition VARCHAR, date VARCHAR) Question: Which competition was on August 11, 1996? [/INST] Here is the SQLite query to answer to the question: Which competition was on August 11, 1996?: ``` SELECT competition FROM table_name_42 WHERE date = "august 11, 1996" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (date VARCHAR, venue VARCHAR) Question: what is the date when the venue is junction oval? [/INST] Here is the SQLite query to answer to the question: what is the date when the venue is junction oval?: ``` SELECT date FROM table_name_47 WHERE venue = "junction oval" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_99 (first_elected INTEGER, district VARCHAR, committee VARCHAR) Question: What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters? [/INST] Here is the SQLite query to answer to the question: What is the Highest first elected year that has a district of 06.0 6, and a committee of economic matters?: ``` SELECT MAX(first_elected) FROM table_name_99 WHERE district = "06.0 6" AND committee = "economic matters" ```
[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 (general_election VARCHAR, _number_of_seats_won VARCHAR, _number_of_candidates VARCHAR) Question: How many general elections that have won smaller than 23 with candidates larger than 108? [/INST] Here is the SQLite query to answer to the question: How many general elections that have won smaller than 23 with candidates larger than 108?: ``` SELECT COUNT(general_election) FROM table_name_95 WHERE _number_of_seats_won < 23 AND _number_of_candidates > 108 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14598_5 (s_hindu VARCHAR, buddhist VARCHAR) Question: What is the data point for s hindu where the buddhist data point is 73.0%? [/INST] Here is the SQLite query to answer to the question: What is the data point for s hindu where the buddhist data point is 73.0%?: ``` SELECT COUNT(s_hindu) FROM table_14598_5 WHERE buddhist = "73.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_87 (rank INTEGER, points VARCHAR, team VARCHAR, name VARCHAR) Question: What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points? [/INST] Here is the SQLite query to answer to the question: What's the rank of Igor Rakočević of Tau Cerámica with more than 377 points?: ``` SELECT SUM(rank) FROM table_name_87 WHERE team = "tau cerámica" AND name = "igor rakočević" AND points > 377 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_30 (week_4_sept_21 VARCHAR, week_10_nov_2 VARCHAR) Question: What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)? [/INST] Here is the SQLite query to answer to the question: What is the week 4 opponent for the year with a week 10 opponent of Michigan State (8-2)?: ``` SELECT week_4_sept_21 FROM table_name_30 WHERE week_10_nov_2 = "michigan state (8-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_22 (number VARCHAR, name VARCHAR) Question: What number is Tony Dixon? [/INST] Here is the SQLite query to answer to the question: What number is Tony Dixon?: ``` SELECT number FROM table_name_22 WHERE name = "tony dixon" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_31 (vuelta_wins VARCHAR, country VARCHAR, points VARCHAR) Question: How many times is the country ireland and points more than 4? [/INST] Here is the SQLite query to answer to the question: How many times is the country ireland and points more than 4?: ``` SELECT COUNT(vuelta_wins) FROM table_name_31 WHERE country = "ireland" AND points > 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_34 (college VARCHAR, pick VARCHAR, player VARCHAR) Question: What is College, when Pick is less than 145, and when Player is Jeff Wilkins? [/INST] Here is the SQLite query to answer to the question: What is College, when Pick is less than 145, and when Player is Jeff Wilkins?: ``` SELECT college FROM table_name_34 WHERE pick < 145 AND player = "jeff wilkins" ```
[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 (player VARCHAR, score VARCHAR) Question: Who is the player with a 70-75=145 score? [/INST] Here is the SQLite query to answer to the question: Who is the player with a 70-75=145 score?: ``` SELECT player FROM table_name_62 WHERE score = 70 - 75 = 145 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15869204_7 (team VARCHAR, date VARCHAR) Question: How many teams are listed for February 18? [/INST] Here is the SQLite query to answer to the question: How many teams are listed for February 18?: ``` SELECT COUNT(team) FROM table_15869204_7 WHERE date = "February 18" ```
[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 (date VARCHAR, away_team VARCHAR) Question: What date did Carlton play as the away team? [/INST] Here is the SQLite query to answer to the question: What date did Carlton play as the away team?: ``` SELECT date FROM table_name_54 WHERE away_team = "carlton" ```
[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 (production_code INTEGER, series__number VARCHAR) Question: What was the lowest production code value in series #10? [/INST] Here is the SQLite query to answer to the question: What was the lowest production code value in series #10?: ``` SELECT MIN(production_code) FROM table_name_14 WHERE series__number = 10 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_90 (year INTEGER, game VARCHAR) Question: What is the earliest year that had the Legend of Zelda: Twilight Princess game? [/INST] Here is the SQLite query to answer to the question: What is the earliest year that had the Legend of Zelda: Twilight Princess game?: ``` SELECT MIN(year) FROM table_name_90 WHERE game = "the legend of zelda: twilight princess" ```
[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 (week VARCHAR, date VARCHAR) Question: What week was it on November 19, 1995? [/INST] Here is the SQLite query to answer to the question: What week was it on November 19, 1995?: ``` SELECT week FROM table_name_87 WHERE date = "november 19, 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_92 (score VARCHAR, january INTEGER) Question: What was the score in January that was less than 4? [/INST] Here is the SQLite query to answer to the question: What was the score in January that was less than 4?: ``` SELECT score FROM table_name_92 WHERE january < 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_42 (floors VARCHAR, location VARCHAR) Question: How many floors are in little Italy? [/INST] Here is the SQLite query to answer to the question: How many floors are in little Italy?: ``` SELECT COUNT(floors) FROM table_name_42 WHERE location = "little italy" ```
[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 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR) Question: Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain? [/INST] Here is the SQLite query to answer to the question: Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain?: ``` SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341718_44 (result VARCHAR, incumbent VARCHAR) Question: What was the result when Ray Roberts was elected? [/INST] Here is the SQLite query to answer to the question: What was the result when Ray Roberts was elected?: ``` SELECT result FROM table_1341718_44 WHERE incumbent = "Ray Roberts" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE club (clubid VARCHAR, clubname VARCHAR); CREATE TABLE student (age INTEGER, stuid VARCHAR); CREATE TABLE member_of_club (clubid VARCHAR, stuid VARCHAR) Question: Find the average age of members of the club "Hopkins Student Enterprises". [/INST] Here is the SQLite query to answer to the question: Find the average age of members of the club "Hopkins Student Enterprises".: ``` SELECT AVG(t3.age) FROM club AS t1 JOIN member_of_club AS t2 ON t1.clubid = t2.clubid JOIN student AS t3 ON t2.stuid = t3.stuid WHERE t1.clubname = "Hopkins Student Enterprises" ```
[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 (date VARCHAR, goal VARCHAR) Question: On what date did Goal 24 take place? [/INST] Here is the SQLite query to answer to the question: On what date did Goal 24 take place?: ``` SELECT date FROM table_name_76 WHERE goal = 24 ```
[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 (song VARCHAR, artist VARCHAR) Question: What's the song of artist liam reilly? [/INST] Here is the SQLite query to answer to the question: What's the song of artist liam reilly?: ``` SELECT song FROM table_name_8 WHERE artist = "liam reilly" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2370579_1 (prod__number INTEGER, episode__number VARCHAR) Question: What is the production number for episode 23? [/INST] Here is the SQLite query to answer to the question: What is the production number for episode 23?: ``` SELECT MIN(prod__number) FROM table_2370579_1 WHERE episode__number = 23 ```
[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 (attempts INTEGER, net_yards VARCHAR, touchdowns VARCHAR) Question: What are the highest attempts that have net yards less than 631, and 2 for the touchdowns? [/INST] Here is the SQLite query to answer to the question: What are the highest attempts that have net yards less than 631, and 2 for the touchdowns?: ``` SELECT MAX(attempts) FROM table_name_53 WHERE net_yards < 631 AND touchdowns = 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_81 (area__km_2__ INTEGER, location VARCHAR, area__sq_mi_ VARCHAR) Question: What is the area located in Rhode Island with more than 38 sq mi area? [/INST] Here is the SQLite query to answer to the question: What is the area located in Rhode Island with more than 38 sq mi area?: ``` SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = "rhode island" AND area__sq_mi_ > 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_11 (rank INTEGER, earnings___$__ INTEGER) Question: What is the lowest rank for a player earning $71,979? [/INST] Here is the SQLite query to answer to the question: What is the lowest rank for a player earning $71,979?: ``` SELECT MIN(rank) FROM table_name_11 WHERE earnings___$__ < 71 OFFSET 979 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2610582_7 (frequency VARCHAR, callsign VARCHAR) Question: What frequency is dxec-fm? [/INST] Here is the SQLite query to answer to the question: What frequency is dxec-fm?: ``` SELECT frequency FROM table_2610582_7 WHERE callsign = "DXEC-FM" ```
[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 (venue VARCHAR, competition VARCHAR, date VARCHAR) Question: What venue did the 2000 tiger cup take place at on November 10, 2000? [/INST] Here is the SQLite query to answer to the question: What venue did the 2000 tiger cup take place at on November 10, 2000?: ``` SELECT venue FROM table_name_29 WHERE competition = "2000 tiger cup" AND date = "november 10, 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_45 (goal INTEGER, competition VARCHAR) Question: What is the smallest goal during the 2006 fifa world cup qualification competition? [/INST] Here is the SQLite query to answer to the question: What is the smallest goal during the 2006 fifa world cup qualification competition?: ``` SELECT MIN(goal) FROM table_name_45 WHERE competition = "2006 fifa world cup qualification" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23248940_7 (record VARCHAR, team VARCHAR) Question: Name the record for milwaukee [/INST] Here is the SQLite query to answer to the question: Name the record for milwaukee: ``` SELECT record FROM table_23248940_7 WHERE team = "Milwaukee" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_42 (year INTEGER, author VARCHAR) Question: what is the earliest year when the author is reki kawahara? [/INST] Here is the SQLite query to answer to the question: what is the earliest year when the author is reki kawahara?: ``` SELECT MIN(year) FROM table_name_42 WHERE author = "reki kawahara" ```
[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 (position VARCHAR, round VARCHAR, pick VARCHAR, college VARCHAR) Question: Which Notre Dame position has a pick lower than 5 and round 7? [/INST] Here is the SQLite query to answer to the question: Which Notre Dame position has a pick lower than 5 and round 7?: ``` SELECT position FROM table_name_88 WHERE pick < 5 AND college = "notre dame" 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_77 (live VARCHAR, share INTEGER, viewers_ INTEGER) Question: What is the sum of the live viewers for episodes with share over 5? [/INST] Here is the SQLite query to answer to the question: What is the sum of the live viewers for episodes with share over 5?: ``` SELECT SUM(viewers_)[live] AS __m_ FROM table_name_77 WHERE share > 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_82 (home VARCHAR, date VARCHAR) Question: Which Home is on january 11? [/INST] Here is the SQLite query to answer to the question: Which Home is on january 11?: ``` SELECT home FROM table_name_82 WHERE date = "january 11" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_65 (losses VARCHAR, central_murray VARCHAR, draws VARCHAR) Question: What is the total number of losses of the central murray of tooleybuc manangatang, which has less than 0 draws? [/INST] Here is the SQLite query to answer to the question: What is the total number of losses of the central murray of tooleybuc manangatang, which has less than 0 draws?: ``` SELECT COUNT(losses) FROM table_name_65 WHERE central_murray = "tooleybuc manangatang" AND draws < 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_3 (host_country___countries VARCHAR, year VARCHAR) Question: Who was the host country in 2007? [/INST] Here is the SQLite query to answer to the question: Who was the host country in 2007?: ``` SELECT host_country___countries FROM table_name_3 WHERE year = "2007" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE film_market_estimation (TYPE VARCHAR, YEAR VARCHAR) Question: What are the types of film market estimations in year 1995? [/INST] Here is the SQLite query to answer to the question: What are the types of film market estimations in year 1995?: ``` SELECT TYPE FROM film_market_estimation WHERE YEAR = 1995 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_12159115_3 (series__number VARCHAR, written_by VARCHAR) Question: How many episodes were written only by William N. Fordes? [/INST] Here is the SQLite query to answer to the question: How many episodes were written only by William N. Fordes?: ``` SELECT COUNT(series__number) FROM table_12159115_3 WHERE written_by = "William N. Fordes" ```
[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 (result VARCHAR, round VARCHAR) Question: What is the result the R3 round? [/INST] Here is the SQLite query to answer to the question: What is the result the R3 round?: ``` SELECT result FROM table_name_14 WHERE round = "r3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (time_retired VARCHAR, rider VARCHAR, grid VARCHAR, laps VARCHAR) Question: What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps? [/INST] Here is the SQLite query to answer to the question: What was the time of the race that was on a grid smaller than 9 with jeremy mcwilliams as the rider doing 21 laps?: ``` SELECT time_retired FROM table_name_80 WHERE grid < 9 AND laps = 21 AND rider = "jeremy mcwilliams" ```
[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 (loss INTEGER, name VARCHAR, long VARCHAR) Question: Which Loss has a Name of bullock, chris, and a Long smaller than 36? [/INST] Here is the SQLite query to answer to the question: Which Loss has a Name of bullock, chris, and a Long smaller than 36?: ``` SELECT SUM(loss) FROM table_name_72 WHERE name = "bullock, chris" AND long < 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_32 (nat VARCHAR, type VARCHAR, transfer_fee VARCHAR) Question: What is the type of loan and the transfer fee loan? [/INST] Here is the SQLite query to answer to the question: What is the type of loan and the transfer fee loan?: ``` SELECT nat FROM table_name_32 WHERE type = "loan" AND transfer_fee = "loan" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_47 (venue VARCHAR, home_team VARCHAR) Question: What venue features collingwood as the home side? [/INST] Here is the SQLite query to answer to the question: What venue features collingwood as the home side?: ``` SELECT venue FROM table_name_47 WHERE home_team = "collingwood" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_55 (points INTEGER, place VARCHAR, draw VARCHAR) Question: What is the average of points for 8th place with draw more than 8? [/INST] Here is the SQLite query to answer to the question: What is the average of points for 8th place with draw more than 8?: ``` SELECT AVG(points) FROM table_name_55 WHERE place = "8th" AND draw > 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_27 (winning_driver VARCHAR, constructor VARCHAR) Question: Who is the winning driver that has a construction of brm? [/INST] Here is the SQLite query to answer to the question: Who is the winning driver that has a construction of brm?: ``` SELECT winning_driver FROM table_name_27 WHERE constructor = "brm" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_56 (score VARCHAR, high_points VARCHAR) Question: Which Score has High points of raymond felton (32)? [/INST] Here is the SQLite query to answer to the question: Which Score has High points of raymond felton (32)?: ``` SELECT score FROM table_name_56 WHERE high_points = "raymond felton (32)" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE store_district (store_id VARCHAR); CREATE TABLE district (district_id VARCHAR, city_population VARCHAR); CREATE TABLE store (store_name VARCHAR, store_id VARCHAR) Question: Find all the stores in the district with the most population. [/INST] Here is the SQLite query to answer to the question: Find all the stores in the district with the most population.: ``` SELECT t1.store_name FROM store AS t1 JOIN store_district AS t2 ON t1.store_id = t2.store_id WHERE district_id = (SELECT district_id FROM district ORDER BY city_population 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_name_86 (date VARCHAR, week INTEGER) Question: What was the date of the game played after week 15? [/INST] Here is the SQLite query to answer to the question: What was the date of the game played after week 15?: ``` SELECT date FROM table_name_86 WHERE week > 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_18 (team VARCHAR, home_run VARCHAR) Question: Which team has a Home Run of 27? [/INST] Here is the SQLite query to answer to the question: Which team has a Home Run of 27?: ``` SELECT team FROM table_name_18 WHERE home_run = 27 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_14 (score VARCHAR, december VARCHAR, record VARCHAR) Question: What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3? [/INST] Here is the SQLite query to answer to the question: What's the Score that's got a listing of December that larger than 8 and Record of 25-8-3?: ``` SELECT score FROM table_name_14 WHERE december > 8 AND record = "25-8-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_39 (result_f___a VARCHAR, group_position VARCHAR, opponents VARCHAR) Question: What was the final score agains Dynamo Kyiv, when the group position was 1st? [/INST] Here is the SQLite query to answer to the question: What was the final score agains Dynamo Kyiv, when the group position was 1st?: ``` SELECT result_f___a FROM table_name_39 WHERE group_position = "1st" AND opponents = "dynamo kyiv" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15607589_2 (points_against VARCHAR, date VARCHAR) Question: Name the points against for november 14 [/INST] Here is the SQLite query to answer to the question: Name the points against for november 14: ``` SELECT points_against FROM table_15607589_2 WHERE date = "November 14" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (mascot VARCHAR, enrollment INTEGER) Question: What Mascot has an Enrollment greater than 2,464? [/INST] Here is the SQLite query to answer to the question: What Mascot has an Enrollment greater than 2,464?: ``` SELECT mascot FROM table_name_23 WHERE enrollment > 2 OFFSET 464 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_13498403_1 (barrier INTEGER, trainer VARCHAR) Question: How old is Daniel Morton [/INST] Here is the SQLite query to answer to the question: How old is Daniel Morton: ``` SELECT MAX(barrier) FROM table_13498403_1 WHERE trainer = "Daniel Morton" ```
[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 (game VARCHAR, score VARCHAR, points VARCHAR) Question: How many Games have a Score of 5–4, and Points smaller than 49? [/INST] Here is the SQLite query to answer to the question: How many Games have a Score of 5–4, and Points smaller than 49?: ``` SELECT COUNT(game) FROM table_name_96 WHERE score = "5–4" AND points < 49 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE nomination (Festival_ID VARCHAR, Artwork_ID VARCHAR); CREATE TABLE festival_detail (Festival_Name VARCHAR, Festival_ID VARCHAR); CREATE TABLE artwork (Artwork_ID VARCHAR) Question: Show the ids and names of festivals that have at least two nominations for artworks. [/INST] Here is the SQLite query to answer to the question: Show the ids and names of festivals that have at least two nominations for artworks.: ``` SELECT T1.Festival_ID, T3.Festival_Name FROM nomination AS T1 JOIN artwork AS T2 ON T1.Artwork_ID = T2.Artwork_ID JOIN festival_detail AS T3 ON T1.Festival_ID = T3.Festival_ID GROUP BY T1.Festival_ID HAVING COUNT(*) >= 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_92 (plural VARCHAR, plural_gender VARCHAR, meaning VARCHAR) Question: What is the plural if the meaning is python and the plural gender is n? [/INST] Here is the SQLite query to answer to the question: What is the plural if the meaning is python and the plural gender is n?: ``` SELECT plural FROM table_name_92 WHERE plural_gender = "n" AND meaning = "python" ```
[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 (rank VARCHAR, reb_avg INTEGER) Question: How many ranks have a rebound average smaller than 6.1? [/INST] Here is the SQLite query to answer to the question: How many ranks have a rebound average smaller than 6.1?: ``` SELECT COUNT(rank) FROM table_name_27 WHERE reb_avg < 6.1 ```