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:
Tell me the average Laps for grid larger than 22
### Context:
CREATE TABLE table_name_39 (laps INTEGER, grid INTEGER) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_39 WHERE grid > 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:
Tell me the constructor for grid of 17
### Context:
CREATE TABLE table_name_9 (constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_9 WHERE grid = 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 years had a manager who lost more than 1 and drawn more than 11?
### Context:
CREATE TABLE table_name_26 (ukraine_career VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT ukraine_career FROM table_name_26 WHERE lost > 1 AND drawn > 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 total win % of manager viktor prokopenko, when he lost fewer than 2?
### Context:
CREATE TABLE table_name_43 (win__percentage VARCHAR, manager VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT COUNT(win__percentage) FROM table_name_43 WHERE manager = "viktor prokopenko" AND lost < 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:
When 4 clubs are involved, what is the average number of fixtures?
### Context:
CREATE TABLE table_name_3 (fixtures INTEGER, clubs_involved VARCHAR) [/INST]
### Response:
SELECT AVG(fixtures) FROM table_name_3 WHERE clubs_involved = 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:
In the sixth round, what is the sum of fixtures when there were more than 15 clubs involved?
### Context:
CREATE TABLE table_name_67 (fixtures INTEGER, round VARCHAR, clubs_involved VARCHAR) [/INST]
### Response:
SELECT SUM(fixtures) FROM table_name_67 WHERE round = "sixth round" AND clubs_involved > 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:
Tell me the league for year of 1915/16
### Context:
CREATE TABLE table_name_3 (league VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT league FROM table_name_3 WHERE year = "1915/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:
What is the make of the car that drove 54 laps?
### Context:
CREATE TABLE table_name_26 (constructor VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_26 WHERE laps = 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:
Who has a 59 cap?
### Context:
CREATE TABLE table_name_9 (name VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_9 WHERE caps = 59 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of frequency for ERP W less than 1
### Context:
CREATE TABLE table_name_43 (frequency_mhz INTEGER, erp_w INTEGER) [/INST]
### Response:
SELECT SUM(frequency_mhz) FROM table_name_43 WHERE erp_w < 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:
Tell me the lowest ties played with a debut of 1936
### Context:
CREATE TABLE table_name_15 (ties_played INTEGER, debut VARCHAR) [/INST]
### Response:
SELECT MIN(ties_played) FROM table_name_15 WHERE debut = 1936 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the Paris Marathon occur?
### Context:
CREATE TABLE table_name_47 (venue VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_47 WHERE competition = "paris marathon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the capacity for city park stadium
### Context:
CREATE TABLE table_name_15 (capacity VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT capacity FROM table_name_15 WHERE stadium = "city park 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:
Tell me the tournament for opponents of andrei pavel rogier wassen
### Context:
CREATE TABLE table_name_53 (tournament VARCHAR, opponents_in_the_final VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_53 WHERE opponents_in_the_final = "andrei pavel rogier wassen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the tournament for score in the final of 1–6, 3–6
### Context:
CREATE TABLE table_name_20 (tournament VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_20 WHERE score_in_the_final = "1–6, 3–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:
Tell me the opponents for score in the final of 1–6, 2–6
### Context:
CREATE TABLE table_name_68 (opponents_in_the_final VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT opponents_in_the_final FROM table_name_68 WHERE score_in_the_final = "1–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:
Tell me the surface for 16 april 2007
### Context:
CREATE TABLE table_name_72 (surface VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT surface FROM table_name_72 WHERE date = "16 april 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the average pages for ISBN of 978-0-9766580-5-4
### Context:
CREATE TABLE table_name_77 (pages INTEGER, isbn VARCHAR) [/INST]
### Response:
SELECT AVG(pages) FROM table_name_77 WHERE isbn = "978-0-9766580-5-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:
Tell me the sum of year for 244 pages
### Context:
CREATE TABLE table_name_84 (year INTEGER, pages VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_84 WHERE pages = 244 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the title for pages of 96
### Context:
CREATE TABLE table_name_99 (title VARCHAR, pages VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_99 WHERE pages = 96 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth of a republican member of the United States House of Representatives who held the term of 1863-1865?
### Context:
CREATE TABLE table_name_80 (date_of_birth VARCHAR, party VARCHAR, house_term VARCHAR) [/INST]
### Response:
SELECT date_of_birth FROM table_name_80 WHERE party = "republican" AND house_term = "1863-1865" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 age of the member of the United States House of Representatives that began their term on May 7, 1886?
### Context:
CREATE TABLE table_name_66 (age__years VARCHAR, _days_ VARCHAR, begin_date VARCHAR) [/INST]
### Response:
SELECT age__years, _days_ FROM table_name_66 WHERE begin_date = "may 7, 1886" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 birth of the member of the United States House of Representatives that began their term on April 24, 1902?
### Context:
CREATE TABLE table_name_66 (date_of_birth VARCHAR, begin_date VARCHAR) [/INST]
### Response:
SELECT date_of_birth FROM table_name_66 WHERE begin_date = "april 24, 1902" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 member of the United States House of Representatives began their term on January 4, 1997?
### Context:
CREATE TABLE table_name_72 (representative VARCHAR, begin_date VARCHAR) [/INST]
### Response:
SELECT representative FROM table_name_72 WHERE begin_date = "january 4, 1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which state did Samuel Thatcher of the Federalist party represent?
### Context:
CREATE TABLE table_name_27 (state_served VARCHAR, party VARCHAR, representative VARCHAR) [/INST]
### Response:
SELECT state_served FROM table_name_27 WHERE party = "federalist" AND representative = "samuel thatcher" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Hedo Türkoğlu play?
### Context:
CREATE TABLE table_name_93 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_93 WHERE player = "hedo türkoğlu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 long has Sebastian Telfair played for Toronto?
### Context:
CREATE TABLE table_name_83 (years_in_toronto VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years_in_toronto FROM table_name_83 WHERE player = "sebastian telfair" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the title for japan august 23, 2012
### Context:
CREATE TABLE table_name_30 (title VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_30 WHERE japan = "august 23, 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the title for japan august 23, 2012
### Context:
CREATE TABLE table_name_57 (title VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_57 WHERE japan = "august 23, 2012" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the Australia march 17, 2005
### Context:
CREATE TABLE table_name_84 (australia VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT australia FROM table_name_84 WHERE japan = "march 17, 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:
Tell me the Europe for z.h.p. unlosing ranger vs darkdeath evilman
### Context:
CREATE TABLE table_name_79 (europe VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT europe FROM table_name_79 WHERE title = "z.h.p. unlosing ranger vs darkdeath evilman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total losses for 4 place and ties less than 0
### Context:
CREATE TABLE table_name_35 (losses VARCHAR, place VARCHAR, ties VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_35 WHERE place = 4 AND ties < 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:
Name the average place for ties less than 1 and losess more than 3 with points of 6 qc
### Context:
CREATE TABLE table_name_70 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(place) FROM table_name_70 WHERE ties < 1 AND points = "6 qc" AND losses > 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:
Name the most wins for losses more than 2 and points of two with place larger than 7
### Context:
CREATE TABLE table_name_4 (wins INTEGER, place VARCHAR, losses VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_4 WHERE losses > "2" AND points = "2" AND place > 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:
Name the sum of place with ties larger than 0 and point sof 7 qc and losses more than 2
### Context:
CREATE TABLE table_name_58 (place INTEGER, losses VARCHAR, ties VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(place) FROM table_name_58 WHERE ties > 0 AND points = "7 qc" AND losses > 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:
Tell me the number range for 4vip
### Context:
CREATE TABLE table_name_36 (no_range VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT no_range FROM table_name_36 WHERE type = "4vip" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 heat rank for senegal
### Context:
CREATE TABLE table_name_22 (heat_rank VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT heat_rank FROM table_name_22 WHERE country = "senegal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for 2010 when the 2012 value is Q2?
### Context:
CREATE TABLE table_name_95 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_95 WHERE 2012 = "q2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for 2010 when the value for 2006 is A and the value for 2009 is 1R?
### Context:
CREATE TABLE table_name_59 (Id VARCHAR) [/INST]
### Response:
SELECT 2010 FROM table_name_59 WHERE 2006 = "a" AND 2009 = "1r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for 2012 when the value for 2009 is 1R and the vale for 2007 is 2R?
### Context:
CREATE TABLE table_name_51 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_51 WHERE 2009 = "1r" AND 2007 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 value for 2008 for the US Open Tournament?
### Context:
CREATE TABLE table_name_84 (tournament VARCHAR) [/INST]
### Response:
SELECT 2008 FROM table_name_84 WHERE tournament = "us open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value for 2009 when the value for 2011 is 138?
### Context:
CREATE TABLE table_name_87 (Id VARCHAR) [/INST]
### Response:
SELECT 2009 FROM table_name_87 WHERE 2011 = "138" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the highest series # for september 22, 1976
### Context:
CREATE TABLE table_name_53 (series__number INTEGER, original_air_date VARCHAR) [/INST]
### Response:
SELECT MAX(series__number) FROM table_name_53 WHERE original_air_date = "september 22, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 screen size and pixel value when the dimensions are 115.5×83.7×102.5?
### Context:
CREATE TABLE table_name_7 (screen_size VARCHAR, pixels VARCHAR, dimensions_w×h×d__mm_ VARCHAR) [/INST]
### Response:
SELECT screen_size, pixels FROM table_name_7 WHERE dimensions_w×h×d__mm_ = "115.5×83.7×102.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 is the screen size and pixel amount of model p5000 when the dimensions are 98×64.5×41?
### Context:
CREATE TABLE table_name_28 (screen_size VARCHAR, pixels VARCHAR, dimensions_w×h×d__mm_ VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT screen_size, pixels FROM table_name_28 WHERE dimensions_w×h×d__mm_ = "98×64.5×41" AND model = "p5000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the championship game for big eight
### Context:
CREATE TABLE table_name_29 (championship_game VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT championship_game FROM table_name_29 WHERE conference = "big eight" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest total for rank of 13 with bronze less than 1
### Context:
CREATE TABLE table_name_20 (total INTEGER, rank VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_20 WHERE rank = 13 AND bronze < 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:
Tell me the sum of original week for september 16, 1982
### Context:
CREATE TABLE table_name_51 (original_week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(original_week) FROM table_name_51 WHERE date = "september 16, 1982" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the average original week for soldier field
### Context:
CREATE TABLE table_name_18 (original_week INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(original_week) FROM table_name_18 WHERE venue = "soldier field" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the date for original week less than 16 and result of l 23–22
### Context:
CREATE TABLE table_name_81 (date VARCHAR, original_week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_81 WHERE original_week < 16 AND result = "l 23–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:
Tell me the call sign for frequency of 0 97.3 fm
### Context:
CREATE TABLE table_name_67 (call_sign VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_67 WHERE frequency = "0 97.3 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:
Tell me the owner for classical
### Context:
CREATE TABLE table_name_81 (owner VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT owner FROM table_name_81 WHERE format = "classical" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the city of license for 0 106.9 fm
### Context:
CREATE TABLE table_name_1 (city_of_license VARCHAR, frequency VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_1 WHERE frequency = "0 106.9 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 year(s) did Hakeem Olajuwon play Center for Toronto?
### Context:
CREATE TABLE table_name_33 (years_in_toronto VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT years_in_toronto FROM table_name_33 WHERE player = "hakeem olajuwon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did Jimmy Oliver of the United States play?
### Context:
CREATE TABLE table_name_75 (position VARCHAR, nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_75 WHERE nationality = "united states" AND player = "jimmy oliver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of crest length for year construction larger than 1957 for mattmark
### Context:
CREATE TABLE table_name_87 (crest_length__meters_ VARCHAR, year_of_construction VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(crest_length__meters_) FROM table_name_87 WHERE year_of_construction > 1957 AND name = "mattmark" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the % of wt 2nd for bp 3rd comp of 98.4
### Context:
CREATE TABLE table_name_77 (_percentage_wt_2nd VARCHAR, bp_3rd_comp__˚c_ VARCHAR) [/INST]
### Response:
SELECT _percentage_wt_2nd FROM table_name_77 WHERE bp_3rd_comp__˚c_ = "98.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:
Tell me the 3rd component for bp azeo of 62.1
### Context:
CREATE TABLE table_name_49 (bp_azeo__˚c_ VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_component FROM table_name_49 WHERE bp_azeo__˚c_ = "62.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:
Tell me the name with sør-trøndelag
### Context:
CREATE TABLE table_name_64 (name VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_64 WHERE county = "sør-trøndelag" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the elevation for oslo
### Context:
CREATE TABLE table_name_20 (elevation VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT elevation FROM table_name_20 WHERE county = "oslo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the match against Pat Lawlor?
### Context:
CREATE TABLE table_name_46 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_46 WHERE opponent = "pat lawlor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the sum of cars per set for operator of london midland
### Context:
CREATE TABLE table_name_3 (cars_per_set INTEGER, operator VARCHAR) [/INST]
### Response:
SELECT SUM(cars_per_set) FROM table_name_3 WHERE operator = "london midland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the title of japan january 31, 2008
### Context:
CREATE TABLE table_name_74 (title VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_74 WHERE japan = "january 31, 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me japan for jigsaw land: japan graffiti
### Context:
CREATE TABLE table_name_14 (japan VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT japan FROM table_name_14 WHERE title = "jigsaw land: japan graffiti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me north america for january 23, 2013
### Context:
CREATE TABLE table_name_83 (north_america VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT north_america FROM table_name_83 WHERE japan = "january 23, 2013" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the north america for september 18, 2009
### Context:
CREATE TABLE table_name_64 (north_america VARCHAR, europe VARCHAR) [/INST]
### Response:
SELECT north_america FROM table_name_64 WHERE europe = "september 18, 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:
Tell me europe for japan of january 28, 2010
### Context:
CREATE TABLE table_name_72 (europe VARCHAR, japan VARCHAR) [/INST]
### Response:
SELECT europe FROM table_name_72 WHERE japan = "january 28, 2010" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the north america for phantom brave
### Context:
CREATE TABLE table_name_74 (north_america VARCHAR, title VARCHAR) [/INST]
### Response:
SELECT north_america FROM table_name_74 WHERE title = "phantom brave" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 played value in Belgrade with attendance greater than 26,222?
### Context:
CREATE TABLE table_name_83 (played INTEGER, city VARCHAR, average_attendance VARCHAR) [/INST]
### Response:
SELECT AVG(played) FROM table_name_83 WHERE city = "belgrade" AND average_attendance > 26 OFFSET 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:
Tell me the role of festival theatre
### Context:
CREATE TABLE table_name_35 (role VARCHAR, theatre VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_35 WHERE theatre = "festival theatre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lowest year for shubert theatre
### Context:
CREATE TABLE table_name_72 (year INTEGER, theatre VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_72 WHERE theatre = "shubert theatre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the total number of years for lady cecily waynflete and opera house, kennedy center
### Context:
CREATE TABLE table_name_51 (year VARCHAR, role VARCHAR, theatre VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_51 WHERE role = "lady cecily waynflete" AND theatre = "opera house, kennedy center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the role for tea and sympathy
### Context:
CREATE TABLE table_name_83 (role VARCHAR, play VARCHAR) [/INST]
### Response:
SELECT role FROM table_name_83 WHERE play = "tea and sympathy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the first beatification in Korea that was canonised before 1984?
### Context:
CREATE TABLE table_name_12 (beatified INTEGER, place VARCHAR, canonised VARCHAR) [/INST]
### Response:
SELECT MIN(beatified) FROM table_name_12 WHERE place = "korea" AND canonised < 1984 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laurent-Marie-Joseph Imbert / St. Imbert, who was beatified after 1909 and canonised after 1984, martyred?
### Context:
CREATE TABLE table_name_65 (martyred INTEGER, canonised VARCHAR, beatified VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MAX(martyred) FROM table_name_65 WHERE beatified > 1909 AND name = "laurent-marie-joseph imbert / st. imbert" AND canonised > 1984 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the person(s) who were canonised before 1988 beatified?
### Context:
CREATE TABLE table_name_17 (beatified VARCHAR, canonised INTEGER) [/INST]
### Response:
SELECT beatified FROM table_name_17 WHERE canonised < 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 John Hoan Trinh Doan / St. John Hoan, who was beatified in 1909 and canonised after 1988, martyred?
### Context:
CREATE TABLE table_name_64 (martyred INTEGER, canonised VARCHAR, beatified VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MAX(martyred) FROM table_name_64 WHERE beatified = 1909 AND name = "john hoan trinh doan / st. john hoan" AND canonised > 1988 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year with the local host Sai?
### Context:
CREATE TABLE table_name_37 (year INTEGER, local_host_s_ VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_37 WHERE local_host_s_ = "sai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are the local hosts for the United States in years earlier than 2007?
### Context:
CREATE TABLE table_name_86 (local_host_s_ VARCHAR, country VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT local_host_s_ FROM table_name_86 WHERE country = "united states" AND year < 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conference of LCC2 and a year earlier than 2009?
### Context:
CREATE TABLE table_name_70 (city VARCHAR, year VARCHAR, conference VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_70 WHERE year < 2009 AND conference = "lcc2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the class with rank of 89th
### Context:
CREATE TABLE table_name_12 (class VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_12 WHERE rank = "89th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the most year for 3 points
### Context:
CREATE TABLE table_name_30 (year INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_30 WHERE points = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which lane is Goksu Bicer in?
### Context:
CREATE TABLE table_name_37 (lane VARCHAR, swimmer VARCHAR) [/INST]
### Response:
SELECT lane FROM table_name_37 WHERE swimmer = "goksu bicer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Driver that has a Grid less than 9 and a Time/Retired of 2:06:26.358?
### Context:
CREATE TABLE table_name_59 (driver VARCHAR, grid VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_59 WHERE grid < 9 AND time_retired = "2:06:26.358" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 driver drove a Ferrari in the 2007 European Grand Prix with a grid less than 3?
### Context:
CREATE TABLE table_name_78 (driver VARCHAR, constructor VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_78 WHERE constructor = "ferrari" AND grid < 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:
Name the location of ufc 98
### Context:
CREATE TABLE table_name_51 (location VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_51 WHERE event = "ufc 98" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 number of wins for the Totals Tournament with a Top-25 value greater than 3?
### Context:
CREATE TABLE table_name_25 (wins INTEGER, tournament VARCHAR, top_25 VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_25 WHERE tournament = "totals" AND top_25 > 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 sum of Top-5 values with events values less than 2?
### Context:
CREATE TABLE table_name_35 (top_5 INTEGER, events INTEGER) [/INST]
### Response:
SELECT SUM(top_5) FROM table_name_35 WHERE events < 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 smallest value for Wins when the number of cuts is greater than 4 and the Top-5 value is less than 1?
### Context:
CREATE TABLE table_name_51 (wins INTEGER, cuts_made VARCHAR, top_5 VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_51 WHERE cuts_made > 4 AND top_5 < 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the competition for 2nd position with year more than 2005
### Context:
CREATE TABLE table_name_23 (competition VARCHAR, position VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_23 WHERE position = "2nd" AND 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:
Name the sum of year for 2nd position for junior race
### Context:
CREATE TABLE table_name_40 (year INTEGER, position VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_40 WHERE position = "2nd" AND event = "junior race" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the venue for 2nd position of year before 2008
### Context:
CREATE TABLE table_name_83 (venue VARCHAR, year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_83 WHERE year < 2008 AND position = "2nd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit did Raymond Mays win?
### Context:
CREATE TABLE table_name_17 (circuit VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_17 WHERE winning_driver = "raymond mays" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Circuit did Johnny Wakefield win?
### Context:
CREATE TABLE table_name_3 (circuit VARCHAR, winning_driver VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_3 WHERE winning_driver = "johnny wakefield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the lowest bronze for panama and total larger than 8
### Context:
CREATE TABLE table_name_84 (bronze INTEGER, nation VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_84 WHERE nation = "panama" AND total > 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:
Tell me the average total for guatemala and bronze less than 2
### Context:
CREATE TABLE table_name_32 (total INTEGER, nation VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_32 WHERE nation = "guatemala" AND bronze < 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:
Tell me the number of bronze for silver of 0 and total less than 1
### Context:
CREATE TABLE table_name_54 (bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(bronze) FROM table_name_54 WHERE silver = 0 AND total < 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:
Tell me the sum of total for rank of 1
### Context:
CREATE TABLE table_name_35 (total INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT SUM(total) FROM table_name_35 WHERE rank = 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:
Tell me the total number for costa rica and rank more than 8
### Context:
CREATE TABLE table_name_82 (total VARCHAR, nation VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_82 WHERE nation = "costa rica" AND rank > 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 years did Tymerlan Huseynov, whose average is larger than 0.361, play?
### Context:
CREATE TABLE table_name_94 (career VARCHAR, average VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT career FROM table_name_94 WHERE average > 0.361 AND player = "tymerlan huseynov" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.