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's the mpg-US urban when the mpg-UK urban is 20 and the mpg-UK extra urban is less than 37.2?
### Context:
CREATE TABLE table_name_61 (mpg_us_urban INTEGER, mpg_uk_urban__cold_ VARCHAR, mpg_uk_extra_urban VARCHAR) [/INST]
### Response:
SELECT SUM(mpg_us_urban) FROM table_name_61 WHERE mpg_uk_urban__cold_ = 20 AND mpg_uk_extra_urban < 37.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 on 2010-07-13 when Abby wambach had the assist/pass?
### Context:
CREATE TABLE table_name_56 (score VARCHAR, assist_pass VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE assist_pass = "abby wambach" AND date = "2010-07-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 is the location on 2008-06-17 when the lineup was start?
### Context:
CREATE TABLE table_name_3 (location VARCHAR, lineup VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_3 WHERE lineup = "start" AND date = "2008-06-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 assist/pass on 2008-01-16 when the score was 2-0?
### Context:
CREATE TABLE table_name_54 (assist_pass VARCHAR, date VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT assist_pass FROM table_name_54 WHERE date = "2008-01-16" AND score = "2-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 result at match reports?
### Context:
CREATE TABLE table_name_98 (result VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_98 WHERE location = "match reports" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points if the goals against were 222?
### Context:
CREATE TABLE table_name_24 (points VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_24 WHERE goals_against = "222" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 points if the goals against were 260?
### Context:
CREATE TABLE table_name_95 (points VARCHAR, goals_against VARCHAR) [/INST]
### Response:
SELECT points FROM table_name_95 WHERE goals_against = "260" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 games with an Involuntary suspension of Season (hurricane Rita)?
### Context:
CREATE TABLE table_name_72 (games VARCHAR, standing VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_72 WHERE standing = "involuntary suspension of season (hurricane rita)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 goals for a lost of Involuntary suspension of Season (hurricane Rita)?
### Context:
CREATE TABLE table_name_44 (goals_for VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT goals_for FROM table_name_44 WHERE lost = "involuntary suspension of season (hurricane rita)" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season that had a lost of 9 with 72 games?
### Context:
CREATE TABLE table_name_10 (season VARCHAR, games VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_10 WHERE games = "72" AND lost = "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:
What event did he compete in at Taipei?
### Context:
CREATE TABLE table_name_42 (format VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_42 WHERE location = "taipei" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what season did he compete in the Grand Prix in Kuala Lumpur?
### Context:
CREATE TABLE table_name_81 (season VARCHAR, event_type VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_81 WHERE event_type = "grand prix" AND location = "kuala lumpur" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the player with a pick less than 3 from team san diego?
### Context:
CREATE TABLE table_name_82 (position VARCHAR, pick VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_82 WHERE pick < 3 AND team = "san diego" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location did david mccann receive a siver and morgan fox win the gold?
### Context:
CREATE TABLE table_name_38 (location VARCHAR, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_38 WHERE silver = "david mccann" AND gold = "morgan fox" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 received the bronze in 2011?
### Context:
CREATE TABLE table_name_71 (bronze VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT bronze FROM table_name_71 WHERE year = "2011" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 received the silver in 2006?
### Context:
CREATE TABLE table_name_31 (silver VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT silver FROM table_name_31 WHERE year = "2006" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 count for obese children and adolescents ranked 48?
### Context:
CREATE TABLE table_name_1 (obese_children_and_adolescents VARCHAR, obesity_rank VARCHAR) [/INST]
### Response:
SELECT obese_children_and_adolescents FROM table_name_1 WHERE obesity_rank = 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's the rank when the obese children and adolescent count is 14.2%?
### Context:
CREATE TABLE table_name_74 (obesity_rank INTEGER, obese_children_and_adolescents VARCHAR) [/INST]
### Response:
SELECT SUM(obesity_rank) FROM table_name_74 WHERE obese_children_and_adolescents = "14.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's the rank in West Virginia when the overweight adult was 66.8%?
### Context:
CREATE TABLE table_name_87 (obesity_rank VARCHAR, overweight__incl_obese__adults VARCHAR, state_and_district_of_columbia VARCHAR) [/INST]
### Response:
SELECT obesity_rank FROM table_name_87 WHERE overweight__incl_obese__adults = "66.8%" AND state_and_district_of_columbia = "west virginia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reserved for Jawad?
### Context:
CREATE TABLE table_name_27 (reserved_for___sc___st__none_ VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT reserved_for___sc___st__none_ FROM table_name_27 WHERE name = "jawad" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 reserved for the constituency of 228?
### Context:
CREATE TABLE table_name_65 (reserved_for___sc___st__none_ VARCHAR, constituency_number VARCHAR) [/INST]
### Response:
SELECT reserved_for___sc___st__none_ FROM table_name_65 WHERE constituency_number = "228" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which County has an IHSAA Class of aaa, and an Enrollment smaller than 799?
### Context:
CREATE TABLE table_name_68 (county VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_68 WHERE ihsaa_class = "aaa" AND enrollment < 799 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Location has a Mascot of tigers?
### Context:
CREATE TABLE table_name_34 (location VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_34 WHERE mascot = "tigers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the most overall when the executive appointments were 28 and the background was smaller than 37?
### Context:
CREATE TABLE table_name_77 (overall INTEGER, executive_appointments VARCHAR, background VARCHAR) [/INST]
### Response:
SELECT MAX(overall) FROM table_name_77 WHERE executive_appointments = 28 AND background < 37 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 record at the game with a score of 21-16?
### Context:
CREATE TABLE table_name_77 (record VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_77 WHERE score = "21-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 was the opponent at the game with a score of 42-28 after week 4?
### Context:
CREATE TABLE table_name_91 (opponent VARCHAR, week VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_91 WHERE week > 4 AND score = "42-28" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the result when the opponent is at dallas cowboys?
### Context:
CREATE TABLE table_name_12 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_12 WHERE opponent = "at dallas cowboys" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 enrollement for the year joined 1958 in clarksville?
### Context:
CREATE TABLE table_name_79 (enrollment INTEGER, year_joined VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT SUM(enrollment) FROM table_name_79 WHERE year_joined = 1958 AND location = "clarksville" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 #/county that is ihsaa class aaa, has enrollment higher than 611 and the dragons is the mascot?
### Context:
CREATE TABLE table_name_13 (_number___county VARCHAR, mascot VARCHAR, ihsaa_class VARCHAR, enrollment VARCHAR) [/INST]
### Response:
SELECT _number___county FROM table_name_13 WHERE ihsaa_class = "aaa" AND enrollment > 611 AND mascot = "dragons" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where was the title released in 1977?
### Context:
CREATE TABLE table_name_98 (country_of_release VARCHAR, year_of_release VARCHAR) [/INST]
### Response:
SELECT country_of_release FROM table_name_98 WHERE year_of_release = 1977 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 last year MCA had a Release?
### Context:
CREATE TABLE table_name_40 (year_of_release INTEGER, label VARCHAR) [/INST]
### Response:
SELECT MAX(year_of_release) FROM table_name_40 WHERE label = "mca" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick for the Buffalo Bills?
### Context:
CREATE TABLE table_name_60 (pick INTEGER, team VARCHAR) [/INST]
### Response:
SELECT MIN(pick) FROM table_name_60 WHERE team = "buffalo bills" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player played for the Boston Patriots?
### Context:
CREATE TABLE table_name_61 (player VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_61 WHERE team = "boston patriots" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much Attendance has a Result of 2–4, and a Visitor of brynäs if?
### Context:
CREATE TABLE table_name_10 (attendance INTEGER, result VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_10 WHERE result = "2–4" AND visitor = "brynäs if" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round larger than 17?
### Context:
CREATE TABLE table_name_37 (result VARCHAR, round INTEGER) [/INST]
### Response:
SELECT result FROM table_name_37 WHERE round > 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 smallest electorate for the Conservative party in South West Devon constituency, with over 2 conservatives and a name of Plymstock Radford?
### Context:
CREATE TABLE table_name_57 (electorate INTEGER, name VARCHAR, political_party VARCHAR, constituency VARCHAR) [/INST]
### Response:
SELECT MIN(electorate) FROM table_name_57 WHERE political_party = "conservative" AND constituency = "south west devon" AND "conservative" > 2 AND name = "plymstock radford" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event was in a year later than 2007 and in the 88th position?
### Context:
CREATE TABLE table_name_66 (event VARCHAR, year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_66 WHERE year > 2007 AND position = "88th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for 2005?
### Context:
CREATE TABLE table_name_36 (notes VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_36 WHERE year = 2005 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the owner of CKLF-FM?
### Context:
CREATE TABLE table_name_78 (owner VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_78 WHERE call_sign = "cklf-fm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What frequency is First Nations Community?
### Context:
CREATE TABLE table_name_78 (frequency VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_78 WHERE format = "first nations community" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What format is CBC Radio 2?
### Context:
CREATE TABLE table_name_84 (format VARCHAR, branding VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_84 WHERE branding = "cbc radio 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 owns CKSB-8-FM?
### Context:
CREATE TABLE table_name_72 (owner VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_72 WHERE call_sign = "cksb-8-fm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What format is Première Chaîne?
### Context:
CREATE TABLE table_name_44 (format VARCHAR, branding VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_44 WHERE branding = "première chaîne" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 olympics, Canada and the Men's Eight Event ended with a silver medal?
### Context:
CREATE TABLE table_name_92 (year INTEGER, result VARCHAR, nation VARCHAR, championship VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_92 WHERE championship = "olympics" AND event = "men's eight" AND nation = "canada" AND result = "silver" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event was in 2006?
### Context:
CREATE TABLE table_name_2 (event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_2 WHERE year = 2006 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What championship was in the USA after 1994, and resulted in 5th place?
### Context:
CREATE TABLE table_name_99 (championship VARCHAR, result VARCHAR, nation VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_99 WHERE nation = "usa" AND year > 1994 AND result = "5th" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year did Canada get a silver in the olympics in the Men's Coxless Pair event?
### Context:
CREATE TABLE table_name_65 (year INTEGER, event VARCHAR, championship VARCHAR, nation VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_65 WHERE nation = "canada" AND result = "silver" AND championship = "olympics" AND event = "men's coxless pair" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where is the lacrosse school located?
### Context:
CREATE TABLE table_name_98 (location VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_98 WHERE school = "lacrosse" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA Class has a Mascot of tigers?
### Context:
CREATE TABLE table_name_32 (ihsaa_class VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_32 WHERE mascot = "tigers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Location has an Enrollment larger than 543?
### Context:
CREATE TABLE table_name_62 (location VARCHAR, enrollment INTEGER) [/INST]
### Response:
SELECT location FROM table_name_62 WHERE enrollment > 543 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which County has an Enrollment of 297?
### Context:
CREATE TABLE table_name_16 (county VARCHAR, enrollment VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_16 WHERE enrollment = 297 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 School has an Enrollment larger than 264, and a County of 46 la porte?
### Context:
CREATE TABLE table_name_52 (school VARCHAR, enrollment VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_52 WHERE enrollment > 264 AND county = "46 la porte" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 silver medals when there are more than 1 gold, and more than 6 bronze?
### Context:
CREATE TABLE table_name_90 (silver INTEGER, gold VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(silver) FROM table_name_90 WHERE gold > 1 AND bronze > 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 when the Yugoslavia number of silver won is more than 1?
### Context:
CREATE TABLE table_name_32 (total INTEGER, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_32 WHERE silver > 1 AND nation = "yugoslavia" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance before week 1?
### Context:
CREATE TABLE table_name_16 (attendance INTEGER, week INTEGER) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_16 WHERE week < 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:
When was sniffles and the bookworm released?
### Context:
CREATE TABLE table_name_81 (release_date VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT release_date FROM table_name_81 WHERE title = "sniffles and the bookworm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 land of the midnight fun in the mm series released?
### Context:
CREATE TABLE table_name_54 (release_date VARCHAR, series VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT release_date FROM table_name_54 WHERE series = "mm" AND title = "land of the midnight fun" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series had a release on 1939-07-15 with the 8863 production number?
### Context:
CREATE TABLE table_name_53 (series VARCHAR, release_date VARCHAR, production_num VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_53 WHERE release_date = "1939-07-15" AND production_num = "8863" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directed hamateur night?
### Context:
CREATE TABLE table_name_2 (director VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_2 WHERE title = "hamateur night" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Production Number 9105 released?
### Context:
CREATE TABLE table_name_29 (release_date VARCHAR, production_num VARCHAR) [/INST]
### Response:
SELECT release_date FROM table_name_29 WHERE production_num = "9105" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Class has a Frequency of 90.1 FM?
### Context:
CREATE TABLE table_name_8 (class VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_8 WHERE frequency = "90.1 fm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 listed for the RECNet that also has a Frequency of 91.1 FM?
### Context:
CREATE TABLE table_name_51 (recnet VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT recnet FROM table_name_51 WHERE frequency = "91.1 fm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Class has the Identifier fo CBFX-FM-2?
### Context:
CREATE TABLE table_name_42 (class VARCHAR, identifier VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_42 WHERE identifier = "cbfx-fm-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 RECNet with a Class of B and the City of License of Rouyn-Noranda?
### Context:
CREATE TABLE table_name_51 (recnet VARCHAR, class VARCHAR, city_of_license VARCHAR) [/INST]
### Response:
SELECT recnet FROM table_name_51 WHERE class = "b" AND city_of_license = "rouyn-noranda" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Class has the Identifier of CBFX-FM-6?
### Context:
CREATE TABLE table_name_21 (class VARCHAR, identifier VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_21 WHERE identifier = "cbfx-fm-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 Frequency has the Identifier of CBFX-FM-6?
### Context:
CREATE TABLE table_name_53 (frequency VARCHAR, identifier VARCHAR) [/INST]
### Response:
SELECT frequency FROM table_name_53 WHERE identifier = "cbfx-fm-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 gold with less than 1 silver, from Belgium?
### Context:
CREATE TABLE table_name_23 (gold VARCHAR, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_23 WHERE silver < 1 AND nation = "belgium" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Lost has Points smaller than 15, and a Name of sc forst, and Drawn smaller than 0?
### Context:
CREATE TABLE table_name_89 (lost INTEGER, drawn VARCHAR, points VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(lost) FROM table_name_89 WHERE points < 15 AND name = "sc forst" 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:
How much Position has a Lost of 8, and a Played larger than 14?
### Context:
CREATE TABLE table_name_78 (position INTEGER, lost VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT SUM(position) FROM table_name_78 WHERE lost = 8 AND played > 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 Drawn has a Lost larger than 8, and Points smaller than 7?
### Context:
CREATE TABLE table_name_80 (drawn INTEGER, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(drawn) FROM table_name_80 WHERE lost > 8 AND points < 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:
How much Drawn has a Name of erc lechbruck, and Points smaller than 17?
### Context:
CREATE TABLE table_name_13 (drawn VARCHAR, name VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(drawn) FROM table_name_13 WHERE name = "erc lechbruck" 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:
What town is from the molėtai district municipality and has a population rank of 187 and a population less than 470 in 2001?
### Context:
CREATE TABLE table_name_81 (town VARCHAR, population_rank VARCHAR, municipality VARCHAR, population__2001_ VARCHAR) [/INST]
### Response:
SELECT town FROM table_name_81 WHERE municipality = "molėtai district municipality" AND population__2001_ < 470 AND population_rank = 187 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What county is the town with a rank of 205 located in?
### Context:
CREATE TABLE table_name_78 (county VARCHAR, population_rank VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_78 WHERE population_rank = 205 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the fewest draws for percentages of 5.02%?
### Context:
CREATE TABLE table_name_95 (draw INTEGER, percentage VARCHAR) [/INST]
### Response:
SELECT MIN(draw) FROM table_name_95 WHERE percentage = "5.02%" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the player from the denver broncos?
### Context:
CREATE TABLE table_name_28 (position VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_28 WHERE team = "denver broncos" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 pick of the kansas city chiefs?
### Context:
CREATE TABLE table_name_12 (pick INTEGER, team VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_12 WHERE team = "kansas city chiefs" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pick of wiley college?
### Context:
CREATE TABLE table_name_70 (pick VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_70 WHERE college = "wiley" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game with alfreton town as the home team?
### Context:
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_53 WHERE home_team = "alfreton 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:
What was the score of the game where stafford rangers was the away team?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE away_team = "stafford 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:
Who was the home team that has a tie no of 1?
### Context:
CREATE TABLE table_name_29 (home_team VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_29 WHERE tie_no = "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 tie no that has southport as the away team?
### Context:
CREATE TABLE table_name_28 (tie_no VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT tie_no FROM table_name_28 WHERE away_team = "southport" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game that had the king's lynn as the home team?
### Context:
CREATE TABLE table_name_53 (attendance VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_53 WHERE home_team = "king's lynn" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for the game with a tie no of 1?
### Context:
CREATE TABLE table_name_56 (score VARCHAR, tie_no VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_56 WHERE tie_no = "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 game number on December 21?
### Context:
CREATE TABLE table_name_53 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_53 WHERE date = "december 21" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Game with a Record of 19-15?
### Context:
CREATE TABLE table_name_71 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_71 WHERE record = "19-15" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Date of the game against Detroit in game 31 or after?
### Context:
CREATE TABLE table_name_59 (date VARCHAR, game VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_59 WHERE game > 31 AND opponent = "detroit" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
During which years did the golfer with the total of 289 win?
### Context:
CREATE TABLE table_name_42 (year_s__won VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT year_s__won FROM table_name_42 WHERE total = 289 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 To par for the player who finished t56?
### Context:
CREATE TABLE table_name_84 (to_par VARCHAR, finish VARCHAR) [/INST]
### Response:
SELECT to_par FROM table_name_84 WHERE finish = "t56" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which county did the player with a total of 294 represent?
### Context:
CREATE TABLE table_name_53 (country VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_53 WHERE total = 294 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 total for united states player phil mickelson?
### Context:
CREATE TABLE table_name_72 (total INTEGER, country VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_72 WHERE country = "united states" AND player = "phil mickelson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a less than 4 rank, and a time less than 24.42 what is the smallest lane?
### Context:
CREATE TABLE table_name_52 (lane INTEGER, rank VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MIN(lane) FROM table_name_52 WHERE rank < 4 AND time < 24.42 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The swimmer from the United States in a lane less than 5, had what as the average time?
### Context:
CREATE TABLE table_name_8 (time INTEGER, nationality VARCHAR, lane VARCHAR) [/INST]
### Response:
SELECT AVG(time) FROM table_name_8 WHERE nationality = "united states" AND lane < 5 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What nationality is the swimmer that is in the lane that is less than 2?
### Context:
CREATE TABLE table_name_3 (nationality VARCHAR, lane INTEGER) [/INST]
### Response:
SELECT nationality FROM table_name_3 WHERE lane < 2 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Losses have Draws smaller than 0?
### Context:
CREATE TABLE table_name_15 (losses INTEGER, draws INTEGER) [/INST]
### Response:
SELECT MAX(losses) FROM table_name_15 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:
Which Losses have Draws larger than 0?
### Context:
CREATE TABLE table_name_28 (losses INTEGER, draws INTEGER) [/INST]
### Response:
SELECT MAX(losses) FROM table_name_28 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:
How much Against has Losses smaller than 7, and a Wimmera FL of horsham?
### Context:
CREATE TABLE table_name_66 (against INTEGER, losses VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT SUM(against) FROM table_name_66 WHERE losses < 7 AND wimmera_fl = "horsham" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Draws have Wins larger than 7, and a Wimmera FL of nhill, and Losses larger than 8?
### Context:
CREATE TABLE table_name_83 (draws INTEGER, losses VARCHAR, wins VARCHAR, wimmera_fl VARCHAR) [/INST]
### Response:
SELECT SUM(draws) FROM table_name_83 WHERE wins > 7 AND wimmera_fl = "nhill" AND losses > 8 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the outcome of the match with a score of 3-6, 2-6?
### Context:
CREATE TABLE table_name_52 (outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_52 WHERE score = "3-6, 2-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 was the tournament that had byron black playing against magnus larsson?
### Context:
CREATE TABLE table_name_70 (tournament VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_70 WHERE opponent = "magnus larsson" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What tournament had a game with a score of 6-7, 4-6?
### Context:
CREATE TABLE table_name_35 (tournament VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_35 WHERE score = "6-7, 4-6" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.