text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest value in the miss international column?
### Context:
CREATE TABLE table_29942205_1 (miss_international INTEGER) [/INST]
### Response:
SELECT MIN(miss_international) FROM table_29942205_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 smallest quantity displayed under the title "first runner-up"?
### Context:
CREATE TABLE table_29942205_1 (Id VARCHAR) [/INST]
### Response:
SELECT MIN(1 AS st_runner_up) FROM table_29942205_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:
How many women from Uruguay has become third runner-up in this pageant?
### Context:
CREATE TABLE table_29942205_1 (country_territory VARCHAR) [/INST]
### Response:
SELECT MAX(3 AS rd_runner_up) FROM table_29942205_1 WHERE country_territory = "Uruguay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 player number 10?
### Context:
CREATE TABLE table_29970488_2 (year VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT year FROM table_29970488_2 WHERE _number = 10 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many hometowns are there when Charis Prep was the previous school?
### Context:
CREATE TABLE table_29970488_2 (hometown VARCHAR, previous_school VARCHAR) [/INST]
### Response:
SELECT COUNT(hometown) FROM table_29970488_2 WHERE previous_school = "Charis Prep" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different items appear in the weight column when Pittsburgh, PA is the hometown?
### Context:
CREATE TABLE table_29970488_2 (weight___lb__ VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT COUNT(weight___lb__) FROM table_29970488_2 WHERE hometown = "Pittsburgh, PA" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode is number 3 in the season?
### Context:
CREATE TABLE table_29960651_5 (episode VARCHAR, no_for_season VARCHAR) [/INST]
### Response:
SELECT episode FROM table_29960651_5 WHERE no_for_season = 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 episode name for series number 45?
### Context:
CREATE TABLE table_29960651_5 (episode VARCHAR, no_for_series VARCHAR) [/INST]
### Response:
SELECT episode FROM table_29960651_5 WHERE no_for_series = 45 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest total for any country/territory?
### Context:
CREATE TABLE table_30008638_1 (total INTEGER) [/INST]
### Response:
SELECT MAX(total) FROM table_30008638_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:
How many semifinalists has Romania had?
### Context:
CREATE TABLE table_30008638_1 (semifinalists VARCHAR, country_territory VARCHAR) [/INST]
### Response:
SELECT semifinalists FROM table_30008638_1 WHERE country_territory = "Romania" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Miss Waters has Canada had?
### Context:
CREATE TABLE table_30008638_1 (miss_water INTEGER, country_territory VARCHAR) [/INST]
### Response:
SELECT MAX(miss_water) FROM table_30008638_1 WHERE country_territory = "Canada" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 most Miss Fires any country has had?
### Context:
CREATE TABLE table_30008638_1 (miss_fire INTEGER) [/INST]
### Response:
SELECT MAX(miss_fire) FROM table_30008638_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 least amount of Miss Airs any country has had?
### Context:
CREATE TABLE table_30008638_1 (miss_air INTEGER) [/INST]
### Response:
SELECT MIN(miss_air) FROM table_30008638_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 re the high assists for january 29?
### Context:
CREATE TABLE table_29982187_4 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_29982187_4 WHERE date = "January 29" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team did the suns play on April 21?
### Context:
CREATE TABLE table_29997127_4 (team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT team FROM table_29997127_4 WHERE date = "April 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:
In what game was the attendance at the America West Arena 18,756?
### Context:
CREATE TABLE table_29997127_4 (game INTEGER, location_attendance VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_29997127_4 WHERE location_attendance = "America West Arena 18,756" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official name of the municipality whose name in Basque is Bilar?
### Context:
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_basque VARCHAR) [/INST]
### Response:
SELECT official_name FROM table_300283_1 WHERE name_in_basque = "Bilar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official name of the municipality whose name in Spanish is Cripán?
### Context:
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_spanish VARCHAR) [/INST]
### Response:
SELECT official_name FROM table_300283_1 WHERE name_in_spanish = "Cripán" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 official name of the municipality whose name in Spanish is Vitoria?
### Context:
CREATE TABLE table_300283_1 (official_name VARCHAR, name_in_spanish VARCHAR) [/INST]
### Response:
SELECT official_name FROM table_300283_1 WHERE name_in_spanish = "Vitoria" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name in Basque of the municipality whose official name is Kuartango?
### Context:
CREATE TABLE table_300283_1 (name_in_basque VARCHAR, official_name VARCHAR) [/INST]
### Response:
SELECT name_in_basque FROM table_300283_1 WHERE official_name = "Kuartango" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 INE code of the municipality whose official name is Berantevilla?
### Context:
CREATE TABLE table_300283_1 (ine_code INTEGER, official_name VARCHAR) [/INST]
### Response:
SELECT MAX(ine_code) FROM table_300283_1 WHERE official_name = "Berantevilla" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every reference for type and usage of Germanium small-signal RF transistor?
### Context:
CREATE TABLE table_30011_2 (reference VARCHAR, type_and_usage VARCHAR) [/INST]
### Response:
SELECT reference FROM table_30011_2 WHERE type_and_usage = "Germanium small-signal RF transistor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every equivalent for the example of asy28?
### Context:
CREATE TABLE table_30011_2 (equivalent VARCHAR, example VARCHAR) [/INST]
### Response:
SELECT equivalent FROM table_30011_2 WHERE example = "ASY28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every reference for the example of AF117?
### Context:
CREATE TABLE table_30011_2 (reference VARCHAR, example VARCHAR) [/INST]
### Response:
SELECT reference FROM table_30011_2 WHERE example = "AF117" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every prefix class for the equivalent of NTE160?
### Context:
CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR) [/INST]
### Response:
SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE160" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every prefix class for the equivalent of NTE101?
### Context:
CREATE TABLE table_30011_2 (prefix_class VARCHAR, equivalent VARCHAR) [/INST]
### Response:
SELECT prefix_class FROM table_30011_2 WHERE equivalent = "NTE101" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every example for the equivalent of NTE160?
### Context:
CREATE TABLE table_30011_2 (example VARCHAR, equivalent VARCHAR) [/INST]
### Response:
SELECT example FROM table_30011_2 WHERE equivalent = "NTE160" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manhunt beauty contets have been held in france?
### Context:
CREATE TABLE table_30018460_1 (manhunt_international VARCHAR, country_territory VARCHAR) [/INST]
### Response:
SELECT manhunt_international FROM table_30018460_1 WHERE country_territory = "France" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 semifinalists where from peru?
### Context:
CREATE TABLE table_30018460_1 (semifinalists VARCHAR, country_territory VARCHAR) [/INST]
### Response:
SELECT semifinalists FROM table_30018460_1 WHERE country_territory = "Peru" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 first place participants where from croatia?
### Context:
CREATE TABLE table_30018460_1 (country_territory VARCHAR) [/INST]
### Response:
SELECT 3 AS rd_runner_up FROM table_30018460_1 WHERE country_territory = "Croatia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 minimum sum?
### Context:
CREATE TABLE table_30018460_1 (total INTEGER) [/INST]
### Response:
SELECT MIN(total) FROM table_30018460_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 minimum manhunt beauty contest?
### Context:
CREATE TABLE table_30018460_1 (manhunt_international INTEGER) [/INST]
### Response:
SELECT MIN(manhunt_international) FROM table_30018460_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:
How many people wrote the episode directed by Arvin Brown?
### Context:
CREATE TABLE table_30030227_1 (written_by VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(written_by) FROM table_30030227_1 WHERE directed_by = "Arvin Brown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 included ram (mib) is the model what is the sonnet?
### Context:
CREATE TABLE table_3002894_4 (sonnet VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT sonnet FROM table_3002894_4 WHERE model = "Included RAM (MiB)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mb is the sonnet what is the apple?
### Context:
CREATE TABLE table_3002894_4 (apple VARCHAR, sonnet VARCHAR) [/INST]
### Response:
SELECT apple FROM table_3002894_4 WHERE sonnet = "4 MB" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 0,4, or 8 mb is the nupowr 117 what is the sonnet?
### Context:
CREATE TABLE table_3002894_4 (sonnet VARCHAR, nupowr_117 VARCHAR) [/INST]
### Response:
SELECT sonnet FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 maker is the model what is the nupowr 167?
### Context:
CREATE TABLE table_3002894_4 (nupowr_167 VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT nupowr_167 FROM table_3002894_4 WHERE model = "Maker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 0,4, or 8 mb is the nupowr 117 what is the nupowr 183?
### Context:
CREATE TABLE table_3002894_4 (nupowr_183 VARCHAR, nupowr_117 VARCHAR) [/INST]
### Response:
SELECT nupowr_183 FROM table_3002894_4 WHERE nupowr_117 = "0,4, or 8 MB" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the episode written by glen mazzara?
### Context:
CREATE TABLE table_30030477_1 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_30030477_1 WHERE written_by = "Glen Mazzara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 titles are there with the original air date of august3,2010?
### Context:
CREATE TABLE table_30030477_1 (title VARCHAR, original_air_date VARCHAR) [/INST]
### Response:
SELECT COUNT(title) FROM table_30030477_1 WHERE original_air_date = "August3,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:
Who directed the episdoe veiwed by 3.24 million viewers?
### Context:
CREATE TABLE table_30030477_1 (directed_by VARCHAR, viewers__million_ VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_30030477_1 WHERE viewers__million_ = "3.24" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What dated the episode written by is adam e. fierro & glen mazzara air?
### Context:
CREATE TABLE table_30030477_1 (original_air_date VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_30030477_1 WHERE written_by = "Adam E. Fierro & Glen Mazzara" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
in which date the strea was w 2
### Context:
CREATE TABLE table_30047613_12 (date VARCHAR, streak VARCHAR) [/INST]
### Response:
SELECT date FROM table_30047613_12 WHERE streak = "W 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:
in april 13 what was the streak
### Context:
CREATE TABLE table_30047613_12 (streak VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT streak FROM table_30047613_12 WHERE date = "April 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:
in april 13 who made the high rebounds
### Context:
CREATE TABLE table_30047613_12 (high_rebounds VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_rebounds FROM table_30047613_12 WHERE date = "April 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:
Name the game for l 111–126
### Context:
CREATE TABLE table_30049462_8 (game VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT game FROM table_30049462_8 WHERE score = "L 111–126" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 score for march 8
### Context:
CREATE TABLE table_30049462_8 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_30049462_8 WHERE date = "March 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:
in the detroit team who made the high points
### Context:
CREATE TABLE table_30049462_5 (high_points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_30049462_5 WHERE team = "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:
what is the score in the philadelphia team
### Context:
CREATE TABLE table_30049462_5 (score VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT COUNT(score) FROM table_30049462_5 WHERE team = "Philadelphia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 december 7 who made the high points
### Context:
CREATE TABLE table_30049462_5 (high_points VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_30049462_5 WHERE date = "December 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:
in how many dates the game was 2
### Context:
CREATE TABLE table_30049462_3 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT COUNT(date) FROM table_30049462_3 WHERE game = 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:
in the milwaukee team who made the high points
### Context:
CREATE TABLE table_30049462_3 (high_points VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT high_points FROM table_30049462_3 WHERE team = "Milwaukee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 location and it's corresponding attendance during the game against Los Angeles?
### Context:
CREATE TABLE table_30049462_4 (location_attendance VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location_attendance FROM table_30049462_4 WHERE team = "Los Angeles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 km from wellington where the metlink code is mast?
### Context:
CREATE TABLE table_3005450_1 (km_from_wellington VARCHAR, metlink_code VARCHAR) [/INST]
### Response:
SELECT km_from_wellington FROM table_3005450_1 WHERE metlink_code = "MAST" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the name of the station where the metlink code is mata?
### Context:
CREATE TABLE table_3005450_1 (station VARCHAR, metlink_code VARCHAR) [/INST]
### Response:
SELECT station FROM table_3005450_1 WHERE metlink_code = "MATA" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 metlink code that opened in 1908?
### Context:
CREATE TABLE table_3005450_1 (metlink_code VARCHAR, opened VARCHAR) [/INST]
### Response:
SELECT metlink_code FROM table_3005450_1 WHERE opened = "1908" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 teams did inge – 6 have the high assists with?
### Context:
CREATE TABLE table_30054758_3 (team VARCHAR, high_assists VARCHAR) [/INST]
### Response:
SELECT COUNT(team) FROM table_30054758_3 WHERE high_assists = "Inge – 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 record for december 3?
### Context:
CREATE TABLE table_30054758_3 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_30054758_3 WHERE date = "December 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:
How many entries are there for high rebounds when high points is inge – 19?
### Context:
CREATE TABLE table_30054758_3 (high_rebounds VARCHAR, high_points VARCHAR) [/INST]
### Response:
SELECT COUNT(high_rebounds) FROM table_30054758_3 WHERE high_points = "Inge – 19" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games are shown when the is location attendance is phog allen fieldhouse , lawrence, ks (16,300)?
### Context:
CREATE TABLE table_30054758_3 (game VARCHAR, location_attendance VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_30054758_3 WHERE location_attendance = "Phog Allen Fieldhouse , Lawrence, KS (16,300)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 high assits have a date of february 5?
### Context:
CREATE TABLE table_30054758_5 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_30054758_5 WHERE date = "February 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 shown for fri 26 aug when mon 22 aug is —— no time?
### Context:
CREATE TABLE table_30058355_2 (fri_26_aug VARCHAR, mon_22_aug VARCHAR) [/INST]
### Response:
SELECT fri_26_aug FROM table_30058355_2 WHERE mon_22_aug = "—— No Time" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for sat 20 aug when fri 26 aug is 19' 30.70 116.023mph?
### Context:
CREATE TABLE table_30058355_2 (sat_20_aug VARCHAR, fri_26_aug VARCHAR) [/INST]
### Response:
SELECT sat_20_aug FROM table_30058355_2 WHERE fri_26_aug = "19' 30.70 116.023mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for mon 22 aug whenwed 24 aug is 19' 56.16 113.553mph?
### Context:
CREATE TABLE table_30058355_2 (mon_22_aug VARCHAR, wed_24_aug VARCHAR) [/INST]
### Response:
SELECT mon_22_aug FROM table_30058355_2 WHERE wed_24_aug = "19' 56.16 113.553mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 thurs 25 aug when wed 24 aug is 19' 59.73 113.216mph?
### Context:
CREATE TABLE table_30058355_2 (thurs_25_aug VARCHAR, wed_24_aug VARCHAR) [/INST]
### Response:
SELECT thurs_25_aug FROM table_30058355_2 WHERE wed_24_aug = "19' 59.73 113.216mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for thurs 25 aug when fri 26 aug is 19' 30.70 116.023mph?
### Context:
CREATE TABLE table_30058355_2 (thurs_25_aug VARCHAR, fri_26_aug VARCHAR) [/INST]
### Response:
SELECT thurs_25_aug FROM table_30058355_2 WHERE fri_26_aug = "19' 30.70 116.023mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 best rank possible?
### Context:
CREATE TABLE table_30058355_5 (rank INTEGER) [/INST]
### Response:
SELECT MIN(rank) FROM table_30058355_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:
List all GT4 Cup winners played on the Spa-Francorchamps Report.
### Context:
CREATE TABLE table_30060356_3 (gt4_cup_winner VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT gt4_cup_winner FROM table_30060356_3 WHERE circuit = "Spa-Francorchamps Report" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 gt3 pro / am cup winners when the gt3 pro cup winner was no. 1 vita4one?
### Context:
CREATE TABLE table_30060356_3 (gt3_pro___am_cup_winner VARCHAR, gt3_pro_cup_winner VARCHAR) [/INST]
### Response:
SELECT gt3_pro___am_cup_winner FROM table_30060356_3 WHERE gt3_pro_cup_winner = "No. 1 Vita4One" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest numbered event?
### Context:
CREATE TABLE table_30060356_3 (event INTEGER) [/INST]
### Response:
SELECT MAX(event) FROM table_30060356_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 every entry for Tuesday August 23 if the entry for Wednesday August 24 is 22' 23.29 101.116mph?
### Context:
CREATE TABLE table_30058355_7 (tues_23_aug VARCHAR, wed_24_aug VARCHAR) [/INST]
### Response:
SELECT tues_23_aug FROM table_30058355_7 WHERE wed_24_aug = "22' 23.29 101.116mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every entry for Saturday August 27 when the entry for Thursday August 25 is 23' 56.90 94.528mph?
### Context:
CREATE TABLE table_30058355_7 (sat_27_aug VARCHAR, thurs_25_aug VARCHAR) [/INST]
### Response:
SELECT sat_27_aug FROM table_30058355_7 WHERE thurs_25_aug = "23' 56.90 94.528mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 every entry for Friday August 26 when the entry for Wednesday August 24 is 23' 52.67 94.807mph?
### Context:
CREATE TABLE table_30058355_7 (fri_26_aug VARCHAR, wed_24_aug VARCHAR) [/INST]
### Response:
SELECT fri_26_aug FROM table_30058355_7 WHERE wed_24_aug = "23' 52.67 94.807mph" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 david ashburn richard westbrook is the gt3 winner and 1 is the round what is the length?
### Context:
CREATE TABLE table_30062172_3 (length VARCHAR, round VARCHAR, gt3_winner VARCHAR) [/INST]
### Response:
SELECT length FROM table_30062172_3 WHERE round = 1 AND gt3_winner = "David Ashburn Richard Westbrook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 charles bateman michael lyons is the gt3 winner and donington park is the circuit who is the gt4 winner?
### Context:
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, circuit VARCHAR, gt3_winner VARCHAR) [/INST]
### Response:
SELECT gt4_winner FROM table_30062172_3 WHERE circuit = "Donington Park" AND gt3_winner = "Charles Bateman Michael Lyons" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 charles bateman michael lyons is the gt3 winner and 9 is the round who is the gt4 winner?
### Context:
CREATE TABLE table_30062172_3 (gt4_winner VARCHAR, round VARCHAR, gt3_winner VARCHAR) [/INST]
### Response:
SELECT gt4_winner FROM table_30062172_3 WHERE round = 9 AND gt3_winner = "Charles Bateman Michael Lyons" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tim bridgman gregor fisken is the pole position who is the gt3 winner?
### Context:
CREATE TABLE table_30062172_3 (gt3_winner VARCHAR, pole_position VARCHAR) [/INST]
### Response:
SELECT gt3_winner FROM table_30062172_3 WHERE pole_position = "Tim Bridgman Gregor Fisken" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List the rider for the doncaster handicap compeition.
### Context:
CREATE TABLE table_30098144_2 (jockey VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT jockey FROM table_30098144_2 WHERE race = "Doncaster Handicap" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 number of troops for troops per $1 billion being 2.45
### Context:
CREATE TABLE table_30108346_1 (number_of_troops VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR) [/INST]
### Response:
SELECT COUNT(number_of_troops) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.45" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of troops per one million being 2.76
### Context:
CREATE TABLE table_30108346_1 (troops_per_one_million_population VARCHAR, troops_per_$1_billion___usd___gdp VARCHAR) [/INST]
### Response:
SELECT COUNT(troops_per_one_million_population) FROM table_30108346_1 WHERE troops_per_$1_billion___usd___gdp = "2.76" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country for troops per one million being 54.9
### Context:
CREATE TABLE table_30108346_1 (country VARCHAR, troops_per_one_million_population VARCHAR) [/INST]
### Response:
SELECT country FROM table_30108346_1 WHERE troops_per_one_million_population = "54.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:
Which player(s) played at Howard college?
### Context:
CREATE TABLE table_30108930_6 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_30108930_6 WHERE college = "Howard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CFL team was pick #35?
### Context:
CREATE TABLE table_30108930_6 (cfl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 35 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 CFL team got pick 34?
### Context:
CREATE TABLE table_30108930_6 (cfl_team VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT cfl_team FROM table_30108930_6 WHERE pick__number = 34 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Tyrell Francisco's player position?
### Context:
CREATE TABLE table_30108930_6 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_30108930_6 WHERE player = "Tyrell Francisco" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 barony of the Gurraghy townland?
### Context:
CREATE TABLE table_30120547_1 (barony VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT barony FROM table_30120547_1 WHERE townland = "Gurraghy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 civil parish of the cappanaboul townland?
### Context:
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT civil_parish FROM table_30120547_1 WHERE townland = "Cappanaboul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 civil parishes of the townlands with an area of 119 acres?
### Context:
CREATE TABLE table_30120547_1 (civil_parish VARCHAR, area__acres__ VARCHAR) [/INST]
### Response:
SELECT civil_parish FROM table_30120547_1 WHERE area__acres__ = 119 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What civil paris appears when Ballynamona is the townland with 126 acres?
### Context:
CREATE TABLE table_30120556_1 (civil_parish VARCHAR, townland VARCHAR, area__acres__ VARCHAR) [/INST]
### Response:
SELECT civil_parish FROM table_30120556_1 WHERE townland = "Ballynamona" AND area__acres__ = 126 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the area of the civil parish kilworth and townland monadrishane?
### Context:
CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, civil_parish VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT area__acres__ FROM table_30120556_1 WHERE civil_parish = "Kilworth" AND townland = "Monadrishane" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 barony's appear when Ballyvadona is the townland.
### Context:
CREATE TABLE table_30120556_1 (barony VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT COUNT(barony) FROM table_30120556_1 WHERE townland = "Ballyvadona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 items appear in the area column when Glasvaunta is the townland?
### Context:
CREATE TABLE table_30120556_1 (area__acres__ VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT COUNT(area__acres__) FROM table_30120556_1 WHERE townland = "Glasvaunta" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 area in Derrynanool townland?
### Context:
CREATE TABLE table_30120556_1 (area__acres__ INTEGER, townland VARCHAR) [/INST]
### Response:
SELECT MIN(area__acres__) FROM table_30120556_1 WHERE townland = "Derrynanool" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Lisladeen poor law union?
### Context:
CREATE TABLE table_30120566_1 (poor_law_union VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT poor_law_union FROM table_30120566_1 WHERE townland = "Lisladeen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 barony are both the townland Dawstown and the civil parish Matehy located?
### Context:
CREATE TABLE table_30120566_1 (barony VARCHAR, townland VARCHAR, civil_parish VARCHAR) [/INST]
### Response:
SELECT barony FROM table_30120566_1 WHERE townland = "Dawstown" AND civil_parish = "Matehy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What barony is Ballycunningham in?
### Context:
CREATE TABLE table_30120566_1 (barony VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT barony FROM table_30120566_1 WHERE townland = "Ballycunningham" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 different sizes (in acres) are noted for Rathcoola East?
### Context:
CREATE TABLE table_30120566_1 (area__acres__ VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT COUNT(area__acres__) FROM table_30120566_1 WHERE townland = "Rathcoola East" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 areas have townland as kilgilky north?
### Context:
CREATE TABLE table_30120560_1 (area__acres__ VARCHAR, townland VARCHAR) [/INST]
### Response:
SELECT COUNT(area__acres__) FROM table_30120560_1 WHERE townland = "Kilgilky North" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cilvil parishes have areas of 405?
### Context:
CREATE TABLE table_30120560_1 (civil_parish VARCHAR, area__acres__ VARCHAR) [/INST]
### Response:
SELECT civil_parish FROM table_30120560_1 WHERE area__acres__ = 405 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 barony and an area of 560?
### Context:
CREATE TABLE table_30120560_1 (barony VARCHAR, area__acres__ VARCHAR) [/INST]
### Response:
SELECT barony FROM table_30120560_1 WHERE area__acres__ = 560 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.