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 highest power (hp) of an OM314 engine? ### Context: CREATE TABLE table_name_5 (power__hp_ INTEGER, engine VARCHAR) [/INST] ### Response: SELECT MAX(power__hp_) FROM table_name_5 WHERE engine = "om314" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When was power (hp) less than 93 for the OM324 engine used? ### Context: CREATE TABLE table_name_4 (used VARCHAR, power__hp_ VARCHAR, engine VARCHAR) [/INST] ### Response: SELECT used FROM table_name_4 WHERE power__hp_ < 93 AND engine = "om324" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Nagpur district, with a reserved for ( SC / ST /None) of none, and a Constituency number of 59? ### Context: CREATE TABLE table_name_56 (name VARCHAR, constituency_number VARCHAR, district VARCHAR, reserved_for___sc___st__none_ VARCHAR) [/INST] ### Response: SELECT name FROM table_name_56 WHERE district = "nagpur" AND reserved_for___sc___st__none_ = "none" AND constituency_number = "59" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What district shows reserved for (SC / ST /None) of total:? ### Context: CREATE TABLE table_name_45 (district VARCHAR, reserved_for___sc___st__none_ VARCHAR) [/INST] ### Response: SELECT district FROM table_name_45 WHERE reserved_for___sc___st__none_ = "total:" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of electorates (2009) for Hingna? ### Context: CREATE TABLE table_name_78 (number_of_electorates__2009_ INTEGER, name VARCHAR) [/INST] ### Response: SELECT AVG(number_of_electorates__2009_) FROM table_name_78 WHERE name = "hingna" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 constituency number with a reserved for ( SC / ST /None) of none, for Katol? ### Context: CREATE TABLE table_name_65 (constituency_number VARCHAR, reserved_for___sc___st__none_ VARCHAR, name VARCHAR) [/INST] ### Response: SELECT constituency_number FROM table_name_65 WHERE reserved_for___sc___st__none_ = "none" AND name = "katol" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 electorates (2009) for Katol? ### Context: CREATE TABLE table_name_57 (number_of_electorates__2009_ VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(number_of_electorates__2009_) FROM table_name_57 WHERE name = "katol" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Category of best performance by a leading actress in a musical? ### Context: CREATE TABLE table_name_72 (year INTEGER, category VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_72 WHERE category = "best performance by a leading actress in a musical" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Award Ceremony has a Result of nominated, and a Category of best revival of a musical? ### Context: CREATE TABLE table_name_75 (award_ceremony VARCHAR, result VARCHAR, category VARCHAR) [/INST] ### Response: SELECT award_ceremony FROM table_name_75 WHERE result = "nominated" AND category = "best revival of a musical" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 analogue terrestrial channel when the internet shows channel4.com? ### Context: CREATE TABLE table_name_95 (analogue_terrestrial_channel VARCHAR, internet VARCHAR) [/INST] ### Response: SELECT analogue_terrestrial_channel FROM table_name_95 WHERE internet = "channel4.com" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the position when the channel shows channel 4? ### Context: CREATE TABLE table_name_42 (position VARCHAR, channel VARCHAR) [/INST] ### Response: SELECT position FROM table_name_42 WHERE channel = "channel 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 channel when the analogue terrestrial channel shows n/a, and the internet is itv.com, with a position larger than 6, and digital terrestrial channel is 6 27 (+1)? ### Context: CREATE TABLE table_name_10 (channel VARCHAR, digital_terrestrial_channel VARCHAR, position VARCHAR, analogue_terrestrial_channel VARCHAR, internet VARCHAR) [/INST] ### Response: SELECT channel FROM table_name_10 WHERE analogue_terrestrial_channel = "n/a" AND internet = "itv.com" AND position > 6 AND digital_terrestrial_channel = "6 27 (+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 internet when the position is more than 13? ### Context: CREATE TABLE table_name_12 (internet VARCHAR, position INTEGER) [/INST] ### Response: SELECT internet FROM table_name_12 WHERE position > 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What are the Notes when the Method is decision? ### Context: CREATE TABLE table_name_74 (notes VARCHAR, method VARCHAR) [/INST] ### Response: SELECT notes FROM table_name_74 WHERE method = "decision" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the 2012 ibjjf world jiu-jitsu championships event when the method was points (4 x 0)? ### Context: CREATE TABLE table_name_95 (result VARCHAR, event VARCHAR, method VARCHAR) [/INST] ### Response: SELECT result FROM table_name_95 WHERE event = "2012 ibjjf world jiu-jitsu championships" AND method = "points (4 x 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: Who was the opponent when the method was points (4 x 0)? ### Context: CREATE TABLE table_name_55 (opponent VARCHAR, method VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_55 WHERE method = "points (4 x 0)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result against opponent Amanda Lucas? ### Context: CREATE TABLE table_name_36 (result VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT result FROM table_name_36 WHERE opponent = "amanda lucas" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 event has notes of women +60kg quarterfinal? ### Context: CREATE TABLE table_name_43 (event VARCHAR, notes VARCHAR) [/INST] ### Response: SELECT event FROM table_name_43 WHERE notes = "women +60kg quarterfinal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: On what date was the attendance more than 17,652? ### Context: CREATE TABLE table_name_15 (date VARCHAR, attendance INTEGER) [/INST] ### Response: SELECT date FROM table_name_15 WHERE attendance > 17 OFFSET 652 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 January 18? ### Context: CREATE TABLE table_name_41 (record VARCHAR, date VARCHAR) [/INST] ### Response: SELECT record FROM table_name_41 WHERE date = "january 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 was the lowest draw when the against was larger than 2638? ### Context: CREATE TABLE table_name_50 (draws INTEGER, against INTEGER) [/INST] ### Response: SELECT MIN(draws) FROM table_name_50 WHERE against > 2638 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 against when the draw was at least 0? ### Context: CREATE TABLE table_name_16 (against INTEGER, draws INTEGER) [/INST] ### Response: SELECT MIN(against) FROM table_name_16 WHERE draws > 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 were the highest losses for a byes larger than 2? ### Context: CREATE TABLE table_name_99 (losses INTEGER, byes INTEGER) [/INST] ### Response: SELECT MAX(losses) FROM table_name_99 WHERE byes > 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 did the Belenenses club occupy in 1960/61? ### Context: CREATE TABLE table_name_2 (position_in_1960_1961 VARCHAR, clubs VARCHAR) [/INST] ### Response: SELECT position_in_1960_1961 FROM table_name_2 WHERE clubs = "belenenses" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 club has played for 27 seasons at this level? ### Context: CREATE TABLE table_name_10 (clubs VARCHAR, seasons_at_this_level VARCHAR) [/INST] ### Response: SELECT clubs FROM table_name_10 WHERE seasons_at_this_level = "27 seasons" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 NFL team for Toledo? ### Context: CREATE TABLE table_name_23 (nfl_team VARCHAR, college VARCHAR) [/INST] ### Response: SELECT nfl_team FROM table_name_23 WHERE college = "toledo" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Northern Colorado's Rnd.? ### Context: CREATE TABLE table_name_18 (rnd VARCHAR, college VARCHAR) [/INST] ### Response: SELECT rnd FROM table_name_18 WHERE college = "northern colorado" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest value for Draws, when South West DFL is "Tyrendarra", and when Byes is greater than 0? ### Context: CREATE TABLE table_name_68 (draws INTEGER, south_west_dfl VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT MIN(draws) FROM table_name_68 WHERE south_west_dfl = "tyrendarra" AND byes > 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 sum of Against, when Wins is greater than 8, and when Losses is greater than 6? ### Context: CREATE TABLE table_name_19 (against INTEGER, wins VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT SUM(against) FROM table_name_19 WHERE wins > 8 AND losses > 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 total number of Byes, when South West DFL is "Coleraine", and when Wins is less than 12? ### Context: CREATE TABLE table_name_80 (byes VARCHAR, south_west_dfl VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT COUNT(byes) FROM table_name_80 WHERE south_west_dfl = "coleraine" AND wins < 12 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average value for Wins, when South West DFL is "Coleraine", and when Byes is greater than 0? ### Context: CREATE TABLE table_name_73 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT AVG(wins) FROM table_name_73 WHERE south_west_dfl = "coleraine" AND byes > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest value for Wins, when South West DFL is "Cavendish", and when Byes is less than 0? ### Context: CREATE TABLE table_name_58 (wins INTEGER, south_west_dfl VARCHAR, byes VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_58 WHERE south_west_dfl = "cavendish" AND byes < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the total number of Wins, when Losses is less than 10, when Against is less than 1253, and when Byes is less than 0? ### Context: CREATE TABLE table_name_42 (wins VARCHAR, byes VARCHAR, losses VARCHAR, against VARCHAR) [/INST] ### Response: SELECT COUNT(wins) FROM table_name_42 WHERE losses < 10 AND against < 1253 AND byes < 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 score has a year later than 1974, with hawthorn as the champion? ### Context: CREATE TABLE table_name_31 (score VARCHAR, year VARCHAR, champion VARCHAR) [/INST] ### Response: SELECT score FROM table_name_31 WHERE year > 1974 AND champion = "hawthorn" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What champion has north melbourne as the runner-up? ### Context: CREATE TABLE table_name_92 (champion VARCHAR, runner_up VARCHAR) [/INST] ### Response: SELECT champion FROM table_name_92 WHERE runner_up = "north melbourne" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Egypt in 2013? ### Context: CREATE TABLE table_name_81 (location VARCHAR, year VARCHAR, country VARCHAR) [/INST] ### Response: SELECT location FROM table_name_81 WHERE year = "2013" AND country = "egypt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for Yemen in 1994? ### Context: CREATE TABLE table_name_1 (location VARCHAR, year VARCHAR, country VARCHAR) [/INST] ### Response: SELECT location FROM table_name_1 WHERE year = "1994" AND country = "yemen" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What year is the location Ta'izz? ### Context: CREATE TABLE table_name_61 (year VARCHAR, location VARCHAR) [/INST] ### Response: SELECT year FROM table_name_61 WHERE location = "ta'izz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is in the Belgian Congo Tanganyika? ### Context: CREATE TABLE table_name_49 (location VARCHAR, country VARCHAR) [/INST] ### Response: SELECT location FROM table_name_49 WHERE country = "belgian congo tanganyika" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 perpetrator in Bait Al-Aqari? ### Context: CREATE TABLE table_name_64 (perpetrator VARCHAR, location VARCHAR) [/INST] ### Response: SELECT perpetrator FROM table_name_64 WHERE location = "bait al-aqari" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 perpetrator in Uganda who killed 12 in Kampala? ### Context: CREATE TABLE table_name_54 (perpetrator VARCHAR, killed VARCHAR, country VARCHAR, location VARCHAR) [/INST] ### Response: SELECT perpetrator FROM table_name_54 WHERE country = "uganda" AND location = "kampala" AND killed = "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: Who was the home team when grimsby town was the away team? ### Context: CREATE TABLE table_name_91 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_91 WHERE away_team = "grimsby town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals for Kenton have a transfer window of Summer? ### Context: CREATE TABLE table_name_36 (goals VARCHAR, transfer_window VARCHAR, name VARCHAR) [/INST] ### Response: SELECT COUNT(goals) FROM table_name_36 WHERE transfer_window = "summer" AND name = "kenton" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 branding for callsign DWFM? ### Context: CREATE TABLE table_name_53 (branding VARCHAR, callsign VARCHAR) [/INST] ### Response: SELECT branding FROM table_name_53 WHERE callsign = "dwfm" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where the power is 25kw? ### Context: CREATE TABLE table_name_10 (frequency VARCHAR, power__kw_ VARCHAR) [/INST] ### Response: SELECT frequency FROM table_name_10 WHERE power__kw_ = "25kw" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 power at Baguio where the frequency is 102.3mhz? ### Context: CREATE TABLE table_name_59 (power__kw_ VARCHAR, frequency VARCHAR, location VARCHAR) [/INST] ### Response: SELECT power__kw_ FROM table_name_59 WHERE frequency = "102.3mhz" AND location = "baguio" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 where the frequency is 92.3mhz? ### Context: CREATE TABLE table_name_76 (location VARCHAR, frequency VARCHAR) [/INST] ### Response: SELECT location FROM table_name_76 WHERE frequency = "92.3mhz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 brand where the location is Cagayan De Oro? ### Context: CREATE TABLE table_name_54 (branding VARCHAR, location VARCHAR) [/INST] ### Response: SELECT branding FROM table_name_54 WHERE location = "cagayan de oro" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Established has a League of ontario australian football league? ### Context: CREATE TABLE table_name_62 (established VARCHAR, league VARCHAR) [/INST] ### Response: SELECT established FROM table_name_62 WHERE league = "ontario australian football league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Championships have a League of ontario australian football league? ### Context: CREATE TABLE table_name_70 (championships VARCHAR, league VARCHAR) [/INST] ### Response: SELECT championships FROM table_name_70 WHERE league = "ontario australian football league" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Established has a Club of guelph rangers? ### Context: CREATE TABLE table_name_61 (established VARCHAR, club VARCHAR) [/INST] ### Response: SELECT established FROM table_name_61 WHERE club = "guelph rangers" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 with colin berry as the spokesperson and ray moore as the radio commentator? ### Context: CREATE TABLE table_name_64 (year_s_ INTEGER, spokesperson VARCHAR, radio_commentator VARCHAR) [/INST] ### Response: SELECT MIN(year_s_) FROM table_name_64 WHERE spokesperson = "colin berry" AND radio_commentator = "ray moore" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 spokesperson after 2012? ### Context: CREATE TABLE table_name_33 (spokesperson VARCHAR, year_s_ INTEGER) [/INST] ### Response: SELECT spokesperson FROM table_name_33 WHERE year_s_ > 2012 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Who is the semi-final second television commentator with graham norton as the final television commentator and scott mills as the spokesperson before 2013? ### Context: CREATE TABLE table_name_51 (semi_final_second_television_commentator VARCHAR, year_s_ VARCHAR, final_television_commentator VARCHAR, spokesperson VARCHAR) [/INST] ### Response: SELECT semi_final_second_television_commentator FROM table_name_51 WHERE final_television_commentator = "graham norton" AND spokesperson = "scott mills" AND year_s_ < 2013 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of Wind has an Athlete of kerron stewart? ### Context: CREATE TABLE table_name_26 (wind VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT wind FROM table_name_26 WHERE athlete = "kerron stewart" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What kind of Wind has a Result of 21.69? ### Context: CREATE TABLE table_name_69 (wind VARCHAR, result VARCHAR) [/INST] ### Response: SELECT wind FROM table_name_69 WHERE result = "21.69" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Show the Result of inger miller? ### Context: CREATE TABLE table_name_75 (result VARCHAR, athlete VARCHAR) [/INST] ### Response: SELECT result FROM table_name_75 WHERE athlete = "inger miller" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 byes for the team with more than 14 losses and more than 0 wins? ### Context: CREATE TABLE table_name_92 (byes INTEGER, losses VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT AVG(byes) FROM table_name_92 WHERE losses > 14 AND wins > 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 wins for the Caramut team with fewer than 11 losses and fewer than 2 byes? ### Context: CREATE TABLE table_name_48 (wins INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR) [/INST] ### Response: SELECT MAX(wins) FROM table_name_48 WHERE losses < 11 AND mininera_dfl = "caramut" AND byes < 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 wins for the team with more than 1282 against and fewer than 14 losses? ### Context: CREATE TABLE table_name_59 (wins INTEGER, against VARCHAR, losses VARCHAR) [/INST] ### Response: SELECT MIN(wins) FROM table_name_59 WHERE against > 1282 AND losses < 14 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many wins for the team with fewer than 2 byes? ### Context: CREATE TABLE table_name_1 (wins INTEGER, byes INTEGER) [/INST] ### Response: SELECT AVG(wins) FROM table_name_1 WHERE byes < 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 against for the Moyston-Willaura team with 4 losses and fewer than 2 byes? ### Context: CREATE TABLE table_name_15 (against INTEGER, byes VARCHAR, losses VARCHAR, mininera_dfl VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_15 WHERE losses = 4 AND mininera_dfl = "moyston-willaura" AND byes < 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: Who is the player of the match at canberra stadium? ### Context: CREATE TABLE table_name_89 (player VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT player FROM table_name_89 WHERE venue = "canberra 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 is the average number of tries of player israel folau? ### Context: CREATE TABLE table_name_25 (tries INTEGER, player VARCHAR) [/INST] ### Response: SELECT AVG(tries) FROM table_name_25 WHERE player = "israel folau" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What round is player phil graham in? ### Context: CREATE TABLE table_name_8 (round VARCHAR, player VARCHAR) [/INST] ### Response: SELECT round FROM table_name_8 WHERE player = "phil graham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponent of the match at cua stadium? ### Context: CREATE TABLE table_name_7 (opponent VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_7 WHERE venue = "cua 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: Who is the opponent of player phil graham? ### Context: CREATE TABLE table_name_72 (opponent VARCHAR, player VARCHAR) [/INST] ### Response: SELECT opponent FROM table_name_72 WHERE player = "phil graham" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Can you tell me the Money (£) that has the Country of england, and the Player of malcolm mackenzie? ### Context: CREATE TABLE table_name_59 (money___£__ VARCHAR, country VARCHAR, player VARCHAR) [/INST] ### Response: SELECT money___£__ FROM table_name_59 WHERE country = "england" AND player = "malcolm mackenzie" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Nominee of stephen sondheim, and a Category of the best original score? ### Context: CREATE TABLE table_name_90 (year VARCHAR, nominee VARCHAR, category VARCHAR) [/INST] ### Response: SELECT year FROM table_name_90 WHERE nominee = "stephen sondheim" AND category = "best original score" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Result has a Category of the best costume design? ### Context: CREATE TABLE table_name_3 (result VARCHAR, category VARCHAR) [/INST] ### Response: SELECT result FROM table_name_3 WHERE category = "best costume design" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Nominee has an Award Ceremony of tony award, and a Category of the best performance by a leading actor in a musical? ### Context: CREATE TABLE table_name_73 (nominee VARCHAR, award_ceremony VARCHAR, category VARCHAR) [/INST] ### Response: SELECT nominee FROM table_name_73 WHERE award_ceremony = "tony award" AND category = "best performance by a leading actor in a musical" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there are more than 126 errors, more than 551 kills, and more than 40 assists for the 2007 season, what is the total of Solo Blocks? ### Context: CREATE TABLE table_name_24 (solo_blocks INTEGER, assists VARCHAR, season VARCHAR, errors VARCHAR, kills VARCHAR) [/INST] ### Response: SELECT SUM(solo_blocks) FROM table_name_24 WHERE errors > 126 AND kills > 551 AND season = "2007" AND assists > 40 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there is less than 13 services aces with a percentage greater than 0.34900000000000003, what is the smallest total attempts? ### Context: CREATE TABLE table_name_47 (total_attempts INTEGER, percentage VARCHAR, service_aces VARCHAR) [/INST] ### Response: SELECT MIN(total_attempts) FROM table_name_47 WHERE percentage > 0.34900000000000003 AND service_aces < 13 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: When the percentage is 0.34900000000000003 with more than 13 solo blocks and less than 4713 total attempts, what is the greatest assists? ### Context: CREATE TABLE table_name_63 (assists INTEGER, total_attempts VARCHAR, percentage VARCHAR, solo_blocks VARCHAR) [/INST] ### Response: SELECT MAX(assists) FROM table_name_63 WHERE percentage < 0.34900000000000003 AND solo_blocks > 13 AND total_attempts < 4713 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 assists is more than 32 and total blocks is more than 88, what is the total of block assists? ### Context: CREATE TABLE table_name_12 (Block INTEGER, assists VARCHAR, total_blocks VARCHAR) [/INST] ### Response: SELECT SUM(Block) AS assists FROM table_name_12 WHERE assists > 32 AND total_blocks > 88 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Against, when Losses is less than 52, when Matches is greater than 4, and when Draw is less than 2? ### Context: CREATE TABLE table_name_66 (against VARCHAR, draw VARCHAR, losses VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT COUNT(against) FROM table_name_66 WHERE losses < 52 AND matches > 4 AND draw < 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 number of Against, when Draw is greater than 48? ### Context: CREATE TABLE table_name_12 (against VARCHAR, draw INTEGER) [/INST] ### Response: SELECT COUNT(against) FROM table_name_12 WHERE draw > 48 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest Losses, when Wins is "1", and when Matches is less than 2? ### Context: CREATE TABLE table_name_21 (losses INTEGER, wins VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT MAX(losses) FROM table_name_21 WHERE wins = 1 AND matches < 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 highest Against, when Wins is greater than 2, and when Matches is less than 17? ### Context: CREATE TABLE table_name_47 (against INTEGER, wins VARCHAR, matches VARCHAR) [/INST] ### Response: SELECT MAX(against) FROM table_name_47 WHERE wins > 2 AND matches < 17 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the lowest Matches, when Against is less than 7, and when Wins is greater than 1? ### Context: CREATE TABLE table_name_74 (matches INTEGER, against VARCHAR, wins VARCHAR) [/INST] ### Response: SELECT MIN(matches) FROM table_name_74 WHERE against < 7 AND wins > 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 position did tomasz kiełbowicz play? ### Context: CREATE TABLE table_name_35 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_35 WHERE player = "tomasz kiełbowicz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 # of Episodes has a Mole of craig slike? ### Context: CREATE TABLE table_name_55 (_number_of_episodes INTEGER, mole VARCHAR) [/INST] ### Response: SELECT MIN(_number_of_episodes) FROM table_name_55 WHERE mole = "craig slike" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 host has more than 11 episodes? ### Context: CREATE TABLE table_name_95 (host VARCHAR, _number_of_episodes INTEGER) [/INST] ### Response: SELECT host FROM table_name_95 WHERE _number_of_episodes > 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: Which Season has a Mole of frederique van der wal? ### Context: CREATE TABLE table_name_77 (season INTEGER, mole VARCHAR) [/INST] ### Response: SELECT MAX(season) FROM table_name_77 WHERE mole = "frederique van der wal" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Res., when Time is "1:09"? ### Context: CREATE TABLE table_name_51 (res VARCHAR, time VARCHAR) [/INST] ### Response: SELECT res FROM table_name_51 WHERE time = "1:09" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Res., when Round is greater than 2, and when Event is "Midwest Cage Championships 25: Inferno"? ### Context: CREATE TABLE table_name_92 (res VARCHAR, round VARCHAR, event VARCHAR) [/INST] ### Response: SELECT res FROM table_name_92 WHERE round > 2 AND event = "midwest cage championships 25: inferno" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Time, when Round is "3", when Method is "Decision (unanimous)", and when Record is "7-3"? ### Context: CREATE TABLE table_name_45 (time VARCHAR, record VARCHAR, round VARCHAR, method VARCHAR) [/INST] ### Response: SELECT time FROM table_name_45 WHERE round = 3 AND method = "decision (unanimous)" AND record = "7-3" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is Record, when Location is "Des Moines, Iowa , United States", and when Method is "Submission (arm-triangle choke)"? ### Context: CREATE TABLE table_name_31 (record VARCHAR, location VARCHAR, method VARCHAR) [/INST] ### Response: SELECT record FROM table_name_31 WHERE location = "des moines, iowa , united states" AND method = "submission (arm-triangle choke)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 213 attending? ### Context: CREATE TABLE table_name_3 (score VARCHAR, attendance VARCHAR) [/INST] ### Response: SELECT score FROM table_name_3 WHERE attendance = "213" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 away team for the game in Slough Town? ### Context: CREATE TABLE table_name_75 (away_team VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT away_team FROM table_name_75 WHERE home_team = "slough town" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team that played against Armthorpe Welfare? ### Context: CREATE TABLE table_name_51 (home_team VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT home_team FROM table_name_51 WHERE away_team = "armthorpe welfare" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Tie no for the game with the away team Whyteleafe? ### Context: CREATE TABLE table_name_99 (tie_no VARCHAR, away_team VARCHAR) [/INST] ### Response: SELECT tie_no FROM table_name_99 WHERE away_team = "whyteleafe" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 home team Maine Road's score? ### Context: CREATE TABLE table_name_46 (score VARCHAR, home_team VARCHAR) [/INST] ### Response: SELECT score FROM table_name_46 WHERE home_team = "maine road" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 US Open that had a partnering of Maikel Scheffers? ### Context: CREATE TABLE table_name_56 (year INTEGER, partnering VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT SUM(year) FROM table_name_56 WHERE partnering = "maikel scheffers" AND championship = "us open" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 championship before 2012 that had Stephane Houdet Michael Jeremiasz as opponents? ### Context: CREATE TABLE table_name_23 (championship VARCHAR, year VARCHAR, opponents_in_final VARCHAR) [/INST] ### Response: SELECT championship FROM table_name_23 WHERE year < 2012 AND opponents_in_final = "stephane houdet michael jeremiasz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the Shingo Kunieda Satoshi Saida were the opponents? ### Context: CREATE TABLE table_name_84 (score_in_final VARCHAR, opponents_in_final VARCHAR) [/INST] ### Response: SELECT score_in_final FROM table_name_84 WHERE opponents_in_final = "shingo kunieda satoshi saida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 were the opponents Shingo Kunieda Satoshi Saida? ### Context: CREATE TABLE table_name_22 (year INTEGER, opponents_in_final VARCHAR) [/INST] ### Response: SELECT MIN(year) FROM table_name_22 WHERE opponents_in_final = "shingo kunieda satoshi saida" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 place is the golfer with a score of 68-69-73-70=280? ### Context: CREATE TABLE table_name_24 (place VARCHAR, score VARCHAR) [/INST] ### Response: SELECT place FROM table_name_24 WHERE score = 68 - 69 - 73 - 70 = 280 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 golfer with winnings of 40,850 and a score of 72-74-70-70=286? ### Context: CREATE TABLE table_name_52 (to_par VARCHAR, money___£__ VARCHAR, score VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_52 WHERE money___£__ = "40,850" AND score = 72 - 74 - 70 - 70 = 286 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the player with winnings of 49,500? ### Context: CREATE TABLE table_name_74 (to_par VARCHAR, money___£__ VARCHAR) [/INST] ### Response: SELECT to_par FROM table_name_74 WHERE money___£__ = "49,500" </s>