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: How many Wins have a Top 5 smaller than 0? ### Context: CREATE TABLE table_name_57 (wins INTEGER, top_5 INTEGER) [/INST] ### Response: SELECT SUM(wins) FROM table_name_57 WHERE top_5 < 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Top 10 has a Top 5 larger than 1, and a Year of 2003, and Poles larger than 0? ### Context: CREATE TABLE table_name_15 (top_10 INTEGER, poles VARCHAR, top_5 VARCHAR, year VARCHAR) [/INST] ### Response: SELECT AVG(top_10) FROM table_name_15 WHERE top_5 > 1 AND year = 2003 AND poles > 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 Top 10s have Wins larger than 0, and Poles larger than 0? ### Context: CREATE TABLE table_name_35 (top_10 VARCHAR, wins VARCHAR, poles VARCHAR) [/INST] ### Response: SELECT COUNT(top_10) FROM table_name_35 WHERE wins > 0 AND poles > 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 Established date of the Ontario Provincial Junior A Hockey League with more than 1 Championship? ### Context: CREATE TABLE table_name_58 (established VARCHAR, league VARCHAR, championships VARCHAR) [/INST] ### Response: SELECT COUNT(established) FROM table_name_58 WHERE league = "ontario provincial junior a hockey" AND championships > 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 Venue has more than 1 Championship and was Established after 1957? ### Context: CREATE TABLE table_name_4 (venue VARCHAR, championships VARCHAR, established VARCHAR) [/INST] ### Response: SELECT venue FROM table_name_4 WHERE championships = 1 AND established > 1957 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: With less than 1 Championship, what es the Established date of the Niagara Rugby Union League? ### Context: CREATE TABLE table_name_40 (established INTEGER, championships VARCHAR, league VARCHAR) [/INST] ### Response: SELECT SUM(established) FROM table_name_40 WHERE championships < 1 AND league = "niagara rugby union" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Established date of the Brian Timmis Stadium? ### Context: CREATE TABLE table_name_57 (established VARCHAR, venue VARCHAR) [/INST] ### Response: SELECT COUNT(established) FROM table_name_57 WHERE venue = "brian timmis 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 junior type with an intake of 60 and a DCSF number less than 3386 with the smallest Ofsted number? ### Context: CREATE TABLE table_name_62 (ofsted_number INTEGER, dcsf_number VARCHAR, intake VARCHAR, type VARCHAR) [/INST] ### Response: SELECT MIN(ofsted_number) FROM table_name_62 WHERE intake = 60 AND type = "junior" AND dcsf_number < 3386 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Game smaller than 19, and Points smaller than 19, and a Score of 4–6? ### Context: CREATE TABLE table_name_24 (record VARCHAR, score VARCHAR, game VARCHAR, points VARCHAR) [/INST] ### Response: SELECT record FROM table_name_24 WHERE game < 19 AND points < 19 AND score = "4–6" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many games have a Record of 7–6–3, and Points smaller than 17? ### Context: CREATE TABLE table_name_74 (game VARCHAR, record VARCHAR, points VARCHAR) [/INST] ### Response: SELECT COUNT(game) FROM table_name_74 WHERE record = "7–6–3" AND points < 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: Which Points have an Opponent of vancouver canucks, and a November smaller than 11? ### Context: CREATE TABLE table_name_42 (points INTEGER, opponent VARCHAR, november VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_42 WHERE opponent = "vancouver canucks" AND november < 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 Record is on March of 12 ### Context: CREATE TABLE table_name_53 (record VARCHAR, march VARCHAR) [/INST] ### Response: SELECT record FROM table_name_53 WHERE march = 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 number of March that has 25-10-9 record and a Game more than 44? ### Context: CREATE TABLE table_name_94 (march VARCHAR, record VARCHAR, game VARCHAR) [/INST] ### Response: SELECT COUNT(march) FROM table_name_94 WHERE record = "25-10-9" AND game > 44 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Record of 27-11-10? ### Context: CREATE TABLE table_name_19 (game INTEGER, record VARCHAR) [/INST] ### Response: SELECT AVG(game) FROM table_name_19 WHERE record = "27-11-10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Speed when Construction begun in 2010, and an Expected start of revenue services of 2015? ### Context: CREATE TABLE table_name_3 (speed VARCHAR, construction_begun VARCHAR, expected_start_of_revenue_services VARCHAR) [/INST] ### Response: SELECT speed FROM table_name_3 WHERE construction_begun = "2010" AND expected_start_of_revenue_services = 2015 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 length when the expected start of revenue is more than 2017? ### Context: CREATE TABLE table_name_62 (length VARCHAR, expected_start_of_revenue_services INTEGER) [/INST] ### Response: SELECT length FROM table_name_62 WHERE expected_start_of_revenue_services > 2017 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 undecided with Roy Barnes at 47%? ### Context: CREATE TABLE table_name_22 (undecided VARCHAR, roy_barnes VARCHAR) [/INST] ### Response: SELECT undecided FROM table_name_22 WHERE roy_barnes = "47%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 DuBose Porter with Roy Barnes at 54%? ### Context: CREATE TABLE table_name_16 (dubose_porter VARCHAR, roy_barnes VARCHAR) [/INST] ### Response: SELECT dubose_porter FROM table_name_16 WHERE roy_barnes = "54%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What series episode has deli meats under segment B? ### Context: CREATE TABLE table_name_98 (series_ep VARCHAR, segment_b VARCHAR) [/INST] ### Response: SELECT series_ep FROM table_name_98 WHERE segment_b = "deli meats" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 After 1 year has an After 3 years of 80%? ### Context: CREATE TABLE table_name_40 (after_1_year VARCHAR, after_3_years VARCHAR) [/INST] ### Response: SELECT after_1_year FROM table_name_40 WHERE after_3_years = "80%" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 does Alexei Lazarenko have? ### Context: CREATE TABLE table_name_62 (position VARCHAR, player VARCHAR) [/INST] ### Response: SELECT position FROM table_name_62 WHERE player = "alexei lazarenko" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What college did Jamie Butt go to? ### Context: CREATE TABLE table_name_78 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_78 WHERE player = "jamie butt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What school did Alexander Korobolin go to? ### Context: CREATE TABLE table_name_27 (college_junior_club_team__league_ VARCHAR, player VARCHAR) [/INST] ### Response: SELECT college_junior_club_team__league_ FROM table_name_27 WHERE player = "alexander korobolin" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a round less than 9 and a position of G? ### Context: CREATE TABLE table_name_65 (player VARCHAR, position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT player FROM table_name_65 WHERE position = "g" AND round < 9 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the sum of cuts with wins less than 2, top-25 more than 7 and top-10 less than 2 ### Context: CREATE TABLE table_name_80 (cuts_made INTEGER, top_10 VARCHAR, wins VARCHAR, top_25 VARCHAR) [/INST] ### Response: SELECT SUM(cuts_made) FROM table_name_80 WHERE wins < 2 AND top_25 > 7 AND top_10 < 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 was the score that led to an 11-16 record? ### Context: CREATE TABLE table_name_77 (score VARCHAR, record VARCHAR) [/INST] ### Response: SELECT score FROM table_name_77 WHERE record = "11-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: Who took the loss on May 20? ### Context: CREATE TABLE table_name_52 (loss VARCHAR, date VARCHAR) [/INST] ### Response: SELECT loss FROM table_name_52 WHERE date = "may 20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 game that lasted 3:55? ### Context: CREATE TABLE table_name_1 (att VARCHAR, time VARCHAR) [/INST] ### Response: SELECT att FROM table_name_1 WHERE time = "3:55" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 the game in which Holt (4-4) took the loss? ### Context: CREATE TABLE table_name_36 (date VARCHAR, loss VARCHAR) [/INST] ### Response: SELECT date FROM table_name_36 WHERE loss = "holt (4-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 was the date when the pitcher was Jason Marquis and the length was 410'? ### Context: CREATE TABLE table_name_69 (date VARCHAR, pitcher VARCHAR, length VARCHAR) [/INST] ### Response: SELECT date FROM table_name_69 WHERE pitcher = "jason marquis" AND length = "410'" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What number home run was in the 8th inning and went 410'? ### Context: CREATE TABLE table_name_3 (number VARCHAR, inning VARCHAR, length VARCHAR) [/INST] ### Response: SELECT number FROM table_name_3 WHERE inning = "8th" AND length = "410'" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Max 1-min wind mph (km/h) that has Dates active on september22– september28? ### Context: CREATE TABLE table_name_26 (max_1_min_wind_mph__km_h_ VARCHAR, dates_active VARCHAR) [/INST] ### Response: SELECT max_1_min_wind_mph__km_h_ FROM table_name_26 WHERE dates_active = "september22– september28" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Min press has none Death and seven Storm names? ### Context: CREATE TABLE table_name_68 (min_press___mbar__ VARCHAR, deaths VARCHAR, storm_name VARCHAR) [/INST] ### Response: SELECT min_press___mbar__ FROM table_name_68 WHERE deaths = "none" AND storm_name = "seven" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cost of 972 Min Press caused 52 death? ### Context: CREATE TABLE table_name_36 (damage__millions_usd__ VARCHAR, min_press___mbar__ VARCHAR, deaths VARCHAR) [/INST] ### Response: SELECT damage__millions_usd__ FROM table_name_36 WHERE min_press___mbar__ = "972" AND deaths = "52" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 active Date that has a 65 (100) Max 1-min wind? ### Context: CREATE TABLE table_name_28 (dates_active VARCHAR, max_1_min_wind_mph__km_h_ VARCHAR) [/INST] ### Response: SELECT dates_active FROM table_name_28 WHERE max_1_min_wind_mph__km_h_ = "65 (100)" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Class AA in the 2010-11 school year with a class AAA of Giddings? ### Context: CREATE TABLE table_name_7 (class_aA VARCHAR, class_aAA VARCHAR, giddings VARCHAR, school_year VARCHAR) [/INST] ### Response: SELECT class_aA FROM table_name_7 WHERE class_aAA = giddings AND school_year = "2010-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 is the Class AA of the school year 2009-10 with a class AAA of Giddings? ### Context: CREATE TABLE table_name_95 (class_aA VARCHAR, class_aAA VARCHAR, giddings VARCHAR, school_year VARCHAR) [/INST] ### Response: SELECT class_aA FROM table_name_95 WHERE class_aAA = giddings AND school_year = "2009-10" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the class AAA of the 1993-94 school year with a class AAAAA of Duncanville? ### Context: CREATE TABLE table_name_58 (class_aAA VARCHAR, class_aAAAA VARCHAR, duncanville VARCHAR, school_year VARCHAR) [/INST] ### Response: SELECT class_aAA FROM table_name_58 WHERE class_aAAAA = duncanville AND school_year = "1993-94" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visiting team on May 7? ### Context: CREATE TABLE table_name_55 (visitor VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_55 WHERE date = "may 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: Who had a Qualifying 2 time over 58.669 for Team Australia? ### Context: CREATE TABLE table_name_68 (name VARCHAR, qual_2 VARCHAR, team VARCHAR) [/INST] ### Response: SELECT name FROM table_name_68 WHERE qual_2 > 58.669 AND team = "team australia" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 qualifying 1 time has a best under 58.669 and a qualifying 2 time under 57.897? ### Context: CREATE TABLE table_name_50 (qual_1 VARCHAR, best VARCHAR, qual_2 VARCHAR) [/INST] ### Response: SELECT qual_1 FROM table_name_50 WHERE best < 58.669 AND qual_2 < 57.897 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which team has a qualifying 2 time under 59.612 and a best of 59.14? ### Context: CREATE TABLE table_name_58 (team VARCHAR, qual_2 VARCHAR, best VARCHAR) [/INST] ### Response: SELECT team FROM table_name_58 WHERE qual_2 < 59.612 AND best = 59.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: Which Lungchang has a Halang of ʒɯ², and a Rera of ʒo²? ### Context: CREATE TABLE table_name_85 (lungchang VARCHAR, halang VARCHAR, rera VARCHAR) [/INST] ### Response: SELECT lungchang FROM table_name_85 WHERE halang = "ʒɯ²" AND rera = "ʒo²" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tikhak has a Yonguk of wu¹ti¹? ### Context: CREATE TABLE table_name_77 (tikhak VARCHAR, yonguk VARCHAR) [/INST] ### Response: SELECT tikhak FROM table_name_77 WHERE yonguk = "wu¹ti¹" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Yonguk has a Halang of ran¹? ### Context: CREATE TABLE table_name_35 (yonguk VARCHAR, halang VARCHAR) [/INST] ### Response: SELECT yonguk FROM table_name_35 WHERE halang = "ran¹" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Halang has a Rera of ʒo²? ### Context: CREATE TABLE table_name_6 (halang VARCHAR, rera VARCHAR) [/INST] ### Response: SELECT halang FROM table_name_6 WHERE rera = "ʒo²" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Muklom has a Halang of wɯ¹cʰi¹? ### Context: CREATE TABLE table_name_23 (muklom VARCHAR, halang VARCHAR) [/INST] ### Response: SELECT muklom FROM table_name_23 WHERE halang = "wɯ¹cʰi¹" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Hakhun has a Tikhak of ʒu²? ### Context: CREATE TABLE table_name_11 (hakhun VARCHAR, tikhak VARCHAR) [/INST] ### Response: SELECT hakhun FROM table_name_11 WHERE tikhak = "ʒu²" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the location of Tamagaki station with an l stop? ### Context: CREATE TABLE table_name_14 (location VARCHAR, stop VARCHAR, station VARCHAR) [/INST] ### Response: SELECT location FROM table_name_14 WHERE stop = "l" AND station = "tamagaki" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 station with a number greater than 9 and a distance of 16.4 km? ### Context: CREATE TABLE table_name_10 (station VARCHAR, number VARCHAR, distance__km_ VARCHAR) [/INST] ### Response: SELECT station FROM table_name_10 WHERE number > 9 AND distance__km_ = 16.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 Japanese name of the station with a number 3? ### Context: CREATE TABLE table_name_98 (japanese VARCHAR, number VARCHAR) [/INST] ### Response: SELECT japanese FROM table_name_98 WHERE number = 3 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the distance of Kawage station? ### Context: CREATE TABLE table_name_19 (distance__km_ INTEGER, station VARCHAR) [/INST] ### Response: SELECT SUM(distance__km_) FROM table_name_19 WHERE station = "kawage" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 station has a number less than 5 and an l stop? ### Context: CREATE TABLE table_name_43 (station VARCHAR, number VARCHAR, stop VARCHAR) [/INST] ### Response: SELECT station FROM table_name_43 WHERE number < 5 AND stop = "l" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Name the visitor for detroit on february 24 ### Context: CREATE TABLE table_name_55 (visitor VARCHAR, home VARCHAR, date VARCHAR) [/INST] ### Response: SELECT visitor FROM table_name_55 WHERE home = "detroit" AND date = "february 24" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the highest listed year for the partner of Marcel Granollers and a hard surface? ### Context: CREATE TABLE table_name_28 (year INTEGER, partner VARCHAR, surface VARCHAR) [/INST] ### Response: SELECT MAX(year) FROM table_name_28 WHERE partner = "marcel granollers" AND surface = "hard" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed surface for the Championship of Toronto that had a runner-up outcome? ### Context: CREATE TABLE table_name_56 (surface VARCHAR, outcome VARCHAR, championship VARCHAR) [/INST] ### Response: SELECT surface FROM table_name_56 WHERE outcome = "runner-up" AND championship = "toronto" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What time was the game during week 5? ### Context: CREATE TABLE table_name_14 (time___et__ VARCHAR, week VARCHAR) [/INST] ### Response: SELECT time___et__ FROM table_name_14 WHERE week = 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 City has a Series of Tamra's oc wedding? ### Context: CREATE TABLE table_name_23 (city VARCHAR, series VARCHAR) [/INST] ### Response: SELECT city FROM table_name_23 WHERE series = "tamra's oc wedding" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points for a difference of 55 and an against less than 47? ### Context: CREATE TABLE table_name_99 (points INTEGER, difference VARCHAR, against VARCHAR) [/INST] ### Response: SELECT AVG(points) FROM table_name_99 WHERE difference = "55" AND against < 47 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lost that has an against greater than 60, points less than 61 and an 18 drawn? ### Context: CREATE TABLE table_name_9 (lost INTEGER, drawn VARCHAR, against VARCHAR, points VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_9 WHERE against > 60 AND points < 61 AND drawn > 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 is the Name of the Historic House of the 18th Century? ### Context: CREATE TABLE table_name_79 (name VARCHAR, type VARCHAR, date VARCHAR) [/INST] ### Response: SELECT name FROM table_name_79 WHERE type = "historic house" AND date = "18th century" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Type of castle from the 14th Century which Condition is preserved? ### Context: CREATE TABLE table_name_72 (type VARCHAR, date VARCHAR, condition VARCHAR) [/INST] ### Response: SELECT type FROM table_name_72 WHERE date = "14th century" AND condition = "preserved" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Name of the private Castle of the 16th century which is occupied? ### Context: CREATE TABLE table_name_26 (name VARCHAR, date VARCHAR, ownership VARCHAR, condition VARCHAR) [/INST] ### Response: SELECT name FROM table_name_26 WHERE ownership = "private" AND condition = "occupied" AND date = "16th century" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of the castle with a Historic Scotland Ownership? ### Context: CREATE TABLE table_name_38 (date VARCHAR, ownership VARCHAR) [/INST] ### Response: SELECT date FROM table_name_38 WHERE ownership = "historic scotland" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of the Fortified House? ### Context: CREATE TABLE table_name_39 (date VARCHAR, type VARCHAR) [/INST] ### Response: SELECT date FROM table_name_39 WHERE type = "fortified house" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the Date of the Courtyard Castle? ### Context: CREATE TABLE table_name_16 (date VARCHAR, type VARCHAR) [/INST] ### Response: SELECT date FROM table_name_16 WHERE type = "courtyard castle" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 lost that has 6 for points? ### Context: CREATE TABLE table_name_63 (lost INTEGER, points VARCHAR) [/INST] ### Response: SELECT MAX(lost) FROM table_name_63 WHERE points = 6 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: How many losses have points less than 3, with a drawn greater than 0? ### Context: CREATE TABLE table_name_20 (lost INTEGER, points VARCHAR, drawn VARCHAR) [/INST] ### Response: SELECT SUM(lost) FROM table_name_20 WHERE points < 3 AND drawn > 0 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Which Margin of victory has a Runner(s)-up of buddy gardner? ### Context: CREATE TABLE table_name_1 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_1 WHERE runner_s__up = "buddy gardner" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Date has a Winning score of –14 (66-64-68-68=266)? ### Context: CREATE TABLE table_name_93 (date VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT date FROM table_name_93 WHERE winning_score = –14(66 - 64 - 68 - 68 = 266) </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Tournament has a Winning score of e (72-69-71-68=280)? ### Context: CREATE TABLE table_name_15 (tournament VARCHAR, winning_score VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_15 WHERE winning_score = E(72 - 69 - 71 - 68 = 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: Which Margin of victory has a Runner(s)-up of dave barr? ### Context: CREATE TABLE table_name_1 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_1 WHERE runner_s__up = "dave barr" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Margin of victory has a Runner(s)-up of mark o'meara? ### Context: CREATE TABLE table_name_19 (margin_of_victory VARCHAR, runner_s__up VARCHAR) [/INST] ### Response: SELECT margin_of_victory FROM table_name_19 WHERE runner_s__up = "mark o'meara" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round 9 what was the nationality? ### Context: CREATE TABLE table_name_98 (nationality VARCHAR, round VARCHAR) [/INST] ### Response: SELECT nationality FROM table_name_98 WHERE round = "9" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: In round 3 what was the position? ### Context: CREATE TABLE table_name_83 (position VARCHAR, round VARCHAR) [/INST] ### Response: SELECT position FROM table_name_83 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: Who has a nationality of Czech Republic and a position of right wing? ### Context: CREATE TABLE table_name_49 (player VARCHAR, position VARCHAR, nationality VARCHAR) [/INST] ### Response: SELECT player FROM table_name_49 WHERE position = "right wing" AND nationality = "czech republic" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 winning pct from a team with wins less than 22, losses greater than 4, ties less than 2 and games started greater than 11? ### Context: CREATE TABLE table_name_92 (winning_pct INTEGER, wins VARCHAR, games_started VARCHAR, losses VARCHAR, ties VARCHAR) [/INST] ### Response: SELECT MAX(winning_pct) FROM table_name_92 WHERE losses > 4 AND ties < 2 AND games_started > 11 AND wins < 22 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: Gold that has a Rank of 6, and a Bronze larger than 0 had what total number of gold? ### Context: CREATE TABLE table_name_46 (gold VARCHAR, rank VARCHAR, bronze VARCHAR) [/INST] ### Response: SELECT COUNT(gold) FROM table_name_46 WHERE rank = "6" AND bronze > 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: Total of 5 had what bronze? ### Context: CREATE TABLE table_name_21 (bronze VARCHAR, total VARCHAR) [/INST] ### Response: SELECT bronze FROM table_name_21 WHERE total = 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: In which tournament did he place 20th? ### Context: CREATE TABLE table_name_55 (tournament VARCHAR, result VARCHAR) [/INST] ### Response: SELECT tournament FROM table_name_55 WHERE result = "20th" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What the result for the hypo-meeting tournament in 1994? ### Context: CREATE TABLE table_name_81 (result VARCHAR, year VARCHAR, tournament VARCHAR) [/INST] ### Response: SELECT result FROM table_name_81 WHERE year = 1994 AND tournament = "hypo-meeting" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What was the result in 1995? ### Context: CREATE TABLE table_name_79 (result VARCHAR, year VARCHAR) [/INST] ### Response: SELECT result FROM table_name_79 WHERE year = 1995 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: After March 19, what's the score of game 67? ### Context: CREATE TABLE table_name_75 (score VARCHAR, march VARCHAR, game VARCHAR) [/INST] ### Response: SELECT score FROM table_name_75 WHERE march > 19 AND game = 67 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 head linesman of the game on 1 February 2009? ### Context: CREATE TABLE table_name_46 (head_linesman VARCHAR, date VARCHAR) [/INST] ### Response: SELECT head_linesman FROM table_name_46 WHERE date = "1 february 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 date of the game where the line judge was Bob Beeks, the head linesman was Jerry Bergman, and Paul Baetz was the back judge? ### Context: CREATE TABLE table_name_61 (date VARCHAR, back_judge VARCHAR, line_judge VARCHAR, head_linesman VARCHAR) [/INST] ### Response: SELECT date FROM table_name_61 WHERE line_judge = "bob beeks" AND head_linesman = "jerry bergman" AND back_judge = "paul baetz" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was on 14 January 1973? ### Context: CREATE TABLE table_name_31 (game VARCHAR, date VARCHAR) [/INST] ### Response: SELECT game FROM table_name_31 WHERE date = "14 january 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: Who was the line judge at the game where Scott Green was referee? ### Context: CREATE TABLE table_name_48 (line_judge VARCHAR, referee VARCHAR) [/INST] ### Response: SELECT line_judge FROM table_name_48 WHERE referee = "scott green" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 head linesman at game xxxv? ### Context: CREATE TABLE table_name_66 (head_linesman VARCHAR, game VARCHAR) [/INST] ### Response: SELECT head_linesman FROM table_name_66 WHERE game = "xxxv" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What game had Al Jury as field judge? ### Context: CREATE TABLE table_name_8 (game VARCHAR, field_judge VARCHAR) [/INST] ### Response: SELECT game FROM table_name_8 WHERE field_judge = "al jury" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for Departure that has 1676 listed for the Kilometers? ### Context: CREATE TABLE table_name_88 (departure VARCHAR, kilometers VARCHAR) [/INST] ### Response: SELECT departure FROM table_name_88 WHERE kilometers = 1676 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kilometers that has a Station Code of KGQ? ### Context: CREATE TABLE table_name_43 (kilometers VARCHAR, station_code VARCHAR) [/INST] ### Response: SELECT COUNT(kilometers) FROM table_name_43 WHERE station_code = "kgq" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Kilometers listed that also has the Station Code of Kuda? ### Context: CREATE TABLE table_name_87 (kilometers VARCHAR, station_code VARCHAR) [/INST] ### Response: SELECT kilometers FROM table_name_87 WHERE station_code = "kuda" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for the Station Code that has the Arrival of 02:20? ### Context: CREATE TABLE table_name_40 (station_code VARCHAR, arrival VARCHAR) [/INST] ### Response: SELECT station_code FROM table_name_40 WHERE arrival = "02:20" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listede for Departure that also has a Station Code of CLT? ### Context: CREATE TABLE table_name_33 (departure VARCHAR, station_code VARCHAR) [/INST] ### Response: SELECT departure FROM table_name_33 WHERE station_code = "clt" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the smallest area with 45 population? ### Context: CREATE TABLE table_name_72 (area__km_2__ INTEGER, population__2000_ VARCHAR) [/INST] ### Response: SELECT MIN(area__km_2__) FROM table_name_72 WHERE population__2000_ = "45" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area located in Rhode Island with more than 38 sq mi area? ### Context: CREATE TABLE table_name_81 (area__km_2__ INTEGER, location VARCHAR, area__sq_mi_ VARCHAR) [/INST] ### Response: SELECT AVG(area__km_2__) FROM table_name_81 WHERE location = "rhode island" AND area__sq_mi_ > 38 </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>> ### Input: What is the average area in New York that is larger than 55 sq mi? ### Context: CREATE TABLE table_name_21 (area__km_2__ INTEGER, area__sq_mi_ VARCHAR, location VARCHAR) [/INST] ### Response: SELECT AVG(area__km_2__) FROM table_name_21 WHERE area__sq_mi_ > 55 AND location = "new york" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was in Tokyo, Japan and had an opponent of rumina sato? ### Context: CREATE TABLE table_name_38 (event VARCHAR, location VARCHAR, opponent VARCHAR) [/INST] ### Response: SELECT event FROM table_name_38 WHERE location = "tokyo, japan" AND opponent = "rumina sato" </s>
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was 2:30? ### Context: CREATE TABLE table_name_45 (round VARCHAR, time VARCHAR) [/INST] ### Response: SELECT round FROM table_name_45 WHERE time = "2: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: Which event had the opponent of shinya aoki and was at 4:56? ### Context: CREATE TABLE table_name_90 (event VARCHAR, opponent VARCHAR, time VARCHAR) [/INST] ### Response: SELECT event FROM table_name_90 WHERE opponent = "shinya aoki" AND time = "4:56" </s>