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_14 (championship INTEGER, league_cup INTEGER) Question: Which Championship has a League Cup smaller than 0? [/INST] Here is the SQLite query to answer to the question: Which Championship has a League Cup smaller than 0?: ``` SELECT AVG(championship) FROM table_name_14 WHERE league_cup < 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_61 (build_date VARCHAR, prr_class VARCHAR) Question: What is the build date of the model with a PRR Class of brs24? [/INST] Here is the SQLite query to answer to the question: What is the build date of the model with a PRR Class of brs24?: ``` SELECT build_date FROM table_name_61 WHERE prr_class = "brs24" ```
[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 (high_assists VARCHAR, date VARCHAR) Question: WHAT IS THE HIGH ASSISTS ON NOVEMBER 24? [/INST] Here is the SQLite query to answer to the question: WHAT IS THE HIGH ASSISTS ON NOVEMBER 24?: ``` SELECT high_assists FROM table_name_21 WHERE date = "november 24" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2570269_3 (cast VARCHAR, episode__number VARCHAR) Question: Who are the cast members of episode 3-04? [/INST] Here is the SQLite query to answer to the question: Who are the cast members of episode 3-04?: ``` SELECT cast FROM table_2570269_3 WHERE episode__number = "3-04" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27003186_3 (no_party_preference VARCHAR, republican VARCHAR) Question: What is the no party preference when republican is 45.3%? [/INST] Here is the SQLite query to answer to the question: What is the no party preference when republican is 45.3%?: ``` SELECT no_party_preference FROM table_27003186_3 WHERE republican = "45.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_85 (total_congregations VARCHAR, _percentage_lds VARCHAR, population VARCHAR) Question: What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275? [/INST] Here is the SQLite query to answer to the question: What is the total number of Total Congregations, when % LDS is 0.54%, and when Population is greater than 105,275?: ``` SELECT COUNT(total_congregations) FROM table_name_85 WHERE _percentage_lds = "0.54%" AND population > 105 OFFSET 275 ```
[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_territory VARCHAR, imed_avicenna_listed VARCHAR, established VARCHAR) Question: What country has a medical school established in 1969 with both an IMED and avicenna? [/INST] Here is the SQLite query to answer to the question: What country has a medical school established in 1969 with both an IMED and avicenna?: ``` SELECT country_territory FROM table_name_15 WHERE imed_avicenna_listed = "both" AND established = 1969 ```
[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 (record VARCHAR, date VARCHAR) Question: What was the record on April 1? [/INST] Here is the SQLite query to answer to the question: What was the record on April 1?: ``` SELECT record FROM table_name_44 WHERE date = "april 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_41 (visiting_team VARCHAR, date VARCHAR) Question: Who was the visiting team that played on September 15? [/INST] Here is the SQLite query to answer to the question: Who was the visiting team that played on September 15?: ``` SELECT visiting_team FROM table_name_41 WHERE date = "september 15" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25386974_1 (f_laps VARCHAR, series VARCHAR) Question: How many f/laps did Pedro Nunes have when he was at the gp3 series? [/INST] Here is the SQLite query to answer to the question: How many f/laps did Pedro Nunes have when he was at the gp3 series?: ``` SELECT f_laps FROM table_25386974_1 WHERE series = "GP3 series" ```
[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 (away_team VARCHAR, home_team VARCHAR) Question: What did the away team score when playing against fitzroy? [/INST] Here is the SQLite query to answer to the question: What did the away team score when playing against fitzroy?: ``` SELECT away_team AS score FROM table_name_62 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_28 (start_date VARCHAR, party VARCHAR) Question: Name the start date with party of pd [/INST] Here is the SQLite query to answer to the question: Name the start date with party of pd: ``` SELECT start_date FROM table_name_28 WHERE party = "pd" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (captain VARCHAR, alternate__1_ VARCHAR) Question: Which captain has Gintare Karpaviciute as an alternate? [/INST] Here is the SQLite query to answer to the question: Which captain has Gintare Karpaviciute as an alternate?: ``` SELECT captain FROM table_name_33 WHERE alternate__1_ = "gintare karpaviciute" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_40 (date VARCHAR, description VARCHAR) Question: What is the date of the British Rail class 111 tslrb description? [/INST] Here is the SQLite query to answer to the question: What is the date of the British Rail class 111 tslrb description?: ``` SELECT date FROM table_name_40 WHERE description = "british rail class 111 tslrb" ```
[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 (overall INTEGER, school_club_team VARCHAR, round VARCHAR) Question: What is the highest overall rank of any Tennessee State player drafted before round 10? [/INST] Here is the SQLite query to answer to the question: What is the highest overall rank of any Tennessee State player drafted before round 10?: ``` SELECT MIN(overall) FROM table_name_48 WHERE school_club_team = "tennessee state" AND round < 10 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_38 (call_sign VARCHAR, erp_w INTEGER) Question: What is the call sign for the translator with an ERP W larger than 10? [/INST] Here is the SQLite query to answer to the question: What is the call sign for the translator with an ERP W larger than 10?: ``` SELECT call_sign FROM table_name_38 WHERE erp_w > 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_46 (date VARCHAR, against VARCHAR, surface VARCHAR) Question: What's the date that Morocco has an Against along with a surface of hard? [/INST] Here is the SQLite query to answer to the question: What's the date that Morocco has an Against along with a surface of hard?: ``` SELECT date FROM table_name_46 WHERE against = "morocco" AND surface = "hard" ```
[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 (nomination VARCHAR, film_name VARCHAR) Question: Tell me the nomination for peresohla zemlia [/INST] Here is the SQLite query to answer to the question: Tell me the nomination for peresohla zemlia: ``` SELECT nomination FROM table_name_41 WHERE film_name = "peresohla zemlia" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_25604014_9 (directed_by VARCHAR, production_code VARCHAR) Question: Name who directed the production code 1l10 [/INST] Here is the SQLite query to answer to the question: Name who directed the production code 1l10: ``` SELECT directed_by FROM table_25604014_9 WHERE production_code = "1L10" ```
[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, tie_no VARCHAR) Question: Who was the away team for tie number 9? [/INST] Here is the SQLite query to answer to the question: Who was the away team for tie number 9?: ``` SELECT away_team FROM table_name_6 WHERE tie_no = "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_35 (home VARCHAR, visitor VARCHAR) Question: What is the home team of the game with Warriors as the visitor team? [/INST] Here is the SQLite query to answer to the question: What is the home team of the game with Warriors as the visitor team?: ``` SELECT home FROM table_name_35 WHERE visitor = "warriors" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11111116_6 (original_air_date VARCHAR, no_in_series VARCHAR) Question: How many times did episode 79 originally air? [/INST] Here is the SQLite query to answer to the question: How many times did episode 79 originally air? : ``` SELECT COUNT(original_air_date) FROM table_11111116_6 WHERE no_in_series = 79 ```
[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 (country VARCHAR, athlete VARCHAR, notes VARCHAR, rank VARCHAR) Question: what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun? [/INST] Here is the SQLite query to answer to the question: what is the country when the nots is sa/b, the rank is more than 1 and the athlete is zhang xiuyun?: ``` SELECT country FROM table_name_55 WHERE notes = "sa/b" AND rank > 1 AND athlete = "zhang xiuyun" ```
[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 (episodes VARCHAR, japanese_title VARCHAR) Question: What is the total number of episodes for クロサギ? [/INST] Here is the SQLite query to answer to the question: What is the total number of episodes for クロサギ?: ``` SELECT COUNT(episodes) FROM table_name_13 WHERE japanese_title = "クロサギ" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR) Question: What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??= [/INST] Here is the SQLite query to answer to the question: What is the moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=: ``` SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_9 (wheel_arrangement VARCHAR, specification VARCHAR) Question: Which wheel arrangement had a Specification of dl-700? [/INST] Here is the SQLite query to answer to the question: Which wheel arrangement had a Specification of dl-700?: ``` SELECT wheel_arrangement FROM table_name_9 WHERE specification = "dl-700" ```
[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 (college_junior_club_team__league_ VARCHAR, player VARCHAR, round VARCHAR, position VARCHAR, nationality VARCHAR) Question: What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"? [/INST] Here is the SQLite query to answer to the question: What is College/Junior/Club Team (League), when Position is "Defence", when Nationality is "Canada", when Round is less than 5, and when Player is "Josiah Didier"?: ``` SELECT college_junior_club_team__league_ FROM table_name_18 WHERE position = "defence" AND nationality = "canada" AND round < 5 AND player = "josiah didier" ```
[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, venue VARCHAR) Question: Which result's venue was in Rotterdam, Netherlands? [/INST] Here is the SQLite query to answer to the question: Which result's venue was in Rotterdam, Netherlands?: ``` SELECT result FROM table_name_14 WHERE venue = "rotterdam, netherlands" ```
[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 (year INTEGER, best_finish VARCHAR, scoring_average VARCHAR) Question: What is the latest year when the best finish is 2 and the scoring average is less than 71.24? [/INST] Here is the SQLite query to answer to the question: What is the latest year when the best finish is 2 and the scoring average is less than 71.24?: ``` SELECT MAX(year) FROM table_name_51 WHERE best_finish = "2" AND scoring_average < 71.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_96 (nation VARCHAR, silver VARCHAR, total VARCHAR, bronze VARCHAR, gold VARCHAR) Question: What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3? [/INST] Here is the SQLite query to answer to the question: What is the nation when bronze is less than 7, gold is larger than 0, total is larger than 7, and silver is smaller than 3?: ``` SELECT nation FROM table_name_96 WHERE bronze < 7 AND gold > 0 AND total > 7 AND silver < 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_72 (visitor VARCHAR, home VARCHAR, date VARCHAR) Question: Which Visitor has a Home of calgary, and a Date of april 17? [/INST] Here is the SQLite query to answer to the question: Which Visitor has a Home of calgary, and a Date of april 17?: ``` SELECT visitor FROM table_name_72 WHERE home = "calgary" AND date = "april 17" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_80 (artist_s_ VARCHAR, book_title VARCHAR) Question: what artist has a book called cyberella [/INST] Here is the SQLite query to answer to the question: what artist has a book called cyberella: ``` SELECT artist_s_ FROM table_name_80 WHERE book_title = "cyberella" ```
[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 (december INTEGER, game VARCHAR) Question: What is the average December, when Game is "36"? [/INST] Here is the SQLite query to answer to the question: What is the average December, when Game is "36"?: ``` SELECT AVG(december) FROM table_name_39 WHERE game = 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_36 (date VARCHAR, points VARCHAR, game__number VARCHAR) Question: Which Date has Points smaller than 85 and a Game # of 74? [/INST] Here is the SQLite query to answer to the question: Which Date has Points smaller than 85 and a Game # of 74?: ``` SELECT date FROM table_name_36 WHERE points < 85 AND game__number = 74 ```
[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 (model_name VARCHAR, displacement__cm³_ VARCHAR, engine_code VARCHAR) Question: Which model has a 2521 cm displacement and b5254 t2 engine? [/INST] Here is the SQLite query to answer to the question: Which model has a 2521 cm displacement and b5254 t2 engine?: ``` SELECT model_name FROM table_name_45 WHERE displacement__cm³_ = 2521 AND engine_code = "b5254 t2" ```
[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 (home_team VARCHAR) Question: What is fitzroy's score as the home team? [/INST] Here is the SQLite query to answer to the question: What is fitzroy's score as the home team?: ``` SELECT home_team AS score FROM table_name_49 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_6 (attendance INTEGER, date VARCHAR) Question: On April 28, what was the average number of people attending? [/INST] Here is the SQLite query to answer to the question: On April 28, what was the average number of people attending?: ``` SELECT AVG(attendance) FROM table_name_6 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_11336756_6 (junctions VARCHAR, remarks VARCHAR) Question: Which junctions have "replaced by bsi-35" listed in their remarks section? [/INST] Here is the SQLite query to answer to the question: Which junctions have "replaced by bsi-35" listed in their remarks section?: ``` SELECT junctions FROM table_11336756_6 WHERE remarks = "Replaced by BSI-35" ```
[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 (district VARCHAR, name VARCHAR) Question: What district has abhayapuri south as the name? [/INST] Here is the SQLite query to answer to the question: What district has abhayapuri south as the name?: ``` SELECT district FROM table_name_41 WHERE name = "abhayapuri south" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (state VARCHAR, peak_population__year_ VARCHAR) Question: what is the state when the peak population (year) is 134995 (1950)? [/INST] Here is the SQLite query to answer to the question: what is the state when the peak population (year) is 134995 (1950)?: ``` SELECT state FROM table_name_33 WHERE peak_population__year_ = "134995 (1950)" ```
[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 (yards INTEGER, rating VARCHAR, games VARCHAR) Question: What is the highest yards for a rating larger than 52.8 and more than 13 games? [/INST] Here is the SQLite query to answer to the question: What is the highest yards for a rating larger than 52.8 and more than 13 games?: ``` SELECT MAX(yards) FROM table_name_47 WHERE rating > 52.8 AND games > 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_84 (area_km_2 INTEGER, population VARCHAR, official_name VARCHAR) Question: What is the highest area for locations named Centreville having populations over 532? [/INST] Here is the SQLite query to answer to the question: What is the highest area for locations named Centreville having populations over 532?: ``` SELECT MAX(area_km_2) FROM table_name_84 WHERE population > 532 AND official_name = "centreville" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28697228_4 (player VARCHAR, passing_yards VARCHAR) Question: How may players have a passing yard score of 208? [/INST] Here is the SQLite query to answer to the question: How may players have a passing yard score of 208?: ``` SELECT COUNT(player) FROM table_28697228_4 WHERE passing_yards = 208 ```
[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 (round VARCHAR, clubs_involved VARCHAR) Question: Which round has 4 clubs involved? [/INST] Here is the SQLite query to answer to the question: Which round has 4 clubs involved?: ``` SELECT round FROM table_name_51 WHERE clubs_involved = 4 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14903081_1 (country VARCHAR, location VARCHAR) Question: Rome is in which country? [/INST] Here is the SQLite query to answer to the question: Rome is in which country?: ``` SELECT country FROM table_14903081_1 WHERE location = "Rome" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_55 (date VARCHAR, score VARCHAR) Question: What date was the score 6–3, 3–6, 6–0? [/INST] Here is the SQLite query to answer to the question: What date was the score 6–3, 3–6, 6–0?: ``` SELECT date FROM table_name_55 WHERE score = "6–3, 3–6, 6–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_42 (season VARCHAR, goals VARCHAR, team VARCHAR) Question: What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"? [/INST] Here is the SQLite query to answer to the question: What is Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"?: ``` SELECT season FROM table_name_42 WHERE goals < 6 AND team = "tarbiat yazd" ```
[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 (third_vice_skip VARCHAR, second VARCHAR) Question: Which Third/Vice skip has a Second of éric sylvain? [/INST] Here is the SQLite query to answer to the question: Which Third/Vice skip has a Second of éric sylvain?: ``` SELECT third_vice_skip FROM table_name_13 WHERE second = "éric sylvain" ```
[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 (party VARCHAR, end_date VARCHAR) Question: Name the party with end date of 22 november 1980 [/INST] Here is the SQLite query to answer to the question: Name the party with end date of 22 november 1980: ``` SELECT party FROM table_name_2 WHERE end_date = "22 november 1980" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_16 (date VARCHAR, away_team VARCHAR) Question: WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON? [/INST] Here is the SQLite query to answer to the question: WHAT IS THE DATE WITH AN AWAY TEAM OF WORKINGTON?: ``` SELECT date FROM table_name_16 WHERE away_team = "workington" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_20325360_2 (Id VARCHAR) Question: What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. [/INST] Here is the SQLite query to answer to the question: What is the highest number of third place runners up held by any of the countries competing in the Mr. International competition?. : ``` SELECT MAX(3 AS rd_runner_up) FROM table_20325360_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_64 (gfr_2006 INTEGER, whites_as__percentage_of_pop VARCHAR, tfr_2006 VARCHAR) Question: What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006? [/INST] Here is the SQLite query to answer to the question: What is the lowest total GFR that has 95.80% of the population as Whites, and a TFR total larger than 2.14, in 2006?: ``` SELECT MIN(gfr_2006) FROM table_name_64 WHERE whites_as__percentage_of_pop = "95.80%" AND tfr_2006 > 2.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_3 (quantity_made VARCHAR, inchicore_class VARCHAR) Question: What was the quantity for Inchicore of J7? [/INST] Here is the SQLite query to answer to the question: What was the quantity for Inchicore of J7?: ``` SELECT quantity_made FROM table_name_3 WHERE inchicore_class = "j7" ```
[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 (area__km_2__ INTEGER, rank VARCHAR, location VARCHAR, population__2000_ VARCHAR) Question: What is the largest area in Alaska with a population of 39 and rank over 19? [/INST] Here is the SQLite query to answer to the question: What is the largest area in Alaska with a population of 39 and rank over 19?: ``` SELECT MAX(area__km_2__) FROM table_name_41 WHERE location = "alaska" AND population__2000_ = "39" AND rank > 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_53 (award_show VARCHAR, category VARCHAR, year VARCHAR) Question: In what award show was Bad Girls nominated for Best Loved Drama in 2002? [/INST] Here is the SQLite query to answer to the question: In what award show was Bad Girls nominated for Best Loved Drama in 2002?: ``` SELECT award_show FROM table_name_53 WHERE category = "best loved drama" AND year = 2002 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (best_score VARCHAR, worst_dancer_s_ VARCHAR) Question: What's the best score, with the worst dancer(s) gethin jones/kenny logan? [/INST] Here is the SQLite query to answer to the question: What's the best score, with the worst dancer(s) gethin jones/kenny logan?: ``` SELECT best_score FROM table_name_19 WHERE worst_dancer_s_ = "gethin jones/kenny logan" ```
[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 (air_date VARCHAR, order VARCHAR) Question: What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29? [/INST] Here is the SQLite query to answer to the question: What is the sum of numbers listed in 18-49 for the episode that aired on June 25, 2009 with an order larger than 29?: ``` SELECT SUM(18 AS _49) FROM table_name_51 WHERE air_date = "june 25, 2009" AND order > 29 ```
[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 (year INTEGER, time VARCHAR) Question: When was the time of 12:49:08 first set? [/INST] Here is the SQLite query to answer to the question: When was the time of 12:49:08 first set?: ``` SELECT MIN(year) FROM table_name_7 WHERE time = "12:49:08" ```
[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 (part_2 VARCHAR, part_4 VARCHAR) Question: When is Part 2, when Part 4 is on December 9, 2007? [/INST] Here is the SQLite query to answer to the question: When is Part 2, when Part 4 is on December 9, 2007?: ``` SELECT part_2 FROM table_name_44 WHERE part_4 = "december 9, 2007" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_66 (gold INTEGER, sport VARCHAR, silver VARCHAR) Question: What is the average number of golds in athletics associated with over 42 silvers? [/INST] Here is the SQLite query to answer to the question: What is the average number of golds in athletics associated with over 42 silvers?: ``` SELECT AVG(gold) FROM table_name_66 WHERE sport = "athletics" AND silver > 42 ```
[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 (runner_up VARCHAR, city VARCHAR) Question: Who is the runner-up from Milwaukee? [/INST] Here is the SQLite query to answer to the question: Who is the runner-up from Milwaukee?: ``` SELECT runner_up FROM table_name_27 WHERE city = "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_18 (lost INTEGER, points VARCHAR, drawn VARCHAR) Question: What's the lost when there were more than 16 points and had a drawn less than 1? [/INST] Here is the SQLite query to answer to the question: What's the lost when there were more than 16 points and had a drawn less than 1?: ``` SELECT SUM(lost) FROM table_name_18 WHERE points > 16 AND drawn < 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_91 (opponent VARCHAR, score VARCHAR, location VARCHAR, game VARCHAR) Question: What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"? [/INST] Here is the SQLite query to answer to the question: What is Opponent, when Location is "Boston Garden", when Game is greater than 1, and when Score is "115-105"?: ``` SELECT opponent FROM table_name_91 WHERE location = "boston garden" AND game > 1 AND score = "115-105" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_20361783_1 (womens_doubles VARCHAR, year VARCHAR) Question: who won womens doubles in 2010 [/INST] Here is the SQLite query to answer to the question: who won womens doubles in 2010: ``` SELECT womens_doubles FROM table_20361783_1 WHERE year = 2010 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_32 (name VARCHAR, year VARCHAR) Question: Which Name was in the Year 2001? [/INST] Here is the SQLite query to answer to the question: Which Name was in the Year 2001?: ``` SELECT name FROM table_name_32 WHERE year = "2001" ```
[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 (name VARCHAR, dcsf_number VARCHAR) Question: Who has a DCSF number of 3373? [/INST] Here is the SQLite query to answer to the question: Who has a DCSF number of 3373?: ``` SELECT name FROM table_name_19 WHERE dcsf_number = 3373 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11240028_1 (episodes VARCHAR, portrayed_by VARCHAR) Question: How many episodes did actress Vanessa Ferlito appear in? [/INST] Here is the SQLite query to answer to the question: How many episodes did actress Vanessa Ferlito appear in?: ``` SELECT episodes FROM table_11240028_1 WHERE portrayed_by = "Vanessa Ferlito" ```
[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 (country VARCHAR, swimsuit VARCHAR, average VARCHAR, interview VARCHAR) Question: Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6? [/INST] Here is the SQLite query to answer to the question: Which country has swimsuit more than 9.46 and interview more than 9.22 with average less than 9.6?: ``` SELECT country FROM table_name_22 WHERE average < 9.6 AND interview > 9.22 AND swimsuit > 9.46 ```
[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 (name VARCHAR, venue VARCHAR) Question: What is Name, when Venue is "Motherwell"? [/INST] Here is the SQLite query to answer to the question: What is Name, when Venue is "Motherwell"?: ``` SELECT name FROM table_name_71 WHERE venue = "motherwell" ```
[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 (goals VARCHAR, country VARCHAR) Question: How many goals did a player from France have? [/INST] Here is the SQLite query to answer to the question: How many goals did a player from France have?: ``` SELECT goals FROM table_name_6 WHERE country = "france" ```
[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 (event VARCHAR, date VARCHAR) Question: What event is on 18 December 2009? [/INST] Here is the SQLite query to answer to the question: What event is on 18 December 2009?: ``` SELECT event FROM table_name_59 WHERE date = "18 december 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_9 (to_par VARCHAR, player VARCHAR) Question: What is the to par for Bart Bryant? [/INST] Here is the SQLite query to answer to the question: What is the to par for Bart Bryant?: ``` SELECT to_par FROM table_name_9 WHERE player = "bart bryant" ```
[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 (school VARCHAR, player VARCHAR) Question: Tell me the school that jason fraser went to [/INST] Here is the SQLite query to answer to the question: Tell me the school that jason fraser went to: ``` SELECT school FROM table_name_14 WHERE player = "jason fraser" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_38 (military_deaths VARCHAR, total_casualties VARCHAR) Question: How many members of the military died in the conflict that had a total of 531 casualties? [/INST] Here is the SQLite query to answer to the question: How many members of the military died in the conflict that had a total of 531 casualties?: ``` SELECT military_deaths FROM table_name_38 WHERE total_casualties = "531" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE orders (customer_id VARCHAR, order_id VARCHAR); CREATE TABLE customers (customer_name VARCHAR, customer_id VARCHAR); CREATE TABLE products (product_id VARCHAR, product_name VARCHAR); CREATE TABLE order_items (product_id VARCHAR, order_item_status VARCHAR, order_id VARCHAR) Question: List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel"). [/INST] Here is the SQLite query to answer to the question: List the names of customers who have once canceled the purchase of the product "food" (the item status is "Cancel").: ``` SELECT T1.customer_name FROM customers AS T1 JOIN orders AS T2 JOIN order_items AS T3 JOIN products AS T4 ON T1.customer_id = T2.customer_id AND T2.order_id = T3.order_id AND T3.product_id = T4.product_id WHERE T3.order_item_status = "Cancel" AND T4.product_name = "food" GROUP BY T1.customer_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_name_46 (round INTEGER, method VARCHAR, date VARCHAR) Question: Which Round has a Method of ko, and a Date of 1958? [/INST] Here is the SQLite query to answer to the question: Which Round has a Method of ko, and a Date of 1958?: ``` SELECT MIN(round) FROM table_name_46 WHERE method = "ko" AND date = "1958" ```
[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 (lane VARCHAR, heat VARCHAR, name VARCHAR) Question: what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo? [/INST] Here is the SQLite query to answer to the question: what is the number of times that the heat is 3 and the name is cxhristy ekpukhon ihunaegbo?: ``` SELECT COUNT(lane) FROM table_name_29 WHERE heat = 3 AND name = "cxhristy ekpukhon ihunaegbo" ```
[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 (director_s_ VARCHAR, recipient VARCHAR) Question: Who was the director that had a recipient of Redbag Pictures Ltd? [/INST] Here is the SQLite query to answer to the question: Who was the director that had a recipient of Redbag Pictures Ltd?: ``` SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd" ```
[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 (time VARCHAR, grid VARCHAR, rider VARCHAR) Question: What was the time for a grid less than 6 for Noriyuki Haga? [/INST] Here is the SQLite query to answer to the question: What was the time for a grid less than 6 for Noriyuki Haga?: ``` SELECT time FROM table_name_55 WHERE grid < 6 AND rider = "noriyuki haga" ```
[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 (prime_mover VARCHAR, model VARCHAR) Question: Which prime mover had a Model of rs-18? [/INST] Here is the SQLite query to answer to the question: Which prime mover had a Model of rs-18?: ``` SELECT prime_mover FROM table_name_61 WHERE model = "rs-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_49 (visitor VARCHAR, record VARCHAR) Question: Which visitor had a record of 7–5–3? [/INST] Here is the SQLite query to answer to the question: Which visitor had a record of 7–5–3?: ``` SELECT visitor FROM table_name_49 WHERE record = "7–5–3" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_5 (wins INTEGER, rank VARCHAR, events VARCHAR) Question: Who has the least wins when ranked above 3 with over 10 events? [/INST] Here is the SQLite query to answer to the question: Who has the least wins when ranked above 3 with over 10 events?: ``` SELECT MIN(wins) FROM table_name_5 WHERE rank < 3 AND events > 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_56 (number_of_electorates__2009_ INTEGER, district VARCHAR, name VARCHAR) Question: What Number of electorates (2009) has a District of mathura, and a Name of mant? [/INST] Here is the SQLite query to answer to the question: What Number of electorates (2009) has a District of mathura, and a Name of mant?: ``` SELECT MIN(number_of_electorates__2009_) FROM table_name_56 WHERE district = "mathura" AND name = "mant" ```
[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 (country VARCHAR, player VARCHAR) Question: Which country does Adam Scott play for? [/INST] Here is the SQLite query to answer to the question: Which country does Adam Scott play for?: ``` SELECT country FROM table_name_39 WHERE player = "adam scott" ```
[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 (career_win_loss VARCHAR) Question: What is the career win-loss for the ATP Masters Series? [/INST] Here is the SQLite query to answer to the question: What is the career win-loss for the ATP Masters Series?: ``` SELECT career_win_loss FROM table_name_3 WHERE 1995 = "atp masters series" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_57 (opponent VARCHAR, game_site VARCHAR) Question: Game site of candlestick park had what opponent? [/INST] Here is the SQLite query to answer to the question: Game site of candlestick park had what opponent?: ``` SELECT opponent FROM table_name_57 WHERE game_site = "candlestick park" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_36 (player VARCHAR, to_par VARCHAR) Question: What player has +21 as the to par? [/INST] Here is the SQLite query to answer to the question: What player has +21 as the to par?: ``` SELECT player FROM table_name_36 WHERE to_par = "+21" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21132404_1 (seats_2001 INTEGER, seats_2006 VARCHAR) Question: How many seats were there in 2001 when there were 11 seats in 2006? [/INST] Here is the SQLite query to answer to the question: How many seats were there in 2001 when there were 11 seats in 2006?: ``` SELECT MIN(seats_2001) FROM table_21132404_1 WHERE seats_2006 = 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_86 (opponent VARCHAR, series VARCHAR) Question: Who was the opponent when the series was at 1-3? [/INST] Here is the SQLite query to answer to the question: Who was the opponent when the series was at 1-3?: ``` SELECT opponent FROM table_name_86 WHERE series = "1-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_75 (rounds VARCHAR, motorcycle VARCHAR) Question: Which round has the mv agusta f4 1000 mt? [/INST] Here is the SQLite query to answer to the question: Which round has the mv agusta f4 1000 mt?: ``` SELECT rounds FROM table_name_75 WHERE motorcycle = "mv agusta f4 1000 mt" ```
[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 (birthplace VARCHAR) Question: What is the 1990–1991 Team when the Birthplace shows as new york? [/INST] Here is the SQLite query to answer to the question: What is the 1990–1991 Team when the Birthplace shows as new york?: ``` SELECT 1990 AS _1991_team FROM table_name_23 WHERE birthplace = "new york" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_17510803_2 (bonus_points VARCHAR, won VARCHAR) Question: How many bonus points were won by 5? [/INST] Here is the SQLite query to answer to the question: How many bonus points were won by 5?: ``` SELECT bonus_points FROM table_17510803_2 WHERE won = "5" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10416547_1 (music_genre_style VARCHAR, lyrics_theme_style VARCHAR) Question: What is the total number of music genre/style in which the lyrics are a detective story? [/INST] Here is the SQLite query to answer to the question: What is the total number of music genre/style in which the lyrics are a detective story?: ``` SELECT COUNT(music_genre_style) FROM table_10416547_1 WHERE lyrics_theme_style = "Detective story" ```
[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 (venue VARCHAR, home_team VARCHAR) Question: What is Melbourne's home venue? [/INST] Here is the SQLite query to answer to the question: What is Melbourne's home venue?: ``` SELECT venue FROM table_name_32 WHERE home_team = "melbourne" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_73 (high_points VARCHAR, score VARCHAR) Question: What is the High points with a Score that is l 64–94 (ot)? [/INST] Here is the SQLite query to answer to the question: What is the High points with a Score that is l 64–94 (ot)?: ``` SELECT high_points FROM table_name_73 WHERE score = "l 64–94 (ot)" ```
[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 (location VARCHAR, runner_s__up VARCHAR) Question: Where is runner-up Betsy Rawls from? [/INST] Here is the SQLite query to answer to the question: Where is runner-up Betsy Rawls from?: ``` SELECT location FROM table_name_76 WHERE runner_s__up = "betsy rawls" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26202847_6 (opponent_in_the_final VARCHAR, score_in_the_final VARCHAR) Question: When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final? [/INST] Here is the SQLite query to answer to the question: When the score in the final is 3–6, 6–4, 3–6, 4–6, who are all the opponents in the final?: ``` SELECT opponent_in_the_final FROM table_26202847_6 WHERE score_in_the_final = "3–6, 6–4, 3–6, 4–6" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_19 (game INTEGER, record VARCHAR, points VARCHAR) Question: Which Game has a Record of 4–2–1, and Points larger than 9? [/INST] Here is the SQLite query to answer to the question: Which Game has a Record of 4–2–1, and Points larger than 9?: ``` SELECT SUM(game) FROM table_name_19 WHERE record = "4–2–1" AND points > 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_83 (gross_revenue__1979_ VARCHAR, venue VARCHAR) Question: What is the Gross Revenue (1979) of the Venue, lyceum theatre? [/INST] Here is the SQLite query to answer to the question: What is the Gross Revenue (1979) of the Venue, lyceum theatre?: ``` SELECT gross_revenue__1979_ FROM table_name_83 WHERE venue = "lyceum theatre" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR) Question: What is the Score for the game with a record of 38-18? [/INST] Here is the SQLite query to answer to the question: What is the Score for the game with a record of 38-18?: ``` SELECT score FROM table_name_84 WHERE record = "38-18" ```