text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the Category after 1991 with a Score of 7-5, 6-7, 6-2? ### Context: CREATE TABLE table_name_90 (category VARCHAR, year VARCHAR, score VARCHAR) [/INST] ### Response: SELECT category FROM table_name_90 WHERE year > 1991 AND score = "7-5, 6-7, 6-2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the issue date for the song by Paul Mccartney and Michael Jackson? ### Context: CREATE TABLE table_name_97 (issue_date_s_ VARCHAR, artist VARCHAR) [/INST] ### Response: SELECT issue_date_s_ FROM table_name_97 WHERE artist = "paul mccartney and michael jackson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest number of seats with INC as an election winner and BJP incumbent? ### Context: CREATE TABLE table_name_57 (seats__acs_ INTEGER, election_winner VARCHAR, incumbent VARCHAR) [/INST] ### Response: SELECT MIN(seats__acs_) FROM table_name_57 WHERE election_winner = "inc" AND incumbent = "bjp" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the election winner with a BJP incumbent in Chhattisgarh? ### Context: CREATE TABLE table_name_77 (election_winner VARCHAR, incumbent VARCHAR, state VARCHAR) [/INST] ### Response: SELECT election_winner FROM table_name_77 WHERE incumbent = "bjp" AND state = "chhattisgarh" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country has an IATA of EVN? ### Context: CREATE TABLE table_name_8 (country VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT country FROM table_name_8 WHERE iata = "evn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the airport located in Russia with an IATA of AER? ### Context: CREATE TABLE table_name_34 (airport VARCHAR, country VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_34 WHERE country = "russia" AND iata = "aer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the airport located in Russia with an IATA of KRR? ### Context: CREATE TABLE table_name_30 (airport VARCHAR, country VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_30 WHERE country = "russia" AND iata = "krr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the airport with an ICAO of ULLI? ### Context: CREATE TABLE table_name_40 (airport VARCHAR, icao VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_40 WHERE icao = "ulli" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the ICAO for the destination in Armenia? ### Context: CREATE TABLE table_name_80 (icao VARCHAR, country VARCHAR) [/INST] ### Response: SELECT icao FROM table_name_80 WHERE country = "armenia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the airport with an IATA of KUF? ### Context: CREATE TABLE table_name_68 (airport VARCHAR, iata VARCHAR) [/INST] ### Response: SELECT airport FROM table_name_68 WHERE iata = "kuf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of Author Del Corro? ### Context: CREATE TABLE table_name_84 (status VARCHAR, authors VARCHAR) [/INST] ### Response: SELECT status FROM table_name_84 WHERE authors = "del corro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of the authors of Molnar? ### Context: CREATE TABLE table_name_65 (location VARCHAR, authors VARCHAR) [/INST] ### Response: SELECT location FROM table_name_65 WHERE authors = "molnar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of Prenocephale? ### Context: CREATE TABLE table_name_96 (status VARCHAR, name VARCHAR) [/INST] ### Response: SELECT status FROM table_name_96 WHERE name = "prenocephale" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the novel that has a valid status, located in Mongolia, and named Prenocephale? ### Context: CREATE TABLE table_name_40 (novelty VARCHAR, name VARCHAR, status VARCHAR, location VARCHAR) [/INST] ### Response: SELECT novelty FROM table_name_40 WHERE status = "valid" AND location = "mongolia" AND name = "prenocephale" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the novelty of Tylocephale? ### Context: CREATE TABLE table_name_14 (novelty VARCHAR, name VARCHAR) [/INST] ### Response: SELECT novelty FROM table_name_14 WHERE name = "tylocephale" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team 1 has vfl gummersbach as team 2? ### Context: CREATE TABLE table_name_13 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_13 WHERE team_2 = "vfl gummersbach" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team 1 has cbm valladolid as team 2? ### Context: CREATE TABLE table_name_75 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_75 WHERE team_2 = "cbm valladolid" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 2nd leg has rk gold club kozina as team 1? ### Context: CREATE TABLE table_name_23 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_23 WHERE team_1 = "rk gold club kozina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What 1st leg has 52-70 as the agg.? ### Context: CREATE TABLE table_name_8 (agg VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_8 WHERE agg = "52-70" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface for October 10, 2004? ### Context: CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_72 WHERE date = "october 10, 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the surface for the opponent Roger Federer? ### Context: CREATE TABLE table_name_94 (surface VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_94 WHERE opponent = "roger federer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years was the 400 m event in the olympic games? ### Context: CREATE TABLE table_name_28 (year VARCHAR, competition VARCHAR, event VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_28 WHERE competition = "olympic games" AND event = "400 m" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many were in attendance of the game with l 26-21 result? ### Context: CREATE TABLE table_name_28 (attendance VARCHAR, result VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_28 WHERE result = "l 26-21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the opponent for the game with 37,845 people in attendance? ### Context: CREATE TABLE table_name_64 (opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_64 WHERE attendance = "37,845" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many silver medals were there with 2 gold medals and more than 2 bronze medals? ### Context: CREATE TABLE table_name_11 (silver VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT silver FROM table_name_11 WHERE gold = 2 AND bronze > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest total number of medals for rank 11 and more than 0 silver medals? ### Context: CREATE TABLE table_name_25 (total INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_25 WHERE rank = "11" AND silver > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of all total medals with more than 2 bronze medals and more than 1 gold medal for the United States? ### Context: CREATE TABLE table_name_27 (total INTEGER, gold VARCHAR, bronze VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_27 WHERE bronze > 2 AND nation = "united states" AND gold > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest number of gold medals for Canada with more than 7 bronze medals? ### Context: CREATE TABLE table_name_31 (gold INTEGER, nation VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_31 WHERE nation = "canada" AND bronze > 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of all silver medals with less than 23 medals in total and more than 3 bronze medals for the United States? ### Context: CREATE TABLE table_name_21 (silver INTEGER, bronze VARCHAR, total VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT SUM(silver) FROM table_name_21 WHERE total < 23 AND nation = "united states" AND bronze > 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was Steve Williams in Zurich and his result was 10.07? ### Context: CREATE TABLE table_name_28 (date VARCHAR, location VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_28 WHERE location = "zurich" AND result = 10.07 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the largest number lost with 0 draws and less than 12 points for Gwardia Katowice? ### Context: CREATE TABLE table_name_81 (lost INTEGER, points VARCHAR, draw VARCHAR, team VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_81 WHERE draw = 0 AND team = "gwardia katowice" AND points < 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest number of draws with 6 losses and less than 15 points? ### Context: CREATE TABLE table_name_94 (draw INTEGER, lost VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(draw) FROM table_name_94 WHERE lost = 6 AND points < 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many draws correspond to more than 11 losses in a match less than 14? ### Context: CREATE TABLE table_name_36 (draw VARCHAR, lost VARCHAR, match VARCHAR) [/INST] ### Response: SELECT COUNT(draw) FROM table_name_36 WHERE lost > 11 AND match < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Director of Children of Sarajevo? ### Context: CREATE TABLE table_name_39 (director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT director FROM table_name_39 WHERE film_title_used_in_nomination = "children of sarajevo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Result of the 2010 (83rd) Ceremony? ### Context: CREATE TABLE table_name_11 (result VARCHAR, year__ceremony_ VARCHAR) [/INST] ### Response: SELECT result FROM table_name_11 WHERE year__ceremony_ = "2010 (83rd)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Result of the 2013 (86th) Ceremony? ### Context: CREATE TABLE table_name_77 (result VARCHAR, year__ceremony_ VARCHAR) [/INST] ### Response: SELECT result FROM table_name_77 WHERE year__ceremony_ = "2013 (86th)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Original title of Children of Sarajevo? ### Context: CREATE TABLE table_name_42 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_42 WHERE film_title_used_in_nomination = "children of sarajevo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the 2012 (85th) Ceremony, what was the Original title of the film not nominated? ### Context: CREATE TABLE table_name_66 (original_title VARCHAR, result VARCHAR, year__ceremony_ VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_66 WHERE result = "not nominated" AND year__ceremony_ = "2012 (85th)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest draw number for the song ranked 6th with more than 43 points? ### Context: CREATE TABLE table_name_22 (draw INTEGER, points VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MIN(draw) FROM table_name_22 WHERE points > 43 AND rank = "6th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total sum of points for songs performed by Partners in Crime? ### Context: CREATE TABLE table_name_16 (points INTEGER, performer VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_16 WHERE performer = "partners in crime" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the class of facility ID 150935? ### Context: CREATE TABLE table_name_21 (class VARCHAR, facility_id VARCHAR) [/INST] ### Response: SELECT class FROM table_name_21 WHERE facility_id = 150935 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which city has a facility ID greater than 150833? ### Context: CREATE TABLE table_name_17 (city_of_license VARCHAR, facility_id INTEGER) [/INST] ### Response: SELECT city_of_license FROM table_name_17 WHERE facility_id > 150833 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position does the player from the Toronto Argonauts play? ### Context: CREATE TABLE table_name_99 (position VARCHAR, cfl_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_99 WHERE cfl_team = "toronto argonauts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the 1st leg for Team 2 Concepto Egile? ### Context: CREATE TABLE table_name_88 (team_2 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_88 WHERE team_2 = "concepto egile" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team 1 has team 2, Gomera? ### Context: CREATE TABLE table_name_54 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_54 WHERE team_2 = "gomera" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What public team was founded prior to 1883? ### Context: CREATE TABLE table_name_45 (team VARCHAR, founded VARCHAR, type VARCHAR) [/INST] ### Response: SELECT team FROM table_name_45 WHERE founded < 1883 AND type = "public" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who has exactly 342 spikes? ### Context: CREATE TABLE table_name_68 (name VARCHAR, spike VARCHAR) [/INST] ### Response: SELECT name FROM table_name_68 WHERE spike = 342 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest number of spikes for players with a weight of 83 and height over 190? ### Context: CREATE TABLE table_name_69 (spike INTEGER, weight VARCHAR, height VARCHAR) [/INST] ### Response: SELECT MIN(spike) FROM table_name_69 WHERE weight = 83 AND height > 190 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Class, when Power is 78 Watts? ### Context: CREATE TABLE table_name_15 (class VARCHAR, power VARCHAR) [/INST] ### Response: SELECT class FROM table_name_15 WHERE power = "78 watts" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Power, when Identifier is CBEB-FM? ### Context: CREATE TABLE table_name_48 (power VARCHAR, identifier VARCHAR) [/INST] ### Response: SELECT power FROM table_name_48 WHERE identifier = "cbeb-fm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Identifier, when City of License is Terrace Bay? ### Context: CREATE TABLE table_name_26 (identifier VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT identifier FROM table_name_26 WHERE city_of_license = "terrace bay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Power, when City of License is Sioux Lookout? ### Context: CREATE TABLE table_name_93 (power VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT power FROM table_name_93 WHERE city_of_license = "sioux lookout" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Identifier, when City of License is Hornepayne? ### Context: CREATE TABLE table_name_55 (identifier VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT identifier FROM table_name_55 WHERE city_of_license = "hornepayne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is City of License, when Frequency is 101.1? ### Context: CREATE TABLE table_name_20 (city_of_license VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT city_of_license FROM table_name_20 WHERE frequency = "101.1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which LE-5 Model has an LE-5A of 130? ### Context: CREATE TABLE table_name_2 (le_5_model VARCHAR, le_5A VARCHAR) [/INST] ### Response: SELECT le_5_model FROM table_name_2 WHERE le_5A = 130 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Series had 14 races and 12th position? ### Context: CREATE TABLE table_name_11 (series VARCHAR, races VARCHAR, position VARCHAR) [/INST] ### Response: SELECT series FROM table_name_11 WHERE races = 14 AND position = "12th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What season was the Formula BMW USA in? ### Context: CREATE TABLE table_name_87 (season VARCHAR, series VARCHAR) [/INST] ### Response: SELECT season FROM table_name_87 WHERE series = "formula bmw usa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What series had more than 10 Podiums? ### Context: CREATE TABLE table_name_73 (series VARCHAR, podiums INTEGER) [/INST] ### Response: SELECT series FROM table_name_73 WHERE podiums > 10 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Status with an Author that is colbert? ### Context: CREATE TABLE table_name_25 (status VARCHAR, authors VARCHAR) [/INST] ### Response: SELECT status FROM table_name_25 WHERE authors = "colbert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college was the draft pick number larger than 18 that went to the Barangay ginebra kings? ### Context: CREATE TABLE table_name_78 (college VARCHAR, pick VARCHAR, pba_team VARCHAR) [/INST] ### Response: SELECT college FROM table_name_78 WHERE pick > 18 AND pba_team = "barangay ginebra kings" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the pick numbers for the player that went to San Miguel Beermen who played at San Sebastian? ### Context: CREATE TABLE table_name_36 (pick INTEGER, pba_team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_36 WHERE pba_team = "san miguel beermen" AND college = "san sebastian" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of picks for PBA team san miguel beermen who picked rommel daep? ### Context: CREATE TABLE table_name_26 (pick VARCHAR, pba_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(pick) FROM table_name_26 WHERE pba_team = "san miguel beermen" AND player = "rommel daep" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who won after 1999 with changwon lg sakers as runners-up? ### Context: CREATE TABLE table_name_47 (champions VARCHAR, year VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT champions FROM table_name_47 WHERE year > 1999 AND runners_up = "changwon lg sakers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the result for the champions jeonju kcc egis with runners-up seoul samsung thunders after 2007? ### Context: CREATE TABLE table_name_39 (result VARCHAR, champions VARCHAR, year VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT result FROM table_name_39 WHERE year > 2007 AND runners_up = "seoul samsung thunders" AND champions = "jeonju kcc egis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the winning team in 2013? ### Context: CREATE TABLE table_name_74 (winning_team VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_74 WHERE year = 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest year that Europe won, when the USA's Captain was Kathy Whitworth? ### Context: CREATE TABLE table_name_93 (year INTEGER, winning_team VARCHAR, usa_captain VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_93 WHERE winning_team = "europe" AND usa_captain = "kathy whitworth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the USA's captain was Beth Daniel, who was the winning team? ### Context: CREATE TABLE table_name_99 (winning_team VARCHAR, usa_captain VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_99 WHERE usa_captain = "beth daniel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Season when league shows bundesliga, and a European competition of played korac cup? ### Context: CREATE TABLE table_name_25 (season VARCHAR, league VARCHAR, european_competitions VARCHAR) [/INST] ### Response: SELECT season FROM table_name_25 WHERE league = "bundesliga" AND european_competitions = "played korac cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average Tier when the postseason shows -, and the season is 2012–13? ### Context: CREATE TABLE table_name_56 (tier INTEGER, postseason VARCHAR, season VARCHAR) [/INST] ### Response: SELECT AVG(tier) FROM table_name_56 WHERE postseason = "–" AND season = "2012–13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the European competition when the tier is more than 2? ### Context: CREATE TABLE table_name_33 (european_competitions VARCHAR, tier INTEGER) [/INST] ### Response: SELECT european_competitions FROM table_name_33 WHERE tier > 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the outcome of the match played on grass? ### Context: CREATE TABLE table_name_64 (outcome VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_64 WHERE surface = "grass" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the outcome of the match on February 17, 2003? ### Context: CREATE TABLE table_name_13 (outcome VARCHAR, date__final_ VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_13 WHERE date__final_ = "february 17, 2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many average wins have USA as the team? ### Context: CREATE TABLE table_name_25 (wins INTEGER, team VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_25 WHERE team = "usa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the average wins that have great britain as the team? ### Context: CREATE TABLE table_name_80 (wins INTEGER, team VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_80 WHERE team = "great britain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the average draft pick number from Carson-Newman College before Round 7? ### Context: CREATE TABLE table_name_21 (pick__number INTEGER, college VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(pick__number) FROM table_name_21 WHERE college = "carson-newman" AND round < 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which college has a pick number of 155? ### Context: CREATE TABLE table_name_19 (college VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT college FROM table_name_19 WHERE pick__number = 155 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score in the final has november 3, 2002 as the date? ### Context: CREATE TABLE table_name_76 (score_in_the_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_76 WHERE date = "november 3, 2002" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What surface has natalia gussoni as the partner? ### Context: CREATE TABLE table_name_14 (surface VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_14 WHERE partner = "natalia gussoni" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What outcome has September 23, 2013 as the date? ### Context: CREATE TABLE table_name_68 (outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_68 WHERE date = "september 23, 2013" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score in the final has hard as the surface, and june 13, 2011 as the date? ### Context: CREATE TABLE table_name_57 (score_in_the_final VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_57 WHERE surface = "hard" AND date = "june 13, 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date has elke clijsters as the partner? ### Context: CREATE TABLE table_name_43 (date VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT date FROM table_name_43 WHERE partner = "elke clijsters" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Round with a Prize of money that is £120,000? ### Context: CREATE TABLE table_name_59 (round VARCHAR, prize_money VARCHAR) [/INST] ### Response: SELECT round FROM table_name_59 WHERE prize_money = "£120,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Match with a Prize of money that is £1,000,000? ### Context: CREATE TABLE table_name_16 (matches VARCHAR, prize_money VARCHAR) [/INST] ### Response: SELECT matches FROM table_name_16 WHERE prize_money = "£1,000,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When alvin and the chipmunks meet frankenstein, what was the role? ### Context: CREATE TABLE table_name_99 (role VARCHAR, title VARCHAR) [/INST] ### Response: SELECT role FROM table_name_99 WHERE title = "alvin and the chipmunks meet frankenstein" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the earliest year with a role of alvin seville simon seville david 'dave' seville, and a Title of alvin and the chipmunks meet the wolfman? ### Context: CREATE TABLE table_name_18 (year INTEGER, role VARCHAR, title VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_18 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "alvin and the chipmunks meet the wolfman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the average year for the Role of alvin seville simon seville david 'dave' seville, and a Title of the chipmunk adventure? ### Context: CREATE TABLE table_name_30 (year INTEGER, role VARCHAR, title VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_30 WHERE role = "alvin seville simon seville david 'dave' seville" AND title = "the chipmunk adventure" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the role in the chipmunk adventure? ### Context: CREATE TABLE table_name_53 (role VARCHAR, title VARCHAR) [/INST] ### Response: SELECT role FROM table_name_53 WHERE title = "the chipmunk adventure" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What role was played in 2007? ### Context: CREATE TABLE table_name_37 (role VARCHAR, year VARCHAR) [/INST] ### Response: SELECT role FROM table_name_37 WHERE year = 2007 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of points for the KV Racing Technology team when they use a chevrolet engine? ### Context: CREATE TABLE table_name_75 (points VARCHAR, engine VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(points) FROM table_name_75 WHERE engine = "chevrolet" AND team = "kv racing technology" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which engine has a chassis of dallara, is ranked 6th, and has 384 points? ### Context: CREATE TABLE table_name_99 (engine VARCHAR, points VARCHAR, chassis VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_99 WHERE chassis = "dallara" AND rank = "6th" AND points = 384 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which engine is used when there is a 3rd place rank and 513 points? ### Context: CREATE TABLE table_name_23 (engine VARCHAR, rank VARCHAR, points VARCHAR) [/INST] ### Response: SELECT engine FROM table_name_23 WHERE rank = "3rd" AND points = 513 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the chassis when the rank is 3rd? ### Context: CREATE TABLE table_name_25 (chassis VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_25 WHERE rank = "3rd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the years that Andretti Autosport is a team? ### Context: CREATE TABLE table_name_44 (year VARCHAR, team VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_44 WHERE team = "andretti autosport" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team is ranked 3rd in 2008? ### Context: CREATE TABLE table_name_66 (team VARCHAR, rank VARCHAR, year VARCHAR) [/INST] ### Response: SELECT team FROM table_name_66 WHERE rank = "3rd" AND year = 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Oilers points have a Record of 10–6, and Oilers first downs larger than 14? ### Context: CREATE TABLE table_name_1 (oilers_points INTEGER, record VARCHAR, oilers_first_downs VARCHAR) [/INST] ### Response: SELECT AVG(oilers_points) FROM table_name_1 WHERE record = "10–6" AND oilers_first_downs > 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Oilers points have an Opponent of san francisco 49ers, and Opponents larger than 19? ### Context: CREATE TABLE table_name_72 (oilers_points INTEGER, opponent VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT MAX(oilers_points) FROM table_name_72 WHERE opponent = "san francisco 49ers" AND opponents > 19 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Game has an Opponent of at kansas city chiefs, and an Attendance smaller than 40,213? ### Context: CREATE TABLE table_name_60 (game INTEGER, opponent VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_60 WHERE opponent = "at kansas city chiefs" AND attendance < 40 OFFSET 213 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the name of the country that has 18 May 2004 as the date? ### Context: CREATE TABLE table_name_27 (country VARCHAR, date VARCHAR) [/INST] ### Response: SELECT country FROM table_name_27 WHERE date = "18 may 2004" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What catalog has Australia as the country? ### Context: CREATE TABLE table_name_58 (catalog VARCHAR, country VARCHAR) [/INST] ### Response: SELECT catalog FROM table_name_58 WHERE country = "australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what format was the release that was dated 7 April 2003 from catalog 584 2112? ### Context: CREATE TABLE table_name_18 (format VARCHAR, date VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_18 WHERE date = "7 april 2003" AND catalog = "584 2112" </s>