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 is the home team for victoria park? ### Context: CREATE TABLE table_name_93 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_93 WHERE venue = "victoria park" </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 home team has a Away team of hawthorn? ### Context: CREATE TABLE table_name_86 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_86 WHERE away_team = "hawthorn" </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 with a score of 6–5 13? ### Context: CREATE TABLE table_name_82 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_82 WHERE score = "6–5 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: Who is the opponent with a save of ||33,453||36–27? ### Context: CREATE TABLE table_name_39 (opponent VARCHAR, save VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_39 WHERE save = "||33,453||36–27" </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 top grid that laps less than 66 and a retried engine? ### Context: CREATE TABLE table_name_28 (grid INTEGER, time_retired VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_28 WHERE time_retired = "engine" AND laps < 66 </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 top lap that had a tyre time? ### Context: CREATE TABLE table_name_31 (laps INTEGER, time_retired VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_31 WHERE time_retired = "tyre" </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 top grid that roger williamson lapped less than 7? ### Context: CREATE TABLE table_name_73 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT MAX(grid) FROM table_name_73 WHERE driver = "roger williamson" AND laps < 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 opponent does she fight when she is 10-1? ### Context: CREATE TABLE table_name_31 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_31 WHERE record = "10-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 highest number of rounds for a 3:16 fight? ### Context: CREATE TABLE table_name_98 (round INTEGER, time VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_98 WHERE time = "3:16" </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 day is south melbourne at home? ### Context: CREATE TABLE table_name_35 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_35 WHERE home_team = "south melbourne" </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 listed crowd when hawthorn is away? ### Context: CREATE TABLE table_name_72 (crowd VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_72 WHERE away_team = "hawthorn" </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 home team's score at mcg? ### Context: CREATE TABLE table_name_49 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_49 WHERE venue = "mcg" </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: Tell me who was the opponent on May 6 ### Context: CREATE TABLE table_name_33 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_33 WHERE date = "may 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: Name the score when the opponent was the dodgers on april 21 ### Context: CREATE TABLE table_name_61 (score VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_61 WHERE opponent = "dodgers" AND date = "april 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: What is the number of the pick for round 11? ### Context: CREATE TABLE table_name_15 (pick INTEGER, round VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_15 WHERE round = 11 </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 pick in round 8? ### Context: CREATE TABLE table_name_82 (pick INTEGER, round VARCHAR) [/INST] ### Response: SELECT MAX(pick) FROM table_name_82 WHERE round = 8 </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 position of the player for Washington school? ### Context: CREATE TABLE table_name_44 (position VARCHAR, school VARCHAR) [/INST] ### Response: SELECT position FROM table_name_44 WHERE school = "washington" </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 gave the play by play commentary with studio host Ward Cornell? ### Context: CREATE TABLE table_name_89 (play_by_play VARCHAR, studio_host VARCHAR) [/INST] ### Response: SELECT play_by_play FROM table_name_89 WHERE studio_host = "ward cornell" </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: Were the color commentators who worked with Bill Hewitt doing the play-by-play? ### Context: CREATE TABLE table_name_95 (colour_commentator_s_ VARCHAR, play_by_play VARCHAR) [/INST] ### Response: SELECT colour_commentator_s_ FROM table_name_95 WHERE play_by_play = "bill hewitt" </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 did the play-by-play with studio host Ward Cornell and color commentator Bob Goldham? ### Context: CREATE TABLE table_name_13 (play_by_play VARCHAR, studio_host VARCHAR, colour_commentator_s_ VARCHAR) [/INST] ### Response: SELECT play_by_play FROM table_name_13 WHERE studio_host = "ward cornell" AND colour_commentator_s_ = "bob goldham" </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 did the play-by-play on the CBC network before 1961? ### Context: CREATE TABLE table_name_53 (play_by_play VARCHAR, network VARCHAR, year VARCHAR) [/INST] ### Response: SELECT play_by_play FROM table_name_53 WHERE network = "cbc" AND year < 1961 </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 award for #100? ### Context: CREATE TABLE table_name_84 (award VARCHAR, result VARCHAR) [/INST] ### Response: SELECT award FROM table_name_84 WHERE result = "#100" </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 award was nominated for in 2000? ### Context: CREATE TABLE table_name_37 (award VARCHAR, year VARCHAR, result VARCHAR) [/INST] ### Response: SELECT award FROM table_name_37 WHERE year = 2000 AND result = "nominated" </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 were the results before the year 2000? ### Context: CREATE TABLE table_name_7 (result VARCHAR, year INTEGER) [/INST] ### Response: SELECT result FROM table_name_7 WHERE year < 2000 </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 2nd leg of the Comunicaciones team? ### Context: CREATE TABLE table_name_78 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_78 WHERE team_1 = "comunicaciones" </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 1st leg where Team 1 is C.D. Plaza Amador? ### Context: CREATE TABLE table_name_12 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_12 WHERE team_1 = "c.d. plaza amador" </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 1st leg where Team 1 is C.D. Plaza Amador? ### Context: CREATE TABLE table_name_48 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_48 WHERE team_1 = "c.d. plaza amador" </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 played on a hard surface? ### Context: CREATE TABLE table_name_14 (partner VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT partner FROM table_name_14 WHERE surface = "hard" </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 north melbourne's score as an away side? ### Context: CREATE TABLE table_name_80 (away_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_80 WHERE away_team = "north melbourne" </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 of the Fantasia Section Award? ### Context: CREATE TABLE table_name_16 (year INTEGER, award VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_16 WHERE award = "fantasia section award" </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 total of picks for drake players from the tri-cities blackhawks? ### Context: CREATE TABLE table_name_24 (pick INTEGER, team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_24 WHERE team = "tri-cities blackhawks" AND college = "drake" </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 pick number for players from king's (ny)? ### Context: CREATE TABLE table_name_13 (pick INTEGER, college VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_13 WHERE college = "king's (ny)" </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 Home Team while Calgary was visiting while having an Attendance above 15,655? ### Context: CREATE TABLE table_name_22 (home VARCHAR, visitor VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT home FROM table_name_22 WHERE visitor = "calgary" AND attendance > 15 OFFSET 655 </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 Frequency where the Hemholtz pitch is d? ### Context: CREATE TABLE table_name_48 (frequency___hz__ INTEGER, helmholtz_pitch VARCHAR) [/INST] ### Response: SELECT MIN(frequency___hz__) FROM table_name_48 WHERE helmholtz_pitch = "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 scientific pitch when the Helmholtz pitch is D? ### Context: CREATE TABLE table_name_33 (scientific_pitch VARCHAR, helmholtz_pitch VARCHAR) [/INST] ### Response: SELECT scientific_pitch FROM table_name_33 WHERE helmholtz_pitch = "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 company constrcuted the vehicle with a circuit of oulton park on 15 april? ### Context: CREATE TABLE table_name_17 (constructor VARCHAR, circuit VARCHAR, date VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_17 WHERE circuit = "oulton park" AND date = "15 april" </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 race on 16 september? ### Context: CREATE TABLE table_name_29 (race_name VARCHAR, date VARCHAR) [/INST] ### Response: SELECT race_name FROM table_name_29 WHERE date = "16 september" </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 circuit held on 15 april? ### Context: CREATE TABLE table_name_49 (circuit VARCHAR, date VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_49 WHERE date = "15 april" </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 xiv international gold cup? ### Context: CREATE TABLE table_name_80 (date VARCHAR, race_name VARCHAR) [/INST] ### Response: SELECT date FROM table_name_80 WHERE race_name = "xiv international gold 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: Name the date for race title lakeside ### Context: CREATE TABLE table_name_21 (date VARCHAR, race_title VARCHAR) [/INST] ### Response: SELECT date FROM table_name_21 WHERE race_title = "lakeside" </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: Name the team for launceston ### Context: CREATE TABLE table_name_60 (team VARCHAR, race_title VARCHAR) [/INST] ### Response: SELECT team FROM table_name_60 WHERE race_title = "launceston" </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 a bowling style of source:? ### Context: CREATE TABLE table_name_7 (player VARCHAR, bowling_style VARCHAR) [/INST] ### Response: SELECT player FROM table_name_7 WHERE bowling_style = "source:" </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 first class team does sanath jayasuriya play for? ### Context: CREATE TABLE table_name_51 (first_class_team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT first_class_team FROM table_name_51 WHERE player = "sanath jayasuriya" </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 roshan mahanama born? ### Context: CREATE TABLE table_name_71 (date_of_birth VARCHAR, player VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_71 WHERE player = "roshan mahanama" </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 avishka gunawardene born? ### Context: CREATE TABLE table_name_51 (date_of_birth VARCHAR, player VARCHAR) [/INST] ### Response: SELECT date_of_birth FROM table_name_51 WHERE player = "avishka gunawardene" </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 venue where the result was 2-1? ### Context: CREATE TABLE table_name_33 (venue VARCHAR, result VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_33 WHERE result = "2-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 was the score of the match with a 3-0 result? ### Context: CREATE TABLE table_name_44 (score VARCHAR, result VARCHAR) [/INST] ### Response: SELECT score FROM table_name_44 WHERE result = "3-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 score of the match on July 29, 1990? ### Context: CREATE TABLE table_name_79 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_79 WHERE date = "july 29, 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 venue of the 1990 Asian games? ### Context: CREATE TABLE table_name_77 (venue VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_77 WHERE competition = "1990 asian games" </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 match on October 5, 1990? ### Context: CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_82 WHERE date = "october 5, 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 competition at the ta'qali venue? ### Context: CREATE TABLE table_name_21 (competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_21 WHERE venue = "ta'qali" </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 against score of all teams with less than 7 losses, more than 6 draws, and 25 points? ### Context: CREATE TABLE table_name_99 (against INTEGER, points VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT AVG(against) FROM table_name_99 WHERE lost < 7 AND drawn > 6 AND points = 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 lowest number of points of any team with less than 6 draws and less than 18 matches played? ### Context: CREATE TABLE table_name_3 (points INTEGER, drawn VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MIN(points) FROM table_name_3 WHERE drawn < 6 AND played < 18 </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 points of all teams that had against scores less than 14? ### Context: CREATE TABLE table_name_96 (points INTEGER, against INTEGER) [/INST] ### Response: SELECT SUM(points) FROM table_name_96 WHERE against < 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 construction completed on 08/10/2007? ### Context: CREATE TABLE table_name_46 (listed VARCHAR, construction_completed VARCHAR) [/INST] ### Response: SELECT listed FROM table_name_46 WHERE construction_completed = "08/10/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 away team played at western oval? ### Context: CREATE TABLE table_name_11 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_11 WHERE venue = "western oval" </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 home team has an Away team of richmond? ### Context: CREATE TABLE table_name_28 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_28 WHERE away_team = "richmond" </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 home team has an Away team of essendon? ### Context: CREATE TABLE table_name_76 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_76 WHERE away_team = "essendon" </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 Tuesday does big brother 12 air? ### Context: CREATE TABLE table_name_16 (tuesday VARCHAR, series VARCHAR) [/INST] ### Response: SELECT tuesday FROM table_name_16 WHERE series = "big brother 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: Which series airs Saturday on Channel 5? ### Context: CREATE TABLE table_name_20 (series VARCHAR, saturday VARCHAR) [/INST] ### Response: SELECT series FROM table_name_20 WHERE saturday = "channel 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 Thursday does big brother 13 air? ### Context: CREATE TABLE table_name_59 (thursday VARCHAR, series VARCHAR) [/INST] ### Response: SELECT thursday FROM table_name_59 WHERE series = "big brother 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 most lost games for the team with a difference smaller than 86 and points of 32? ### Context: CREATE TABLE table_name_74 (lost INTEGER, points VARCHAR, difference VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_74 WHERE points = 32 AND difference < 86 </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 points for a team that lost 4 and played more than 28 games? ### Context: CREATE TABLE table_name_56 (points INTEGER, lost VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_56 WHERE lost = 4 AND played > 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: What is the highest difference for the team that had less than 0 draws? ### Context: CREATE TABLE table_name_98 (difference INTEGER, drew INTEGER) [/INST] ### Response: SELECT MAX(difference) FROM table_name_98 WHERE drew < 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 total number of bronze when the total is less than 1? ### Context: CREATE TABLE table_name_51 (bronze INTEGER, total INTEGER) [/INST] ### Response: SELECT SUM(bronze) FROM table_name_51 WHERE 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 is the full amount of Total for Austria when the number of gold is less than 0? ### Context: CREATE TABLE table_name_45 (total INTEGER, nation VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_45 WHERE nation = "austria" AND gold < 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 name of Rank 5? ### Context: CREATE TABLE table_name_89 (name VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT name FROM table_name_89 WHERE rank = 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 rank of Rmax Rpeak ( Pflops ) of 17.173 20.133? ### Context: CREATE TABLE table_name_7 (rank INTEGER, rmax_rpeak___pflops__ VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_7 WHERE rmax_rpeak___pflops__ = "17.173 20.133" </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 tyre on the race where Bruce Mclaren had the fastest lap? ### Context: CREATE TABLE table_name_58 (tyre VARCHAR, fastest_lap VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_58 WHERE fastest_lap = "bruce mclaren" </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 constructor at the United States Grand Prix? ### Context: CREATE TABLE table_name_65 (constructor VARCHAR, race VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_65 WHERE race = "united states grand prix" </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 of the circuit of Monaco? ### Context: CREATE TABLE table_name_97 (date VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_97 WHERE circuit = "monaco" </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 tyre for the circuit of Prince George, which had Jim Clark as the fastest lap? ### Context: CREATE TABLE table_name_82 (tyre VARCHAR, fastest_lap VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_82 WHERE fastest_lap = "jim clark" AND circuit = "prince george" </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 of the circuit of nürburgring, which had Graham Hill as the winning driver? ### Context: CREATE TABLE table_name_47 (date VARCHAR, winning_driver VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_47 WHERE winning_driver = "graham hill" AND circuit = "nürburgring" </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 game did Eoin Holohan play in? ### Context: CREATE TABLE table_name_69 (game VARCHAR, player VARCHAR) [/INST] ### Response: SELECT game FROM table_name_69 WHERE player = "eoin holohan" </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 weekly rank for living when the air date is october 6, 2008? ### Context: CREATE TABLE table_name_96 (weekly_rank_for_living VARCHAR, air_date VARCHAR) [/INST] ### Response: SELECT weekly_rank_for_living FROM table_name_96 WHERE air_date = "october 6, 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: what is the episode with the 183,000 viewers? ### Context: CREATE TABLE table_name_64 (episode VARCHAR, viewers VARCHAR) [/INST] ### Response: SELECT episode FROM table_name_64 WHERE viewers = "183,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: How many viewers for the episode with the weekly rank for living of 4? ### Context: CREATE TABLE table_name_25 (viewers VARCHAR, weekly_rank_for_living VARCHAR) [/INST] ### Response: SELECT viewers FROM table_name_25 WHERE weekly_rank_for_living = "4" </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 team score has a Venue of kardinia park? ### Context: CREATE TABLE table_name_42 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_42 WHERE venue = "kardinia park" </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 Home team score has a Home team of geelong? ### Context: CREATE TABLE table_name_47 (home_team VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_47 WHERE home_team = "geelong" </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 Venue has a Home team of geelong? ### Context: CREATE TABLE table_name_45 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_45 WHERE home_team = "geelong" </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 school is in Raleigh, NC? ### Context: CREATE TABLE table_name_23 (school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT school FROM table_name_23 WHERE hometown = "raleigh, nc" </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 does Peyton Siva play for? ### Context: CREATE TABLE table_name_44 (college VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college FROM table_name_44 WHERE player = "peyton siva" </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 height is associated with Franklin High School? ### Context: CREATE TABLE table_name_40 (height VARCHAR, school VARCHAR) [/INST] ### Response: SELECT height FROM table_name_40 WHERE school = "franklin high school" </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 tall is Daniel Orton? ### Context: CREATE TABLE table_name_93 (height VARCHAR, player VARCHAR) [/INST] ### Response: SELECT height FROM table_name_93 WHERE player = "daniel orton" </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 school is in Riverside, CA? ### Context: CREATE TABLE table_name_76 (school VARCHAR, hometown VARCHAR) [/INST] ### Response: SELECT school FROM table_name_76 WHERE hometown = "riverside, ca" </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: During which round was a Hawkeyes player selected for the defensive back position? ### Context: CREATE TABLE table_name_87 (round VARCHAR, position VARCHAR) [/INST] ### Response: SELECT round FROM table_name_87 WHERE position = "defensive back" </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 latest round that Derek Pagel was selected with a pick higher than 50? ### Context: CREATE TABLE table_name_22 (round INTEGER, pick VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_22 WHERE pick > 50 AND player = "derek pagel" </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 is the earliest began operation with a length of sultan ismail and over 27 stations? ### Context: CREATE TABLE table_name_7 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR) [/INST] ### Response: SELECT MIN(began_operation) FROM table_name_7 WHERE length__km_ = "sultan ismail" AND stations > 27 </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 operation beginning with a length of ampang and over 27 stations? ### Context: CREATE TABLE table_name_12 (began_operation INTEGER, length__km_ VARCHAR, stations VARCHAR) [/INST] ### Response: SELECT AVG(began_operation) FROM table_name_12 WHERE length__km_ = "ampang" AND stations > 27 </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 nationality of the ship appam? ### Context: CREATE TABLE table_name_24 (nationality VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_24 WHERE ship = "appam" </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 tonnage grt of the ship author? ### Context: CREATE TABLE table_name_40 (tonnage_grt VARCHAR, ship VARCHAR) [/INST] ### Response: SELECT tonnage_grt FROM table_name_40 WHERE ship = "author" </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 tonnage grt of any ship sunk or captured on 16 jan 16? ### Context: CREATE TABLE table_name_80 (tonnage_grt INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(tonnage_grt) FROM table_name_80 WHERE date = "16 jan 16" </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 tonnage grt of the cargo ship(s) sunk or captured on 4 feb 16? ### Context: CREATE TABLE table_name_94 (tonnage_grt VARCHAR, type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(tonnage_grt) FROM table_name_94 WHERE type = "cargo ship" AND date = "4 feb 16" </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 Rank has a gold smaller than 1, and a silver larger than 0? ### Context: CREATE TABLE table_name_25 (rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_25 WHERE gold < 1 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 year was the Line of Gardermobanen completed? ### Context: CREATE TABLE table_name_20 (year_completed VARCHAR, line VARCHAR) [/INST] ### Response: SELECT year_completed FROM table_name_20 WHERE line = "gardermobanen" </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 line is the Geumjeong tunnel? ### Context: CREATE TABLE table_name_82 (line VARCHAR, name VARCHAR) [/INST] ### Response: SELECT line FROM table_name_82 WHERE name = "geumjeong tunnel" </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 with a Round with sf? ### Context: CREATE TABLE table_name_67 (date VARCHAR, round VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE round = "sf" </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 Opponent with a Round with 3, and a Venue of home? ### Context: CREATE TABLE table_name_24 (opponent VARCHAR, round VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_24 WHERE round = "3" AND venue = "home" </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 with an Opponent with wimbledon, and a Result of drew 0-0? ### Context: CREATE TABLE table_name_75 (date VARCHAR, opponent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_75 WHERE opponent = "wimbledon" AND result = "drew 0-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 Round with a Opponent with blackburn? ### Context: CREATE TABLE table_name_15 (round VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT round FROM table_name_15 WHERE opponent = "blackburn" </s>