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 lowest overall when the pick is less than 2? ### Context: CREATE TABLE table_name_92 (overall INTEGER, pick INTEGER) [/INST] ### Response: SELECT MIN(overall) FROM table_name_92 WHERE pick < 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 round when the college is north carolina and the overall is more than 124? ### Context: CREATE TABLE table_name_68 (round INTEGER, college VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT SUM(round) FROM table_name_68 WHERE college = "north carolina" AND overall > 124 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: October 28, 2001 was what week of the season? ### Context: CREATE TABLE table_name_98 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT week FROM table_name_98 WHERE date = "october 28, 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 was the result of week 11? ### Context: CREATE TABLE table_name_1 (result VARCHAR, week VARCHAR) [/INST] ### Response: SELECT result FROM table_name_1 WHERE week = 11 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the date of a week larger than 16? ### Context: CREATE TABLE table_name_55 (date VARCHAR, week INTEGER) [/INST] ### Response: SELECT date FROM table_name_55 WHERE week > 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: November 25, 2001 was what week of the season? ### Context: CREATE TABLE table_name_52 (week VARCHAR, date VARCHAR) [/INST] ### Response: SELECT COUNT(week) FROM table_name_52 WHERE date = "november 25, 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: Which Wheels has Built smaller than 1958, a Location of york, and a Railway of nsr? ### Context: CREATE TABLE table_name_31 (wheels VARCHAR, railway VARCHAR, built VARCHAR, location VARCHAR) [/INST] ### Response: SELECT wheels FROM table_name_31 WHERE built < 1958 AND location = "york" AND railway = "nsr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Built has a Builder of brel crewe? ### Context: CREATE TABLE table_name_74 (built INTEGER, builder VARCHAR) [/INST] ### Response: SELECT AVG(built) FROM table_name_74 WHERE builder = "brel crewe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Railway has a Location of shildon, and an ObjectNumber of 1978-7006? ### Context: CREATE TABLE table_name_52 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR) [/INST] ### Response: SELECT railway FROM table_name_52 WHERE location = "shildon" AND objectnumber = "1978-7006" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Railway has a Location of shildon, and an ObjectNumber of 1975-7022? ### Context: CREATE TABLE table_name_58 (railway VARCHAR, location VARCHAR, objectnumber VARCHAR) [/INST] ### Response: SELECT railway FROM table_name_58 WHERE location = "shildon" AND objectnumber = "1975-7022" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location has an ObjectNumber of 2005-7698? ### Context: CREATE TABLE table_name_71 (location VARCHAR, objectnumber VARCHAR) [/INST] ### Response: SELECT location FROM table_name_71 WHERE objectnumber = "2005-7698" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Club during the Years 1995–1996? ### Context: CREATE TABLE table_name_28 (club VARCHAR, years VARCHAR) [/INST] ### Response: SELECT club FROM table_name_28 WHERE years = "1995–1996" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In what Years was the Player in MF Position? ### Context: CREATE TABLE table_name_71 (years VARCHAR, position VARCHAR) [/INST] ### Response: SELECT years FROM table_name_71 WHERE position = "mf" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2nd leg of the 1st team in the 2007 uefa intertoto cup? ### Context: CREATE TABLE table_name_72 (team__number1 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_72 WHERE team__number1 = "2007 uefa intertoto cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2nd leg of dinamo minsk team #2? ### Context: CREATE TABLE table_name_20 (team__number2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_20 WHERE team__number2 = "dinamo minsk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the 2nd leg of the second team in the 2007 uefa intertoto cup? ### Context: CREATE TABLE table_name_78 (team__number2 VARCHAR) [/INST] ### Response: SELECT 2 AS nd_leg FROM table_name_78 WHERE team__number2 = "2007 uefa intertoto cup" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the 10 against? ### Context: CREATE TABLE table_name_93 (status VARCHAR, against VARCHAR) [/INST] ### Response: SELECT status FROM table_name_93 WHERE against = 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: Who was the opposing team in the test match? ### Context: CREATE TABLE table_name_76 (opposing_team VARCHAR, status VARCHAR) [/INST] ### Response: SELECT opposing_team FROM table_name_76 WHERE status = "test match" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Where was the 05/09/1973 venue? ### Context: CREATE TABLE table_name_63 (venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_63 WHERE date = "05/09/1973" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall has a Position of te, and a Round larger than 5? ### Context: CREATE TABLE table_name_82 (overall INTEGER, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT AVG(overall) FROM table_name_82 WHERE position = "te" AND round > 5 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Position has a Round larger than 14, and an Overall smaller than 419? ### Context: CREATE TABLE table_name_70 (position VARCHAR, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT position FROM table_name_70 WHERE round > 14 AND overall < 419 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Overall has a Round smaller than 2? ### Context: CREATE TABLE table_name_65 (overall VARCHAR, round INTEGER) [/INST] ### Response: SELECT overall FROM table_name_65 WHERE round < 2 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Name has a Round larger than 4, an Overall smaller than 338, a Pick smaller than 11, and a College of virginia tech? ### Context: CREATE TABLE table_name_39 (name VARCHAR, college VARCHAR, pick VARCHAR, round VARCHAR, overall VARCHAR) [/INST] ### Response: SELECT name FROM table_name_39 WHERE round > 4 AND overall < 338 AND pick < 11 AND college = "virginia tech" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has the event of 36 arrow finals? ### Context: CREATE TABLE table_name_81 (name VARCHAR, event VARCHAR) [/INST] ### Response: SELECT name FROM table_name_81 WHERE event = "36 arrow finals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 score for the 36 arrow finals event? ### Context: CREATE TABLE table_name_72 (score VARCHAR, event VARCHAR) [/INST] ### Response: SELECT COUNT(score) FROM table_name_72 WHERE event = "36 arrow finals" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with the nationality of Tri? ### Context: CREATE TABLE table_name_78 (moving_to VARCHAR, nat VARCHAR) [/INST] ### Response: SELECT moving_to FROM table_name_78 WHERE nat = "tri" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 sSpec Number of the model with a 1ghz frequency? ### Context: CREATE TABLE table_name_52 (sspec_number VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT sspec_number FROM table_name_52 WHERE frequency = "1ghz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 part number of the model that has a frequency of 933mhz? ### Context: CREATE TABLE table_name_32 (part_number_s_ VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT part_number_s_ FROM table_name_32 WHERE frequency = "933mhz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date was part number rk80533pz933256 released? ### Context: CREATE TABLE table_name_89 (release_date VARCHAR, part_number_s_ VARCHAR) [/INST] ### Response: SELECT release_date FROM table_name_89 WHERE part_number_s_ = "rk80533pz933256" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 frequency of the model with sSpec number sl5qj? ### Context: CREATE TABLE table_name_72 (frequency VARCHAR, sspec_number VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_72 WHERE sspec_number = "sl5qj" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years does coach Jim Berryman have? ### Context: CREATE TABLE table_name_69 (years VARCHAR, coach VARCHAR) [/INST] ### Response: SELECT years FROM table_name_69 WHERE coach = "jim berryman" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Location has a Method of submission (rear naked choke), a Round of 1, and an Event of ufc 127? ### Context: CREATE TABLE table_name_57 (location VARCHAR, event VARCHAR, method VARCHAR, round VARCHAR) [/INST] ### Response: SELECT location FROM table_name_57 WHERE method = "submission (rear naked choke)" AND round = 1 AND event = "ufc 127" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Record has a Time of n/a? ### Context: CREATE TABLE table_name_23 (record VARCHAR, time VARCHAR) [/INST] ### Response: SELECT record FROM table_name_23 WHERE time = "n/a" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Opponent has a Location of gold coast , australia, and a Method of submission (punches)? ### Context: CREATE TABLE table_name_26 (opponent VARCHAR, location VARCHAR, method VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_26 WHERE location = "gold coast , australia" AND method = "submission (punches)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circuit is lowood circuit and the race is lowood trophy? ### Context: CREATE TABLE table_name_47 (location VARCHAR, circuit VARCHAR, race VARCHAR) [/INST] ### Response: SELECT location FROM table_name_47 WHERE circuit = "lowood circuit" AND race = "lowood trophy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 race on 23 october? ### Context: CREATE TABLE table_name_81 (race VARCHAR, date VARCHAR) [/INST] ### Response: SELECT race FROM table_name_81 WHERE date = "23 october" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 circuit when the winner is stan jones and the race is phillip island trophy race? ### Context: CREATE TABLE table_name_3 (circuit VARCHAR, winner VARCHAR, race VARCHAR) [/INST] ### Response: SELECT circuit FROM table_name_3 WHERE winner = "stan jones" AND race = "phillip island trophy race" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 displacement and configuration with a max speed of km/h (mph) and the car model Panamera 4s? ### Context: CREATE TABLE table_name_36 (displacement_ VARCHAR, _configuration VARCHAR, max_speed VARCHAR, car_model VARCHAR) [/INST] ### Response: SELECT displacement_ & _configuration FROM table_name_36 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 displacement & configuration with CO2 of 204 g/km emissions? ### Context: CREATE TABLE table_name_18 (displacement_ VARCHAR, _configuration VARCHAR, emissions_co2 VARCHAR) [/INST] ### Response: SELECT displacement_ & _configuration FROM table_name_18 WHERE emissions_co2 = "204 g/km" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What displacement & configuration does the car model Panamera 4s have? ### Context: CREATE TABLE table_name_68 (displacement_ VARCHAR, _configuration VARCHAR, car_model VARCHAR) [/INST] ### Response: SELECT displacement_ & _configuration FROM table_name_68 WHERE car_model = "panamera 4s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 emissions CO2 with a max speed of km/h (mph) of the car model Panamera 4s? ### Context: CREATE TABLE table_name_76 (emissions_co2 VARCHAR, max_speed VARCHAR, car_model VARCHAR) [/INST] ### Response: SELECT emissions_co2 FROM table_name_76 WHERE max_speed = "km/h (mph)" AND car_model = "panamera 4s" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tickets were available at Halle Tony Garnier on June 15, 2009? ### Context: CREATE TABLE table_name_75 (tickets_available_since VARCHAR, venue VARCHAR, date VARCHAR) [/INST] ### Response: SELECT tickets_available_since FROM table_name_75 WHERE venue = "halle tony garnier" AND date = "june 15, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What city had tickets available since March 28, 2008 and went on sale on September 4, 2009? ### Context: CREATE TABLE table_name_23 (city VARCHAR, tickets_available_since VARCHAR, date VARCHAR) [/INST] ### Response: SELECT city FROM table_name_23 WHERE tickets_available_since = "march 28, 2008" AND date = "september 4, 2009" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHAT IS THE PICK FOR JOE DAY, ROUND LARGER THAN 1, AND OVERALL SMALLER THAN 150? ### Context: CREATE TABLE table_name_57 (pick INTEGER, overall VARCHAR, round VARCHAR, name VARCHAR) [/INST] ### Response: SELECT MIN(pick) FROM table_name_57 WHERE round > 1 AND name = "joe day" AND overall < 150 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 PICK WITH AN OVERALL LARGER THAN 250, AND FOR FLORIDA COLLEGE? ### Context: CREATE TABLE table_name_62 (pick INTEGER, overall VARCHAR, college VARCHAR) [/INST] ### Response: SELECT SUM(pick) FROM table_name_62 WHERE overall > 250 AND college = "florida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loan club with bbc sport as the start source and ended in 3 February? ### Context: CREATE TABLE table_name_41 (loan_club VARCHAR, start_source VARCHAR, ended VARCHAR) [/INST] ### Response: SELECT loan_club FROM table_name_41 WHERE start_source = "bbc sport" AND ended = "3 february" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When did the enews start source start? ### Context: CREATE TABLE table_name_99 (started VARCHAR, start_source VARCHAR) [/INST] ### Response: SELECT started FROM table_name_99 WHERE start_source = "enews" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 start source of the irl country, which ended on 13 April? ### Context: CREATE TABLE table_name_7 (start_source VARCHAR, country VARCHAR, ended VARCHAR) [/INST] ### Response: SELECT start_source FROM table_name_7 WHERE country = "irl" AND ended = "13 april" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 named feeney with a bbc sport start source? ### Context: CREATE TABLE table_name_16 (country VARCHAR, start_source VARCHAR, name VARCHAR) [/INST] ### Response: SELECT country FROM table_name_16 WHERE start_source = "bbc sport" AND name = "feeney" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 loan club named dennehy? ### Context: CREATE TABLE table_name_61 (loan_club VARCHAR, name VARCHAR) [/INST] ### Response: SELECT loan_club FROM table_name_61 WHERE name = "dennehy" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most races with less than 10 podiums and 1st position? ### Context: CREATE TABLE table_name_27 (races INTEGER, position VARCHAR, podiums VARCHAR) [/INST] ### Response: SELECT MAX(races) FROM table_name_27 WHERE position = "1st" AND podiums < 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: How many runs did mahela jayawardene and thilan samaraweera have? ### Context: CREATE TABLE table_name_82 (runs INTEGER, batting_partners VARCHAR) [/INST] ### Response: SELECT SUM(runs) FROM table_name_82 WHERE batting_partners = "mahela jayawardene and thilan samaraweera" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What venue did mahela jayawardene and thilan samaraweera play at? ### Context: CREATE TABLE table_name_42 (venue VARCHAR, batting_partners VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_42 WHERE batting_partners = "mahela jayawardene and thilan samaraweera" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the batting partners that played for India in 1997? ### Context: CREATE TABLE table_name_96 (batting_partners VARCHAR, fielding_team VARCHAR, season VARCHAR) [/INST] ### Response: SELECT batting_partners FROM table_name_96 WHERE fielding_team = "india" AND season = "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: What is the defending forces when Al-Murassas shows for name? ### Context: CREATE TABLE table_name_21 (defending_forces VARCHAR, name VARCHAR) [/INST] ### Response: SELECT defending_forces FROM table_name_21 WHERE name = "al-murassas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brigade Tall Al-Shawk shows for the name? ### Context: CREATE TABLE table_name_68 (brigade VARCHAR, name VARCHAR) [/INST] ### Response: SELECT brigade FROM table_name_68 WHERE name = "tall al-shawk" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brigade when Al-Bira is the name? ### Context: CREATE TABLE table_name_7 (brigade VARCHAR, name VARCHAR) [/INST] ### Response: SELECT brigade FROM table_name_7 WHERE name = "al-bira" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brigade when Al-Hamra ('arab al-hamra) shows for name? ### Context: CREATE TABLE table_name_63 (brigade VARCHAR, name VARCHAR) [/INST] ### Response: SELECT brigade FROM table_name_63 WHERE name = "al-hamra ('arab al-hamra)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Defending forces when the population was 120? ### Context: CREATE TABLE table_name_41 (defending_forces VARCHAR, population VARCHAR) [/INST] ### Response: SELECT defending_forces FROM table_name_41 WHERE population = "120" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the rank of the park that had a value of 5,040,000 in 2010? ### Context: CREATE TABLE table_name_30 (rank VARCHAR) [/INST] ### Response: SELECT rank FROM table_name_30 WHERE 2010 = "5,040,000" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 overall pick number of the player selected before round 3? ### Context: CREATE TABLE table_name_40 (overall_pick VARCHAR, round INTEGER) [/INST] ### Response: SELECT COUNT(overall_pick) FROM table_name_40 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 College/Junior/Club Team (League) did the player julien cayer who was selected before round 3 play for? ### Context: CREATE TABLE table_name_87 (college_junior_club_team__league_ VARCHAR, round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_87 WHERE round > 3 AND player = "julien cayer" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 bronze when the rank is 3 and silver is less than 2? ### Context: CREATE TABLE table_name_3 (bronze INTEGER, rank VARCHAR, silver VARCHAR) [/INST] ### Response: SELECT MIN(bronze) FROM table_name_3 WHERE rank = "3" AND silver < 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 total when bronze is 0 and the nation is hungary? ### Context: CREATE TABLE table_name_58 (total INTEGER, bronze VARCHAR, nation VARCHAR) [/INST] ### Response: SELECT MAX(total) FROM table_name_58 WHERE bronze = 0 AND nation = "hungary" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the rank is 7 and gold is more than 0? ### Context: CREATE TABLE table_name_41 (total INTEGER, rank VARCHAR, gold VARCHAR) [/INST] ### Response: SELECT AVG(total) FROM table_name_41 WHERE rank = "7" 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 highest gold when the nation is total and the total is less than 24? ### Context: CREATE TABLE table_name_8 (gold INTEGER, nation VARCHAR) [/INST] ### Response: SELECT MAX(gold) FROM table_name_8 WHERE nation = "total" AND "total" < 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: Looking only at matches occurring after Game 51, who was the opponent for the game that ended with a score of 99-129? ### Context: CREATE TABLE table_name_61 (opponent VARCHAR, game VARCHAR, score VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_61 WHERE game > 51 AND score = "99-129" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game against the Washington Bullets, what was the final score? ### Context: CREATE TABLE table_name_97 (score VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT score FROM table_name_97 WHERE opponent = "washington bullets" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game where the opponent is listed as @ Indiana Pacers, what was the end record? ### Context: CREATE TABLE table_name_31 (record VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT record FROM table_name_31 WHERE opponent = "@ indiana pacers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 game number was played at Chicago Stadium? ### Context: CREATE TABLE table_name_63 (game VARCHAR, location VARCHAR) [/INST] ### Response: SELECT game FROM table_name_63 WHERE location = "chicago stadium" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance of the match with motagua as the home team? ### Context: CREATE TABLE table_name_51 (attendance INTEGER, home VARCHAR) [/INST] ### Response: SELECT AVG(attendance) FROM table_name_51 WHERE home = "motagua" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the game where real espana was the home team? ### Context: CREATE TABLE table_name_90 (score VARCHAR, home VARCHAR) [/INST] ### Response: SELECT score FROM table_name_90 WHERE home = "real espana" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team for the game with 916 in attendance? ### Context: CREATE TABLE table_name_45 (away VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT away FROM table_name_45 WHERE attendance = 916 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the score of the game wehre the deportes savio were the home team? ### Context: CREATE TABLE table_name_78 (score VARCHAR, home VARCHAR) [/INST] ### Response: SELECT score FROM table_name_78 WHERE home = "deportes savio" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which championship did the winner have a score of βˆ’9 (66-69-73-71=279)? ### Context: CREATE TABLE table_name_83 (championship VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_83 WHERE winning_score = βˆ’9(66 - 69 - 73 - 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: During the championship where the winning score was βˆ’9 (66-69-73-71=279)?, who was the runner-up? ### Context: CREATE TABLE table_name_32 (runner_s__up VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT runner_s__up FROM table_name_32 WHERE winning_score = βˆ’9(66 - 69 - 73 - 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 was the winning score in the year 2002? ### Context: CREATE TABLE table_name_28 (winning_score VARCHAR, year VARCHAR) [/INST] ### Response: SELECT winning_score FROM table_name_28 WHERE year = 2002 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 fewest goals of CD Alcoyano with more than 25 points? ### Context: CREATE TABLE table_name_57 (goals_against INTEGER, club VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MIN(goals_against) FROM table_name_57 WHERE club = "cd alcoyano" AND points > 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 fewest number of wins that had fewer than 7 draws and more than 30 played? ### Context: CREATE TABLE table_name_26 (wins INTEGER, draws VARCHAR, played VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_26 WHERE draws < 7 AND played > 30 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the fewest points that has more than 29 goals? ### Context: CREATE TABLE table_name_42 (points INTEGER, goal_difference INTEGER) [/INST] ### Response: SELECT MIN(points) FROM table_name_42 WHERE goal_difference > 29 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What date have highest 0-4-4 forney locomotive with number larger than 20 and works number larger than 23754? ### Context: CREATE TABLE table_name_90 (date INTEGER, works_number VARCHAR, type VARCHAR, number VARCHAR) [/INST] ### Response: SELECT MAX(date) FROM table_name_90 WHERE type = "0-4-4 forney locomotive" AND number > 20 AND works_number > 23754 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number with type 0-4-4 forney locomotive, number smaller than 20 and works number of 1251? ### Context: CREATE TABLE table_name_37 (date VARCHAR, works_number VARCHAR, type VARCHAR, number VARCHAR) [/INST] ### Response: SELECT COUNT(date) FROM table_name_37 WHERE type = "0-4-4 forney locomotive" AND number < 20 AND works_number = 1251 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game that had a time of 3:31 and was before game 7? ### Context: CREATE TABLE table_name_58 (attendance INTEGER, time VARCHAR, game VARCHAR) [/INST] ### Response: SELECT MIN(attendance) FROM table_name_58 WHERE time = "3:31" AND game < 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 was the sum of attendance for games with a time of 3:23? ### Context: CREATE TABLE table_name_53 (attendance INTEGER, time VARCHAR) [/INST] ### Response: SELECT SUM(attendance) FROM table_name_53 WHERE time = "3:23" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: WHat is the lowest amount of bronze medals for teams with 9 silvers and less than 27 points? ### Context: CREATE TABLE table_name_56 (bronze INTEGER, silver VARCHAR, total VARCHAR) [/INST] ### Response: SELECT MIN(bronze) FROM table_name_56 WHERE silver = 9 AND total < 27 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the New Zealand Player? ### Context: CREATE TABLE table_name_79 (to_par VARCHAR, country VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_79 WHERE country = "new zealand" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What Player had a Score of 70-71=141? ### Context: CREATE TABLE table_name_80 (player VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_80 WHERE score = 70 - 71 = 141 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Ernie Els' Score? ### Context: CREATE TABLE table_name_43 (score VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_43 WHERE player = "ernie els" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance when Bournemouth was the away team? ### Context: CREATE TABLE table_name_25 (attendance VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT attendance FROM table_name_25 WHERE away_team = "bournemouth" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team when Lincoln City was the home team? ### Context: CREATE TABLE table_name_19 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_19 WHERE home_team = "lincoln 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 was the score when Walsall was the away team? ### Context: CREATE TABLE table_name_91 (score VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_91 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: Which wheels were built 1920? ### Context: CREATE TABLE table_name_33 (wheels VARCHAR, built VARCHAR) [/INST] ### Response: SELECT wheels FROM table_name_33 WHERE built = 1920 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 builder has a Built smaller than 1880? ### Context: CREATE TABLE table_name_8 (builder VARCHAR, built INTEGER) [/INST] ### Response: SELECT builder FROM table_name_8 WHERE built < 1880 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Place, when Player is "Mike Souchak"? ### Context: CREATE TABLE table_name_68 (place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT place FROM table_name_68 WHERE player = "mike souchak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Country, when Place is "T9", and when Player is "Jay Hebert"? ### Context: CREATE TABLE table_name_93 (country VARCHAR, place VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_93 WHERE place = "t9" AND player = "jay hebert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Player, when Place is "T9", and when Score is "73-70=143"? ### Context: CREATE TABLE table_name_90 (player VARCHAR, place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT player FROM table_name_90 WHERE place = "t9" AND score = 73 - 70 = 143 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Country, when Player is "Dow Finsterwald"? ### Context: CREATE TABLE table_name_54 (country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT country FROM table_name_54 WHERE player = "dow finsterwald" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Score, when Country is "United States", when Place is "T9", and when Player is "Jay Hebert"? ### Context: CREATE TABLE table_name_28 (score VARCHAR, player VARCHAR, country VARCHAR, place VARCHAR) [/INST] ### Response: SELECT score FROM table_name_28 WHERE country = "united states" AND place = "t9" AND player = "jay hebert" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To Par is "+1", and when Player is "Mike Souchak"? ### Context: CREATE TABLE table_name_7 (score VARCHAR, to_par VARCHAR, player VARCHAR) [/INST] ### Response: SELECT score FROM table_name_7 WHERE to_par = "+1" AND player = "mike souchak" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Home team is Chicago Black Hawks and the Record is 3-3? ### Context: CREATE TABLE table_name_8 (score VARCHAR, home VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_8 WHERE home = "chicago black hawks" AND record = "3-3" </s>