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: On what date was Edward Jeffreys the writer? ### Context: CREATE TABLE table_name_43 (date VARCHAR, writer_s_ VARCHAR) [/INST] ### Response: SELECT date FROM table_name_43 WHERE writer_s_ = "edward jeffreys" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was the award of £6,600 was given? ### Context: CREATE TABLE table_name_48 (date VARCHAR, award VARCHAR) [/INST] ### Response: SELECT date FROM table_name_48 WHERE award = "£6,600" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director that had a recipient of Redbag Pictures Ltd? ### Context: CREATE TABLE table_name_54 (director_s_ VARCHAR, recipient VARCHAR) [/INST] ### Response: SELECT director_s_ FROM table_name_54 WHERE recipient = "redbag pictures ltd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the award that Edward Jeffreys was the writer? ### Context: CREATE TABLE table_name_64 (award VARCHAR, writer_s_ VARCHAR) [/INST] ### Response: SELECT award FROM table_name_64 WHERE writer_s_ = "edward jeffreys" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 born in 1981? ### Context: CREATE TABLE table_name_40 (player VARCHAR, year_born VARCHAR) [/INST] ### Response: SELECT player FROM table_name_40 WHERE year_born = 1981 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Height that has a year born before 1977 ### Context: CREATE TABLE table_name_49 (height VARCHAR, year_born INTEGER) [/INST] ### Response: SELECT COUNT(height) FROM table_name_49 WHERE year_born < 1977 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Region that has a Year after 2001, and a Broadsound greater than 6,843? ### Context: CREATE TABLE table_name_75 (total_region INTEGER, year VARCHAR, broadsound VARCHAR) [/INST] ### Response: SELECT MIN(total_region) FROM table_name_75 WHERE year > 2001 AND broadsound > 6 OFFSET 843 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of Total Regions that have the Year 1954, and a Nebo greater than 447? ### Context: CREATE TABLE table_name_2 (total_region INTEGER, year VARCHAR, nebo VARCHAR) [/INST] ### Response: SELECT SUM(total_region) FROM table_name_2 WHERE year = 1954 AND nebo > 447 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the number of Bronze for the Nation of Uganda with less than 2 Gold and Total medals? ### Context: CREATE TABLE table_name_34 (bronze VARCHAR, total VARCHAR, gold VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(bronze) FROM table_name_34 WHERE gold < 2 AND nation = "uganda" 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: With less than 7 Silver medals, how many Gold medals did Canada receive? ### Context: CREATE TABLE table_name_30 (gold INTEGER, nation VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_30 WHERE nation = "canada" AND silver < 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the outcome of a score that is 6–1, 6–4? ### Context: CREATE TABLE table_name_4 (outcome VARCHAR, score VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_4 WHERE score = "6–1, 6–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: What is the surface of the score, 7–6 (7–3) , 6–3? ### Context: CREATE TABLE table_name_40 (surface VARCHAR, score VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_40 WHERE score = "7–6 (7–3) , 6–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 venue did he play in before 2008 and finished 14th (q)? ### Context: CREATE TABLE table_name_71 (venue VARCHAR, year VARCHAR, position VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_71 WHERE year < 2008 AND position = "14th (q)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did he compete in before 2007 in gothenburg, sweden? ### Context: CREATE TABLE table_name_6 (competition VARCHAR, year VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_6 WHERE year < 2007 AND venue = "gothenburg, 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 venue did he finish 7th? ### Context: CREATE TABLE table_name_55 (venue VARCHAR, position VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_55 WHERE position = "7th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 performances for geoffrey fitton ### Context: CREATE TABLE table_name_43 (performances INTEGER, role VARCHAR) [/INST] ### Response: SELECT MAX(performances) FROM table_name_43 WHERE role = "geoffrey fitton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 role for Feb 4, 1961 closing date ### Context: CREATE TABLE table_name_49 (role VARCHAR, closing_date VARCHAR) [/INST] ### Response: SELECT role FROM table_name_49 WHERE closing_date = "feb 4, 1961" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the theatre for aaron jablonski schuyler grogan with performances more than 49 ### Context: CREATE TABLE table_name_31 (theatre VARCHAR, performances VARCHAR, role VARCHAR) [/INST] ### Response: SELECT theatre FROM table_name_31 WHERE performances > 49 AND role = "aaron jablonski schuyler grogan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the titles for episodes prior to episode 4? ### Context: CREATE TABLE table_name_29 (title VARCHAR, no_in_series INTEGER) [/INST] ### Response: SELECT title FROM table_name_29 WHERE no_in_series < 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: What are the titles for episodes prior to episode 4? ### Context: CREATE TABLE table_name_23 (title VARCHAR, no_in_series INTEGER) [/INST] ### Response: SELECT title FROM table_name_23 WHERE no_in_series < 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: What the air dates for the episodes are episode 3 in the series? ### Context: CREATE TABLE table_name_58 (original_air_date VARCHAR, no_in_series INTEGER) [/INST] ### Response: SELECT original_air_date FROM table_name_58 WHERE no_in_series > 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many laps resulted from a Qual of 165.229? ### Context: CREATE TABLE table_name_17 (laps INTEGER, qual VARCHAR) [/INST] ### Response: SELECT MAX(laps) FROM table_name_17 WHERE qual = "165.229" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Whent he start was 15, what was the Qual? ### Context: CREATE TABLE table_name_4 (qual VARCHAR, start VARCHAR) [/INST] ### Response: SELECT qual FROM table_name_4 WHERE start = "15" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the start result with a Rank of 7 and more than 100 laps? ### Context: CREATE TABLE table_name_15 (start VARCHAR, rank VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT start FROM table_name_15 WHERE rank = "7" AND laps > 100 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the shirt sponsor for the Blackburn Rovers? ### Context: CREATE TABLE table_name_59 (shirt_sponsor VARCHAR, team VARCHAR) [/INST] ### Response: SELECT shirt_sponsor FROM table_name_59 WHERE team = "blackburn rovers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team captain of the Bolton Wanderers? ### Context: CREATE TABLE table_name_60 (captain VARCHAR, team VARCHAR) [/INST] ### Response: SELECT captain FROM table_name_60 WHERE team = "bolton wanderers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which team did Adidas manufacture kits and TDK sponsor shirts? ### Context: CREATE TABLE table_name_75 (team VARCHAR, kit_manufacturer VARCHAR, shirt_sponsor VARCHAR) [/INST] ### Response: SELECT team FROM table_name_75 WHERE kit_manufacturer = "adidas" AND shirt_sponsor = "tdk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which team was Robbie Earle the captain? ### Context: CREATE TABLE table_name_5 (team VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT team FROM table_name_5 WHERE captain = "robbie earle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manager for the team with captain Neil Redfearn? ### Context: CREATE TABLE table_name_24 (manager_1 VARCHAR, captain VARCHAR) [/INST] ### Response: SELECT manager_1 FROM table_name_24 WHERE captain = "neil redfearn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team captain for Crystal Palace? ### Context: CREATE TABLE table_name_56 (captain VARCHAR, team VARCHAR) [/INST] ### Response: SELECT captain FROM table_name_56 WHERE team = "crystal palace" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: drop goals larger than 0, and a Penalties of 52, and a Number larger than 5 had what lowest score? ### Context: CREATE TABLE table_name_96 (score INTEGER, number VARCHAR, drop_goals VARCHAR, penalties VARCHAR) [/INST] ### Response: SELECT MIN(score) FROM table_name_96 WHERE drop_goals > 0 AND penalties = 52 AND number > 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: Player of jaco coetzee, and a Tries larger than 6 had what total number of score? ### Context: CREATE TABLE table_name_50 (score VARCHAR, player VARCHAR, tries VARCHAR) [/INST] ### Response: SELECT COUNT(score) FROM table_name_50 WHERE player = "jaco coetzee" AND tries > 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest round that has a draftee from Washington State University? ### Context: CREATE TABLE table_name_60 (round INTEGER, school VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_60 WHERE school = "washington state university" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round was Bob Randall selected in? ### Context: CREATE TABLE table_name_16 (round INTEGER, name VARCHAR) [/INST] ### Response: SELECT MAX(round) FROM table_name_16 WHERE name = "bob randall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ont of N.B. of 10 and normal total of 77 ### Context: CREATE TABLE table_name_5 (ont VARCHAR, nb VARCHAR, normal_total VARCHAR) [/INST] ### Response: SELECT ont FROM table_name_5 WHERE nb = "10" AND normal_total = "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: Name the date enacted for N.S. of 10 and normal total of 104 ### Context: CREATE TABLE table_name_73 (date_enacted VARCHAR, ns VARCHAR, normal_total VARCHAR) [/INST] ### Response: SELECT date_enacted FROM table_name_73 WHERE ns = "10" AND normal_total = "104" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NS with normal total of 102 ### Context: CREATE TABLE table_name_11 (ns VARCHAR, normal_total VARCHAR) [/INST] ### Response: SELECT ns FROM table_name_11 WHERE normal_total = "102" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 normal with que of 24 ### Context: CREATE TABLE table_name_62 (normal_total VARCHAR, que VARCHAR) [/INST] ### Response: SELECT normal_total FROM table_name_62 WHERE que = "24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of all the points won by Peter Whitehead in an alta f2 Chassis? ### Context: CREATE TABLE table_name_41 (points INTEGER, entrant VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_41 WHERE entrant = "peter whitehead" AND chassis = "alta f2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does g a vandervell have? ### Context: CREATE TABLE table_name_95 (points VARCHAR, entrant VARCHAR) [/INST] ### Response: SELECT points FROM table_name_95 WHERE entrant = "g a vandervell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total points were earned with ferrari 125 Chassis after 1952? ### Context: CREATE TABLE table_name_77 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_77 WHERE chassis = "ferrari 125" AND year > 1952 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Points that Peter Whitehead earned in a Ferrari 125? ### Context: CREATE TABLE table_name_42 (points INTEGER, entrant VARCHAR, chassis VARCHAR) [/INST] ### Response: SELECT SUM(points) FROM table_name_42 WHERE entrant = "peter whitehead" AND chassis = "ferrari 125" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 41 √ for having D 43 of r 13 ### Context: CREATE TABLE table_name_20 (d_41_√ VARCHAR, d_43_o VARCHAR) [/INST] ### Response: SELECT d_41_√ FROM table_name_20 WHERE d_43_o = "r 13" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rank of a transfer fee larger than 13 million, and after 2008? ### Context: CREATE TABLE table_name_26 (rank VARCHAR, transfer_fee___€_million_ VARCHAR, year VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_26 WHERE transfer_fee___€_million_ > 13 AND year > 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What president was elected in 2010? ### Context: CREATE TABLE table_name_69 (president VARCHAR, elected VARCHAR) [/INST] ### Response: SELECT president FROM table_name_69 WHERE elected = 2010 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 seats for 2001 is greater than 15 and % 2001 is greater than 100, what is the % 2006? ### Context: CREATE TABLE table_name_70 (_percentage_2006 INTEGER, seats_2001 VARCHAR, _percentage_2001 VARCHAR) [/INST] ### Response: SELECT AVG(_percentage_2006) FROM table_name_70 WHERE seats_2001 > 15 AND _percentage_2001 > 100 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of % for 2001 if 2001 seats equals 7? ### Context: CREATE TABLE table_name_32 (_percentage_2001 VARCHAR, seats_2001 VARCHAR) [/INST] ### Response: SELECT COUNT(_percentage_2001) FROM table_name_32 WHERE seats_2001 = 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: If 2006 is 13% and 2001 is greater than 12.1%, what is the greatest number of seats for 2001? ### Context: CREATE TABLE table_name_71 (seats_2001 INTEGER, _percentage_2006 VARCHAR, _percentage_2001 VARCHAR) [/INST] ### Response: SELECT MAX(seats_2001) FROM table_name_71 WHERE _percentage_2006 = 13 AND _percentage_2001 > 12.1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What were the circumstances of the Hostile incident on the road to Jalalabad? ### Context: CREATE TABLE table_name_18 (circumstances VARCHAR, nature_of_incident VARCHAR, location VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_18 WHERE nature_of_incident = "hostile" AND location = "road to jalalabad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circumstance that happened on the road to Jalalabad? ### Context: CREATE TABLE table_name_89 (circumstances VARCHAR, location VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_89 WHERE location = "road to jalalabad" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What happened in Mazar-i-sharif? ### Context: CREATE TABLE table_name_3 (circumstances VARCHAR, location VARCHAR) [/INST] ### Response: SELECT circumstances FROM table_name_3 WHERE location = "mazar-i-sharif" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Index number of Chen Bangjun Andie from Singapore? ### Context: CREATE TABLE table_name_23 (index VARCHAR, country VARCHAR, name VARCHAR) [/INST] ### Response: SELECT index FROM table_name_23 WHERE country = "singapore" AND name = "chen bangjun andie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Chinese name of the Eliminated player from Singapore in Index f9? ### Context: CREATE TABLE table_name_51 (Chinese VARCHAR, index VARCHAR, status VARCHAR, country VARCHAR) [/INST] ### Response: SELECT Chinese AS name FROM table_name_51 WHERE status = "eliminated" AND country = "singapore" AND index = "f9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Chinese name of the player in Index F10? ### Context: CREATE TABLE table_name_73 (Chinese VARCHAR, index VARCHAR) [/INST] ### Response: SELECT Chinese AS name FROM table_name_73 WHERE index = "f10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from Malaysia, Kuala Lumpur in Index f8? ### Context: CREATE TABLE table_name_67 (name VARCHAR, country VARCHAR, index VARCHAR) [/INST] ### Response: SELECT name FROM table_name_67 WHERE country = "malaysia, kuala lumpur" AND index = "f8" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent of the game on August 8? ### Context: CREATE TABLE table_name_36 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_36 WHERE date = "august 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: Who took the winning slot at the Vojens venue? ### Context: CREATE TABLE table_name_29 (winners VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT winners FROM table_name_29 WHERE venue = "vojens" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner-up in 1980 at the Pocking venue? ### Context: CREATE TABLE table_name_93 (runner_up VARCHAR, venue VARCHAR, year VARCHAR) [/INST] ### Response: SELECT runner_up FROM table_name_93 WHERE venue = "pocking" AND year = "1980" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the United States swimmer come in who posted 11.26 seconds in the 100-meter youth female division? ### Context: CREATE TABLE table_name_71 (rank VARCHAR, fastest_time__s_ VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT COUNT(rank) FROM table_name_71 WHERE fastest_time__s_ = "11.26" AND nation = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall with more than 17 rounds? ### Context: CREATE TABLE table_name_25 (overall INTEGER, round INTEGER) [/INST] ### Response: SELECT MIN(overall) FROM table_name_25 WHERE round > 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What position has 14 rounds? ### Context: CREATE TABLE table_name_15 (position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT position FROM table_name_15 WHERE round = 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What United States player has a score of 69-73-68=210? ### Context: CREATE TABLE table_name_72 (player VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_72 WHERE score = 69 - 73 - 68 = 210 AND country = "united states" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Argentina country is in t10 place? ### Context: CREATE TABLE table_name_49 (score VARCHAR, place VARCHAR, country VARCHAR) [/INST] ### Response: SELECT score FROM table_name_49 WHERE place = "t10" AND country = "argentina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country has the score of 71-71-68=210? ### Context: CREATE TABLE table_name_99 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_99 WHERE score = 71 - 71 - 68 = 210 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What To par scored 72-71-68=211? ### Context: CREATE TABLE table_name_29 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_29 WHERE score = 72 - 71 - 68 = 211 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 award won for category of choice tv villain in years after 2008 ### Context: CREATE TABLE table_name_94 (award VARCHAR, year VARCHAR, result VARCHAR, category VARCHAR) [/INST] ### Response: SELECT award FROM table_name_94 WHERE result = "won" AND category = "choice tv villain" AND year > 2008 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the award for nominated result and year after 2011 ### Context: CREATE TABLE table_name_38 (award VARCHAR, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT award FROM table_name_38 WHERE result = "nominated" AND year > 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 Perth also has Sydney yes, Gold Coast yes, and Adelaide no? ### Context: CREATE TABLE table_name_97 (perth VARCHAR, adelaide VARCHAR, sydney VARCHAR, gold_coast VARCHAR) [/INST] ### Response: SELECT perth FROM table_name_97 WHERE sydney = "yes" AND gold_coast = "yes" AND adelaide = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Perth has Gold Coast yes, Sydney yes, Melbourne yes, and Adelaide yes? ### Context: CREATE TABLE table_name_56 (perth VARCHAR, adelaide VARCHAR, melbourne VARCHAR, gold_coast VARCHAR, sydney VARCHAR) [/INST] ### Response: SELECT perth FROM table_name_56 WHERE gold_coast = "yes" AND sydney = "yes" AND melbourne = "yes" AND adelaide = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Adelaide has Sydney yes, Melbourne yes, and Perth no? ### Context: CREATE TABLE table_name_31 (adelaide VARCHAR, perth VARCHAR, sydney VARCHAR, melbourne VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_31 WHERE sydney = "yes" AND melbourne = "yes" AND perth = "no" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Adelaide has Perth no, Gold Coast no, and Sydney yes? ### Context: CREATE TABLE table_name_13 (adelaide VARCHAR, sydney VARCHAR, perth VARCHAR, gold_coast VARCHAR) [/INST] ### Response: SELECT adelaide FROM table_name_13 WHERE perth = "no" AND gold_coast = "yes" AND sydney = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Melbourne has Gold Coast yes, Perth cancelled, and Adelaide cancelled? ### Context: CREATE TABLE table_name_11 (melbourne VARCHAR, adelaide VARCHAR, gold_coast VARCHAR, perth VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_11 WHERE gold_coast = "yes" AND perth = "cancelled" AND adelaide = "cancelled" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Melbourne has Sydney yes, Gold Coast yes, and Perth yes? ### Context: CREATE TABLE table_name_71 (melbourne VARCHAR, perth VARCHAR, sydney VARCHAR, gold_coast VARCHAR) [/INST] ### Response: SELECT melbourne FROM table_name_71 WHERE sydney = "yes" AND gold_coast = "yes" AND perth = "yes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who came in 3rd when Matej žagar won? ### Context: CREATE TABLE table_name_30 (winners VARCHAR) [/INST] ### Response: SELECT 3 AS rd_place FROM table_name_30 WHERE winners = "matej žagar" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 at Krško? ### Context: CREATE TABLE table_name_25 (winners VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT winners FROM table_name_25 WHERE venue = "krško" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 came in 3rd when Nicolai Klindt won? ### Context: CREATE TABLE table_name_2 (winners VARCHAR) [/INST] ### Response: SELECT 3 AS rd_place FROM table_name_2 WHERE winners = "nicolai klindt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 came in 3rd at Venue? ### Context: CREATE TABLE table_name_99 (Id VARCHAR) [/INST] ### Response: SELECT 3 AS rd_place FROM table_name_99 WHERE "venue" = "venue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of weeks that the Steelers had a record of 1–0? ### Context: CREATE TABLE table_name_99 (week VARCHAR, record VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_99 WHERE record = "1–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: Who was the opponent at the Steelers game that had a result of l 20–17? ### Context: CREATE TABLE table_name_46 (opponent VARCHAR, result VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_46 WHERE result = "l 20–17" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 condition for partial thromboplastin time of prolonged and platelet count of unaffected with bleeding time of prolonged ### Context: CREATE TABLE table_name_41 (condition VARCHAR, bleeding_time VARCHAR, partial_thromboplastin_time VARCHAR, platelet_count VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_41 WHERE partial_thromboplastin_time = "prolonged" AND platelet_count = "unaffected" AND bleeding_time = "prolonged" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 condition with partial thromboplastin time of prolonged or unaffected ### Context: CREATE TABLE table_name_14 (condition VARCHAR, partial_thromboplastin_time VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_14 WHERE partial_thromboplastin_time = "prolonged or unaffected" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 condition with partial thromboplastin time of unaffected and prothrombin time of unaffected with platelet count of decreased ### Context: CREATE TABLE table_name_4 (condition VARCHAR, platelet_count VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_4 WHERE partial_thromboplastin_time = "unaffected" AND prothrombin_time = "unaffected" AND platelet_count = "decreased" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 condition with platelet count of unaffected and bleeding time of unaffected with prothrombin time of prolonged and partial thromboplastin time of prolonged ### Context: CREATE TABLE table_name_52 (condition VARCHAR, partial_thromboplastin_time VARCHAR, prothrombin_time VARCHAR, platelet_count VARCHAR, bleeding_time VARCHAR) [/INST] ### Response: SELECT condition FROM table_name_52 WHERE platelet_count = "unaffected" AND bleeding_time = "unaffected" AND prothrombin_time = "prolonged" AND partial_thromboplastin_time = "prolonged" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bleeding time with platelet count of unaffected and condition of factor xii deficiency ### Context: CREATE TABLE table_name_83 (bleeding_time VARCHAR, platelet_count VARCHAR, condition VARCHAR) [/INST] ### Response: SELECT bleeding_time FROM table_name_83 WHERE platelet_count = "unaffected" AND condition = "factor xii deficiency" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of losses with draws less than 1 and 6.3% efficiency? ### Context: CREATE TABLE table_name_8 (losses INTEGER, efficiency__percentage VARCHAR, draws VARCHAR) [/INST] ### Response: SELECT AVG(losses) FROM table_name_8 WHERE efficiency__percentage = "6.3%" AND draws < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of draws for ali said gouled? ### Context: CREATE TABLE table_name_12 (draws VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(draws) FROM table_name_12 WHERE name = "ali said gouled" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: what is the number of draws when there are 4 losses and 28.6% efficiency? ### Context: CREATE TABLE table_name_11 (draws VARCHAR, losses VARCHAR, efficiency__percentage VARCHAR) [/INST] ### Response: SELECT COUNT(draws) FROM table_name_11 WHERE losses = 4 AND efficiency__percentage = "28.6%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the females when males are 1 548 ### Context: CREATE TABLE table_name_60 (females VARCHAR, males VARCHAR) [/INST] ### Response: SELECT females FROM table_name_60 WHERE males = "1 548" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage with number of 1 343 ### Context: CREATE TABLE table_name_11 (percentage___percentage_ VARCHAR, number VARCHAR) [/INST] ### Response: SELECT percentage___percentage_ FROM table_name_11 WHERE number = "1 343" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage which has females of 2 ### Context: CREATE TABLE table_name_17 (percentage___percentage_ VARCHAR, females VARCHAR) [/INST] ### Response: SELECT percentage___percentage_ FROM table_name_17 WHERE females = "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: Name the males for language of persons that didn't name their native language ### Context: CREATE TABLE table_name_57 (males VARCHAR, language VARCHAR) [/INST] ### Response: SELECT males FROM table_name_57 WHERE language = "persons that didn't name their native language" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the school colors for the college whose main campus is overland park? ### Context: CREATE TABLE table_name_66 (school_colors VARCHAR, main_campus_location VARCHAR) [/INST] ### Response: SELECT school_colors FROM table_name_66 WHERE main_campus_location = "overland 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 is independence community college's newest campus? ### Context: CREATE TABLE table_name_37 (founded INTEGER, institution VARCHAR) [/INST] ### Response: SELECT MIN(founded) FROM table_name_37 WHERE institution = "independence community college" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college was founded in 1967? ### Context: CREATE TABLE table_name_61 (main_campus_location VARCHAR, founded VARCHAR) [/INST] ### Response: SELECT main_campus_location FROM table_name_61 WHERE founded = 1967 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 had a function of explorator? ### Context: CREATE TABLE table_name_9 (name VARCHAR, function VARCHAR) [/INST] ### Response: SELECT name FROM table_name_9 WHERE function = "explorator" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Competing entities that has the First held smaller than 1970? ### Context: CREATE TABLE table_name_4 (competing_entities VARCHAR, first_held INTEGER) [/INST] ### Response: SELECT competing_entities FROM table_name_4 WHERE first_held < 1970 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What surface was played on on October 3, 2010? ### Context: CREATE TABLE table_name_42 (surface VARCHAR, date VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_42 WHERE date = "october 3, 2010" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 tier versus Manana Shapakidze? ### Context: CREATE TABLE table_name_5 (tier VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT tier FROM table_name_5 WHERE opponent_in_the_final = "manana shapakidze" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 versus Michaela Pochabová? ### Context: CREATE TABLE table_name_85 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST] ### Response: SELECT score FROM table_name_85 WHERE opponent_in_the_final = "michaela pochabová" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent on May 8, 2006? ### Context: CREATE TABLE table_name_75 (opponent_in_the_final VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent_in_the_final FROM table_name_75 WHERE date = "may 8, 2006" </s>