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: How many base pairs are there in the tohamai strain? ### Context: CREATE TABLE table_name_90 (base_pairs VARCHAR, strain VARCHAR) [/INST] ### Response: SELECT base_pairs FROM table_name_90 WHERE strain = "tohamai" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team score at junction oval? ### Context: CREATE TABLE table_name_86 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_86 WHERE venue = "junction 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 was the away team score at western oval? ### Context: CREATE TABLE table_name_46 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_46 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 is the lowest crowd at kardinia park ### Context: CREATE TABLE table_name_50 (crowd INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MIN(crowd) FROM table_name_50 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: What was the score for the tournament in Budapest? ### Context: CREATE TABLE table_name_14 (score VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_14 WHERE tournament = "budapest" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament did Patrick Rafter win? ### Context: CREATE TABLE table_name_96 (tournament VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_96 WHERE winner = "patrick rafter" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner won by a score of 6–7(4), 7–6(3), [11–9]? ### Context: CREATE TABLE table_name_60 (winner VARCHAR, score VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_60 WHERE score = "6–7(4), 7–6(3), [11–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: what was the score when goran ivanišević was runner up and the tournament was in algarve? ### Context: CREATE TABLE table_name_53 (score VARCHAR, runner_up VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT score FROM table_name_53 WHERE runner_up = "goran ivanišević" AND tournament = "algarve" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Stefan Edberg won? ### Context: CREATE TABLE table_name_64 (score VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT score FROM table_name_64 WHERE winner = "stefan edberg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has an Away team of south melbourne? ### Context: CREATE TABLE table_name_42 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_42 WHERE away_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 Away team score for mcg? ### Context: CREATE TABLE table_name_26 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_26 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: What is the total Crowd with a Home team of collingwood? ### Context: CREATE TABLE table_name_98 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_98 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mcg is the Venue what's the Away team? ### Context: CREATE TABLE table_name_99 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_99 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: When the Away team footscray played on the Date of 19 july 1980, what was the amount of people in the Crowd? ### Context: CREATE TABLE table_name_1 (crowd VARCHAR, date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT crowd FROM table_name_1 WHERE date = "19 july 1980" AND away_team = "footscray" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home team of collingwood played, what was the opposing Away team score? ### Context: CREATE TABLE table_name_49 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_49 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Crowd is larger than 23,327, what Home team is playing? ### Context: CREATE TABLE table_name_65 (home_team VARCHAR, crowd INTEGER) [/INST] ### Response: SELECT home_team FROM table_name_65 WHERE crowd > 23 OFFSET 327 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 vfl park is the venue what's the Away team playing? ### Context: CREATE TABLE table_name_81 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_81 WHERE venue = "vfl 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: If collingwood was the Home team, what Date did they play? ### Context: CREATE TABLE table_name_71 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_71 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club has a capacity of 25138? ### Context: CREATE TABLE table_name_4 (club VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT club FROM table_name_4 WHERE capacity = "25138" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in Respective Divisions has a capacity of 4100? ### Context: CREATE TABLE table_name_60 (Rank VARCHAR, capacity VARCHAR) [/INST] ### Response: SELECT Rank IN Respective AS divisions FROM table_name_60 WHERE capacity = "4100" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 stadium has a club of west ham united? ### Context: CREATE TABLE table_name_76 (stadium VARCHAR, club VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_76 WHERE club = "west ham united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of week 16? ### Context: CREATE TABLE table_name_73 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_73 WHERE week = 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 date of the game with a score of 4-3? ### Context: CREATE TABLE table_name_41 (date VARCHAR, score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_41 WHERE score = "4-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 score of the game on 8 Sep 1990? ### Context: CREATE TABLE table_name_92 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_92 WHERE date = "8 sep 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: Who is the opposition on the division 1 game at Stamford Bridge? ### Context: CREATE TABLE table_name_64 (opposition VARCHAR, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT opposition FROM table_name_64 WHERE competition = "division 1" AND venue = "stamford bridge" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total less than 9, less than 2 bronze, and from France? ### Context: CREATE TABLE table_name_26 (rank VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_26 WHERE total < 9 AND bronze < 2 AND nation = "france" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 more than 1 silver, more than 1 gold, and more than 4 bronze? ### Context: CREATE TABLE table_name_25 (rank VARCHAR, bronze VARCHAR, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_25 WHERE silver > 1 AND gold > 1 AND bronze > 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: How many silver have a Total smaller than 3, a Bronze of 1, and a Gold larger than 0? ### Context: CREATE TABLE table_name_71 (silver INTEGER, gold VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(silver) FROM table_name_71 WHERE total < 3 AND bronze = 1 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: How many gold have a National of New Zealand with a total less than 2? ### Context: CREATE TABLE table_name_15 (gold INTEGER, nation VARCHAR, total VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_15 WHERE nation = "new zealand" AND total < 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: Who won in 2003? ### Context: CREATE TABLE table_name_19 (winner VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_19 WHERE year = 2003 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average year for scatman winning? ### Context: CREATE TABLE table_name_58 (year INTEGER, winner VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_58 WHERE winner = "scatman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 trained the horse with time of 1:09.40? ### Context: CREATE TABLE table_name_24 (trainer VARCHAR, time VARCHAR) [/INST] ### Response: SELECT trainer FROM table_name_24 WHERE time = "1:09.40" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mediterranean games held? ### Context: CREATE TABLE table_name_83 (venue VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_83 WHERE tournament = "mediterranean 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: When was the last time a venue was held in turin, italy? ### Context: CREATE TABLE table_name_75 (year INTEGER, venue VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_75 WHERE venue = "turin, italy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 universiade held in 1959? ### Context: CREATE TABLE table_name_3 (venue VARCHAR, tournament VARCHAR, year VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_3 WHERE tournament = "universiade" AND year = 1959 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year was the venue in stockholm, sweden used? ### Context: CREATE TABLE table_name_65 (year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_65 WHERE venue = "stockholm, 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 a report for a race with Baconin Borzacchini in Tripoli in a year after 1928? ### Context: CREATE TABLE table_name_21 (report VARCHAR, driver VARCHAR, location VARCHAR, year VARCHAR) [/INST] ### Response: SELECT report FROM table_name_21 WHERE location = "tripoli" AND year > 1928 AND driver = "baconin borzacchini" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor of the car that Achille Varzi drove before 1937? ### Context: CREATE TABLE table_name_2 (constructor VARCHAR, year VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_2 WHERE year < 1937 AND driver = "achille varzi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 constructor of the car that Hermann Lang drove after 1935? ### Context: CREATE TABLE table_name_89 (constructor VARCHAR, year VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_89 WHERE year > 1935 AND driver = "hermann lang" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Works Number that has a Number of 153 in 1916? ### Context: CREATE TABLE table_name_39 (works_number VARCHAR, date VARCHAR, number VARCHAR) [/INST] ### Response: SELECT works_number FROM table_name_39 WHERE date = "1916" AND number = "153" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what Date was the Works Number 7? ### Context: CREATE TABLE table_name_18 (date VARCHAR, works_number VARCHAR) [/INST] ### Response: SELECT date FROM table_name_18 WHERE works_number = "7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Builder has a Works Number of 16272? ### Context: CREATE TABLE table_name_86 (builder VARCHAR, works_number VARCHAR) [/INST] ### Response: SELECT builder FROM table_name_86 WHERE works_number = "16272" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what Date was the Works Number 12? ### Context: CREATE TABLE table_name_99 (date VARCHAR, works_number VARCHAR) [/INST] ### Response: SELECT date FROM table_name_99 WHERE works_number = "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: Where did South Melbourne play as the home team? ### Context: CREATE TABLE table_name_72 (venue VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_72 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 was the attendance when St Kilda played as the home team? ### Context: CREATE TABLE table_name_66 (crowd VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT COUNT(crowd) FROM table_name_66 WHERE home_team = "st kilda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver had a grid number of 18? ### Context: CREATE TABLE table_name_55 (driver VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT driver FROM table_name_55 WHERE grid = "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: Which constructor had Shinji Nakano as a driver? ### Context: CREATE TABLE table_name_71 (constructor VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT constructor FROM table_name_71 WHERE driver = "shinji nakano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team score at Glenferrie Oval? ### Context: CREATE TABLE table_name_10 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_10 WHERE venue = "glenferrie 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 date has a Data of 19:29? ### Context: CREATE TABLE table_name_39 (date VARCHAR, data VARCHAR) [/INST] ### Response: SELECT date FROM table_name_39 WHERE data = "19:29" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 athlete has a 35 km event? ### Context: CREATE TABLE table_name_74 (athlete VARCHAR, event VARCHAR) [/INST] ### Response: SELECT athlete FROM table_name_74 WHERE event = "35 km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation is the cyclist from team discovery channel? ### Context: CREATE TABLE table_name_22 (nation VARCHAR, team VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_22 WHERE team = "discovery channel" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nation is the cyclist hat has a UCI ProTour Points of 25? ### Context: CREATE TABLE table_name_95 (nation VARCHAR, uci_protour_points VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_95 WHERE uci_protour_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 day did the VFL play Punt Road Oval? ### Context: CREATE TABLE table_name_59 (date VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT date FROM table_name_59 WHERE venue = "punt road 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 was the home teams score at Western Oval? ### Context: CREATE TABLE table_name_74 (home_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT home_team AS score FROM table_name_74 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 is the first prize amount of the person who has a score of 207 (-9) and a purse amount of more than 800,000? ### Context: CREATE TABLE table_name_54 (score VARCHAR, purse__$__ VARCHAR) [/INST] ### Response: SELECT COUNT(1 AS st_prize__) AS $__ FROM table_name_54 WHERE score = "207 (-9)" AND purse__$__ > 800 OFFSET 000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the ISBN of the book with a first edition in May 2011? ### Context: CREATE TABLE table_name_42 (isbn VARCHAR, first_edition VARCHAR) [/INST] ### Response: SELECT isbn FROM table_name_42 WHERE first_edition = "may 2011" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which first edition has an ISBN of 978-0785166252? ### Context: CREATE TABLE table_name_50 (first_edition VARCHAR, isbn VARCHAR) [/INST] ### Response: SELECT first_edition FROM table_name_50 WHERE isbn = "978-0785166252" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first edition has 264 pages and the ISBN of 978-0785111832? ### Context: CREATE TABLE table_name_60 (first_edition VARCHAR, pages VARCHAR, isbn VARCHAR) [/INST] ### Response: SELECT first_edition FROM table_name_60 WHERE pages = "264" AND isbn = "978-0785111832" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people were in the crowd at collingwood's home game? ### Context: CREATE TABLE table_name_46 (crowd INTEGER, home_team VARCHAR) [/INST] ### Response: SELECT SUM(crowd) FROM table_name_46 WHERE home_team = "collingwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the away team score when playing against fitzroy? ### Context: CREATE TABLE table_name_62 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_62 WHERE home_team = "fitzroy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 serial number of the pilot car that is black, has a pilot car number larger than 2, and an engine number of 1008? ### Context: CREATE TABLE table_name_71 (serial_no VARCHAR, engine_no VARCHAR, colour VARCHAR, pilot_car_no VARCHAR) [/INST] ### Response: SELECT serial_no FROM table_name_71 WHERE colour = "black" AND pilot_car_no > 2 AND engine_no = 1008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 low lap total that has a Time or Retired of accident? ### Context: CREATE TABLE table_name_35 (laps INTEGER, time_retired VARCHAR) [/INST] ### Response: SELECT MIN(laps) FROM table_name_35 WHERE time_retired = "accident" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player was a fly-half? ### Context: CREATE TABLE table_name_79 (player VARCHAR, position VARCHAR) [/INST] ### Response: SELECT player FROM table_name_79 WHERE position = "fly-half" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean number of caps for Ryota Asano? ### Context: CREATE TABLE table_name_36 (caps INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(caps) FROM table_name_36 WHERE player = "ryota asano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mean number of caps for Ryota Asano? ### Context: CREATE TABLE table_name_67 (caps INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(caps) FROM table_name_67 WHERE player = "ryota asano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 forward from Grambling State? ### Context: CREATE TABLE table_name_24 (player VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_24 WHERE position = "forward" AND school_club_team = "grambling state" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 guard who plays at Utah? ### Context: CREATE TABLE table_name_96 (nationality VARCHAR, position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_96 WHERE position = "guard" AND school_club_team = "utah" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from Tampa? ### Context: CREATE TABLE table_name_14 (position VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT position FROM table_name_14 WHERE school_club_team = "tampa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player on the Jazz from 1974-79? ### Context: CREATE TABLE table_name_73 (nationality VARCHAR, years_for_jazz VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_73 WHERE years_for_jazz = "1974-79" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player who went to school at Tampa? ### Context: CREATE TABLE table_name_91 (player VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_91 WHERE school_club_team = "tampa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player on the Jazz from 1974-79? ### Context: CREATE TABLE table_name_60 (nationality VARCHAR, years_for_jazz VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_60 WHERE years_for_jazz = "1974-79" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team at the the glenferrie oval? ### Context: CREATE TABLE table_name_67 (away_team VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT away_team AS score FROM table_name_67 WHERE venue = "glenferrie 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 institution is located in athens, ga, us? ### Context: CREATE TABLE table_name_55 (institution VARCHAR, location VARCHAR) [/INST] ### Response: SELECT institution FROM table_name_55 WHERE location = "athens, ga, us" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the status of the institution that was founded in 1996? ### Context: CREATE TABLE table_name_64 (status VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT status FROM table_name_64 WHERE founded = 1996 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runs 332, what was the venue? ### Context: CREATE TABLE table_name_60 (venue VARCHAR, runs VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_60 WHERE runs = "332" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player's runs are 270? ### Context: CREATE TABLE table_name_43 (player VARCHAR, runs VARCHAR) [/INST] ### Response: SELECT player FROM table_name_43 WHERE runs = "270" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season 1935, what was the venue? ### Context: CREATE TABLE table_name_92 (venue VARCHAR, season VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_92 WHERE season = "1935" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For player Les Ames, what was the venue? ### Context: CREATE TABLE table_name_29 (venue VARCHAR, player VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_29 WHERE player = "les ames" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Austrian Grand Prix? ### Context: CREATE TABLE table_name_7 (date VARCHAR, grand_prix VARCHAR) [/INST] ### Response: SELECT date FROM table_name_7 WHERE grand_prix = "austrian 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: How many points has a draw greater than 3 and 3rd place? ### Context: CREATE TABLE table_name_24 (points VARCHAR, draw VARCHAR, place VARCHAR) [/INST] ### Response: SELECT points FROM table_name_24 WHERE draw > 3 AND place = 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: Name the average events for miller barber ### Context: CREATE TABLE table_name_27 (events INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(events) FROM table_name_27 WHERE player = "miller barber" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 most wins for earnings of 130,002 ### Context: CREATE TABLE table_name_86 (wins INTEGER, earnings___$__ VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_86 WHERE earnings___$__ = 130 OFFSET 002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Neverchanger with the label of Latenight weeknight? ### Context: CREATE TABLE table_name_70 (year VARCHAR, label VARCHAR, release_title VARCHAR) [/INST] ### Response: SELECT year FROM table_name_70 WHERE label = "latenight weeknight" AND release_title = "neverchanger" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ethereal 77, which has a CD album release type? ### Context: CREATE TABLE table_name_26 (year VARCHAR, release_type VARCHAR, released_as VARCHAR) [/INST] ### Response: SELECT year FROM table_name_26 WHERE release_type = "cd album" AND released_as = "ethereal 77" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 platform when the frequency (per hour) is 4 and the destination is west croydon? ### Context: CREATE TABLE table_name_98 (platform INTEGER, frequency__per_hour_ VARCHAR, destination VARCHAR) [/INST] ### Response: SELECT SUM(platform) FROM table_name_98 WHERE frequency__per_hour_ = 4 AND destination = "west croydon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 platform number when the frequency (per hour) is 4, the operator is london overground and the destination is west croydon? ### Context: CREATE TABLE table_name_32 (platform INTEGER, destination VARCHAR, frequency__per_hour_ VARCHAR, operator VARCHAR) [/INST] ### Response: SELECT MAX(platform) FROM table_name_32 WHERE frequency__per_hour_ = 4 AND operator = "london overground" AND destination = "west croydon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team with a qual 1 time of 1:17.481? ### Context: CREATE TABLE table_name_77 (team VARCHAR, qual_1 VARCHAR) [/INST] ### Response: SELECT team FROM table_name_77 WHERE qual_1 = "1:17.481" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 qual 1 for the best of 1:18.067? ### Context: CREATE TABLE table_name_49 (qual_1 VARCHAR, best VARCHAR) [/INST] ### Response: SELECT qual_1 FROM table_name_49 WHERE best = "1:18.067" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 qual 1 when the qual 2 has no time and the best is 1:16.776? ### Context: CREATE TABLE table_name_94 (qual_1 VARCHAR, qual_2 VARCHAR, best VARCHAR) [/INST] ### Response: SELECT qual_1 FROM table_name_94 WHERE qual_2 = "no time" AND best = "1:16.776" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person on team Minardi Team USA with a qual of 1:17.481? ### Context: CREATE TABLE table_name_59 (name VARCHAR, team VARCHAR, qual_1 VARCHAR) [/INST] ### Response: SELECT name FROM table_name_59 WHERE team = "minardi team usa" AND qual_1 = "1:17.481" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person with a qual 1 time of 1:16.850? ### Context: CREATE TABLE table_name_2 (name VARCHAR, qual_1 VARCHAR) [/INST] ### Response: SELECT name FROM table_name_2 WHERE qual_1 = "1:16.850" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 qual 2 when the qual 1 is 1:16.841? ### Context: CREATE TABLE table_name_49 (qual_2 VARCHAR, qual_1 VARCHAR) [/INST] ### Response: SELECT qual_2 FROM table_name_49 WHERE qual_1 = "1:16.841" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Monarch whose Heir is Robert Curthose when the Reason is that the father became king? ### Context: CREATE TABLE table_name_67 (monarch VARCHAR, heir VARCHAR, reason VARCHAR) [/INST] ### Response: SELECT monarch FROM table_name_67 WHERE heir = "robert curthose" AND reason = "father became king" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Monarch has succession unclear 1100-1103 as his Status? ### Context: CREATE TABLE table_name_60 (monarch VARCHAR, status VARCHAR) [/INST] ### Response: SELECT monarch FROM table_name_60 WHERE status = "succession unclear 1100-1103" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Reason is given when 1103 is the date for Became heir? ### Context: CREATE TABLE table_name_7 (reason VARCHAR, became_heir VARCHAR) [/INST] ### Response: SELECT reason FROM table_name_7 WHERE became_heir = "1103" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when Henry I is the Monarch and the Reason is succession unclear 1100-1103? ### Context: CREATE TABLE table_name_11 (status VARCHAR, monarch VARCHAR, reason VARCHAR) [/INST] ### Response: SELECT status FROM table_name_11 WHERE monarch = "henry i" AND reason = "succession unclear 1100-1103" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tyre for hb bewaking team ensign with rounds of 13 ### Context: CREATE TABLE table_name_31 (tyre VARCHAR, entrant VARCHAR, rounds VARCHAR) [/INST] ### Response: SELECT tyre FROM table_name_31 WHERE entrant = "hb bewaking team ensign" AND rounds = "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: Name the round for engine of ford cosworth dfv 3.0 v8 with chassis fo 751 ### Context: CREATE TABLE table_name_90 (rounds VARCHAR, engine VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT rounds FROM table_name_90 WHERE engine = "ford cosworth dfv 3.0 v8" AND chassis = "751" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 chassis for tyre of g and carlos reutemann ### Context: CREATE TABLE table_name_24 (chassis VARCHAR, tyre VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT chassis FROM table_name_24 WHERE tyre = "g" AND driver = "carlos reutemann" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 entrant for chassis of gh1 ### Context: CREATE TABLE table_name_27 (entrant VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT entrant FROM table_name_27 WHERE chassis = "gh1" </s>