text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the earliest year that an event held in Berlin, Germany had a 100 m hurdles event? ### Context: CREATE TABLE table_name_98 (year INTEGER, venue VARCHAR, event VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_98 WHERE venue = "berlin, germany" AND event = "100 m hurdles" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 even was held in Valencia, Spain? ### Context: CREATE TABLE table_name_3 (event VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT event FROM table_name_3 WHERE venue = "valencia, spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time of the tim trophy competition where juventus was the opponent? ### Context: CREATE TABLE table_name_4 (time VARCHAR, competition VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT time FROM table_name_4 WHERE competition = "tim trophy" AND opponent = "juventus" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 15 August 2008? ### Context: CREATE TABLE table_name_27 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_27 WHERE date = "15 august 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 score of the friendly match competition on 24 July 2008? ### Context: CREATE TABLE table_name_3 (score VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_3 WHERE competition = "friendly match" AND date = "24 july 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 ground of the tim trophy competition, which had a time of 23:00 cet? ### Context: CREATE TABLE table_name_83 (ground VARCHAR, competition VARCHAR, time VARCHAR) [/INST] ### Response: SELECT ground FROM table_name_83 WHERE competition = "tim trophy" AND time = "23:00 cet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition is at 23:00 cet? ### Context: CREATE TABLE table_name_91 (competition VARCHAR, time VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_91 WHERE time = "23:00 cet" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome on March 20, 1994? ### Context: CREATE TABLE table_name_89 (outcome VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_89 WHERE date = "march 20, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tournament had a hard surface on February 25, 1996? ### Context: CREATE TABLE table_name_78 (tournament VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_78 WHERE surface = "hard" AND date = "february 25, 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: What is the score in the final with a hard surface and is against Hiromi Nagano? ### Context: CREATE TABLE table_name_60 (score_in_the_final VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score_in_the_final FROM table_name_60 WHERE surface = "hard" AND opponent_in_the_final = "hiromi nagano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 outcome for the clay surface on April 21, 1996? ### Context: CREATE TABLE table_name_91 (outcome VARCHAR, surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_91 WHERE surface = "clay" AND date = "april 21, 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: What aircraft is located at S of Avion? ### Context: CREATE TABLE table_name_3 (aircraft VARCHAR, location VARCHAR) [/INST] ### Response: SELECT aircraft FROM table_name_3 WHERE location = "s of avion" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Unit for the Aircraft F.e.2b, located in Logeast? ### Context: CREATE TABLE table_name_20 (unit INTEGER, aircraft VARCHAR, location VARCHAR) [/INST] ### Response: SELECT SUM(unit) FROM table_name_20 WHERE aircraft = "f.e.2b" AND location = "logeast" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place that has a census ranking of 1,229 of 5,008? ### Context: CREATE TABLE table_name_63 (official_name VARCHAR, census_ranking VARCHAR) [/INST] ### Response: SELECT official_name FROM table_name_63 WHERE census_ranking = "1,229 of 5,008" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 large, in square kilometers, is Sackville? ### Context: CREATE TABLE table_name_38 (area_km_2 VARCHAR, official_name VARCHAR) [/INST] ### Response: SELECT area_km_2 FROM table_name_38 WHERE official_name = "sackville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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(s) of the place(s) with a population of less than 1,429? ### Context: CREATE TABLE table_name_38 (official_name VARCHAR, population INTEGER) [/INST] ### Response: SELECT official_name FROM table_name_38 WHERE population < 1 OFFSET 429 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has 33 as the points? ### Context: CREATE TABLE table_name_93 (score VARCHAR, points VARCHAR) [/INST] ### Response: SELECT score FROM table_name_93 WHERE points = 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 joe louis arena as the arena? ### Context: CREATE TABLE table_name_53 (date VARCHAR, arena VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE arena = "joe louis arena" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition was played on 2 June 1992? ### Context: CREATE TABLE table_name_4 (competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_4 WHERE date = "2 june 1992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a friendly match played that ended in a 3-0 score? ### Context: CREATE TABLE table_name_74 (date VARCHAR, result VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT date FROM table_name_74 WHERE result = "3-0" AND competition = "friendly match" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 played on 5 September 2001? ### Context: CREATE TABLE table_name_38 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_38 WHERE date = "5 september 2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what stadium was the friendly match on 2 June 1992 played in? ### Context: CREATE TABLE table_name_2 (venue VARCHAR, competition VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_2 WHERE competition = "friendly match" AND date = "2 june 1992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1998 FIFA World Cup qualification competition? ### Context: CREATE TABLE table_name_25 (score VARCHAR, competition VARCHAR) [/INST] ### Response: SELECT score FROM table_name_25 WHERE competition = "1998 fifa world cup qualification" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Competition of welsh rugby union challenge trophy and a Result of 34-34? Question 1 ### Context: CREATE TABLE table_name_72 (date VARCHAR, competition VARCHAR, result VARCHAR) [/INST] ### Response: SELECT date FROM table_name_72 WHERE competition = "welsh rugby union challenge trophy" AND result = "34-34" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result of new zealand Nationality / Opponent? ### Context: CREATE TABLE table_name_56 (result VARCHAR, nationality___opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_56 WHERE nationality___opponent = "new zealand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality / Opponent on 10 january 1998? ### Context: CREATE TABLE table_name_25 (nationality___opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT nationality___opponent FROM table_name_25 WHERE date = "10 january 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ground on 18 january 1998? ### Context: CREATE TABLE table_name_25 (ground VARCHAR, date VARCHAR) [/INST] ### Response: SELECT ground FROM table_name_25 WHERE date = "18 january 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality / Opponent of the Competition of welsh rugby union challenge trophy and a Result of 38-29? ### Context: CREATE TABLE table_name_63 (nationality___opponent VARCHAR, competition VARCHAR, result VARCHAR) [/INST] ### Response: SELECT nationality___opponent FROM table_name_63 WHERE competition = "welsh rugby union challenge trophy" AND result = "38-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: Name the Nationality / Opponent of rosario? ### Context: CREATE TABLE table_name_64 (competition VARCHAR, nationality___opponent VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_64 WHERE nationality___opponent = "rosario" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 1 has a team 2 of universidad nacional? ### Context: CREATE TABLE table_name_4 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_4 WHERE team_2 = "universidad nacional" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 2 has a team 1 of harbour view? ### Context: CREATE TABLE table_name_82 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_82 WHERE team_1 = "harbour view" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2nd leg for team 2 san francisco? ### Context: CREATE TABLE table_name_62 (team_2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_62 WHERE team_2 = "san francisco" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st leg of team 1 alajuelense? ### Context: CREATE TABLE table_name_50 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_50 WHERE team_1 = "alajuelense" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 format for catalog 660-51-015? ### Context: CREATE TABLE table_name_51 (format VARCHAR, catalog VARCHAR) [/INST] ### Response: SELECT format FROM table_name_51 WHERE catalog = "660-51-015" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region had the year May 1974? ### Context: CREATE TABLE table_name_77 (region VARCHAR, year VARCHAR) [/INST] ### Response: SELECT region FROM table_name_77 WHERE year = "may 1974" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region had a year March 10, 1998? ### Context: CREATE TABLE table_name_17 (region VARCHAR, year VARCHAR) [/INST] ### Response: SELECT region FROM table_name_17 WHERE year = "march 10, 1998" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party for Lord John Hay earlier than 1857? ### Context: CREATE TABLE table_name_82 (first_party VARCHAR, year VARCHAR, first_member VARCHAR) [/INST] ### Response: SELECT first_party FROM table_name_82 WHERE year < 1857 AND first_member = "lord john hay" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second member more recently than 1790 when John Williams is the first member? ### Context: CREATE TABLE table_name_10 (second_member VARCHAR, year VARCHAR, first_member VARCHAR) [/INST] ### Response: SELECT second_member FROM table_name_10 WHERE year > 1790 AND first_member = "john williams" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second member ewarlier than 1804 when Tory Henry Isherwood is the first member? ### Context: CREATE TABLE table_name_15 (second_member VARCHAR, first_member VARCHAR, first_party VARCHAR, year VARCHAR) [/INST] ### Response: SELECT second_member FROM table_name_15 WHERE first_party = "tory" AND year < 1804 AND first_member = "henry isherwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second member when RT Hon. Edward Stanley is the first member? ### Context: CREATE TABLE table_name_14 (second_member VARCHAR, first_member VARCHAR) [/INST] ### Response: SELECT second_member FROM table_name_14 WHERE first_member = "rt hon. edward stanley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 second party where the first party is Tory and the year is 1820? ### Context: CREATE TABLE table_name_88 (second_party VARCHAR, first_party VARCHAR, year VARCHAR) [/INST] ### Response: SELECT second_party FROM table_name_88 WHERE first_party = "tory" AND year = 1820 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won in 1993? ### Context: CREATE TABLE table_name_83 (player VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT player FROM table_name_83 WHERE year_s__won = "1993" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years did the player with a t71 finish win? ### Context: CREATE TABLE table_name_68 (year_s__won VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_68 WHERE finish = "t71" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did player payne stewart win? ### Context: CREATE TABLE table_name_84 (year_s__won VARCHAR, player VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_84 WHERE player = "payne stewart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did the player with a t3 finish win? ### Context: CREATE TABLE table_name_84 (year_s__won VARCHAR, finish VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_84 WHERE finish = "t3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest total of the player with a t41 finish? ### Context: CREATE TABLE table_name_25 (total INTEGER, finish VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_25 WHERE finish = "t41" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what Battle was Bulgarian Commander of Gavril Radomir? ### Context: CREATE TABLE table_name_24 (battle VARCHAR, bulgarian_commander VARCHAR) [/INST] ### Response: SELECT battle FROM table_name_24 WHERE bulgarian_commander = "gavril radomir" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bulgarian Victory at the Battle of Arcadiopolis? ### Context: CREATE TABLE table_name_55 (date VARCHAR, result VARCHAR, battle VARCHAR) [/INST] ### Response: SELECT date FROM table_name_55 WHERE result = "bulgarian victory" AND battle = "battle of arcadiopolis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bulgarian Commander in Autumn 1040 at the Battle of Thessalonica? ### Context: CREATE TABLE table_name_41 (bulgarian_commander VARCHAR, battle VARCHAR, date VARCHAR) [/INST] ### Response: SELECT bulgarian_commander FROM table_name_41 WHERE battle = "battle of thessalonica" AND date = "autumn 1040" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Byzantine Commander with a Bulgarian Victory at the Siege of Lovech? ### Context: CREATE TABLE table_name_44 (byzantine_commander VARCHAR, result VARCHAR, battle VARCHAR) [/INST] ### Response: SELECT byzantine_commander FROM table_name_44 WHERE result = "bulgarian victory" AND battle = "siege of lovech" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Result of the Battle of Marcellae in 756? ### Context: CREATE TABLE table_name_85 (result VARCHAR, battle VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_85 WHERE battle = "battle of marcellae" AND date = "756" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gavril Radomir's Bulgarian Victory? ### Context: CREATE TABLE table_name_15 (date VARCHAR, result VARCHAR, bulgarian_commander VARCHAR) [/INST] ### Response: SELECT date FROM table_name_15 WHERE result = "bulgarian victory" AND bulgarian_commander = "gavril radomir" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wind at New York City when the rank was smaller than 6? ### Context: CREATE TABLE table_name_18 (wind VARCHAR, rank VARCHAR, location VARCHAR) [/INST] ### Response: SELECT wind FROM table_name_18 WHERE rank < 6 AND location = "new york city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest rink for Kingston? ### Context: CREATE TABLE table_name_94 (rank INTEGER, location VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_94 WHERE location = "kingston" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first elected for the district South Carolina 2? ### Context: CREATE TABLE table_name_75 (first_elected INTEGER, district VARCHAR) [/INST] ### Response: SELECT AVG(first_elected) FROM table_name_75 WHERE district = "south carolina 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 was the first elected for the republican party? ### Context: CREATE TABLE table_name_82 (first_elected VARCHAR, party VARCHAR) [/INST] ### Response: SELECT first_elected FROM table_name_82 WHERE party = "republican" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 party has the South Carolina 2 district? ### Context: CREATE TABLE table_name_91 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_name_91 WHERE district = "south carolina 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the type for Cassano? ### Context: CREATE TABLE table_name_46 (type VARCHAR, name VARCHAR) [/INST] ### Response: SELECT type FROM table_name_46 WHERE name = "cassano" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 nationality is Diogo? ### Context: CREATE TABLE table_name_53 (nat VARCHAR, name VARCHAR) [/INST] ### Response: SELECT nat FROM table_name_53 WHERE name = "diogo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player with a winter transfer window moving from Roma? ### Context: CREATE TABLE table_name_79 (name VARCHAR, transfer_window VARCHAR, moving_from VARCHAR) [/INST] ### Response: SELECT name FROM table_name_79 WHERE transfer_window = "winter" AND moving_from = "roma" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 pressure is Ken? ### Context: CREATE TABLE table_name_80 (pressure VARCHAR, name VARCHAR) [/INST] ### Response: SELECT pressure FROM table_name_80 WHERE name = "ken" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which round was Barbara Hawcroft the loser? ### Context: CREATE TABLE table_name_84 (round VARCHAR, loser VARCHAR) [/INST] ### Response: SELECT round FROM table_name_84 WHERE loser = "barbara hawcroft" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which year is Nerida Gregory listed as the loser? ### Context: CREATE TABLE table_name_13 (year INTEGER, loser VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_13 WHERE loser = "nerida gregory" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In which year did Misaki Doi lose the Australian Open Grand Slam? ### Context: CREATE TABLE table_name_32 (year INTEGER, grand_slam VARCHAR, loser VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_32 WHERE grand_slam = "australian open" AND loser = "misaki doi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Polish Cup has a Puchat Ligi larger than 0? ### Context: CREATE TABLE table_name_20 (polish_cup INTEGER, puchat_ligi INTEGER) [/INST] ### Response: SELECT AVG(polish_cup) FROM table_name_20 WHERE puchat_ligi > 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: Which Player has a Total of 3, and an Ekstraklasa smaller than 3, and a UEFA Cup of 2? ### Context: CREATE TABLE table_name_43 (player VARCHAR, uefa_cup VARCHAR, total VARCHAR, ekstraklasa VARCHAR) [/INST] ### Response: SELECT player FROM table_name_43 WHERE total = 3 AND ekstraklasa < 3 AND uefa_cup = 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Puchat Ligi has a UEFA Cup smaller than 2, and a Player of takesure chinyama? ### Context: CREATE TABLE table_name_64 (puchat_ligi INTEGER, uefa_cup VARCHAR, player VARCHAR) [/INST] ### Response: SELECT MIN(puchat_ligi) FROM table_name_64 WHERE uefa_cup < 2 AND player = "takesure chinyama" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 much Ekstraklasa has a Total smaller than 3? ### Context: CREATE TABLE table_name_98 (ekstraklasa INTEGER, total INTEGER) [/INST] ### Response: SELECT SUM(ekstraklasa) FROM table_name_98 WHERE total < 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Puchat Ligi has a Total smaller than 5, and an Ekstraklasa larger than 1? ### Context: CREATE TABLE table_name_46 (puchat_ligi INTEGER, total VARCHAR, ekstraklasa VARCHAR) [/INST] ### Response: SELECT SUM(puchat_ligi) FROM table_name_46 WHERE total < 5 AND ekstraklasa > 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player has a to par greater than 11, with a total less than 155? ### Context: CREATE TABLE table_name_74 (player VARCHAR, to_par VARCHAR, total VARCHAR) [/INST] ### Response: SELECT player FROM table_name_74 WHERE to_par > 11 AND total < 155 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country has a to par less than 13, with wayne grady as the player? ### Context: CREATE TABLE table_name_6 (country VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_6 WHERE to_par < 13 AND player = "wayne grady" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points 1 has Drawn of 5, and a Goal Difference of +58, and a Lost larger than 4? ### Context: CREATE TABLE table_name_36 (points_1 INTEGER, lost VARCHAR, drawn VARCHAR, goal_difference VARCHAR) [/INST] ### Response: SELECT MAX(points_1) FROM table_name_36 WHERE drawn = 5 AND goal_difference = "+58" AND lost > 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 Lost has Goals Against larger than 92? ### Context: CREATE TABLE table_name_13 (lost INTEGER, goals_against INTEGER) [/INST] ### Response: SELECT MAX(lost) FROM table_name_13 WHERE goals_against > 92 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points 1 has a Team of atherton collieries, and a Position smaller than 8? ### Context: CREATE TABLE table_name_11 (points_1 INTEGER, team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT MAX(points_1) FROM table_name_11 WHERE team = "atherton collieries" AND position < 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: How much Played has a Position of 7, and a Drawn smaller than 7? ### Context: CREATE TABLE table_name_72 (played INTEGER, position VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(played) FROM table_name_72 WHERE position = 7 AND drawn < 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: How much Drawn has Points 1 of 51, and a Lost larger than 5? ### Context: CREATE TABLE table_name_5 (drawn VARCHAR, points_1 VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(drawn) FROM table_name_5 WHERE points_1 = 51 AND lost > 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: When was the aircraft introduced that could seat 115 people? ### Context: CREATE TABLE table_name_30 (introduced INTEGER, seating VARCHAR) [/INST] ### Response: SELECT AVG(introduced) FROM table_name_30 WHERE seating = "115" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aircraft retired when it was replaced by 737-300s? ### Context: CREATE TABLE table_name_91 (retired VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT retired FROM table_name_91 WHERE notes = "replaced by 737-300s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aircraft was introduced in 2004 and has a retired of —? ### Context: CREATE TABLE table_name_83 (aircraft VARCHAR, retired VARCHAR, introduced VARCHAR) [/INST] ### Response: SELECT aircraft FROM table_name_83 WHERE retired = "—" AND introduced = 2004 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which aircraft has 148/9 seating? ### Context: CREATE TABLE table_name_88 (aircraft VARCHAR, seating VARCHAR) [/INST] ### Response: SELECT aircraft FROM table_name_88 WHERE seating = "148/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: How many people can be seated on the aircraft that was introduced in 2008 and has notes of in service? ### Context: CREATE TABLE table_name_6 (seating VARCHAR, notes VARCHAR, introduced VARCHAR) [/INST] ### Response: SELECT seating FROM table_name_6 WHERE notes = "in service" AND introduced = 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 nationality of the player who was previously with the Detroit Pistons? ### Context: CREATE TABLE table_name_55 (nationality VARCHAR, previous_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_55 WHERE previous_team = "detroit pistons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 career with the franchise of the f/c player with fewer than 9 years of NBA experience who previously played for the Phoenix Suns? ### Context: CREATE TABLE table_name_47 (career_with_the_franchise VARCHAR, previous_team VARCHAR, pos VARCHAR, years_of_nba_experience_ VARCHAR, a_ VARCHAR) [/INST] ### Response: SELECT career_with_the_franchise FROM table_name_47 WHERE years_of_nba_experience_[a_] < 9 AND pos = "f/c" AND previous_team = "phoenix suns" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tie number when Bournemouth was the home team? ### Context: CREATE TABLE table_name_79 (tie_no VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_79 WHERE home_team = "bournemouth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team when the home team was Norwich City? ### Context: CREATE TABLE table_name_83 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_83 WHERE home_team = "norwich city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wimbledon the home team? ### Context: CREATE TABLE table_name_81 (date VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_81 WHERE home_team = "wimbledon" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team West Ham United? ### Context: CREATE TABLE table_name_70 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_70 WHERE away_team = "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: On what date was the away team Bournemouth? ### Context: CREATE TABLE table_name_24 (date VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT date FROM table_name_24 WHERE away_team = "bournemouth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 district has abhayapuri south as the name? ### Context: CREATE TABLE table_name_41 (district VARCHAR, name VARCHAR) [/INST] ### Response: SELECT district FROM table_name_41 WHERE name = "abhayapuri south" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bronze has a Gold larger than 1, and a Silver smaller than 3, and a Rank smaller than 5? ### Context: CREATE TABLE table_name_69 (bronze VARCHAR, rank VARCHAR, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_69 WHERE gold > 1 AND silver < 3 AND 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: Which Rank has a Gold larger than 1, and a Bronze of 4, and a Silver smaller than 1? ### Context: CREATE TABLE table_name_90 (rank INTEGER, silver VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MAX(rank) FROM table_name_90 WHERE gold > 1 AND bronze = 4 AND silver < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Rank has a Gold of 3, and a Bronze of 4, and a Total larger than 8? ### Context: CREATE TABLE table_name_91 (rank INTEGER, total VARCHAR, gold VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT MIN(rank) FROM table_name_91 WHERE gold = 3 AND bronze = 4 AND total > 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: How much Total has a Rank smaller than 10, and a Silver larger than 3, and a Gold larger than 3? ### Context: CREATE TABLE table_name_87 (total INTEGER, gold VARCHAR, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT SUM(total) FROM table_name_87 WHERE rank < 10 AND silver > 3 AND gold > 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: Which Total has a Rank of 9, and a Silver smaller than 2? ### Context: CREATE TABLE table_name_37 (total INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_37 WHERE rank = 9 AND silver < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What event had Xu Zhilin competing? ### Context: CREATE TABLE table_name_21 (event VARCHAR, name VARCHAR) [/INST] ### Response: SELECT event FROM table_name_21 WHERE name = "xu zhilin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sport has Ma Yuxi in it? ### Context: CREATE TABLE table_name_26 (sport VARCHAR, name VARCHAR) [/INST] ### Response: SELECT sport FROM table_name_26 WHERE name = "ma yuxi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many years is Antonio Pompa-Baldi Italy first? ### Context: CREATE TABLE table_name_36 (year VARCHAR, first VARCHAR) [/INST] ### Response: SELECT COUNT(year) FROM table_name_36 WHERE first = "antonio pompa-baldi 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: Who is fourth when Anders Martinson USA is second? ### Context: CREATE TABLE table_name_98 (fourth VARCHAR, second VARCHAR) [/INST] ### Response: SELECT fourth FROM table_name_98 WHERE second = "anders martinson usa" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the sum of Wins that has the Club of abuls smiltene, and the Goals smaller than 18? ### Context: CREATE TABLE table_name_47 (wins INTEGER, club VARCHAR, goals_for VARCHAR) [/INST] ### Response: SELECT SUM(wins) FROM table_name_47 WHERE club = "abuls smiltene" AND goals_for < 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: Can you tell me the average Wins that has the Goal Difference larger than -24, and the Draws larger than 7? ### Context: CREATE TABLE table_name_42 (wins INTEGER, goal_difference VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_42 WHERE goal_difference > -24 AND draws > 7 </s>