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 first leg score when team 2 is Wagad Mogadishu? ### Context: CREATE TABLE table_name_61 (team_2 VARCHAR) [/INST] ### Response: SELECT 1 AS st_leg FROM table_name_61 WHERE team_2 = "wagad mogadishu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Status with a Name that is anas cheuen? ### Context: CREATE TABLE table_name_77 (status VARCHAR, name VARCHAR) [/INST] ### Response: SELECT status FROM table_name_77 WHERE name = "anas cheuen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Unit with a Name that is anas cheuen? ### Context: CREATE TABLE table_name_58 (unit VARCHAR, name VARCHAR) [/INST] ### Response: SELECT unit FROM table_name_58 WHERE name = "anas cheuen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 was the Opponent when the Score was 31-6? ### Context: CREATE TABLE table_name_83 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_83 WHERE score = "31-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 Score when the record was 9-3-0? ### Context: CREATE TABLE table_name_76 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_76 WHERE record = "9-3-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 away team where the home team is Coventry City? ### Context: CREATE TABLE table_name_73 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_73 WHERE home_team = "coventry city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the score where the away team is Exeter City? ### Context: CREATE TABLE table_name_20 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_20 WHERE away_team = "exeter city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many ties does Walsall have? ### Context: CREATE TABLE table_name_97 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_97 WHERE away_team = "walsall" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Bolton Wanderers is the home team, who is the away team? ### Context: CREATE TABLE table_name_7 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_7 WHERE home_team = "bolton wanderers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many ties are there where attendance is 11,997? ### Context: CREATE TABLE table_name_43 (tie_no VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_43 WHERE attendance = "11,997" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the away team is Bradford City, who is the home team? ### Context: CREATE TABLE table_name_83 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_83 WHERE away_team = "bradford city" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: For which school/club team did the player in the position of Guard/Forward play? ### Context: CREATE TABLE table_name_35 (school_club_team VARCHAR, position VARCHAR) [/INST] ### Response: SELECT school_club_team FROM table_name_35 WHERE position = "guard/forward" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the player in the position of Center acquired? ### Context: CREATE TABLE table_name_26 (acquisition_via VARCHAR, position VARCHAR) [/INST] ### Response: SELECT acquisition_via FROM table_name_26 WHERE position = "center" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season did Omar Thomas play, with a jersey number larger than 15? ### Context: CREATE TABLE table_name_81 (season VARCHAR, number VARCHAR, name VARCHAR) [/INST] ### Response: SELECT season FROM table_name_81 WHERE number > 15 AND name = "omar thomas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many total players came from the school/club team of De La Salle? ### Context: CREATE TABLE table_name_62 (number VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT COUNT(number) FROM table_name_62 WHERE school_club_team = "de la salle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in the position of Guard/Forward? ### Context: CREATE TABLE table_name_67 (name VARCHAR, position VARCHAR) [/INST] ### Response: SELECT name FROM table_name_67 WHERE position = "guard/forward" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 wins associated with under 4 events with 0 top-5s? ### Context: CREATE TABLE table_name_38 (wins INTEGER, top_5 VARCHAR, events VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_38 WHERE top_5 > 0 AND events < 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 average number of events having 1 top-10, fewer than 4 cuts made, and 0 wins? ### Context: CREATE TABLE table_name_98 (events INTEGER, cuts_made VARCHAR, top_10 VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(events) FROM table_name_98 WHERE top_10 = 1 AND wins > 0 AND cuts_made < 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 average number of wins for events larger than 28? ### Context: CREATE TABLE table_name_22 (wins INTEGER, events INTEGER) [/INST] ### Response: SELECT AVG(wins) FROM table_name_22 WHERE events > 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 sum of top-25s for events with more than 1 top-5? ### Context: CREATE TABLE table_name_71 (top_25 INTEGER, top_5 INTEGER) [/INST] ### Response: SELECT SUM(top_25) FROM table_name_71 WHERE top_5 > 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: Who is the producer of city sharks? ### Context: CREATE TABLE table_name_57 (producer VARCHAR, title VARCHAR) [/INST] ### Response: SELECT producer FROM table_name_57 WHERE title = "city sharks" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the film when the producer was 2003? ### Context: CREATE TABLE table_name_65 (title VARCHAR, producer VARCHAR) [/INST] ### Response: SELECT title FROM table_name_65 WHERE producer = "2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director when the title is 2003? ### Context: CREATE TABLE table_name_27 (director VARCHAR, title VARCHAR) [/INST] ### Response: SELECT director FROM table_name_27 WHERE title = "2003" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production cost when the producer is raintree pictures? ### Context: CREATE TABLE table_name_63 (production_cost VARCHAR, producer VARCHAR) [/INST] ### Response: SELECT production_cost FROM table_name_63 WHERE producer = "raintree pictures" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance at a week 15 game? ### Context: CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_50 WHERE week = 15 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Score for the game with a record of 38-18? ### Context: CREATE TABLE table_name_84 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_84 WHERE record = "38-18" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What team was the opponent when the score was 8-2? ### Context: CREATE TABLE table_name_24 (opponent VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_24 WHERE score = "8-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 Location when the opponent shows vs. ole miss, and a Loss of mckean (4-1)? ### Context: CREATE TABLE table_name_41 (location VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT location FROM table_name_41 WHERE opponent = "vs. ole miss" AND loss = "mckean (4-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 name of the Opponent when there is a Record of 39-19? ### Context: CREATE TABLE table_name_79 (opponent VARCHAR, record VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_79 WHERE record = "39-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: What is the Record on may 24, with a Loss of hayes (2-1)? ### Context: CREATE TABLE table_name_98 (record VARCHAR, date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT record FROM table_name_98 WHERE date = "may 24" AND loss = "hayes (2-1)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location when the Opponent shows vs. #23 south carolina? ### Context: CREATE TABLE table_name_83 (location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT location FROM table_name_83 WHERE opponent = "vs. #23 south carolina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that if the weight for the play born on June 2, 1983? ### Context: CREATE TABLE table_name_90 (weight__kg_ INTEGER, birthdate VARCHAR) [/INST] ### Response: SELECT SUM(weight__kg_) FROM table_name_90 WHERE birthdate = "june 2, 1983" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the highest weight in kg for F Position, Jersey #12? ### Context: CREATE TABLE table_name_41 (weight__kg_ INTEGER, position VARCHAR, jersey__number VARCHAR) [/INST] ### Response: SELECT MAX(weight__kg_) FROM table_name_41 WHERE position = "f" AND jersey__number = 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: Which player is the NHL right, who was born in Downers Grove, Illinois? ### Context: CREATE TABLE table_name_7 (nhl_rights VARCHAR, _if_any VARCHAR, birthplace VARCHAR) [/INST] ### Response: SELECT nhl_rights, _if_any FROM table_name_7 WHERE birthplace = "downers grove, illinois" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 coding's variant id is abd'1a 3? ### Context: CREATE TABLE table_name_48 (coding VARCHAR, variant_id VARCHAR) [/INST] ### Response: SELECT coding FROM table_name_48 WHERE variant_id = "abd'1a 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 5'utr splice's coding is 1a 2, when the Variant id is abd'1a 2? ### Context: CREATE TABLE table_name_70 (coding VARCHAR, variant_id VARCHAR) [/INST] ### Response: SELECT 5 AS ’utr_splice FROM table_name_70 WHERE coding = "1a 2" AND variant_id = "abd'1a 2" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which genbank id's variant is abd1a? ### Context: CREATE TABLE table_name_41 (genbank_id VARCHAR, variant_id VARCHAR) [/INST] ### Response: SELECT genbank_id FROM table_name_41 WHERE variant_id = "abd1a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Orlando have a School/Club team in Clemson? ### Context: CREATE TABLE table_name_53 (years_in_orlando VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_53 WHERE school_club_team = "clemson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What years did the player in Orlando play that is from the United States, and is part of the school/club team Clemson? ### Context: CREATE TABLE table_name_7 (years_in_orlando VARCHAR, nationality VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT years_in_orlando FROM table_name_7 WHERE nationality = "united states" AND school_club_team = "clemson" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the School/Club team in Georgia? ### Context: CREATE TABLE table_name_73 (player VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT player FROM table_name_73 WHERE school_club_team = "georgia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 nationality of the player Pat Garrity? ### Context: CREATE TABLE table_name_28 (nationality VARCHAR, player VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_28 WHERE player = "pat garrity" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the nationality of the School/Club team of Louisville? ### Context: CREATE TABLE table_name_43 (nationality VARCHAR, school_club_team VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_43 WHERE school_club_team = "louisville" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 features did Adam Carroll win 6 times when the start was larger than 32? ### Context: CREATE TABLE table_name_88 (feature VARCHAR, starts VARCHAR, wins VARCHAR, driver VARCHAR) [/INST] ### Response: SELECT COUNT(feature) FROM table_name_88 WHERE wins = 6 AND driver = "adam carroll" AND starts > 32 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 feature with 2 wins and 2 sprints? ### Context: CREATE TABLE table_name_32 (feature INTEGER, wins VARCHAR, sprint VARCHAR) [/INST] ### Response: SELECT MIN(feature) FROM table_name_32 WHERE wins = 2 AND sprint = 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: How many sprints on average had 10 wins and less than 5 features? ### Context: CREATE TABLE table_name_85 (sprint INTEGER, wins VARCHAR, feature VARCHAR) [/INST] ### Response: SELECT AVG(sprint) FROM table_name_85 WHERE wins = 10 AND feature < 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 country has a lane greater than 6 and a mark of 6.63? ### Context: CREATE TABLE table_name_80 (country VARCHAR, lane VARCHAR, mark VARCHAR) [/INST] ### Response: SELECT country FROM table_name_80 WHERE lane > 6 AND mark = "6.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 the lowest lane for Nigeria, with a react less than 0.133? ### Context: CREATE TABLE table_name_17 (lane INTEGER, country VARCHAR, react VARCHAR) [/INST] ### Response: SELECT MIN(lane) FROM table_name_17 WHERE country = "nigeria" AND react < 0.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: What is the mark for Kim Collins? ### Context: CREATE TABLE table_name_11 (mark VARCHAR, name VARCHAR) [/INST] ### Response: SELECT mark FROM table_name_11 WHERE name = "kim collins" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country had 1 Bronze, 1 Silver, with a total of 3 medals? ### Context: CREATE TABLE table_name_10 (nation VARCHAR, silver VARCHAR, bronze VARCHAR, total VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_10 WHERE bronze = 1 AND total = 3 AND silver = 1 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which country had more than 2 silvers and less than 4 golds? ### Context: CREATE TABLE table_name_65 (nation VARCHAR, silver VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT nation FROM table_name_65 WHERE silver > 2 AND gold < 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's the average bronze with a total number of medals being 1, with more than 0 silvers? ### Context: CREATE TABLE table_name_25 (bronze INTEGER, total VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT AVG(bronze) FROM table_name_25 WHERE total = 1 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: In the 2005 season, how many races did the 15th place team complete? ### Context: CREATE TABLE table_name_98 (races INTEGER, final_placing VARCHAR, season VARCHAR) [/INST] ### Response: SELECT AVG(races) FROM table_name_98 WHERE final_placing = "15th" AND season = "2005" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 completed 10 races? ### Context: CREATE TABLE table_name_92 (team_name VARCHAR, races VARCHAR) [/INST] ### Response: SELECT team_name FROM table_name_92 WHERE races = 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 is the PBA team with a Pick that is 4? ### Context: CREATE TABLE table_name_35 (pba_team VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT pba_team FROM table_name_35 WHERE pick = 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 Player with a Pick that is 6? ### Context: CREATE TABLE table_name_15 (player VARCHAR, pick VARCHAR) [/INST] ### Response: SELECT player FROM table_name_15 WHERE pick = 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: How many totals have 1 gold and a rank smaller than 2? ### Context: CREATE TABLE table_name_32 (total VARCHAR, gold VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(total) FROM table_name_32 WHERE gold = 1 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: How much gold did South Korea get? ### Context: CREATE TABLE table_name_49 (gold INTEGER, nation VARCHAR) [/INST] ### Response: SELECT SUM(gold) FROM table_name_49 WHERE nation = "south korea" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What locomotive built after 1895 has the highest SLM number? ### Context: CREATE TABLE table_name_26 (SLM INTEGER, built INTEGER) [/INST] ### Response: SELECT MAX(SLM) AS number FROM table_name_26 WHERE built > 1895 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of locomotive was built in 1923? ### Context: CREATE TABLE table_name_46 (type VARCHAR, built VARCHAR) [/INST] ### Response: SELECT type FROM table_name_46 WHERE built = 1923 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the United Kingdom had a time of 1:30.51.2, what was the lowest that they ranked? ### Context: CREATE TABLE table_name_8 (place INTEGER, country VARCHAR, time VARCHAR) [/INST] ### Response: SELECT MIN(place) FROM table_name_8 WHERE country = "united kingdom" AND time = "1:30.51.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 County scored with a speed of 98.09mph? ### Context: CREATE TABLE table_name_7 (country VARCHAR, speed VARCHAR) [/INST] ### Response: SELECT country FROM table_name_7 WHERE speed = "98.09mph" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Set 4, when Date is Jun 27, and when Set 3 is 17-25? ### Context: CREATE TABLE table_name_64 (set_4 VARCHAR, date VARCHAR, set_3 VARCHAR) [/INST] ### Response: SELECT set_4 FROM table_name_64 WHERE date = "jun 27" AND set_3 = "17-25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Score, when Set 3 is 17-25? ### Context: CREATE TABLE table_name_67 (score VARCHAR, set_3 VARCHAR) [/INST] ### Response: SELECT score FROM table_name_67 WHERE set_3 = "17-25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Set 5, when Date is Jun 26, and when Set 2 is 25-22? ### Context: CREATE TABLE table_name_46 (set_5 VARCHAR, date VARCHAR, set_2 VARCHAR) [/INST] ### Response: SELECT set_5 FROM table_name_46 WHERE date = "jun 26" AND set_2 = "25-22" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Set 1, when Set 3 is 22-25? ### Context: CREATE TABLE table_name_39 (set_1 VARCHAR, set_3 VARCHAR) [/INST] ### Response: SELECT set_1 FROM table_name_39 WHERE set_3 = "22-25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Set 1, when Date is Jun 26, and when Set 4 is 26-24? ### Context: CREATE TABLE table_name_87 (set_1 VARCHAR, date VARCHAR, set_4 VARCHAR) [/INST] ### Response: SELECT set_1 FROM table_name_87 WHERE date = "jun 26" AND set_4 = "26-24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Set 4, when Set 5 is NA, and when Set 3 is 19-25? ### Context: CREATE TABLE table_name_10 (set_4 VARCHAR, set_5 VARCHAR, set_3 VARCHAR) [/INST] ### Response: SELECT set_4 FROM table_name_10 WHERE set_5 = "na" AND set_3 = "19-25" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Team when the match was in buenos aires , argentina? ### Context: CREATE TABLE table_name_60 (team VARCHAR, location VARCHAR) [/INST] ### Response: SELECT team FROM table_name_60 WHERE location = "buenos aires , argentina" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Location when the team was seve ballesteros & manuel piñero? ### Context: CREATE TABLE table_name_61 (location VARCHAR, team VARCHAR) [/INST] ### Response: SELECT location FROM table_name_61 WHERE team = "seve ballesteros & manuel piñero" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the individual was josé maria cañizares? ### Context: CREATE TABLE table_name_23 (location VARCHAR, individual VARCHAR) [/INST] ### Response: SELECT location FROM table_name_23 WHERE individual = "josé maria cañizares" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Year when the team was seve ballesteros & manuel piñero? ### Context: CREATE TABLE table_name_59 (year INTEGER, team VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_59 WHERE team = "seve ballesteros & manuel piñero" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 acres at Sai Tso Wan, opening before 1978? ### Context: CREATE TABLE table_name_29 (acres VARCHAR, landfill VARCHAR, opened VARCHAR) [/INST] ### Response: SELECT COUNT(acres) FROM table_name_29 WHERE landfill = "sai tso wan" AND opened < 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: Which Rank has a Goals smaller than 76, and a Matches larger than 270? ### Context: CREATE TABLE table_name_42 (rank INTEGER, goals VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT SUM(rank) FROM table_name_42 WHERE goals < 76 AND matches > 270 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Matches have a Rank smaller than 5, a Years of 1995–2003, and a Goals smaller than 104? ### Context: CREATE TABLE table_name_67 (matches INTEGER, goals VARCHAR, rank VARCHAR, years VARCHAR) [/INST] ### Response: SELECT AVG(matches) FROM table_name_67 WHERE rank < 5 AND years = "1995–2003" AND goals < 104 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Goals have a Name of lee dong-gook? ### Context: CREATE TABLE table_name_17 (goals INTEGER, name VARCHAR) [/INST] ### Response: SELECT MAX(goals) FROM table_name_17 WHERE name = "lee dong-gook" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Rank has a Years of 1998–present? ### Context: CREATE TABLE table_name_82 (rank INTEGER, years VARCHAR) [/INST] ### Response: SELECT AVG(rank) FROM table_name_82 WHERE years = "1998–present" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Matches have a Rank of 2? ### Context: CREATE TABLE table_name_94 (matches VARCHAR, rank VARCHAR) [/INST] ### Response: SELECT COUNT(matches) FROM table_name_94 WHERE 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: What Position was achieved in the World Championships Competition in Tokyo, Japan? ### Context: CREATE TABLE table_name_24 (position VARCHAR, competition VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT position FROM table_name_24 WHERE competition = "world championships" AND venue = "tokyo, japan" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Competition was 1st Position with 57.03 in Notes? ### Context: CREATE TABLE table_name_57 (competition VARCHAR, position VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT competition FROM table_name_57 WHERE position = "1st" AND notes = "57.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 earliest Year for 400m h Event with 54.86 in Notes? ### Context: CREATE TABLE table_name_55 (year INTEGER, event VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_55 WHERE event = "400m h" AND notes = "54.86" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 appearances for players from Chaux-de-Fonds with places over 8? ### Context: CREATE TABLE table_name_25 (appearances VARCHAR, team VARCHAR, place VARCHAR) [/INST] ### Response: SELECT COUNT(appearances) FROM table_name_25 WHERE team = "chaux-de-fonds" AND place > 8 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest week of the game on November 9, 1997? ### Context: CREATE TABLE table_name_1 (week INTEGER, date VARCHAR) [/INST] ### Response: SELECT MAX(week) FROM table_name_1 WHERE date = "november 9, 1997" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proto-Austronesian has a Proto-Oceanic of *lima? ### Context: CREATE TABLE table_name_97 (proto_austronesian VARCHAR, proto_oceanic VARCHAR) [/INST] ### Response: SELECT proto_austronesian FROM table_name_97 WHERE proto_oceanic = "*lima" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proto-Oceanic has a Proto-Polynesian of *lima? ### Context: CREATE TABLE table_name_85 (proto_oceanic VARCHAR, proto_polynesian VARCHAR) [/INST] ### Response: SELECT proto_oceanic FROM table_name_85 WHERE proto_polynesian = "*lima" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Proto-Polynesian of *taha? ### Context: CREATE TABLE table_name_71 (number VARCHAR, proto_polynesian VARCHAR) [/INST] ### Response: SELECT number FROM table_name_71 WHERE proto_polynesian = "*taha" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proto-Polynesian has a Number of five? ### Context: CREATE TABLE table_name_69 (proto_polynesian VARCHAR, number VARCHAR) [/INST] ### Response: SELECT proto_polynesian FROM table_name_69 WHERE number = "five" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proto-Polynesian has a Proto-Malayo-Polynesian of *telu? ### Context: CREATE TABLE table_name_50 (proto_polynesian VARCHAR, proto_malayo_polynesian VARCHAR) [/INST] ### Response: SELECT proto_polynesian FROM table_name_50 WHERE proto_malayo_polynesian = "*telu" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Proto-Oceanic has a Proto-Polynesian of *lima? ### Context: CREATE TABLE table_name_48 (proto_oceanic VARCHAR, proto_polynesian VARCHAR) [/INST] ### Response: SELECT proto_oceanic FROM table_name_48 WHERE proto_polynesian = "*lima" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 countries in 2009 have fewer than 1 in 1999, more than 0 in 2006 and none in 1997? ### Context: CREATE TABLE table_name_49 (Id VARCHAR) [/INST] ### Response: SELECT COUNT(2009) FROM table_name_49 WHERE 1999 < 1 AND 2006 > 0 AND 1997 < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How much is the highest number in 2006 with fewer than 0 in 2002? ### Context: CREATE TABLE table_name_16 (Id VARCHAR) [/INST] ### Response: SELECT MAX(2006) FROM table_name_16 WHERE 2002 < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many are there in 2003 that have 0 in 2001, more than 0 in 2009 and fewer than 0 in 1999? ### Context: CREATE TABLE table_name_97 (Id VARCHAR) [/INST] ### Response: SELECT SUM(2003) FROM table_name_97 WHERE 2001 = 0 AND 2009 > 0 AND 1999 < 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 country has more than 0 in 2012 and 2009, 0 in 2008 and more than 0 in 2004? ### Context: CREATE TABLE table_name_18 (country VARCHAR) [/INST] ### Response: SELECT country FROM table_name_18 WHERE 2012 > 0 AND 2009 > 0 AND 2008 = 0 AND 2004 > 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 % GDP has an Expenditure larger than 50.9, and a Year larger than 2009, and an Income of 39.3? ### Context: CREATE TABLE table_name_16 (_percentage_gdp VARCHAR, income VARCHAR, expenditure VARCHAR, year VARCHAR) [/INST] ### Response: SELECT _percentage_gdp FROM table_name_16 WHERE expenditure > 50.9 AND year > 2009 AND income = 39.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 Year has an Expenditure smaller than 41.3, and a % GDP of x, and an Income larger than 34.4? ### Context: CREATE TABLE table_name_65 (year INTEGER, income VARCHAR, expenditure VARCHAR, _percentage_gdp VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_65 WHERE expenditure < 41.3 AND _percentage_gdp = "x" AND income > 34.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 Surplus(Deficit) has an Expenditure larger than 45.8, and a Year smaller than 2011, and a % GDP of (0.9%)? ### Context: CREATE TABLE table_name_88 (surplus_deficit_ VARCHAR, _percentage_gdp VARCHAR, expenditure VARCHAR, year VARCHAR) [/INST] ### Response: SELECT surplus_deficit_ FROM table_name_88 WHERE expenditure > 45.8 AND year < 2011 AND _percentage_gdp = "(0.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: Which Year has an Expenditure of 55, and an Income smaller than 36.2? ### Context: CREATE TABLE table_name_7 (year INTEGER, expenditure VARCHAR, income VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_7 WHERE expenditure = 55 AND income < 36.2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which % GDP has a Year smaller than 2011, and an Expenditure larger than 41.3, and an Income smaller than 48, and a Surplus(Deficit) of (24.6)? ### Context: CREATE TABLE table_name_19 (_percentage_gdp VARCHAR, surplus_deficit_ VARCHAR, income VARCHAR, year VARCHAR, expenditure VARCHAR) [/INST] ### Response: SELECT _percentage_gdp FROM table_name_19 WHERE year < 2011 AND expenditure > 41.3 AND income < 48 AND surplus_deficit_ = "(24.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 year was the Grand Prix Passing Shot Bordeaux that had Runners-up of Diego Nargiso? ### Context: CREATE TABLE table_name_96 (year VARCHAR, tournament_name VARCHAR, runners_up VARCHAR) [/INST] ### Response: SELECT year FROM table_name_96 WHERE tournament_name = "grand prix passing shot bordeaux" AND runners_up = "diego nargiso" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What tournament had a score of 5–7, 6–4, 6–4? ### Context: CREATE TABLE table_name_65 (tournament_name VARCHAR, score VARCHAR) [/INST] ### Response: SELECT tournament_name FROM table_name_65 WHERE score = "5–7, 6–4, 6–4" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: After 1989, what was the score of the Grand Prix Passing Shot where the Runners-up were Jeff Tarango? ### Context: CREATE TABLE table_name_65 (score VARCHAR, runners_up VARCHAR, year VARCHAR, tournament_name VARCHAR) [/INST] ### Response: SELECT score FROM table_name_65 WHERE year > 1989 AND tournament_name = "grand prix passing shot" AND runners_up = "jeff tarango" </s>