text
stringlengths
380
1.33k
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Country of the Player with a Score of 66-72-70-69=277? ### Context: CREATE TABLE table_name_47 (country VARCHAR, score VARCHAR) [/INST] ### Response: SELECT country FROM table_name_47 WHERE score = 66 - 72 - 70 - 69 = 277 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 a grid for driver Patrick Carpentier and less than 103 laps? ### Context: CREATE TABLE table_name_58 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST] ### Response: SELECT SUM(grid) FROM table_name_58 WHERE driver = "patrick carpentier" AND laps < 103 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 has 0 points and a contact tired/retired, and 71 laps? ### Context: CREATE TABLE table_name_80 (team VARCHAR, laps VARCHAR, points VARCHAR, time_retired VARCHAR) [/INST] ### Response: SELECT team FROM table_name_80 WHERE points = 0 AND time_retired = "contact" AND laps = 71 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lap for the Dale Coyne Racing Team, and 0 points? ### Context: CREATE TABLE table_name_8 (laps INTEGER, team VARCHAR, points VARCHAR) [/INST] ### Response: SELECT SUM(laps) FROM table_name_8 WHERE team = "dale coyne racing" AND points = 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 is the lowest number of laps with more than 16 points? ### Context: CREATE TABLE table_name_29 (laps INTEGER, points INTEGER) [/INST] ### Response: SELECT MIN(laps) FROM table_name_29 WHERE points > 16 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team has 104 laps and a grid of 10? ### Context: CREATE TABLE table_name_70 (team VARCHAR, laps VARCHAR, grid VARCHAR) [/INST] ### Response: SELECT team FROM table_name_70 WHERE laps = 104 AND grid = 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: Which year had e34 Nimzo-Indian defence is the opening? ### Context: CREATE TABLE table_name_81 (year VARCHAR, opening VARCHAR) [/INST] ### Response: SELECT year FROM table_name_81 WHERE opening = "e34 nimzo-indian defence" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 quantity that has 1104 as the number(s)? ### Context: CREATE TABLE table_name_40 (quantity INTEGER, number_s_ VARCHAR) [/INST] ### Response: SELECT AVG(quantity) FROM table_name_40 WHERE number_s_ = "1104" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What type has 5 as the quantity? ### Context: CREATE TABLE table_name_26 (type VARCHAR, quantity VARCHAR) [/INST] ### Response: SELECT type FROM table_name_26 WHERE quantity = 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 years did Alvin Mitchell play? ### Context: CREATE TABLE table_name_44 (years VARCHAR, player VARCHAR) [/INST] ### Response: SELECT years FROM table_name_44 WHERE player = "alvin mitchell" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on a team from the 1970s? ### Context: CREATE TABLE table_name_63 (player VARCHAR, team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_63 WHERE team = "1970s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Oliver Dobbins play for? ### Context: CREATE TABLE table_name_39 (team VARCHAR, player VARCHAR) [/INST] ### Response: SELECT team FROM table_name_39 WHERE player = "oliver dobbins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent in the mallorca 2, spain tournament? ### Context: CREATE TABLE table_name_54 (opponent VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_54 WHERE tournament = "mallorca 2, spain" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was varvara lepchenko the opponent? ### Context: CREATE TABLE table_name_7 (date VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT date FROM table_name_7 WHERE opponent = "varvara lepchenko" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the total of 288 what was the to par? ### Context: CREATE TABLE table_name_71 (to_par VARCHAR, total VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_71 WHERE total = 288 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year did the United States win with a total of 278? ### Context: CREATE TABLE table_name_4 (year_s__won VARCHAR, country VARCHAR, total VARCHAR) [/INST] ### Response: SELECT year_s__won FROM table_name_4 WHERE country = "united states" AND total = 278 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lowest total with a finish of t47? ### Context: CREATE TABLE table_name_88 (total INTEGER, finish VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_88 WHERE finish = "t47" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total is larger than 288? ### Context: CREATE TABLE table_name_97 (to_par VARCHAR, total INTEGER) [/INST] ### Response: SELECT to_par FROM table_name_97 WHERE total > 288 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 rank for total less than 5, 1 bronze and less than 1 silver? ### Context: CREATE TABLE table_name_50 (rank INTEGER, silver VARCHAR, total VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_50 WHERE total < 5 AND bronze = 1 AND silver < 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the most possible bronze medals when rank is more than 11 and there are fewer than 0 gold medals? ### Context: CREATE TABLE table_name_95 (bronze INTEGER, rank VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT MAX(bronze) FROM table_name_95 WHERE rank > 11 AND gold < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the least total when there are more than 2 golds and fewer than 0 silver? ### Context: CREATE TABLE table_name_6 (total INTEGER, gold VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(total) FROM table_name_6 WHERE gold > 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: Which visitor has a record of 2-4? ### Context: CREATE TABLE table_name_39 (visitor VARCHAR, record VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_39 WHERE record = "2-4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the record on April 28? ### Context: CREATE TABLE table_name_81 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_81 WHERE date = "april 28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score for the Chicago Black Hawks game with a record of 2-1? ### Context: CREATE TABLE table_name_36 (score VARCHAR, home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_36 WHERE home = "chicago black hawks" AND record = "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's the latest year with a hometown of san carlos, pangasinan? ### Context: CREATE TABLE table_name_50 (year INTEGER, hometown VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_50 WHERE hometown = "san carlos, pangasinan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 other awards for 1995? ### Context: CREATE TABLE table_name_77 (other_awards VARCHAR, year VARCHAR) [/INST] ### Response: SELECT other_awards FROM table_name_77 WHERE year = 1995 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What's the latest year that daisy garcia reyes did not place in miss world? ### Context: CREATE TABLE table_name_11 (year INTEGER, placement_in_miss_world VARCHAR, delegate VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_11 WHERE placement_in_miss_world = "did not place" AND delegate = "daisy garcia reyes" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue had an against smaller than 7? ### Context: CREATE TABLE table_name_15 (venue VARCHAR, against INTEGER) [/INST] ### Response: SELECT venue FROM table_name_15 WHERE against < 7 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What day was Australia the opposing team and the against 12? ### Context: CREATE TABLE table_name_92 (date VARCHAR, opposing_teams VARCHAR, against VARCHAR) [/INST] ### Response: SELECT date FROM table_name_92 WHERE opposing_teams = "australia" AND against = 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 was Wales the opposing team? ### Context: CREATE TABLE table_name_17 (date VARCHAR, opposing_teams VARCHAR) [/INST] ### Response: SELECT date FROM table_name_17 WHERE opposing_teams = "wales" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 amount of money with a score of 67-71-70-71=279? ### Context: CREATE TABLE table_name_85 (money___ VARCHAR, score VARCHAR) [/INST] ### Response: SELECT COUNT(money___) AS $__ FROM table_name_85 WHERE score = 67 - 71 - 70 - 71 = 279 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Dave Rummells's to par? ### Context: CREATE TABLE table_name_22 (to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_22 WHERE player = "dave rummells" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number with a score of 67-66-71-71=275? ### Context: CREATE TABLE table_name_51 (to_par VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_51 WHERE score = 67 - 66 - 71 - 71 = 275 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Steve Jones from? ### Context: CREATE TABLE table_name_55 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_55 WHERE player = "steve jones" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who was the opponent of Anand in the match with 20 moves that opened with E15 Queen's Indian Defence? ### Context: CREATE TABLE table_name_87 (black VARCHAR, opening VARCHAR, white VARCHAR, moves VARCHAR) [/INST] ### Response: SELECT black FROM table_name_87 WHERE white = "anand" AND moves = 20 AND opening = "e15 queen's indian defence" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points, when Points For is "points for"? ### Context: CREATE TABLE table_name_71 (points VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT points FROM table_name_71 WHERE points_for = "points for" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Drawn, when Played is "18", and when Points Against is "478"? ### Context: CREATE TABLE table_name_55 (drawn VARCHAR, played VARCHAR, points_against VARCHAR) [/INST] ### Response: SELECT drawn FROM table_name_55 WHERE played = "18" AND points_against = "478" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Points For, when Losing Bonus is "2", when Lost is "8", and when Club is "Rhyl And District RFC"? ### Context: CREATE TABLE table_name_88 (points_for VARCHAR, club VARCHAR, losing_bonus VARCHAR, lost VARCHAR) [/INST] ### Response: SELECT points_for FROM table_name_88 WHERE losing_bonus = "2" AND lost = "8" AND club = "rhyl and district rfc" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lost, when Points For is "205"? ### Context: CREATE TABLE table_name_16 (lost VARCHAR, points_for VARCHAR) [/INST] ### Response: SELECT lost FROM table_name_16 WHERE points_for = "205" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Played, when Tries Against is "63"? ### Context: CREATE TABLE table_name_81 (played VARCHAR, tries_against VARCHAR) [/INST] ### Response: SELECT played FROM table_name_81 WHERE tries_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: What is Try Bonus, when Tries For is "39"? ### Context: CREATE TABLE table_name_98 (try_bonus VARCHAR, tries_for VARCHAR) [/INST] ### Response: SELECT try_bonus FROM table_name_98 WHERE tries_for = "39" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 2 has a Week 4 of piret aava? ### Context: CREATE TABLE table_name_63 (week_2 VARCHAR, week_4 VARCHAR) [/INST] ### Response: SELECT week_2 FROM table_name_63 WHERE week_4 = "piret aava" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 2 has a Week 3 of casey mae? ### Context: CREATE TABLE table_name_16 (week_2 VARCHAR, week_3 VARCHAR) [/INST] ### Response: SELECT week_2 FROM table_name_16 WHERE week_3 = "casey mae" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 2 has a Week 1 of crystal beddows? ### Context: CREATE TABLE table_name_66 (week_2 VARCHAR, week_1 VARCHAR) [/INST] ### Response: SELECT week_2 FROM table_name_66 WHERE week_1 = "crystal beddows" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 3 has a Week 4 of gina blair? ### Context: CREATE TABLE table_name_95 (week_3 VARCHAR, week_4 VARCHAR) [/INST] ### Response: SELECT week_3 FROM table_name_95 WHERE week_4 = "gina blair" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 5 has a Week 1 of mysti sherwood? ### Context: CREATE TABLE table_name_10 (week_5 VARCHAR, week_1 VARCHAR) [/INST] ### Response: SELECT week_5 FROM table_name_10 WHERE week_1 = "mysti sherwood" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Week 4 has a Week 2 of samantha speer? ### Context: CREATE TABLE table_name_62 (week_4 VARCHAR, week_2 VARCHAR) [/INST] ### Response: SELECT week_4 FROM table_name_62 WHERE week_2 = "samantha speer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party has a Election of 1857? ### Context: CREATE TABLE table_name_14 (election VARCHAR) [/INST] ### Response: SELECT 2 AS nd_party FROM table_name_14 WHERE election = "1857" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Party has a Election of 1857? ### Context: CREATE TABLE table_name_17 (election VARCHAR) [/INST] ### Response: SELECT 2 AS nd_party FROM table_name_17 WHERE election = "1857" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1st Member has a Election of 1832 ### Context: CREATE TABLE table_name_51 (election VARCHAR) [/INST] ### Response: SELECT 1 AS st_member FROM table_name_51 WHERE election = "1832" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 moving from Treviso with a loan return? ### Context: CREATE TABLE table_name_42 (name VARCHAR, moving_from VARCHAR, type VARCHAR) [/INST] ### Response: SELECT name FROM table_name_42 WHERE moving_from = "treviso" AND type = "loan return" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the nationality of Acquafresca? ### Context: CREATE TABLE table_name_9 (nat VARCHAR, name VARCHAR) [/INST] ### Response: SELECT nat FROM table_name_9 WHERE name = "acquafresca" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the type if the transfer window is summer and the moving from category is free agent? ### Context: CREATE TABLE table_name_89 (type VARCHAR, transfer_window VARCHAR, moving_from VARCHAR) [/INST] ### Response: SELECT type FROM table_name_89 WHERE transfer_window = "summer" AND moving_from = "free agent" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 transfer window for the moving from of SΓ£o Paulo? ### Context: CREATE TABLE table_name_46 (transfer_window VARCHAR, moving_from VARCHAR) [/INST] ### Response: SELECT transfer_window FROM table_name_46 WHERE moving_from = "sΓ£o paulo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 moving from with a transfer and the nationality of Bra? ### Context: CREATE TABLE table_name_22 (moving_from VARCHAR, type VARCHAR, nat VARCHAR) [/INST] ### Response: SELECT moving_from FROM table_name_22 WHERE type = "transfer" AND nat = "bra" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 end date for Maaroufi? ### Context: CREATE TABLE table_name_59 (ends VARCHAR, name VARCHAR) [/INST] ### Response: SELECT ends FROM table_name_59 WHERE name = "maaroufi" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game played on October 2, 1966 had what result? ### Context: CREATE TABLE table_name_40 (result VARCHAR, date VARCHAR) [/INST] ### Response: SELECT result FROM table_name_40 WHERE date = "october 2, 1966" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game played against on October 9, 1966? ### Context: CREATE TABLE table_name_18 (opponent VARCHAR, date VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_18 WHERE date = "october 9, 1966" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum week that 69,372 people attended the game? ### Context: CREATE TABLE table_name_13 (week INTEGER, attendance VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_13 WHERE attendance = "69,372" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the date of the game played after week 4 with 60,658 people in attendance? ### Context: CREATE TABLE table_name_28 (date VARCHAR, week VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT date FROM table_name_28 WHERE week > 4 AND attendance = "60,658" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 capacity for the city of Trogir? ### Context: CREATE TABLE table_name_21 (capacity INTEGER, city VARCHAR) [/INST] ### Response: SELECT SUM(capacity) FROM table_name_21 WHERE city = "trogir" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What party established in 1797 won an election in 2007? ### Context: CREATE TABLE table_name_17 (party VARCHAR, established VARCHAR, election VARCHAR) [/INST] ### Response: SELECT party FROM table_name_17 WHERE established > 1797 AND election = 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 Played has a Lost smaller than 3, and a Drawn smaller than 0? ### Context: CREATE TABLE table_name_13 (played INTEGER, lost VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT AVG(played) FROM table_name_13 WHERE lost < 3 AND drawn < 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 is the largest % Won with a Lost smaller than 0? ### Context: CREATE TABLE table_name_89 (_percentage_won INTEGER, lost INTEGER) [/INST] ### Response: SELECT MAX(_percentage_won) FROM table_name_89 WHERE lost < 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 is the total of Against with % Won larger than 100? ### Context: CREATE TABLE table_name_76 (against INTEGER, _percentage_won INTEGER) [/INST] ### Response: SELECT SUM(against) FROM table_name_76 WHERE _percentage_won > 100 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest Against with Lost larger than 0, % Won larger than 50, and Played smaller than 5? ### Context: CREATE TABLE table_name_48 (against INTEGER, played VARCHAR, lost VARCHAR, _percentage_won VARCHAR) [/INST] ### Response: SELECT MIN(against) FROM table_name_48 WHERE lost > 0 AND _percentage_won > 50 AND played < 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 is the Lost with Against smaller than 25, and Played smaller than 1? ### Context: CREATE TABLE table_name_93 (lost INTEGER, against VARCHAR, played VARCHAR) [/INST] ### Response: SELECT AVG(lost) FROM table_name_93 WHERE against < 25 AND played < 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 largest height when the prominence is 3,118? ### Context: CREATE TABLE table_name_98 (height__m_ INTEGER, prominence__m_ VARCHAR) [/INST] ### Response: SELECT MAX(height__m_) FROM table_name_98 WHERE prominence__m_ = 3 OFFSET 118 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tie number of when Wigan Athletic was the away team? ### Context: CREATE TABLE table_name_34 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_34 WHERE away_team = "wigan athletic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team with a tie number of 6. ### Context: CREATE TABLE table_name_51 (date VARCHAR, tie_no VARCHAR) [/INST] ### Response: SELECT date FROM table_name_51 WHERE tie_no = "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 ship was built by Palmers Shipbuilding and Iron Company for the Royal Navy? ### Context: CREATE TABLE table_name_81 (ship VARCHAR, country VARCHAR, builder VARCHAR) [/INST] ### Response: SELECT ship FROM table_name_81 WHERE country = "royal navy" AND builder = "palmers shipbuilding and iron company" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 class/type at Trieste? ### Context: CREATE TABLE table_name_32 (class___type VARCHAR, location VARCHAR) [/INST] ### Response: SELECT class___type FROM table_name_32 WHERE location = "trieste" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 country of Palmers Shipbuilding and Iron Company? ### Context: CREATE TABLE table_name_96 (country VARCHAR, builder VARCHAR) [/INST] ### Response: SELECT country FROM table_name_96 WHERE builder = "palmers shipbuilding and iron company" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what country is Aberdeen? ### Context: CREATE TABLE table_name_96 (country VARCHAR, location VARCHAR) [/INST] ### Response: SELECT country FROM table_name_96 WHERE location = "aberdeen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Number of households has a Median household income of $32,806, and a Population larger than 11,291? ### Context: CREATE TABLE table_name_1 (number_of_households INTEGER, median_household_income VARCHAR, population VARCHAR) [/INST] ### Response: SELECT MAX(number_of_households) FROM table_name_1 WHERE median_household_income = "$32,806" AND population > 11 OFFSET 291 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 County has a Median household income of $37,230? ### Context: CREATE TABLE table_name_96 (county VARCHAR, median_household_income VARCHAR) [/INST] ### Response: SELECT county FROM table_name_96 WHERE median_household_income = "$37,230" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a County of mississippi, and a Number of households smaller than 17,741? ### Context: CREATE TABLE table_name_21 (population INTEGER, county VARCHAR, number_of_households VARCHAR) [/INST] ### Response: SELECT SUM(population) FROM table_name_21 WHERE county = "mississippi" AND number_of_households < 17 OFFSET 741 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Count the average Height which has a Position of pf, and a Year born (Age) on april 1, 1981 (age32)? ### Context: CREATE TABLE table_name_27 (height INTEGER, position VARCHAR, year_born__age_ VARCHAR) [/INST] ### Response: SELECT AVG(height) FROM table_name_27 WHERE position = "pf" AND year_born__age_ = "april 1, 1981 (age32)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Height has a Position of c, and a Player of yiannis bourousis? ### Context: CREATE TABLE table_name_50 (height INTEGER, position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT SUM(height) FROM table_name_50 WHERE position = "c" AND player = "yiannis bourousis" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome has a Score in the final of 1–6, 6–4, 7–5? ### Context: CREATE TABLE table_name_61 (outcome VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_61 WHERE score_in_the_final = "1–6, 6–4, 7–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 Outcome has a Score in the final of 4–6, 5–7? ### Context: CREATE TABLE table_name_96 (outcome VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_96 WHERE score_in_the_final = "4–6, 5–7" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Opponents in the final has a Partner of olga lugina? ### Context: CREATE TABLE table_name_79 (opponents_in_the_final VARCHAR, partner VARCHAR) [/INST] ### Response: SELECT opponents_in_the_final FROM table_name_79 WHERE partner = "olga lugina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Outcome has a Score in the final of 3–6, 1–6? ### Context: CREATE TABLE table_name_57 (outcome VARCHAR, score_in_the_final VARCHAR) [/INST] ### Response: SELECT outcome FROM table_name_57 WHERE score_in_the_final = "3–6, 1–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 rank is He Yingqin who was born before 1890? ### Context: CREATE TABLE table_name_75 (rank INTEGER, name VARCHAR, birth VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_75 WHERE name = "he yingqin" AND birth < 1890 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 is the death for a birth of 1873 and higher than rank 28? ### Context: CREATE TABLE table_name_74 (death VARCHAR, birth VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT death FROM table_name_74 WHERE birth = 1873 AND rank > 28 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with a death in 2001? ### Context: CREATE TABLE table_name_6 (name VARCHAR, death VARCHAR) [/INST] ### Response: SELECT name FROM table_name_6 WHERE death = "2001" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 1st round result for ECAC Chaumont (D2) as team 1? ### Context: CREATE TABLE table_name_91 (team_1 VARCHAR) [/INST] ### Response: SELECT 1 AS st_round FROM table_name_91 WHERE team_1 = "ecac chaumont (d2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 1 played against team 2 of Tours FC (D2)? ### Context: CREATE TABLE table_name_21 (team_1 VARCHAR, team_2 VARCHAR) [/INST] ### Response: SELECT team_1 FROM table_name_21 WHERE team_2 = "tours fc (d2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is team 2 when team 1 is ECAC Chaumont (d2)? ### Context: CREATE TABLE table_name_45 (team_2 VARCHAR, team_1 VARCHAR) [/INST] ### Response: SELECT team_2 FROM table_name_45 WHERE team_1 = "ecac chaumont (d2)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Written by has a Code of 1.2 1.3? ### Context: CREATE TABLE table_name_57 (written_by VARCHAR, code VARCHAR) [/INST] ### Response: SELECT written_by FROM table_name_57 WHERE code = "1.2 1.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 highest crude death rate when deaths are 3 433 and average population is greater than 298? ### Context: CREATE TABLE table_name_16 (crude_death_rate__per_1000_ INTEGER, deaths VARCHAR, average_population__x_1000_ VARCHAR) [/INST] ### Response: SELECT MAX(crude_death_rate__per_1000_) FROM table_name_16 WHERE deaths = "3 433" AND average_population__x_1000_ > 298 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 live births where the crude birth rate is lore than 15.7, average population is less than 297 and deaths are al 4 686? ### Context: CREATE TABLE table_name_79 (live_births VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, average_population__x_1000_ VARCHAR) [/INST] ### Response: SELECT live_births FROM table_name_79 WHERE crude_birth_rate__per_1000_ > 15.7 AND average_population__x_1000_ < 297 AND deaths = "4 686" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 national change where crude birth rate is less than 11.4, crude death rate is more than 12.1 and deaths are 4 376? ### Context: CREATE TABLE table_name_96 (natural_change VARCHAR, deaths VARCHAR, crude_birth_rate__per_1000_ VARCHAR, crude_death_rate__per_1000_ VARCHAR) [/INST] ### Response: SELECT natural_change FROM table_name_96 WHERE crude_birth_rate__per_1000_ < 11.4 AND crude_death_rate__per_1000_ > 12.1 AND deaths = "4 376" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 population when deaths are 3 557 and crude death date is less than 11.9? ### Context: CREATE TABLE table_name_40 (average_population__x_1000_ INTEGER, deaths VARCHAR, crude_death_rate__per_1000_ VARCHAR) [/INST] ### Response: SELECT AVG(average_population__x_1000_) FROM table_name_40 WHERE deaths = "3 557" AND crude_death_rate__per_1000_ < 11.9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what week(s) did the Broncos go up against the Cleveland Browns? ### Context: CREATE TABLE table_name_99 (week INTEGER, opponent VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_99 WHERE opponent = "cleveland browns" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What week was the December 24, 1994 game? ### Context: CREATE TABLE table_name_78 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT SUM(week) FROM table_name_78 WHERE date = "december 24, 1994" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Nationality has a Round smaller than 3? ### Context: CREATE TABLE table_name_98 (nationality VARCHAR, round INTEGER) [/INST] ### Response: SELECT nationality FROM table_name_98 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: Which Position has a Round larger than 4, and a Player of patrick johnson? ### Context: CREATE TABLE table_name_45 (position VARCHAR, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_45 WHERE round > 4 AND player = "patrick johnson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nationality has a Round of 4? ### Context: CREATE TABLE table_name_17 (nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_17 WHERE round = 4 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Player has a Round smaller than 4, and a College/junior/club team (league) of usa u-18? ### Context: CREATE TABLE table_name_48 (player VARCHAR, round VARCHAR, college_junior_club_team__league_ VARCHAR) [/INST] ### Response: SELECT player FROM table_name_48 WHERE round < 4 AND college_junior_club_team__league_ = "usa u-18" </s>