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: Which European has a Play-Off of relegated? ### Context: CREATE TABLE table_name_59 (european VARCHAR, play_off VARCHAR) [/INST] ### Response: SELECT european FROM table_name_59 WHERE play_off = "relegated" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest number of caps of the fullback player born on 13 April 1983? ### Context: CREATE TABLE table_name_56 (caps INTEGER, position VARCHAR, date_of_birth__age_ VARCHAR) [/INST] ### Response: SELECT MIN(caps) FROM table_name_56 WHERE position = "fullback" AND date_of_birth__age_ = "13 april 1983" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the club/province of the player born on 12 May 1984? ### Context: CREATE TABLE table_name_77 (club_province VARCHAR, date_of_birth__age_ VARCHAR) [/INST] ### Response: SELECT club_province FROM table_name_77 WHERE date_of_birth__age_ = "12 may 1984" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the club/province of player Alberto Sgarbi, who played wing, with less than 2 caps? ### Context: CREATE TABLE table_name_18 (club_province VARCHAR, player VARCHAR, caps VARCHAR, position VARCHAR) [/INST] ### Response: SELECT club_province FROM table_name_18 WHERE caps < 2 AND position = "wing" AND player = "alberto sgarbi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What games have the event of Men's Slalom? ### Context: CREATE TABLE table_name_91 (games VARCHAR, event VARCHAR) [/INST] ### Response: SELECT games FROM table_name_91 WHERE event = "men's slalom" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 events in the 1976 Innsbruck Games? ### Context: CREATE TABLE table_name_60 (event VARCHAR, games VARCHAR) [/INST] ### Response: SELECT event FROM table_name_60 WHERE games = "1976 innsbruck" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 medal for the Men's Giant Slalom event? ### Context: CREATE TABLE table_name_1 (medal VARCHAR, event VARCHAR) [/INST] ### Response: SELECT medal FROM table_name_1 WHERE event = "men's giant slalom" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the tournament that has 15 events, and less than 6 top-25's, how many top-5's did he have? ### Context: CREATE TABLE table_name_76 (top_5 INTEGER, events VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT SUM(top_5) FROM table_name_76 WHERE events = 15 AND top_25 < 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: In the tournament that had 3 Top-10's, and less than 15 events, how many Top-5's did the player have? ### Context: CREATE TABLE table_name_59 (top_5 INTEGER, top_10 VARCHAR, events VARCHAR) [/INST] ### Response: SELECT SUM(top_5) FROM table_name_59 WHERE top_10 = 3 AND events < 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: How many wins were in the Masters Tournament with less than 15 events? ### Context: CREATE TABLE table_name_20 (wins INTEGER, tournament VARCHAR, events VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_20 WHERE tournament = "masters tournament" AND events < 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: In the tournament with more than 6 top-25's and less than 13 cuts made, how many wins were there? ### Context: CREATE TABLE table_name_28 (wins VARCHAR, top_25 VARCHAR, cuts_made VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_28 WHERE top_25 > 6 AND cuts_made < 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: Which father had william iv as a husband? ### Context: CREATE TABLE table_name_98 (father VARCHAR, husband VARCHAR) [/INST] ### Response: SELECT father FROM table_name_98 WHERE husband = "william iv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 death date of elisabeth of lorraine? ### Context: CREATE TABLE table_name_82 (death VARCHAR, image VARCHAR) [/INST] ### Response: SELECT death FROM table_name_82 WHERE image = "elisabeth of lorraine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 duchess was born on 9 october 1574? ### Context: CREATE TABLE table_name_34 (ceased_to_be_duchess VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT ceased_to_be_duchess FROM table_name_34 WHERE birth = "9 october 1574" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 image is of the woman married to william iv? ### Context: CREATE TABLE table_name_86 (image VARCHAR, husband VARCHAR) [/INST] ### Response: SELECT image FROM table_name_86 WHERE husband = "william iv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 husband of the image of renata of lorraine? ### Context: CREATE TABLE table_name_87 (husband VARCHAR, image VARCHAR) [/INST] ### Response: SELECT husband FROM table_name_87 WHERE image = "renata of lorraine" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 husband of marie of baden-sponheim? ### Context: CREATE TABLE table_name_74 (husband VARCHAR, image VARCHAR) [/INST] ### Response: SELECT husband FROM table_name_74 WHERE image = "marie of baden-sponheim" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team at the Chicago home game? ### Context: CREATE TABLE table_name_30 (visitor VARCHAR, home VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_30 WHERE home = "chicago" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the home game for Colorado? ### Context: CREATE TABLE table_name_67 (date VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_67 WHERE home = "colorado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of the game when St. Louis was the home team? ### Context: CREATE TABLE table_name_55 (date VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_55 WHERE home = "st. louis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team when the record was 51–12–4? ### Context: CREATE TABLE table_name_26 (visitor VARCHAR, record VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_26 WHERE record = "51–12–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 was the date of the home game for Hartford? ### Context: CREATE TABLE table_name_87 (date VARCHAR, home VARCHAR) [/INST] ### Response: SELECT date FROM table_name_87 WHERE home = "hartford" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for seasons before 1999 with pos of 8? ### Context: CREATE TABLE table_name_93 (attendance_g INTEGER, pos VARCHAR, season VARCHAR) [/INST] ### Response: SELECT AVG(attendance_g) FROM table_name_93 WHERE pos = 8 AND season < 1999 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the socket for the processor with part number ADH2350IAA5DO? ### Context: CREATE TABLE table_name_27 (socket VARCHAR, part_number_s_ VARCHAR) [/INST] ### Response: SELECT socket FROM table_name_27 WHERE part_number_s_ = "adh2350iaa5do" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 multi 1 for the Athlon x2 BE-2400? ### Context: CREATE TABLE table_name_46 (multi_1 VARCHAR, model_number VARCHAR) [/INST] ### Response: SELECT multi_1 FROM table_name_46 WHERE model_number = "athlon x2 be-2400" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 stepping for the processor released June 5, 2007? ### Context: CREATE TABLE table_name_25 (stepping VARCHAR, release_date VARCHAR) [/INST] ### Response: SELECT stepping FROM table_name_25 WHERE release_date = "june 5, 2007" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the v-core for a stepping of G1 and frequency of 1900MHz? ### Context: CREATE TABLE table_name_29 (v_core VARCHAR, stepping VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT v_core FROM table_name_29 WHERE stepping = "g1" AND frequency = "1900mhz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name in English that had a Stat of 7th cut? ### Context: CREATE TABLE table_name_43 (english_name VARCHAR, stat VARCHAR) [/INST] ### Response: SELECT english_name FROM table_name_43 WHERE stat = "7th cut" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winner in the event with a runner-up of Alberto Mancini? ### Context: CREATE TABLE table_name_1 (winner VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT winner FROM table_name_1 WHERE runner_up = "alberto mancini" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 series score when st. louis was away on april 18? ### Context: CREATE TABLE table_name_96 (series VARCHAR, visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT series FROM table_name_96 WHERE visitor = "st. louis" AND date = "april 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: Who recorded the decision when philadelphia was away? ### Context: CREATE TABLE table_name_41 (decision VARCHAR, visitor VARCHAR) [/INST] ### Response: SELECT decision FROM table_name_41 WHERE visitor = "philadelphia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team's record on September 30? ### Context: CREATE TABLE table_name_44 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_44 WHERE date = "september 30" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team's record when they played the Twins on September 25? ### Context: CREATE TABLE table_name_57 (record VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_57 WHERE opponent = "twins" AND date = "september 25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the home team's record when they played the Devil Rays on September 6? ### Context: CREATE TABLE table_name_50 (record VARCHAR, opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_50 WHERE opponent = "devil rays" AND date = "september 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 team did the home team play on September 4? ### Context: CREATE TABLE table_name_2 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_2 WHERE date = "september 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 was Freddie Starr, who entered on Day 1, known for? ### Context: CREATE TABLE table_name_34 (known_for VARCHAR, entered VARCHAR, celebrity VARCHAR) [/INST] ### Response: SELECT known_for FROM table_name_34 WHERE entered = "day 1" AND celebrity = "freddie starr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 exited on Day 12? ### Context: CREATE TABLE table_name_64 (celebrity VARCHAR, exited VARCHAR) [/INST] ### Response: SELECT celebrity FROM table_name_64 WHERE exited = "day 12" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day did the person who finished in 12th place leave on? ### Context: CREATE TABLE table_name_53 (exited VARCHAR, finished VARCHAR) [/INST] ### Response: SELECT exited FROM table_name_53 WHERE finished = "12th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What place did the person who left on day 3 finish in? ### Context: CREATE TABLE table_name_54 (finished VARCHAR, exited VARCHAR) [/INST] ### Response: SELECT finished FROM table_name_54 WHERE exited = "day 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: On which day did the person who is known for the only way is essex star enter? ### Context: CREATE TABLE table_name_42 (entered VARCHAR, known_for VARCHAR) [/INST] ### Response: SELECT entered FROM table_name_42 WHERE known_for = "the only way is essex star" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Freddie Starr, who entered on Day 1, known for? ### Context: CREATE TABLE table_name_67 (known_for VARCHAR, entered VARCHAR, celebrity VARCHAR) [/INST] ### Response: SELECT known_for FROM table_name_67 WHERE entered = "day 1" AND celebrity = "freddie starr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the date for week more than 1 and game site of bye ### Context: CREATE TABLE table_name_99 (date VARCHAR, game_site VARCHAR, week VARCHAR) [/INST] ### Response: SELECT date FROM table_name_99 WHERE game_site = "bye" AND week > 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: Name the opponent for date of bye and week of 1 ### Context: CREATE TABLE table_name_39 (opponent VARCHAR, date VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_39 WHERE date = "bye" AND week = 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: Name the opponent for week of 2 ### Context: CREATE TABLE table_name_6 (opponent VARCHAR, week VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_6 WHERE week = 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 team classification with a winner of Beat Zberg, and a points classification of José María Jiménez. ### Context: CREATE TABLE table_name_13 (team_classification VARCHAR, points_classification VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT team_classification FROM table_name_13 WHERE points_classification = "josé maría jiménez" AND winner = "beat zberg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person who died on 16 July 1946 born? ### Context: CREATE TABLE table_name_3 (birth VARCHAR, death VARCHAR) [/INST] ### Response: SELECT birth FROM table_name_3 WHERE death = "16 july 1946" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spouse of the person born on 29 September 1766? ### Context: CREATE TABLE table_name_82 (spouse VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT spouse FROM table_name_82 WHERE birth = "29 september 1766" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 born on 29 September 1766? ### Context: CREATE TABLE table_name_20 (name VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_20 WHERE birth = "29 september 1766" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 born on 10 May 1788 that ceased to be queen? ### Context: CREATE TABLE table_name_3 (ceased_to_be_queen VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT ceased_to_be_queen FROM table_name_3 WHERE birth = "10 may 1788" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the marriage of who became queen on 30 October 1816 husband's accession? ### Context: CREATE TABLE table_name_84 (marriage VARCHAR, became_queen VARCHAR) [/INST] ### Response: SELECT marriage FROM table_name_84 WHERE became_queen = "30 october 1816 husband's accession" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 person who became queen on 15 April 1820 born? ### Context: CREATE TABLE table_name_79 (birth VARCHAR, became_queen VARCHAR) [/INST] ### Response: SELECT birth FROM table_name_79 WHERE became_queen = "15 april 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: What is their record on April 2? ### Context: CREATE TABLE table_name_59 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_59 WHERE date = "april 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 team has the record of 11-6? ### Context: CREATE TABLE table_name_8 (loss VARCHAR, record VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_8 WHERE record = "11-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 was his record when he went over 1 round? ### Context: CREATE TABLE table_name_81 (record VARCHAR, round INTEGER) [/INST] ### Response: SELECT record FROM table_name_81 WHERE round > 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 event did he have a 2-0 record? ### Context: CREATE TABLE table_name_51 (event VARCHAR, record VARCHAR) [/INST] ### Response: SELECT event FROM table_name_51 WHERE record = "2-0" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was his result against dan bobish? ### Context: CREATE TABLE table_name_80 (res VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT res FROM table_name_80 WHERE opponent = "dan bobish" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Voltage Center (V) has an S-Spec Number of sk096? ### Context: CREATE TABLE table_name_76 (voltage_center__v_ VARCHAR, s_spec_number VARCHAR) [/INST] ### Response: SELECT voltage_center__v_ FROM table_name_76 WHERE s_spec_number = "sk096" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Voltage Center (V) has an Input Clock (MHz) of 25 x 3, and a Part Number of a80486dx4-75? ### Context: CREATE TABLE table_name_71 (voltage_center__v_ VARCHAR, input_clock__mhz_ VARCHAR, part_number VARCHAR) [/INST] ### Response: SELECT voltage_center__v_ FROM table_name_71 WHERE input_clock__mhz_ = "25 x 3" AND part_number = "a80486dx4-75" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the low gold total for under 2 total and over 0 silvers? ### Context: CREATE TABLE table_name_57 (gold INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(gold) FROM table_name_57 WHERE total < 2 AND silver > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many silvers for the nation with under 6 total and under 0 bronze? ### Context: CREATE TABLE table_name_62 (silver VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(silver) FROM table_name_62 WHERE total < 6 AND bronze < 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: The person that was notable for professional wrestling had a Born-Died of what year? ### Context: CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) [/INST] ### Response: SELECT born___died FROM table_name_1 WHERE notable_for = "professional wrestling" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The person that was born in Sydney died in what year? ### Context: CREATE TABLE table_name_47 (born___died VARCHAR, connection_with_australia VARCHAR) [/INST] ### Response: SELECT born___died FROM table_name_47 WHERE connection_with_australia = "born in sydney" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: The person notable for tennis died in what year? ### Context: CREATE TABLE table_name_1 (born___died VARCHAR, notable_for VARCHAR) [/INST] ### Response: SELECT born___died FROM table_name_1 WHERE notable_for = "tennis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record when the team played at Oakland Seals? ### Context: CREATE TABLE table_name_36 (record VARCHAR, home VARCHAR) [/INST] ### Response: SELECT record FROM table_name_36 WHERE home = "oakland seals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purse when the trainer was Aidan O'Brien? ### Context: CREATE TABLE table_name_21 (purse VARCHAR, trainer VARCHAR) [/INST] ### Response: SELECT purse FROM table_name_21 WHERE trainer = "aidan o'brien" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for when cornelio velasquez was the jockey? ### Context: CREATE TABLE table_name_12 (time VARCHAR, jockey VARCHAR) [/INST] ### Response: SELECT time FROM table_name_12 WHERE jockey = "cornelio velasquez" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 jockey when the owner was Richard Pegum? ### Context: CREATE TABLE table_name_75 (jockey VARCHAR, owner VARCHAR) [/INST] ### Response: SELECT jockey FROM table_name_75 WHERE owner = "richard pegum" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purse when Aidan O'brien was the trainer? ### Context: CREATE TABLE table_name_95 (purse VARCHAR, trainer VARCHAR) [/INST] ### Response: SELECT purse FROM table_name_95 WHERE trainer = "aidan o'brien" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 purse for the year earlier than 2013 and muhannak was the winner? ### Context: CREATE TABLE table_name_82 (purse VARCHAR, year VARCHAR, winner VARCHAR) [/INST] ### Response: SELECT purse FROM table_name_82 WHERE year < 2013 AND winner = "muhannak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 trainer in 2013? ### Context: CREATE TABLE table_name_71 (trainer VARCHAR, year VARCHAR) [/INST] ### Response: SELECT trainer FROM table_name_71 WHERE year = 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 throw number had a DOB of 19/10/81? ### Context: CREATE TABLE table_name_2 (throws VARCHAR, dob VARCHAR) [/INST] ### Response: SELECT throws FROM table_name_2 WHERE dob = "19/10/81" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which first's surname is Cook? ### Context: CREATE TABLE table_name_76 (first VARCHAR, surname VARCHAR) [/INST] ### Response: SELECT first FROM table_name_76 WHERE surname = "cook" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position has L bats and Anderson as a surname? ### Context: CREATE TABLE table_name_14 (position VARCHAR, bats VARCHAR, surname VARCHAR) [/INST] ### Response: SELECT position FROM table_name_14 WHERE bats = "l" AND surname = "anderson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 team 2 with a team 1 us gorée? ### Context: CREATE TABLE table_name_88 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_88 WHERE team_1 = "us gorée" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2nd leg of team 1 Zamalek SC? ### Context: CREATE TABLE table_name_31 (team_1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_31 WHERE team_1 = "zamalek sc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 1st leg of the team with a 2-1 agg.? ### Context: CREATE TABLE table_name_13 (agg VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_13 WHERE agg = "2-1" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2nd leg of team 2 Far rabat? ### Context: CREATE TABLE table_name_92 (team_2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_92 WHERE team_2 = "far rabat" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Watts has a Class of a, and a Frequency of 91.5 fm, and a City of license of elkhart, kansas? ### Context: CREATE TABLE table_name_37 (watts INTEGER, city_of_license VARCHAR, class VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT MIN(watts) FROM table_name_37 WHERE class = "a" AND frequency = "91.5 fm" AND city_of_license = "elkhart, kansas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class has a City of license of garden city, kansas? ### Context: CREATE TABLE table_name_50 (class VARCHAR, city_of_license VARCHAR) [/INST] ### Response: SELECT class FROM table_name_50 WHERE city_of_license = "garden city, kansas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency has a Call sign of kcse? ### Context: CREATE TABLE table_name_93 (frequency VARCHAR, call_sign VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_93 WHERE call_sign = "kcse" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 59th as a finish position? ### Context: CREATE TABLE table_name_58 (year VARCHAR, finish_position VARCHAR) [/INST] ### Response: SELECT year FROM table_name_58 WHERE finish_position = "59th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2nd day has a year prior to 2009? ### Context: CREATE TABLE table_name_4 (year INTEGER) [/INST] ### Response: SELECT 2 AS nd_day FROM table_name_4 WHERE year < 2009 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did Pakistan get the bronze medal at the 1988 Seoul Games? ### Context: CREATE TABLE table_name_82 (event VARCHAR, medal VARCHAR, games VARCHAR) [/INST] ### Response: SELECT event FROM table_name_82 WHERE medal = "bronze" AND games = "1988 seoul" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 in the 1960 Rome Games did Pakistan play in the Men's Freestyle Welterweight? ### Context: CREATE TABLE table_name_56 (sport VARCHAR, games VARCHAR, event VARCHAR) [/INST] ### Response: SELECT sport FROM table_name_56 WHERE games = "1960 rome" AND event = "men's freestyle welterweight" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did Pakistan win a Silver Medal in a Men's Competition? ### Context: CREATE TABLE table_name_56 (games VARCHAR, event VARCHAR, medal VARCHAR) [/INST] ### Response: SELECT games FROM table_name_56 WHERE event = "men's competition" AND medal = "silver" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did Pakistan win a Gold Medal in Field Hockey? ### Context: CREATE TABLE table_name_19 (games VARCHAR, sport VARCHAR, medal VARCHAR) [/INST] ### Response: SELECT games FROM table_name_19 WHERE sport = "field hockey" AND medal = "gold" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played in the 1964 Tokyo Games? ### Context: CREATE TABLE table_name_56 (name VARCHAR, games VARCHAR) [/INST] ### Response: SELECT name FROM table_name_56 WHERE games = "1964 tokyo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 did the National Team play in the 1968 mexico City Games? ### Context: CREATE TABLE table_name_58 (sport VARCHAR, name VARCHAR, games VARCHAR) [/INST] ### Response: SELECT sport FROM table_name_58 WHERE name = "national team" AND games = "1968 mexico 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 is the total number of rounds that Center position Denis Arkhipov have? ### Context: CREATE TABLE table_name_33 (round VARCHAR, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(round) FROM table_name_33 WHERE position = "center" AND player = "denis arkhipov" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 from Round 3 from Russia? ### Context: CREATE TABLE table_name_17 (player VARCHAR, round VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT player FROM table_name_17 WHERE round = 3 AND nationality = "russia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the sum of the round with the defenceman? ### Context: CREATE TABLE table_name_41 (round INTEGER, position VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_41 WHERE position = "defenceman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 college club that plays before round 3? ### Context: CREATE TABLE table_name_85 (college_junior_club_team VARCHAR, round INTEGER) [/INST] ### Response: SELECT college_junior_club_team FROM table_name_85 WHERE round < 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 was the population of the area that was formerly under the authority of the Audenshaw Urban District? ### Context: CREATE TABLE table_name_65 (population VARCHAR, former_local_authority VARCHAR) [/INST] ### Response: SELECT population FROM table_name_65 WHERE former_local_authority = "audenshaw urban district" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number that Derrick Harvey was when he was picked in a round after round 1? ### Context: CREATE TABLE table_name_26 (overall INTEGER, name VARCHAR, round VARCHAR) [/INST] ### Response: SELECT MIN(overall) FROM table_name_26 WHERE name = "derrick harvey" AND round > 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 college was the defensive end pick that was picked in round 2? ### Context: CREATE TABLE table_name_72 (college VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT college FROM table_name_72 WHERE position = "defensive end" AND round = 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 average round that the player from USF was picked in when his draft pick number was less than 24? ### Context: CREATE TABLE table_name_48 (round INTEGER, college VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT AVG(round) FROM table_name_48 WHERE college = "usf" AND pick__number < 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 the pick numbers where the player was picked in round 5 and overall pick number was greater than 159? ### Context: CREATE TABLE table_name_77 (pick__number INTEGER, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT SUM(pick__number) FROM table_name_77 WHERE round = 5 AND overall > 159 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number for the USF player who was picked after round 5? ### Context: CREATE TABLE table_name_23 (overall INTEGER, college VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_23 WHERE college = "usf" AND round > 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 Population is the lowest one that has a Median family income of $74,905, and a Number of households smaller than 145,790? ### Context: CREATE TABLE table_name_37 (population INTEGER, median_family_income VARCHAR, number_of_households VARCHAR) [/INST] ### Response: SELECT MIN(population) FROM table_name_37 WHERE median_family_income = "$74,905" AND number_of_households < 145 OFFSET 790 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Rapes that have Embezzlements a figure of 820 and total number of convictions less than 94,574? ### Context: CREATE TABLE table_name_27 (rape__art_190_stgb_ VARCHAR, embezzlement__art_138_stgb_ VARCHAR, total_convictions VARCHAR) [/INST] ### Response: SELECT COUNT(rape__art_190_stgb_) FROM table_name_27 WHERE embezzlement__art_138_stgb_ = 820 AND total_convictions < 94 OFFSET 574 </s>