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: Who is the incumbent who was first elected before 2002 from the maryland 3 district? ### Context: CREATE TABLE table_name_41 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_41 WHERE first_elected < 2002 AND district = "maryland 3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the party of the maryland 6 district? ### Context: CREATE TABLE table_name_73 (party VARCHAR, district VARCHAR) [/INST] ### Response: SELECT party FROM table_name_73 WHERE district = "maryland 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 SILVER WITH A YEAR OF 1962? ### Context: CREATE TABLE table_name_35 (silver VARCHAR, year VARCHAR) [/INST] ### Response: SELECT silver FROM table_name_35 WHERE year = 1962 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 A BRONZE OF VALENTIN NOVIKOV? ### Context: CREATE TABLE table_name_88 (year INTEGER, bronze VARCHAR) [/INST] ### Response: SELECT AVG(year) FROM table_name_88 WHERE bronze = "valentin novikov" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 A SILVER FOR MATTHIAS MERZ? ### Context: CREATE TABLE table_name_54 (year INTEGER, silver VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_54 WHERE silver = "matthias merz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 YEAR WITH A BRONZE OF AIMO TEPSELL? ### Context: CREATE TABLE table_name_20 (year INTEGER, bronze VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_20 WHERE bronze = "aimo tepsell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par, when Player is "Greg Turner"? ### Context: CREATE TABLE table_name_72 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_72 WHERE player = "greg turner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Score, when Country is "United States", and when Player is "Mark Brooks"? ### Context: CREATE TABLE table_name_34 (score VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_34 WHERE country = "united states" AND player = "mark brooks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Money ( £ ), when Player is "Peter Hedblom"? ### Context: CREATE TABLE table_name_95 (money___ INTEGER, player VARCHAR) [/INST] ### Response: SELECT MAX(money___) AS £__ FROM table_name_95 WHERE player = "peter hedblom" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 losses for a draw of 7, and 1 points less than 33? ### Context: CREATE TABLE table_name_21 (lost VARCHAR, drawn VARCHAR, points_1 VARCHAR) [/INST] ### Response: SELECT COUNT(lost) FROM table_name_21 WHERE drawn = 7 AND points_1 < 33 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number drawn with goals against less than 55, and a total of 14 losses? ### Context: CREATE TABLE table_name_75 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(drawn) FROM table_name_75 WHERE goals_against < 55 AND lost = 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 is the total number of goals that has been played less than 38 times? ### Context: CREATE TABLE table_name_25 (goals_for VARCHAR, played INTEGER) [/INST] ### Response: SELECT COUNT(goals_for) FROM table_name_25 WHERE played < 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Diameter of the Dog Sled (gold variant) Theme coin? ### Context: CREATE TABLE table_name_74 (diameter VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT diameter FROM table_name_74 WHERE theme = "dog sled (gold variant)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 MIntage after 2006 of the Ruby-Throated Hummingbird Theme coin? ### Context: CREATE TABLE table_name_42 (mintage INTEGER, year VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT MAX(mintage) FROM table_name_42 WHERE year > 2006 AND theme = "ruby-throated hummingbird" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Mintage of the 12.61 g Weight Ruby-Throated Hummingbird? ### Context: CREATE TABLE table_name_88 (mintage VARCHAR, weight VARCHAR, theme VARCHAR) [/INST] ### Response: SELECT COUNT(mintage) FROM table_name_88 WHERE weight = "12.61 g" AND theme = "ruby-throated hummingbird" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year of the Coin with an Issue Price of $1089.95 and Mintage less than 900? ### Context: CREATE TABLE table_name_15 (year INTEGER, issue_price VARCHAR, mintage VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_15 WHERE issue_price = "$1089.95" AND mintage < 900 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Theme of the coin with an Issue Price of $89.95? ### Context: CREATE TABLE table_name_95 (theme VARCHAR, issue_price VARCHAR) [/INST] ### Response: SELECT theme FROM table_name_95 WHERE issue_price = "$89.95" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning team on 11 July? ### Context: CREATE TABLE table_name_58 (winning_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_team FROM table_name_58 WHERE date = "11 july" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver of the race on 2 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### Context: CREATE TABLE table_name_15 (winning_driver VARCHAR, winning_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_15 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "2 june" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning driver of the race on 5 May? ### Context: CREATE TABLE table_name_90 (winning_driver VARCHAR, date VARCHAR) [/INST] ### Response: SELECT winning_driver FROM table_name_90 WHERE date = "5 may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the round on 30 June with a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### Context: CREATE TABLE table_name_7 (round VARCHAR, winning_team VARCHAR, date VARCHAR) [/INST] ### Response: SELECT round FROM table_name_7 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND date = "30 june" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the zolder circuit, which had a.z.k./roc-compétition a.z.k./roc-compétition as the winning team? ### Context: CREATE TABLE table_name_53 (date VARCHAR, winning_team VARCHAR, circuit VARCHAR) [/INST] ### Response: SELECT date FROM table_name_53 WHERE winning_team = "a.z.k./roc-compétition a.z.k./roc-compétition" AND circuit = "zolder" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Bob May get when his score was 72-66=138? ### Context: CREATE TABLE table_name_84 (place VARCHAR, player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_84 WHERE score = 72 - 66 = 138 AND player = "bob may" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country is Stephen Ames from with a place value of t9? ### Context: CREATE TABLE table_name_20 (country VARCHAR, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_20 WHERE place = "t9" AND player = "stephen ames" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What place had a To par of –10? ### Context: CREATE TABLE table_name_28 (place VARCHAR, to_par VARCHAR) [/INST] ### Response: SELECT place FROM table_name_28 WHERE to_par = "–10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country is Darren Clarke from? ### Context: CREATE TABLE table_name_18 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_18 WHERE player = "darren clarke" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par value that goes with a Score of 70-69=139? ### Context: CREATE TABLE table_name_78 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_78 WHERE score = 70 - 69 = 139 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goals, when Season is "2005-06", and when Division is less than 1? ### Context: CREATE TABLE table_name_43 (goals INTEGER, season VARCHAR, division VARCHAR) [/INST] ### Response: SELECT SUM(goals) FROM table_name_43 WHERE season = "2005-06" AND division < 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 Season, when Goals is less than 6, and when Team is "Tarbiat Yazd"? ### Context: CREATE TABLE table_name_42 (season VARCHAR, goals VARCHAR, team VARCHAR) [/INST] ### Response: SELECT season FROM table_name_42 WHERE goals < 6 AND team = "tarbiat yazd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Division, when Goals is less than 5, and when Season is "2002-03"? ### Context: CREATE TABLE table_name_15 (division INTEGER, goals VARCHAR, season VARCHAR) [/INST] ### Response: SELECT MIN(division) FROM table_name_15 WHERE goals < 5 AND season = "2002-03" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Goals, when Team is "Rah Ahan", and when Division is less than 1? ### Context: CREATE TABLE table_name_81 (goals INTEGER, team VARCHAR, division VARCHAR) [/INST] ### Response: SELECT AVG(goals) FROM table_name_81 WHERE team = "rah ahan" AND division < 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 lowest capacity that has stadion mladina as the stadium? ### Context: CREATE TABLE table_name_96 (capacity INTEGER, stadium VARCHAR) [/INST] ### Response: SELECT MIN(capacity) FROM table_name_96 WHERE stadium = "stadion mladina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What stadium has kutina as the city? ### Context: CREATE TABLE table_name_13 (stadium VARCHAR, city VARCHAR) [/INST] ### Response: SELECT stadium FROM table_name_13 WHERE city = "kutina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 H/A on 29 july 1992? ### Context: CREATE TABLE table_name_4 (h___a VARCHAR, date VARCHAR) [/INST] ### Response: SELECT h___a FROM table_name_4 WHERE date = "29 july 1992" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result F-A has Opponents of rosenborg? ### Context: CREATE TABLE table_name_8 (result_f___a VARCHAR, opponents VARCHAR) [/INST] ### Response: SELECT result_f___a FROM table_name_8 WHERE opponents = "rosenborg" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 depth of the quake that occurred at 19:48? ### Context: CREATE TABLE table_name_35 (depth VARCHAR, time__utc_ VARCHAR) [/INST] ### Response: SELECT depth FROM table_name_35 WHERE time__utc_ = "19:48" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 magnitude with epicenter at Vrancea County, unknown intensity and which happened at 06:36? ### Context: CREATE TABLE table_name_67 (magnitude VARCHAR, time__utc_ VARCHAR, epicenter VARCHAR, intensity VARCHAR) [/INST] ### Response: SELECT magnitude FROM table_name_67 WHERE epicenter = "vrancea county" AND intensity = "unknown" AND time__utc_ = "06:36" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the epicenter of the quake on December 1, 2012? ### Context: CREATE TABLE table_name_54 (epicenter VARCHAR, date VARCHAR) [/INST] ### Response: SELECT epicenter FROM table_name_54 WHERE date = "december 1, 2012" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Finish, when Year(s) Won is "1991"? ### Context: CREATE TABLE table_name_6 (finish VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT finish FROM table_name_6 WHERE year_s__won = "1991" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year(s) Won, when Finish is "T31", and when Player is "Nick Price"? ### Context: CREATE TABLE table_name_65 (year_s__won VARCHAR, finish VARCHAR, player VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_65 WHERE finish = "t31" AND player = "nick price" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Country, when Total is greater than 283, and when Year(s) Won is "1989"? ### Context: CREATE TABLE table_name_90 (country VARCHAR, total VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT country FROM table_name_90 WHERE total > 283 AND year_s__won = "1989" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: born on 1983-03-14, what is the cb's name? ### Context: CREATE TABLE table_name_28 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_28 WHERE pos = "cb" AND date_of_birth = "1983-03-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: born on 1973-08-21, what is the cf's name? ### Context: CREATE TABLE table_name_8 (name VARCHAR, pos VARCHAR, date_of_birth VARCHAR) [/INST] ### Response: SELECT name FROM table_name_8 WHERE pos = "cf" AND date_of_birth = "1973-08-21" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What attendance has detroit lions as the opponent? ### Context: CREATE TABLE table_name_14 (attendance VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_14 WHERE opponent = "detroit lions" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has houston texans as the opponent? ### Context: CREATE TABLE table_name_62 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_62 WHERE opponent = "houston texans" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What score has October 31 as the date? ### Context: CREATE TABLE table_name_18 (score VARCHAR, date VARCHAR) [/INST] ### Response: SELECT score FROM table_name_18 WHERE date = "october 31" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What record has w as the result, with January 2 as the date? ### Context: CREATE TABLE table_name_7 (record VARCHAR, result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_7 WHERE result = "w" AND date = "january 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 position of the team player from Aik? ### Context: CREATE TABLE table_name_69 (position VARCHAR, team_from VARCHAR) [/INST] ### Response: SELECT position FROM table_name_69 WHERE team_from = "aik" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick # from the Quebec Major Junior Hockey League player Samuel Carrier? ### Context: CREATE TABLE table_name_11 (pick__number INTEGER, league_from VARCHAR, player VARCHAR) [/INST] ### Response: SELECT AVG(pick__number) FROM table_name_11 WHERE league_from = "quebec major junior hockey league" AND player = "samuel carrier" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick # for the D position from a team from Chilliwack Bruins? ### Context: CREATE TABLE table_name_94 (pick__number INTEGER, position VARCHAR, team_from VARCHAR) [/INST] ### Response: SELECT SUM(pick__number) FROM table_name_94 WHERE position = "d" AND team_from = "chilliwack bruins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 league that has the pick #160? ### Context: CREATE TABLE table_name_36 (league_from VARCHAR, pick__number VARCHAR) [/INST] ### Response: SELECT league_from FROM table_name_36 WHERE pick__number = 160 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What bowl game was played on Dec. 26, 2007? ### Context: CREATE TABLE table_name_79 (bowl_game VARCHAR, date VARCHAR) [/INST] ### Response: SELECT bowl_game FROM table_name_79 WHERE date = "dec. 26, 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: Who was the opposing team in the game with a score of 21-17? ### Context: CREATE TABLE table_name_49 (opp_team VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opp_team FROM table_name_49 WHERE score = "21-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: Who was Purdue's opponent? ### Context: CREATE TABLE table_name_19 (opp_team VARCHAR, big_ten_team VARCHAR) [/INST] ### Response: SELECT opp_team FROM table_name_19 WHERE big_ten_team = "purdue" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the Insight Bowl? ### Context: CREATE TABLE table_name_53 (score VARCHAR, bowl_game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_53 WHERE bowl_game = "insight bowl" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the BCS National Championship game? ### Context: CREATE TABLE table_name_66 (score VARCHAR, bowl_game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_66 WHERE bowl_game = "bcs national championship" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Democratic incumbent was first elected in 1998? ### Context: CREATE TABLE table_name_18 (incumbent VARCHAR, party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_18 WHERE party = "democratic" AND first_elected = 1998 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which district has a Democratic incumbent that was first elected before 1996? ### Context: CREATE TABLE table_name_62 (district VARCHAR, party VARCHAR, first_elected VARCHAR) [/INST] ### Response: SELECT district FROM table_name_62 WHERE party = "democratic" AND first_elected < 1996 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the incumbent for the Oregon 5 District that was elected in 1996? ### Context: CREATE TABLE table_name_34 (incumbent VARCHAR, first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT incumbent FROM table_name_34 WHERE first_elected = 1996 AND district = "oregon 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result of the Oregon 5 District incumbent who was first elected in 1996? ### Context: CREATE TABLE table_name_18 (results VARCHAR, first_elected VARCHAR, district VARCHAR) [/INST] ### Response: SELECT results FROM table_name_18 WHERE first_elected = 1996 AND district = "oregon 5" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's was the location for fight against Liam Mccarty? ### Context: CREATE TABLE table_name_46 (location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT location FROM table_name_46 WHERE opponent = "liam mccarty" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 strokes off par was the winner in 1978? ### Context: CREATE TABLE table_name_90 (to_par VARCHAR, year_s__won VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_90 WHERE year_s__won = "1978" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average round score of the player who won in 1978? ### Context: CREATE TABLE table_name_72 (total INTEGER, year_s__won VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_72 WHERE year_s__won = "1978" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 money won by Frank Nobilo? ### Context: CREATE TABLE table_name_46 (money___ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT COUNT(money___) AS £__ FROM table_name_46 WHERE player = "frank nobilo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lee Westwood's score? ### Context: CREATE TABLE table_name_20 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_20 WHERE player = "lee westwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much money has been won by Stephen Ames? ### Context: CREATE TABLE table_name_46 (money___£__ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT money___£__ FROM table_name_46 WHERE player = "stephen ames" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Drawn has Goals Against of 81, and a Lost larger than 23? ### Context: CREATE TABLE table_name_95 (drawn VARCHAR, goals_against VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(drawn) FROM table_name_95 WHERE goals_against = 81 AND lost > 23 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Lost has a Position larger than 5, and Points 1 of 37, and less than 63 Goals Against? ### Context: CREATE TABLE table_name_87 (lost INTEGER, goals_against VARCHAR, position VARCHAR, points_1 VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_87 WHERE position > 5 AND points_1 = "37" AND goals_against < 63 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much Drawn has Goals Against larger than 74, and a Lost smaller than 20, and a Played larger than 38? ### Context: CREATE TABLE table_name_43 (drawn VARCHAR, played VARCHAR, goals_against VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT COUNT(drawn) FROM table_name_43 WHERE goals_against > 74 AND lost < 20 AND played > 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Goals For of 52, and Goals Against larger than 70? ### Context: CREATE TABLE table_name_51 (position INTEGER, goals_for VARCHAR, goals_against VARCHAR) [/INST] ### Response: SELECT MAX(position) FROM table_name_51 WHERE goals_for = 52 AND goals_against > 70 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Played has a Drawn of 4, and a Position of 9, and Goals Against larger than 59? ### Context: CREATE TABLE table_name_70 (played INTEGER, goals_against VARCHAR, drawn VARCHAR, position VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_70 WHERE drawn = 4 AND position = 9 AND goals_against > 59 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team when the san francisco 49ers are visiting with a result of 42-14? ### Context: CREATE TABLE table_name_92 (home_team VARCHAR, visiting_team VARCHAR, result VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_92 WHERE visiting_team = "san francisco 49ers" AND result = "42-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: When was the earliest year when the attendance was 77,254? ### Context: CREATE TABLE table_name_41 (year INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_41 WHERE attendance = 77 OFFSET 254 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total attendance for a result of 7-23 before 1960? ### Context: CREATE TABLE table_name_19 (attendance INTEGER, result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_19 WHERE result = "7-23" AND year < 1960 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location of the enzyme Uroporphyrinogen iii Synthase? ### Context: CREATE TABLE table_name_24 (location VARCHAR, enzyme VARCHAR) [/INST] ### Response: SELECT location FROM table_name_24 WHERE enzyme = "uroporphyrinogen iii synthase" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 protoporphyrin ix's substrate? ### Context: CREATE TABLE table_name_55 (substrate VARCHAR, product VARCHAR) [/INST] ### Response: SELECT substrate FROM table_name_55 WHERE product = "protoporphyrin ix" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 substrate has an OMIM of 176000? ### Context: CREATE TABLE table_name_47 (substrate VARCHAR, omim VARCHAR) [/INST] ### Response: SELECT substrate FROM table_name_47 WHERE omim = 176000 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Anders Forsbrand's score when the TO par is +4? ### Context: CREATE TABLE table_name_65 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_65 WHERE to_par = "+4" AND player = "anders forsbrand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which player scored 76-68=144? ### Context: CREATE TABLE table_name_28 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_28 WHERE score = 76 - 68 = 144 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What did United States place when the player was Raymond Floyd? ### Context: CREATE TABLE table_name_84 (place VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_84 WHERE country = "united states" AND player = "raymond floyd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What country did Raymond Floyd play for? ### Context: CREATE TABLE table_name_9 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_9 WHERE player = "raymond floyd" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Greg Norman's place? ### Context: CREATE TABLE table_name_89 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_89 WHERE player = "greg norman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Paul McGinley finish in? ### Context: CREATE TABLE table_name_46 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_46 WHERE player = "paul mcginley" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tiger Woods' to par? ### Context: CREATE TABLE table_name_26 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_26 WHERE player = "tiger woods" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 to par when the year(s) won is larger than 1999? ### Context: CREATE TABLE table_name_53 (to_par VARCHAR, year_s__won INTEGER) [/INST] ### Response: SELECT to_par FROM table_name_53 WHERE year_s__won > 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 are the apps for less than 61 goals and before rank 6? ### Context: CREATE TABLE table_name_51 (apps INTEGER, rank VARCHAR, goals VARCHAR) [/INST] ### Response: SELECT SUM(apps) FROM table_name_51 WHERE rank < 6 AND goals < 61 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What season was Barcelona ranked higher than 12, had more than 96 goals and had more than 26 apps? ### Context: CREATE TABLE table_name_59 (season VARCHAR, rank VARCHAR, goals VARCHAR, apps VARCHAR, club VARCHAR) [/INST] ### Response: SELECT season FROM table_name_59 WHERE apps > 26 AND club = "barcelona" AND goals > 96 AND rank > 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: How many apps when the rank was after 13 and having more than 73 goals? ### Context: CREATE TABLE table_name_96 (apps INTEGER, goals VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT AVG(apps) FROM table_name_96 WHERE goals > 73 AND rank > 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the club having less than 22 apps and ranked less than 2? ### Context: CREATE TABLE table_name_72 (club VARCHAR, apps VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT club FROM table_name_72 WHERE apps < 22 AND rank < 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 a score of 68-65=133 and United States as the country what is the To par? ### Context: CREATE TABLE table_name_66 (to_par VARCHAR, country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_66 WHERE country = "united states" AND score = 68 - 65 = 133 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the golfer that golfs for Northern Ireland? ### Context: CREATE TABLE table_name_54 (player VARCHAR, country VARCHAR) [/INST] ### Response: SELECT player FROM table_name_54 WHERE country = "northern ireland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golfer in place 1 if from what country? ### Context: CREATE TABLE table_name_13 (country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT country FROM table_name_13 WHERE place = "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: On what date was Tie #26 played? ### Context: CREATE TABLE table_name_90 (date VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT date FROM table_name_90 WHERE tie_no = "26" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tie #13 played? ### Context: CREATE TABLE table_name_93 (date VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE tie_no = "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: For which tie was Scunthorpe United the away team? ### Context: CREATE TABLE table_name_5 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_5 WHERE away_team = "scunthorpe united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the final score for the tie where Leeds United was the home team? ### Context: CREATE TABLE table_name_6 (score VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_6 WHERE home_team = "leeds united" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In the tie where Southampton was the away team, who was the home team? ### Context: CREATE TABLE table_name_97 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_97 WHERE away_team = "southampton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team for Tie #19? ### Context: CREATE TABLE table_name_61 (away_team VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_61 WHERE tie_no = "19" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nominated Work won in 2000? ### Context: CREATE TABLE table_name_15 (nominated_work VARCHAR, year VARCHAR, results VARCHAR) [/INST] ### Response: SELECT nominated_work FROM table_name_15 WHERE year = 2000 AND results = "won" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result in 2000? ### Context: CREATE TABLE table_name_23 (results VARCHAR, year VARCHAR) [/INST] ### Response: SELECT results FROM table_name_23 WHERE year = 2000 </s>