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: When the runner-up was Jing-qian Yi, who was the winner? ### Context: CREATE TABLE table_name_74 (winner VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_74 WHERE runner_up = "jing-qian yi" </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 episode number in which Jamie Oliver guest-hosted? ### Context: CREATE TABLE table_name_89 (episode_number INTEGER, guest_host VARCHAR) [/INST] ### Response: SELECT MAX(episode_number) FROM table_name_89 WHERE guest_host = "jamie oliver" </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 score of the home game for the Cavaliers where Lebron James (46) was the lead scorer? ### Context: CREATE TABLE table_name_60 (score VARCHAR, home VARCHAR, leading_scorer VARCHAR) [/INST] ### Response: SELECT score FROM table_name_60 WHERE home = "cavaliers" AND leading_scorer = "lebron james (46)" </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 leading scorer against the visiting team Bulls? ### Context: CREATE TABLE table_name_96 (leading_scorer VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT leading_scorer FROM table_name_96 WHERE visitor = "bulls" </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 was the game played against the home team Rockets? ### Context: CREATE TABLE table_name_28 (date VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_28 WHERE home = "rockets" </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 Date of the Cimmeria Issue for which the Penciller was Tomás Giorello? ### Context: CREATE TABLE table_name_67 (date VARCHAR, penciller VARCHAR, title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE penciller = "tomás giorello" AND title = "cimmeria" </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 did the Issue with the Title Homecoming come out? ### Context: CREATE TABLE table_name_5 (date VARCHAR, title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_5 WHERE title = "homecoming" </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 average match has a lost greater than 0, points greater than 6, legia warszawa as the team, and a draw less than 0? ### Context: CREATE TABLE table_name_55 (match INTEGER, draw VARCHAR, team VARCHAR, lost VARCHAR, points VARCHAR) [/INST] ### Response: SELECT AVG(match) FROM table_name_55 WHERE lost > 0 AND points > 6 AND team = "legia warszawa" AND draw < 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 draw has a lost less than 6 with 28 as the points? ### Context: CREATE TABLE table_name_23 (draw VARCHAR, lost VARCHAR, points VARCHAR) [/INST] ### Response: SELECT draw FROM table_name_23 WHERE lost < 6 AND points = 28 </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 average lost that has a match less than 14? ### Context: CREATE TABLE table_name_9 (lost INTEGER, match INTEGER) [/INST] ### Response: SELECT AVG(lost) FROM table_name_9 WHERE 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 Match for skra warszawa? ### Context: CREATE TABLE table_name_65 (match VARCHAR, team VARCHAR) [/INST] ### Response: SELECT match FROM table_name_65 WHERE team = "skra warszawa" </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 Draw for skra warszawa? ### Context: CREATE TABLE table_name_5 (draw VARCHAR, team VARCHAR) [/INST] ### Response: SELECT draw FROM table_name_5 WHERE team = "skra warszawa" </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 Lost when the points were dissolved? ### Context: CREATE TABLE table_name_61 (lost VARCHAR, points VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_61 WHERE points = "dissolved" </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 Draw for match 10, and the team was skra warszawa? ### Context: CREATE TABLE table_name_76 (draw VARCHAR, match VARCHAR, team VARCHAR) [/INST] ### Response: SELECT draw FROM table_name_76 WHERE match = "10" AND team = "skra warszawa" </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 Draw for the team of tramwajarz łódź? ### Context: CREATE TABLE table_name_2 (draw VARCHAR, team VARCHAR) [/INST] ### Response: SELECT draw FROM table_name_2 WHERE team = "tramwajarz łódź" </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 Draw for the team tramwajarz łódź? ### Context: CREATE TABLE table_name_94 (draw VARCHAR, team VARCHAR) [/INST] ### Response: SELECT draw FROM table_name_94 WHERE team = "tramwajarz łódź" </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 when the novelty is gen? ### Context: CREATE TABLE table_name_12 (location VARCHAR, novelty VARCHAR) [/INST] ### Response: SELECT location FROM table_name_12 WHERE novelty = "gen" </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 shows for Unit with a status of nomen oblitum? ### Context: CREATE TABLE table_name_16 (unit VARCHAR, status VARCHAR) [/INST] ### Response: SELECT unit FROM table_name_16 WHERE status = "nomen oblitum" </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 when the name is telmatosaurus? ### Context: CREATE TABLE table_name_23 (location VARCHAR, name VARCHAR) [/INST] ### Response: SELECT location FROM table_name_23 WHERE name = "telmatosaurus" </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 a novelty of gen et sp, and the name is haplocanthosaurus? ### Context: CREATE TABLE table_name_12 (status VARCHAR, novelty VARCHAR, name VARCHAR) [/INST] ### Response: SELECT status FROM table_name_12 WHERE novelty = "gen et sp" AND name = "haplocanthosaurus" </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 League cups had a total less than 25 and a league larger than 19? ### Context: CREATE TABLE table_name_70 (league VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(league) AS Cup FROM table_name_70 WHERE total < 25 AND league > 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: How many FA trophies did Ceri Williams get with a smaller total than 19? ### Context: CREATE TABLE table_name_27 (fa_trophy VARCHAR, player VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(fa_trophy) FROM table_name_27 WHERE player = "ceri williams" AND total < 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 City has an Average of 6.85? ### Context: CREATE TABLE table_name_27 (city VARCHAR, average VARCHAR) [/INST] ### Response: SELECT city FROM table_name_27 WHERE average = 6.85 </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 of bergen, norway? ### Context: CREATE TABLE table_name_81 (average INTEGER, city VARCHAR) [/INST] ### Response: SELECT MIN(average) FROM table_name_81 WHERE city = "bergen, norway" </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 Comprehension of Danish has an Average smaller than 6.85, and a Comprehension of Norwegian of 4.13? ### Context: CREATE TABLE table_name_48 (comprehension_of_danish VARCHAR, average VARCHAR, comprehension_of_norwegian VARCHAR) [/INST] ### Response: SELECT comprehension_of_danish FROM table_name_48 WHERE average < 6.85 AND comprehension_of_norwegian = "4.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 are the Attendance numbers for november 18, 1990? ### Context: CREATE TABLE table_name_38 (attendance VARCHAR, date VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_38 WHERE date = "november 18, 1990" </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 Date for a week higher than 7 with a record of 9–1? ### Context: CREATE TABLE table_name_68 (date VARCHAR, week VARCHAR, record VARCHAR) [/INST] ### Response: SELECT date FROM table_name_68 WHERE week > 7 AND record = "9–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 average week of a game on November 12, 1989? ### Context: CREATE TABLE table_name_26 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT AVG(week) FROM table_name_26 WHERE date = "november 12, 1989" </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 Set 5 with a Set 3 that is 25-23 and a Set 4 that is 23-25? ### Context: CREATE TABLE table_name_15 (set_5 VARCHAR, set_3 VARCHAR, set_4 VARCHAR) [/INST] ### Response: SELECT set_5 FROM table_name_15 WHERE set_3 = "25-23" AND set_4 = "23-25" </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 Game with a Set 4 of 25-21 and a Set 3 of 25-23? ### Context: CREATE TABLE table_name_24 (game INTEGER, set_4 VARCHAR, set_3 VARCHAR) [/INST] ### Response: SELECT SUM(game) FROM table_name_24 WHERE set_4 = "25-21" AND set_3 = "25-23" </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 Set 5 with a Game that is 59? ### Context: CREATE TABLE table_name_9 (set_5 VARCHAR, game VARCHAR) [/INST] ### Response: SELECT set_5 FROM table_name_9 WHERE game = 59 </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 shows for nation when the Competition is preseason, Year less than 2011, and a Club of chivas de guadalajara? ### Context: CREATE TABLE table_name_37 (nation VARCHAR, club VARCHAR, competition VARCHAR, year VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_37 WHERE competition = "preseason" AND year < 2011 AND club = "chivas de guadalajara" </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 Result for the club universidad de guadalajara? ### Context: CREATE TABLE table_name_11 (result VARCHAR, club VARCHAR) [/INST] ### Response: SELECT result FROM table_name_11 WHERE club = "club universidad de guadalajara" </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 Nation with 2012 as the year, and a Competition of preseason, and a Result of w 0–3? ### Context: CREATE TABLE table_name_48 (nation VARCHAR, result VARCHAR, year VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_48 WHERE year = 2012 AND competition = "preseason" AND result = "w 0–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: What is the average Year when the Competition was friendly, and a Club of everton? ### Context: CREATE TABLE table_name_28 (year INTEGER, competition VARCHAR, club VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_28 WHERE competition = "friendly" AND club = "everton" </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 Competition when the Club was costa rica u-20? ### Context: CREATE TABLE table_name_94 (competition VARCHAR, club VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_94 WHERE club = "costa rica u-20" </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 Club of mexico, Year of 2010, and a Competition of preseason, and a Result of w 0–1? ### Context: CREATE TABLE table_name_8 (club VARCHAR, result VARCHAR, competition VARCHAR, nation VARCHAR, year VARCHAR) [/INST] ### Response: SELECT club FROM table_name_8 WHERE nation = "mexico" AND year = 2010 AND competition = "preseason" AND result = "w 0–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 lowest total when the nation is Sweden? ### Context: CREATE TABLE table_name_23 (total INTEGER, nation VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_23 WHERE nation = "sweden" </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 Total when silver is less than 1, and the rank is 15? ### Context: CREATE TABLE table_name_12 (total INTEGER, silver VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_12 WHERE silver < 1 AND rank = "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: What is the total number of Bronze when rank is 11, and the total is less than 1? ### Context: CREATE TABLE table_name_8 (bronze VARCHAR, rank VARCHAR, total VARCHAR) [/INST] ### Response: SELECT COUNT(bronze) FROM table_name_8 WHERE rank = "11" AND total < 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 year is the latest year that has no under director? ### Context: CREATE TABLE table_name_18 (year INTEGER, director VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_18 WHERE director = "no" </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: With yes under writer and in 2014, what is the director? ### Context: CREATE TABLE table_name_77 (director VARCHAR, year VARCHAR, writer VARCHAR) [/INST] ### Response: SELECT director FROM table_name_77 WHERE year = 2014 AND writer = "yes" </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 writer of the film Run? ### Context: CREATE TABLE table_name_14 (writer VARCHAR, film VARCHAR) [/INST] ### Response: SELECT writer FROM table_name_14 WHERE film = "run" </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 most goals made for a person with less than 208 matches and ranked lower than 12? ### Context: CREATE TABLE table_name_94 (goals INTEGER, matches VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT MAX(goals) FROM table_name_94 WHERE matches < 208 AND rank > 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: In what years was there a rank lower than 9, under 84 goals, and more than 158 matches? ### Context: CREATE TABLE table_name_63 (years VARCHAR, goals VARCHAR, matches VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT years FROM table_name_63 WHERE matches > 158 AND rank > 9 AND goals < 84 </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 HDTV status of the r-light television service? ### Context: CREATE TABLE table_name_12 (hdtv VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT hdtv FROM table_name_12 WHERE television_service = "r-light" </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 television service has programmi per adulti 24h/24 content and no HDTV? ### Context: CREATE TABLE table_name_41 (television_service VARCHAR, content VARCHAR, hdtv VARCHAR) [/INST] ### Response: SELECT television_service FROM table_name_41 WHERE content = "programmi per adulti 24h/24" AND hdtv = "no" </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 television service has a qualsiasi package/option? ### Context: CREATE TABLE table_name_27 (television_service VARCHAR, package_option VARCHAR) [/INST] ### Response: SELECT television_service FROM table_name_27 WHERE package_option = "qualsiasi" </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 wins for Darley of Ballarat FL against larger than 1055? ### Context: CREATE TABLE table_name_96 (wins VARCHAR, ballarat_fl VARCHAR, against VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_96 WHERE ballarat_fl = "darley" AND against > 1055 </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 that has less than 4 wins, 14 losses, and against more than 1836? ### Context: CREATE TABLE table_name_4 (draws INTEGER, against VARCHAR, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MIN(draws) FROM table_name_4 WHERE wins < 4 AND losses = 14 AND against > 1836 </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 Byes that has Ballarat FL of Sunbury against more than 1167? ### Context: CREATE TABLE table_name_70 (byes INTEGER, ballarat_fl VARCHAR, against VARCHAR) [/INST] ### Response: SELECT AVG(byes) FROM table_name_70 WHERE ballarat_fl = "sunbury" AND against > 1167 </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 draws with more than 1 win, 14 losses, and against less than 1836? ### Context: CREATE TABLE table_name_17 (draws INTEGER, against VARCHAR, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT AVG(draws) FROM table_name_17 WHERE wins > 1 AND losses = 14 AND against < 1836 </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 lowest draw from Ballarat FL of sunbury, and byes larger than 2? ### Context: CREATE TABLE table_name_94 (draws INTEGER, ballarat_fl VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT MIN(draws) FROM table_name_94 WHERE ballarat_fl = "sunbury" AND byes > 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: Which away has apoel as the club? ### Context: CREATE TABLE table_name_41 (away VARCHAR, club VARCHAR) [/INST] ### Response: SELECT away FROM table_name_41 WHERE club = "apoel" </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 away has uefa cup as the competition, group f as the round, with espanyol as the club? ### Context: CREATE TABLE table_name_6 (away VARCHAR, club VARCHAR, competition VARCHAR, round VARCHAR) [/INST] ### Response: SELECT away FROM table_name_6 WHERE competition = "uefa cup" AND round = "group f" AND club = "espanyol" </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 location were the fatalities unknown for the Ju-52 aircraft? ### Context: CREATE TABLE table_name_12 (location VARCHAR, fatalities VARCHAR, aircraft VARCHAR) [/INST] ### Response: SELECT location FROM table_name_12 WHERE fatalities = "unknown" AND aircraft = "ju-52" </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 location was the tail number ZS-SPF? ### Context: CREATE TABLE table_name_83 (location VARCHAR, tail_number VARCHAR) [/INST] ### Response: SELECT location FROM table_name_83 WHERE tail_number = "zs-spf" </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 location of the Ju-52 aircraft? ### Context: CREATE TABLE table_name_61 (location VARCHAR, aircraft VARCHAR) [/INST] ### Response: SELECT location FROM table_name_61 WHERE aircraft = "ju-52" </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 fatalities occurred for an unknown tail number? ### Context: CREATE TABLE table_name_60 (fatalities VARCHAR, tail_number VARCHAR) [/INST] ### Response: SELECT fatalities FROM table_name_60 WHERE tail_number = "unknown" </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 tail number with 3/3 fatalities? ### Context: CREATE TABLE table_name_32 (tail_number VARCHAR, fatalities VARCHAR) [/INST] ### Response: SELECT tail_number FROM table_name_32 WHERE fatalities = "3/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: How many fatalities occurred for the Ju-52 aircraft? ### Context: CREATE TABLE table_name_18 (fatalities VARCHAR, aircraft VARCHAR) [/INST] ### Response: SELECT fatalities FROM table_name_18 WHERE aircraft = "ju-52" </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 score for a goal of 6? ### Context: CREATE TABLE table_name_57 (score VARCHAR, goal VARCHAR) [/INST] ### Response: SELECT score FROM table_name_57 WHERE goal = 6 </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: Where was the match held on July 17, 1999? ### Context: CREATE TABLE table_name_43 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_43 WHERE date = "july 17, 1999" </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 on the Democratic ticket for the Office of Attorney General? ### Context: CREATE TABLE table_name_70 (democratic_ticket VARCHAR, office VARCHAR) [/INST] ### Response: SELECT democratic_ticket FROM table_name_70 WHERE office = "attorney general" </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 name has gen et sp nov as the novelty? ### Context: CREATE TABLE table_name_56 (name VARCHAR, novelty VARCHAR) [/INST] ### Response: SELECT name FROM table_name_56 WHERE novelty = "gen et sp nov" </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 authors have clarno formation as the unit, actinidia oregonensis as the name? ### Context: CREATE TABLE table_name_55 (authors VARCHAR, unit VARCHAR, name VARCHAR) [/INST] ### Response: SELECT authors FROM table_name_55 WHERE unit = "clarno formation" AND name = "actinidia oregonensis" </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 novelty has USA as the location, and coryloides as the name? ### Context: CREATE TABLE table_name_70 (novelty VARCHAR, location VARCHAR, name VARCHAR) [/INST] ### Response: SELECT novelty FROM table_name_70 WHERE location = "usa" AND name = "coryloides" </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 status has paleopanax as the name? ### Context: CREATE TABLE table_name_78 (status VARCHAR, name VARCHAR) [/INST] ### Response: SELECT status FROM table_name_78 WHERE name = "paleopanax" </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 unit has gen et sp nov as the novelty? ### Context: CREATE TABLE table_name_51 (unit VARCHAR, novelty VARCHAR) [/INST] ### Response: SELECT unit FROM table_name_51 WHERE novelty = "gen et sp nov" </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 date was the Memorial Tournament held on, when Payne Stewart was runner-up? ### Context: CREATE TABLE table_name_40 (date VARCHAR, tournament VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT date FROM table_name_40 WHERE tournament = "memorial tournament" AND runner_s__up = "payne stewart" </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 2007-08 result when the event was Colonial Square? ### Context: CREATE TABLE table_name_74 (event VARCHAR) [/INST] ### Response: SELECT 2007 AS _08 FROM table_name_74 WHERE event = "colonial square" </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 2008-09 result has Masters as the event? ### Context: CREATE TABLE table_name_58 (event VARCHAR) [/INST] ### Response: SELECT 2008 AS _09 FROM table_name_58 WHERE event = "masters" </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 year gave a nominated result for the room 222 series? ### Context: CREATE TABLE table_name_66 (year VARCHAR, result VARCHAR, series VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_66 WHERE result = "nominated" AND series = "room 222" </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 actor Teresa Graves's series before the year 1993? ### Context: CREATE TABLE table_name_82 (series VARCHAR, year VARCHAR, actor VARCHAR) [/INST] ### Response: SELECT series FROM table_name_82 WHERE year < 1993 AND actor = "teresa graves" </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 motor's quantity was more than 8, and a class of bs 1915? ### Context: CREATE TABLE table_name_57 (motor VARCHAR, quantity VARCHAR, class VARCHAR) [/INST] ### Response: SELECT motor FROM table_name_57 WHERE quantity > 8 AND class = "bs 1915" </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 motor's class was bs 1910? ### Context: CREATE TABLE table_name_84 (motor VARCHAR, class VARCHAR) [/INST] ### Response: SELECT motor FROM table_name_84 WHERE class = "bs 1910" </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 quantity when the seats number was 16 and the class was kss 1913? ### Context: CREATE TABLE table_name_67 (quantity VARCHAR, seats VARCHAR, class VARCHAR) [/INST] ### Response: SELECT quantity FROM table_name_67 WHERE seats = 16 AND class = "kss 1913" </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 Root of All Evil with an Original air date that is september 3, 2008? ### Context: CREATE TABLE table_name_33 (root_of_all_evil VARCHAR, original_air_date VARCHAR) [/INST] ### Response: SELECT root_of_all_evil FROM table_name_33 WHERE original_air_date = "september 3, 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: Goals Conceded (GC) that has a Draw (PE) larger than 2, and a Goals Scored (GF) larger than 19? ### Context: CREATE TABLE table_name_33 (goals_conceded__gc_ INTEGER, draw__pe_ VARCHAR, goals_scored__gf_ VARCHAR) [/INST] ### Response: SELECT MAX(goals_conceded__gc_) FROM table_name_33 WHERE draw__pe_ > 2 AND goals_scored__gf_ > 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: What is the number for the University of Dublin with their Cultural and Educational Panel of 5, and an Industrial and Commercial Panel with less than 9? ### Context: CREATE TABLE table_name_46 (university_of_dublin VARCHAR, cultural_and_educational_panel VARCHAR, industrial_and_commercial_panel VARCHAR) [/INST] ### Response: SELECT COUNT(university_of_dublin) FROM table_name_46 WHERE cultural_and_educational_panel = 5 AND industrial_and_commercial_panel < 9 </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 Rank has a Losing Semi- finalist larger than 1, and a Winner smaller than 5? ### Context: CREATE TABLE table_name_79 (rank VARCHAR, losing_semi__finalist VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_79 WHERE losing_semi__finalist > 1 AND winner < 5 </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 Rank has a Country of costa rica, and a Losing Semi- finalist larger than 1? ### Context: CREATE TABLE table_name_78 (rank INTEGER, country VARCHAR, losing_semi__finalist VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_78 WHERE country = "costa rica" AND losing_semi__finalist > 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 Rank has a Runner -up smaller than 0? ### Context: CREATE TABLE table_name_31 (rank INTEGER, runner__up INTEGER) [/INST] ### Response: SELECT MAX(rank) FROM table_name_31 WHERE runner__up < 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 Year was the United States the country for aug 3–5? ### Context: CREATE TABLE table_name_64 (year VARCHAR, country VARCHAR, dates VARCHAR) [/INST] ### Response: SELECT year FROM table_name_64 WHERE country = "united states" AND dates = "aug 3–5" </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 Purse for aug 3–5? ### Context: CREATE TABLE table_name_80 (purse__ INTEGER, dates VARCHAR) [/INST] ### Response: SELECT MAX(purse__) AS $_ FROM table_name_80 WHERE dates = "aug 3–5" </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 a qualsiasi tranne sky hd package/option? ### Context: CREATE TABLE table_name_21 (country VARCHAR, package_option VARCHAR) [/INST] ### Response: SELECT country FROM table_name_21 WHERE package_option = "qualsiasi tranne sky hd" </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 package/option has sky wwe 24/7 television service? ### Context: CREATE TABLE table_name_99 (package_option VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT package_option FROM table_name_99 WHERE television_service = "sky wwe 24/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 package/option for the calcio content? ### Context: CREATE TABLE table_name_53 (package_option VARCHAR, content VARCHAR) [/INST] ### Response: SELECT package_option FROM table_name_53 WHERE content = "calcio" </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 language of the television service cartello promozionale sky hd? ### Context: CREATE TABLE table_name_50 (language VARCHAR, television_service VARCHAR) [/INST] ### Response: SELECT language FROM table_name_50 WHERE television_service = "cartello promozionale sky hd" </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 kind of bike had a grid less than 23, an accident under time, and Graeme Gowland as a rider? ### Context: CREATE TABLE table_name_7 (bike VARCHAR, rider VARCHAR, grid VARCHAR, time VARCHAR) [/INST] ### Response: SELECT bike FROM table_name_7 WHERE grid < 23 AND time = "accident" AND rider = "graeme gowland" </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 rider with more than 5 laps on a grid bigger than 29 on a Honda CBR600RR and time at +1:27.385? ### Context: CREATE TABLE table_name_88 (rider VARCHAR, time VARCHAR, bike VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_88 WHERE laps > 5 AND grid > 29 AND bike = "honda cbr600rr" AND time = "+1:27.385" </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 rider with a grid of 36? ### Context: CREATE TABLE table_name_39 (rider VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT rider FROM table_name_39 WHERE grid = 36 </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 bike had a grid less than 35 and time at 37:58.607? ### Context: CREATE TABLE table_name_13 (bike VARCHAR, grid VARCHAR, time VARCHAR) [/INST] ### Response: SELECT bike FROM table_name_13 WHERE grid < 35 AND time = "37:58.607" </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 Result, when Director is Veljko Bulajić category:articles with hcards, and when Original title is Sarajevski Atentat? ### Context: CREATE TABLE table_name_46 (result VARCHAR, director VARCHAR, original_title VARCHAR) [/INST] ### Response: SELECT result FROM table_name_46 WHERE director = "veljko bulajić category:articles with hcards" AND original_title = "sarajevski atentat" </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 Result, when Director is Mirza Idrizović category:articles with hcards? ### Context: CREATE TABLE table_name_78 (result VARCHAR, director VARCHAR) [/INST] ### Response: SELECT result FROM table_name_78 WHERE director = "mirza idrizović category:articles with hcards" </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 Original title, when Film title used in nomination is Train Without A Timetable? ### Context: CREATE TABLE table_name_35 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_35 WHERE film_title_used_in_nomination = "train without a timetable" </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 Original title, when Director is Veljko Bulajić category:articles with hcards, and when Film title used in nomination is Train Without A Timetable? ### Context: CREATE TABLE table_name_35 (original_title VARCHAR, director VARCHAR, film_title_used_in_nomination VARCHAR) [/INST] ### Response: SELECT original_title FROM table_name_35 WHERE director = "veljko bulajić category:articles with hcards" AND film_title_used_in_nomination = "train without a timetable" </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 Film title used in nomination, when Year (Ceremony) is 1968 (41st)? ### Context: CREATE TABLE table_name_47 (film_title_used_in_nomination VARCHAR, year__ceremony_ VARCHAR) [/INST] ### Response: SELECT film_title_used_in_nomination FROM table_name_47 WHERE year__ceremony_ = "1968 (41st)" </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 Director, when Result is nominee, and when Year (Ceremony) is 1969 (42nd)? ### Context: CREATE TABLE table_name_65 (director VARCHAR, result VARCHAR, year__ceremony_ VARCHAR) [/INST] ### Response: SELECT director FROM table_name_65 WHERE result = "nominee" AND year__ceremony_ = "1969 (42nd)" </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 name's height in centimeters is 178 when its weight in kilograms is less than 91? ### Context: CREATE TABLE table_name_24 (name VARCHAR, height__cm_ VARCHAR, weight__kg_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_24 WHERE height__cm_ = 178 AND weight__kg_ < 91 </s>