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_19 (long INTEGER, gain VARCHAR, loss VARCHAR) Question: Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0? [/INST] Here is the SQLite query to answer to the question: Can you tell me the lowest Long that has the Gain of 20, and the Loss smaller than 0?: ``` SELECT MIN(long) FROM table_name_19 WHERE gain = 20 AND loss < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24136814_3 (record VARCHAR, date VARCHAR) Question: What was the record for the Argonauts on September 7? [/INST] Here is the SQLite query to answer to the question: What was the record for the Argonauts on September 7?: ``` SELECT record FROM table_24136814_3 WHERE date = "September 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_97 (location VARCHAR, date VARCHAR, cause VARCHAR, death_toll VARCHAR) Question: Where has a cause of gas explosion, a Death toll larger than 38 on 10 june? [/INST] Here is the SQLite query to answer to the question: Where has a cause of gas explosion, a Death toll larger than 38 on 10 june?: ``` SELECT location FROM table_name_97 WHERE cause = "gas explosion" AND death_toll > 38 AND date = "10 june" ```
[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 (constructor VARCHAR, rounds VARCHAR, driver VARCHAR) Question: I want the constructor for divina galica rounds of 1-2 [/INST] Here is the SQLite query to answer to the question: I want the constructor for divina galica rounds of 1-2: ``` SELECT constructor FROM table_name_54 WHERE rounds = "1-2" AND driver = "divina galica" ```
[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 (crowd INTEGER, venue VARCHAR) Question: How many attended the game at Arden Street Oval? [/INST] Here is the SQLite query to answer to the question: How many attended the game at Arden Street Oval?: ``` SELECT AVG(crowd) FROM table_name_86 WHERE venue = "arden street 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_57 (home_team VARCHAR, venue VARCHAR) Question: What is the home team of lake oval's score? [/INST] Here is the SQLite query to answer to the question: What is the home team of lake oval's score?: ``` SELECT home_team AS score FROM table_name_57 WHERE venue = "lake 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_81 (floors INTEGER, street_address VARCHAR) Question: There is a building at 800 Boylston Street, how many floors does it have? [/INST] Here is the SQLite query to answer to the question: There is a building at 800 Boylston Street, how many floors does it have?: ``` SELECT SUM(floors) FROM table_name_81 WHERE street_address = "800 boylston street" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_29506171_2 (cuts_made INTEGER, earnings___€__ VARCHAR) Question: How many cuts did Reid make in the year when her earnings were n/a? [/INST] Here is the SQLite query to answer to the question: How many cuts did Reid make in the year when her earnings were n/a?: ``` SELECT MAX(cuts_made) FROM table_29506171_2 WHERE earnings___€__ = "n/a" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1342370_39 (first_elected VARCHAR, incumbent VARCHAR) Question: what year was william francis stevenson first elected? [/INST] Here is the SQLite query to answer to the question: what year was william francis stevenson first elected?: ``` SELECT first_elected FROM table_1342370_39 WHERE incumbent = "William Francis Stevenson" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_78 (goals_scored INTEGER, played VARCHAR, draw VARCHAR) Question: What is the average goals scored when less than 34 were played and there were more than 2 draws? [/INST] Here is the SQLite query to answer to the question: What is the average goals scored when less than 34 were played and there were more than 2 draws?: ``` SELECT AVG(goals_scored) FROM table_name_78 WHERE played < 34 AND draw > 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_45 (overall INTEGER, round VARCHAR, name VARCHAR) Question: In Round 10, what was the Overall for Ed Tomlin? [/INST] Here is the SQLite query to answer to the question: In Round 10, what was the Overall for Ed Tomlin?: ``` SELECT AVG(overall) FROM table_name_45 WHERE round = 10 AND name = "ed tomlin" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2104176_1 (distinguished_service_cross VARCHAR, navy_cross VARCHAR) Question: What is the distinguished service cross when the navy cross is Coast Guard commendation medal? [/INST] Here is the SQLite query to answer to the question: What is the distinguished service cross when the navy cross is Coast Guard commendation medal?: ``` SELECT distinguished_service_cross FROM table_2104176_1 WHERE navy_cross = "Coast Guard Commendation Medal" ```
[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 (division INTEGER, goals VARCHAR, country VARCHAR, apps VARCHAR) Question: What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0? [/INST] Here is the SQLite query to answer to the question: What is the total of the Divison that is from the country Serbia and Montenegro with apps smaller than 12 with more goals than 0?: ``` SELECT SUM(division) FROM table_name_69 WHERE country = "serbia and montenegro" AND apps < 12 AND goals > 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_83 (birth_place VARCHAR, monarchs_served VARCHAR, entered_office VARCHAR) Question: What is the birth place of the prime minister who served George V and entered office on 23 October 1922? [/INST] Here is the SQLite query to answer to the question: What is the birth place of the prime minister who served George V and entered office on 23 October 1922?: ``` SELECT birth_place FROM table_name_83 WHERE monarchs_served = "george v" AND entered_office = "23 october 1922" ```
[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 (driver VARCHAR, zan_2 VARCHAR) Question: What driver has 5 as the zan 2? [/INST] Here is the SQLite query to answer to the question: What driver has 5 as the zan 2?: ``` SELECT driver FROM table_name_69 WHERE zan_2 = "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_48 (commercial_operation VARCHAR, gross_capacity VARCHAR, electricity_grid VARCHAR) Question: Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971? [/INST] Here is the SQLite query to answer to the question: Which Commercial Operation has both a Gross Capacity of 417 mw and an Electricity Grid 27.12.1971?: ``` SELECT commercial_operation FROM table_name_48 WHERE gross_capacity = "417 mw" AND electricity_grid = "27.12.1971" ```
[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, new_wnba_team VARCHAR, college_country_team VARCHAR) Question: Who is the player who played for the Miami Sol and went to school at North Carolina State? [/INST] Here is the SQLite query to answer to the question: Who is the player who played for the Miami Sol and went to school at North Carolina State?: ``` SELECT player FROM table_name_62 WHERE new_wnba_team = "miami sol" AND college_country_team = "north carolina state" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1601027_1 (termination VARCHAR, us_msrp VARCHAR) Question: Which terminations correspond to a US MSRP of $49? [/INST] Here is the SQLite query to answer to the question: Which terminations correspond to a US MSRP of $49?: ``` SELECT termination FROM table_1601027_1 WHERE us_msrp = "$49" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14325808_1 (area__km²_ VARCHAR, density__pop_km²_ VARCHAR) Question: What is the area in kilometers squared the population density is 137.61? [/INST] Here is the SQLite query to answer to the question: What is the area in kilometers squared the population density is 137.61?: ``` SELECT area__km²_ FROM table_14325808_1 WHERE density__pop_km²_ = "137.61" ```
[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 (total INTEGER, bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) Question: Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold? [/INST] Here is the SQLite query to answer to the question: Smaller than 4, and a Silver larger than 0, and a Rank of 3, and a Bronze smaller than 6 then what is the sum of the gold?: ``` SELECT SUM(total) FROM table_name_77 WHERE gold < 4 AND silver > 0 AND rank = "3" AND bronze < 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_87 (rank INTEGER, wins__outdoor_ VARCHAR, wins__indoor_ VARCHAR) Question: Name the most rank for wins outdoor larger than 1 and wins indoor less than 0 [/INST] Here is the SQLite query to answer to the question: Name the most rank for wins outdoor larger than 1 and wins indoor less than 0: ``` SELECT MAX(rank) FROM table_name_87 WHERE wins__outdoor_ > 1 AND wins__indoor_ < 0 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Parts (part_name VARCHAR, part_id VARCHAR); CREATE TABLE Part_Faults (part_id VARCHAR) Question: Which parts have more than 2 faults? Show the part name and id. [/INST] Here is the SQLite query to answer to the question: Which parts have more than 2 faults? Show the part name and id.: ``` SELECT T1.part_name, T1.part_id FROM Parts AS T1 JOIN Part_Faults AS T2 ON T1.part_id = T2.part_id GROUP BY T1.part_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_22 (winning_team VARCHAR, name VARCHAR) Question: Who is the winning team of the South Pacific Trophy? [/INST] Here is the SQLite query to answer to the question: Who is the winning team of the South Pacific Trophy?: ``` SELECT winning_team FROM table_name_22 WHERE name = "south pacific trophy" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_54 (score VARCHAR, runner_up VARCHAR) Question: what is the score when the runner-up is richard krajicek? [/INST] Here is the SQLite query to answer to the question: what is the score when the runner-up is richard krajicek?: ``` SELECT score FROM table_name_54 WHERE runner_up = "richard krajicek" ```
[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 (accreditation_level VARCHAR, hardware_model VARCHAR) Question: What is the Accreditation Level, when the Hardware Model is GT-I9100? [/INST] Here is the SQLite query to answer to the question: What is the Accreditation Level, when the Hardware Model is GT-I9100?: ``` SELECT accreditation_level FROM table_name_7 WHERE hardware_model = "gt-i9100" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_17 (attendance VARCHAR, venue VARCHAR) Question: What was the attendance for St Andrew's? [/INST] Here is the SQLite query to answer to the question: What was the attendance for St Andrew's?: ``` SELECT attendance FROM table_name_17 WHERE venue = "st andrew's" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_24 (opponent_in_the_final VARCHAR, date VARCHAR) Question: Who is the opponent in the final of the match on 19 February 2006? [/INST] Here is the SQLite query to answer to the question: Who is the opponent in the final of the match on 19 February 2006?: ``` SELECT opponent_in_the_final FROM table_name_24 WHERE date = "19 february 2006" ```
[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 (record VARCHAR, date VARCHAR) Question: What was the record on the game that was played on october 27? [/INST] Here is the SQLite query to answer to the question: What was the record on the game that was played on october 27?: ``` SELECT record FROM table_name_72 WHERE date = "october 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_99 (gold INTEGER, nation VARCHAR, silver VARCHAR) Question: What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2? [/INST] Here is the SQLite query to answer to the question: What is the average Gold where the Nation is Russia (rus) and the number of silver is less than 2?: ``` SELECT AVG(gold) FROM table_name_99 WHERE nation = "russia (rus)" AND silver < 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_13 (elevated VARCHAR, nationality VARCHAR) Question: When was the elector from pisa elevated? [/INST] Here is the SQLite query to answer to the question: When was the elector from pisa elevated?: ``` SELECT elevated FROM table_name_13 WHERE nationality = "pisa" ```
[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 (church_name VARCHAR, location_of_the_church VARCHAR) Question: What is the name of the church that is located in eikefjord? [/INST] Here is the SQLite query to answer to the question: What is the name of the church that is located in eikefjord?: ``` SELECT church_name FROM table_name_8 WHERE location_of_the_church = "eikefjord" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14945881_1 (week INTEGER, date VARCHAR) Question: Name the least week for september 19, 1976 [/INST] Here is the SQLite query to answer to the question: Name the least week for september 19, 1976: ``` SELECT MIN(week) FROM table_14945881_1 WHERE date = "September 19, 1976" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_92 (builder VARCHAR, works_number VARCHAR) Question: Who was the Builder for the locomotive that has a works number of 323? [/INST] Here is the SQLite query to answer to the question: Who was the Builder for the locomotive that has a works number of 323?: ``` SELECT builder FROM table_name_92 WHERE works_number = "323" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_43 (date VARCHAR, venue VARCHAR, score VARCHAR) Question: What is the date of the game at the Pro Player Stadium that had a score of 4-1? [/INST] Here is the SQLite query to answer to the question: What is the date of the game at the Pro Player Stadium that had a score of 4-1?: ``` SELECT date FROM table_name_43 WHERE venue = "pro player stadium" AND score = "4-1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24538587_11 (i_o_bus VARCHAR, brand_name__list_ VARCHAR, socket VARCHAR, codename__main_article_ VARCHAR) Question: What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx? [/INST] Here is the SQLite query to answer to the question: What i/o buses are associated with the LGA 1155 socket, a code name of Sandy Bridge (desktop) and a brand name of Core i3-21xx?: ``` SELECT i_o_bus FROM table_24538587_11 WHERE socket = "LGA 1155" AND codename__main_article_ = "Sandy Bridge (Desktop)" AND brand_name__list_ = "Core i3-21xx" ```
[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 (goals VARCHAR, goal_ratio VARCHAR, games VARCHAR) Question: How many goals have a goal ration less than 0.8 with 56 games? [/INST] Here is the SQLite query to answer to the question: How many goals have a goal ration less than 0.8 with 56 games?: ``` SELECT COUNT(goals) FROM table_name_49 WHERE goal_ratio < 0.8 AND games = 56 ```
[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 (result VARCHAR, score VARCHAR) Question: What was the result of the competition that had a score of 4-0? [/INST] Here is the SQLite query to answer to the question: What was the result of the competition that had a score of 4-0?: ``` SELECT result FROM table_name_95 WHERE score = "4-0" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE Student_Course_Enrolment (date_of_enrolment VARCHAR, course_id VARCHAR); CREATE TABLE Courses (course_id VARCHAR, course_name VARCHAR) Question: What is the date of enrollment of the course named "Spanish"? [/INST] Here is the SQLite query to answer to the question: What is the date of enrollment of the course named "Spanish"?: ``` SELECT T2.date_of_enrolment FROM Courses AS T1 JOIN Student_Course_Enrolment AS T2 ON T1.course_id = T2.course_id WHERE T1.course_name = "Spanish" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18963843_1 (_percentage_asian_american VARCHAR, indian_american_population__2010_ VARCHAR) Question: Name the % asian american for 23526 [/INST] Here is the SQLite query to answer to the question: Name the % asian american for 23526: ``` SELECT _percentage_asian_american FROM table_18963843_1 WHERE indian_american_population__2010_ = 23526 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26609690_1 (team_s_ VARCHAR, winnings VARCHAR) Question: Which team had $15,785 in winnings? [/INST] Here is the SQLite query to answer to the question: Which team had $15,785 in winnings?: ``` SELECT team_s_ FROM table_26609690_1 WHERE winnings = "$15,785" ```
[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 (average_ratings VARCHAR, japanese_title VARCHAR, tv_station VARCHAR, episodes VARCHAR) Question: What's the ratings of TBS of Episode 10 and had a Japanese title of Scandal? [/INST] Here is the SQLite query to answer to the question: What's the ratings of TBS of Episode 10 and had a Japanese title of Scandal?: ``` SELECT average_ratings FROM table_name_76 WHERE tv_station = "tbs" AND episodes = "10" AND japanese_title = "scandal" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_10650711_1 (pick__number INTEGER, player VARCHAR) Question: what is the maximum pick # where player is anthony blaylock [/INST] Here is the SQLite query to answer to the question: what is the maximum pick # where player is anthony blaylock: ``` SELECT MAX(pick__number) FROM table_10650711_1 WHERE player = "Anthony Blaylock" ```
[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 (_ppp__ VARCHAR, d__billions_of_us$_ VARCHAR, expenditures_on_r INTEGER, country_region VARCHAR, year VARCHAR) Question: What is the average expenditures on R&D for Croatia after 2007? [/INST] Here is the SQLite query to answer to the question: What is the average expenditures on R&D for Croatia after 2007?: ``` SELECT AVG(expenditures_on_r) & d__billions_of_us$_, _ppp__ FROM table_name_32 WHERE country_region = "croatia" AND year > 2007 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_15861776_1 (no_in_series VARCHAR, tv_broadcast VARCHAR) Question: What episode in the series is TV broadcast s03e20? [/INST] Here is the SQLite query to answer to the question: What episode in the series is TV broadcast s03e20?: ``` SELECT no_in_series FROM table_15861776_1 WHERE tv_broadcast = "S03E20" ```
[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 (position VARCHAR, venue VARCHAR, time VARCHAR) Question: What position has a time less than 40.2 at the rome venue? [/INST] Here is the SQLite query to answer to the question: What position has a time less than 40.2 at the rome venue?: ``` SELECT position FROM table_name_69 WHERE venue = "rome" AND time < 40.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_15 (region VARCHAR, date VARCHAR) Question: Which Region has a Date of early september 1999? [/INST] Here is the SQLite query to answer to the question: Which Region has a Date of early september 1999?: ``` SELECT region FROM table_name_15 WHERE date = "early september 1999" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_10 (opponent VARCHAR, record VARCHAR) Question: What was the Opponent when the Cavaliers had a Record of 3-9? [/INST] Here is the SQLite query to answer to the question: What was the Opponent when the Cavaliers had a Record of 3-9?: ``` SELECT opponent FROM table_name_10 WHERE record = "3-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_32 (time VARCHAR, heat VARCHAR, name VARCHAR) Question: What was Liu Limin's time in heat 4? [/INST] Here is the SQLite query to answer to the question: What was Liu Limin's time in heat 4?: ``` SELECT time FROM table_name_32 WHERE heat = 4 AND name = "liu limin" ```
[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 (driver VARCHAR, time_retired VARCHAR, laps VARCHAR, grid VARCHAR, points VARCHAR) Question: Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023? [/INST] Here is the SQLite query to answer to the question: Which Driver has a Grid smaller than 17, and Points larger than 0, and a Lapse of 87, and a Time/Retired of 1:48:11.023?: ``` SELECT driver FROM table_name_72 WHERE grid < 17 AND points > 0 AND laps = 87 AND time_retired = "1:48:11.023" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_4 (route_of_administration VARCHAR, status VARCHAR) Question: What is the route of administration that has several ongoing and complete? [/INST] Here is the SQLite query to answer to the question: What is the route of administration that has several ongoing and complete?: ``` SELECT route_of_administration FROM table_name_4 WHERE status = "several ongoing and complete" ```
[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 (goals_for INTEGER, goal_difference VARCHAR, goals_against VARCHAR, club VARCHAR) Question: What is teh average amount of goals for club real avilés cf, which has more than 59 goals against and a -10 goal difference? [/INST] Here is the SQLite query to answer to the question: What is teh average amount of goals for club real avilés cf, which has more than 59 goals against and a -10 goal difference?: ``` SELECT AVG(goals_for) FROM table_name_53 WHERE goals_against > 59 AND club = "real avilés cf" AND goal_difference > -10 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26335424_86 (semifinals VARCHAR, round_of_16 VARCHAR) Question: If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals? [/INST] Here is the SQLite query to answer to the question: If the round of 16 was yulius fernando ( ina ) l pts 5-6, what was the semifinals?: ``` SELECT semifinals FROM table_26335424_86 WHERE round_of_16 = "Yulius Fernando ( INA ) L PTS 5-6" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_26493520_3 (title VARCHAR, total_viewers_on_fx VARCHAR) Question: Name the title for total viewers on fx+ being 483,000 [/INST] Here is the SQLite query to answer to the question: Name the title for total viewers on fx+ being 483,000: ``` SELECT title FROM table_26493520_3 WHERE total_viewers_on_fx = "483,000" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_70 (date VARCHAR, region VARCHAR, catalog VARCHAR) Question: What's the Date for the Region of Europe and has the Catalog of 28765 22392 8? [/INST] Here is the SQLite query to answer to the question: What's the Date for the Region of Europe and has the Catalog of 28765 22392 8?: ``` SELECT date FROM table_name_70 WHERE region = "europe" AND catalog = "28765 22392 8" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_48 (year VARCHAR, rank VARCHAR) Question: with rank of 31 what is the year? [/INST] Here is the SQLite query to answer to the question: with rank of 31 what is the year?: ``` SELECT COUNT(year) FROM table_name_48 WHERE rank = "31" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_24225238_1 (supporting_actress VARCHAR, year VARCHAR) Question: Who was the supporting actress in 1943? [/INST] Here is the SQLite query to answer to the question: Who was the supporting actress in 1943?: ``` SELECT supporting_actress FROM table_24225238_1 WHERE year = 1943 ```
[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 (year_made VARCHAR, wheel_arrangement VARCHAR, class VARCHAR) Question: What year was the wheel arrangement 0-6-0 and a class 302? [/INST] Here is the SQLite query to answer to the question: What year was the wheel arrangement 0-6-0 and a class 302?: ``` SELECT year_made FROM table_name_76 WHERE wheel_arrangement = "0-6-0" AND class = "302" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_97 (score VARCHAR, save VARCHAR) Question: What is the score of the match with a save postponed rescheduled for June 24? [/INST] Here is the SQLite query to answer to the question: What is the score of the match with a save postponed rescheduled for June 24?: ``` SELECT score FROM table_name_97 WHERE save = "postponed rescheduled for june 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_22 (wins VARCHAR, events INTEGER) Question: How many wins did he have when he played under 2 events? [/INST] Here is the SQLite query to answer to the question: How many wins did he have when he played under 2 events?: ``` SELECT COUNT(wins) FROM table_name_22 WHERE events < 2 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14747043_1 (class_a VARCHAR, class_aAAAA VARCHAR, Weslaco VARCHAR, class_aAAA VARCHAR, Brownwood VARCHAR) Question: Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA [/INST] Here is the SQLite query to answer to the question: Which is the class A when Weslaco was the class AAAAA and brownwood was the class AAAA: ``` SELECT class_a FROM table_14747043_1 WHERE class_aAAAA = Weslaco AND class_aAAA = Brownwood ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_14 (name VARCHAR, laps VARCHAR, time_retired VARCHAR) Question: What team had less than 159 laps and a time or retired time of 4:00:30.7537 (retired - fire)? [/INST] Here is the SQLite query to answer to the question: What team had less than 159 laps and a time or retired time of 4:00:30.7537 (retired - fire)?: ``` SELECT name FROM table_name_14 WHERE laps < 159 AND time_retired = "4:00:30.7537 (retired - fire)" ```
[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 (opponent VARCHAR, attendance VARCHAR) Question: What opponent has 76,202 attendance ? [/INST] Here is the SQLite query to answer to the question: What opponent has 76,202 attendance ?: ``` SELECT opponent FROM table_name_5 WHERE attendance = "76,202" ```
[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 (type VARCHAR, lt_nos VARCHAR, bldr VARCHAR, year VARCHAR) Question: Bldr of mcw&f, and a Year smaller than 1927, and a LT Nos of 9820-9821 has what type? [/INST] Here is the SQLite query to answer to the question: Bldr of mcw&f, and a Year smaller than 1927, and a LT Nos of 9820-9821 has what type?: ``` SELECT type FROM table_name_19 WHERE bldr = "mcw&f" AND year < 1927 AND lt_nos = "9820-9821" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_27615520_1 (speed___iops__ VARCHAR, storage_medium VARCHAR) Question: What is the Input/output operations per second for the emlc flash? [/INST] Here is the SQLite query to answer to the question: What is the Input/output operations per second for the emlc flash?: ``` SELECT speed___iops__ FROM table_27615520_1 WHERE storage_medium = "eMLC Flash" ```
[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 (race VARCHAR, circuit VARCHAR, length VARCHAR) Question: Which race was on the Las Vegas Motor Speedway for 2 hours? [/INST] Here is the SQLite query to answer to the question: Which race was on the Las Vegas Motor Speedway for 2 hours?: ``` SELECT race FROM table_name_36 WHERE circuit = "las vegas motor speedway" AND length = "2 hours" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_25 (nationality VARCHAR, player VARCHAR) Question: What is tom cassidy's nationality? [/INST] Here is the SQLite query to answer to the question: What is tom cassidy's nationality?: ``` SELECT nationality FROM table_name_25 WHERE player = "tom cassidy" ```
[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 (bronze VARCHAR, nation VARCHAR, total VARCHAR) Question: How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7? [/INST] Here is the SQLite query to answer to the question: How many bronzes have a Nation of jamaica (jam), and a Total smaller than 7?: ``` SELECT COUNT(bronze) FROM table_name_6 WHERE nation = "jamaica (jam)" AND total < 7 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1213511_6 (position VARCHAR, player VARCHAR) Question: What position does Jim Johnston play? [/INST] Here is the SQLite query to answer to the question: What position does Jim Johnston play?: ``` SELECT position FROM table_1213511_6 WHERE player = "Jim Johnston" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_37 (result VARCHAR, against VARCHAR, round VARCHAR, surface VARCHAR) Question: What is the result of the match in round 1r against tunisia and on a hard surface? [/INST] Here is the SQLite query to answer to the question: What is the result of the match in round 1r against tunisia and on a hard surface?: ``` SELECT result FROM table_name_37 WHERE round = "1r" AND surface = "hard" AND against = "tunisia" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_17 (round VARCHAR, record VARCHAR) Question: What round had a record of 4-1? [/INST] Here is the SQLite query to answer to the question: What round had a record of 4-1?: ``` SELECT round FROM table_name_17 WHERE record = "4-1" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_85 (host_city VARCHAR, president_in_office VARCHAR, year VARCHAR) Question: In which host city was Margaret Thatcher the President-in-Office in 1981? [/INST] Here is the SQLite query to answer to the question: In which host city was Margaret Thatcher the President-in-Office in 1981?: ``` SELECT host_city FROM table_name_85 WHERE president_in_office = "margaret thatcher" AND year = 1981 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_21655290_1 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR) Question: Which film title used in nomination has the year (ceremony) 1990 (63rd)? [/INST] Here is the SQLite query to answer to the question: Which film title used in nomination has the year (ceremony) 1990 (63rd)?: ``` SELECT film_title_used_in_nomination FROM table_21655290_1 WHERE year__ceremony_ = "1990 (63rd)" ```
[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 (away_team VARCHAR, home_team VARCHAR) Question: When collingwood played as the home team who was the away team? [/INST] Here is the SQLite query to answer to the question: When collingwood played as the home team who was the away team?: ``` SELECT away_team FROM table_name_88 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_79 (frequency VARCHAR, sspec_number VARCHAR) Question: What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)? [/INST] Here is the SQLite query to answer to the question: What is the frequency of the processor with an sSpec number of sl3bn(kc0)sl3e9(kc0)?: ``` SELECT frequency FROM table_name_79 WHERE sspec_number = "sl3bn(kc0)sl3e9(kc0)" ```
[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 (entrants INTEGER, winner VARCHAR) Question: How many entrants did the events won by Frank Gary average? [/INST] Here is the SQLite query to answer to the question: How many entrants did the events won by Frank Gary average?: ``` SELECT AVG(entrants) FROM table_name_21 WHERE winner = "frank gary" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_28035004_1 (variant VARCHAR, bodybuilder VARCHAR) Question: How many different variants are there for Northern Counties bodybuilder? [/INST] Here is the SQLite query to answer to the question: How many different variants are there for Northern Counties bodybuilder?: ``` SELECT COUNT(variant) FROM table_28035004_1 WHERE bodybuilder = "Northern Counties" ```
[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 (attendance VARCHAR, week VARCHAR) Question: What was the attendance on week 7? [/INST] Here is the SQLite query to answer to the question: What was the attendance on week 7?: ``` SELECT attendance FROM table_name_26 WHERE week = 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_68 (organized_by VARCHAR, church_name VARCHAR) Question: Who organized Alston Church? [/INST] Here is the SQLite query to answer to the question: Who organized Alston Church?: ``` SELECT organized_by FROM table_name_68 WHERE church_name = "alston church" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_1341663_44 (incumbent VARCHAR, district VARCHAR) Question: What was the incumbent for texas 19? [/INST] Here is the SQLite query to answer to the question: What was the incumbent for texas 19?: ``` SELECT incumbent FROM table_1341663_44 WHERE district = "Texas 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_95 (attendance INTEGER, opponents VARCHAR) Question: How many people attended the match when Manchester United played against the Hearts? [/INST] Here is the SQLite query to answer to the question: How many people attended the match when Manchester United played against the Hearts?: ``` SELECT SUM(attendance) FROM table_name_95 WHERE opponents = "hearts" ```
[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 (sign_in_bicker VARCHAR, location VARCHAR) Question: What is the Sign-in/Bicker at wash50 on washington rd? [/INST] Here is the SQLite query to answer to the question: What is the Sign-in/Bicker at wash50 on washington rd?: ``` SELECT sign_in_bicker FROM table_name_27 WHERE location = "wash50 on washington rd" ```
[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 (league VARCHAR, number VARCHAR, record VARCHAR) Question: What league has a number less than 122, and least wins as the record? [/INST] Here is the SQLite query to answer to the question: What league has a number less than 122, and least wins as the record?: ``` SELECT league FROM table_name_38 WHERE number < 122 AND record = "least wins" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_2761641_1 (rebounds_per_game VARCHAR, tournament VARCHAR) Question: How many rebounds per game did he have at the 2006 fiba world championship? [/INST] Here is the SQLite query to answer to the question: How many rebounds per game did he have at the 2006 fiba world championship?: ``` SELECT rebounds_per_game FROM table_2761641_1 WHERE tournament = "2006 FIBA World Championship" ```
[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 (record VARCHAR, opponent VARCHAR, november VARCHAR, game VARCHAR, decision VARCHAR) Question: What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders? [/INST] Here is the SQLite query to answer to the question: What is the Record for a game smaller than 24, Lundqvist was the decision, November less than 8, and opponent Was New York Islanders?: ``` SELECT record FROM table_name_57 WHERE game < 24 AND decision = "lundqvist" AND november < 8 AND opponent = "new york islanders" ```
[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 (winner VARCHAR, points_classification VARCHAR, stage VARCHAR) Question: Which winner has a points classification of Tony Rominger at stage 17? [/INST] Here is the SQLite query to answer to the question: Which winner has a points classification of Tony Rominger at stage 17?: ``` SELECT winner FROM table_name_72 WHERE points_classification = "tony rominger" AND stage = "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_9 (country VARCHAR, year_s__won VARCHAR) Question: From which country was the player whose year(s) won was 1983? [/INST] Here is the SQLite query to answer to the question: From which country was the player whose year(s) won was 1983?: ``` SELECT country FROM table_name_9 WHERE year_s__won = "1983" ```
[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 (season VARCHAR, runs VARCHAR) Question: In what season was 577 runs scored? [/INST] Here is the SQLite query to answer to the question: In what season was 577 runs scored?: ``` SELECT season FROM table_name_33 WHERE runs = "577" ```
[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 (position VARCHAR, number VARCHAR) Question: Which position is number 16? [/INST] Here is the SQLite query to answer to the question: Which position is number 16?: ``` SELECT position FROM table_name_7 WHERE number = 16 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_11318462_5 (open_1st_viii VARCHAR, u15_6th_iv VARCHAR) Question: what are all the open 1st viii with u15 6th iv being bgs [/INST] Here is the SQLite query to answer to the question: what are all the open 1st viii with u15 6th iv being bgs: ``` SELECT open_1st_viii FROM table_11318462_5 WHERE u15_6th_iv = "BGS" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_1 (engine VARCHAR, entrant VARCHAR, points VARCHAR) Question: What engine has the Mercedes AMG Petronas f1 team, and 93 points? [/INST] Here is the SQLite query to answer to the question: What engine has the Mercedes AMG Petronas f1 team, and 93 points?: ``` SELECT engine FROM table_name_1 WHERE entrant = "mercedes amg petronas f1 team" AND points = "93" ```
[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 (role VARCHAR, registration VARCHAR) Question: What is the role of the aircraft that has a registration of s5-hpb? [/INST] Here is the SQLite query to answer to the question: What is the role of the aircraft that has a registration of s5-hpb?: ``` SELECT role FROM table_name_51 WHERE registration = "s5-hpb" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE weather (zip_code VARCHAR, mean_visibility_miles INTEGER) Question: Find the zip code in which the average mean visibility is lower than 10. [/INST] Here is the SQLite query to answer to the question: Find the zip code in which the average mean visibility is lower than 10.: ``` SELECT zip_code FROM weather GROUP BY zip_code HAVING AVG(mean_visibility_miles) < 10 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_14342592_5 (touchdowns VARCHAR, points VARCHAR) Question: When the total points are 22 how many total touchdowns have been made? [/INST] Here is the SQLite query to answer to the question: When the total points are 22 how many total touchdowns have been made?: ``` SELECT touchdowns FROM table_14342592_5 WHERE points = 22 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_23 (bangladeshis_admitted INTEGER, nepalis_admitted VARCHAR, pakistanis_admitted VARCHAR) Question: How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted? [/INST] Here is the SQLite query to answer to the question: How many Bangladeshis were admitted when 714 Nepalis and 13,575 Pakistanis were admitted?: ``` SELECT AVG(bangladeshis_admitted) FROM table_name_23 WHERE nepalis_admitted = 714 AND pakistanis_admitted > 13 OFFSET 575 ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_23050383_1 (kei VARCHAR, economic_incentive_regime VARCHAR) Question: How many KEI catagories are listed when the economic incentive regime is 2.56? [/INST] Here is the SQLite query to answer to the question: How many KEI catagories are listed when the economic incentive regime is 2.56? : ``` SELECT COUNT(kei) FROM table_23050383_1 WHERE economic_incentive_regime = "2.56" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_18143210_2 (first_season_of_current_spell_in_top_division VARCHAR, first_season_in_top_division VARCHAR) Question: When was the 'first season of current spell in top division' if the first season in top division is in 1964-65? [/INST] Here is the SQLite query to answer to the question: When was the 'first season of current spell in top division' if the first season in top division is in 1964-65?: ``` SELECT first_season_of_current_spell_in_top_division FROM table_18143210_2 WHERE first_season_in_top_division = "1964-65" ```
[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 (visiting_team VARCHAR, final_score VARCHAR) Question: Which visiting team wound up with a final score of 18-40? [/INST] Here is the SQLite query to answer to the question: Which visiting team wound up with a final score of 18-40?: ``` SELECT visiting_team FROM table_name_77 WHERE final_score = "18-40" ```
[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 (races VARCHAR, points VARCHAR) Question: How many races did he do in the year he had 8 points? [/INST] Here is the SQLite query to answer to the question: How many races did he do in the year he had 8 points?: ``` SELECT races FROM table_name_47 WHERE points = "8" ```
[INST] Write SQLite query to answer the following question given the database schema. Please wrap your code answer using ```: Schema: CREATE TABLE table_name_33 (result VARCHAR, nominated_work VARCHAR, award VARCHAR) Question: When Marlene was nominated for the Olivier Award, what was the result? [/INST] Here is the SQLite query to answer to the question: When Marlene was nominated for the Olivier Award, what was the result?: ``` SELECT result FROM table_name_33 WHERE nominated_work = "marlene" AND award = "olivier award" ```
[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 (event VARCHAR, opponent VARCHAR) Question: What event did he fight masato shiozawa? [/INST] Here is the SQLite query to answer to the question: What event did he fight masato shiozawa?: ``` SELECT event FROM table_name_82 WHERE opponent = "masato shiozawa" ```