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 smallest amount of touchdowns when there is a total player and a number of field goals of more than 0?
### Context:
CREATE TABLE table_name_88 (touchdowns INTEGER, player VARCHAR, field_goals VARCHAR) [/INST]
### Response:
SELECT MIN(touchdowns) FROM table_name_88 WHERE player = "total" AND field_goals > 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:
On what Date were the Results¹ 4:0?
### Context:
CREATE TABLE table_name_56 (date VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_56 WHERE results¹ = "4: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:
On what Date were the Results¹ 5:1?
### Context:
CREATE TABLE table_name_72 (date VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_72 WHERE results¹ = "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:
On what Date were the Results¹ 4:0?
### Context:
CREATE TABLE table_name_47 (date VARCHAR, results¹ VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_47 WHERE results¹ = "4:0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pseudoknot prediction of the software named tfold?
### Context:
CREATE TABLE table_name_65 (_ VARCHAR, knots_knots VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT knots_knots AS :_pseudoknot_prediction, _ FROM table_name_65 WHERE name = "tfold" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Chilean word is used for the Castilian word ordenador?
### Context:
CREATE TABLE table_name_78 (chilean VARCHAR, castilian VARCHAR) [/INST]
### Response:
SELECT chilean FROM table_name_78 WHERE castilian = "ordenador" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Italian word for the Mexican word frijol?
### Context:
CREATE TABLE table_name_59 (italian VARCHAR, mexican VARCHAR) [/INST]
### Response:
SELECT italian FROM table_name_59 WHERE mexican = "frijol" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 word would a Castilian speaker use for the Italian word auto(mobile)?
### Context:
CREATE TABLE table_name_95 (castilian VARCHAR, italian VARCHAR) [/INST]
### Response:
SELECT castilian FROM table_name_95 WHERE italian = "auto(mobile)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 word would a Castilian speaker use for the Italian word auto(mobile)?
### Context:
CREATE TABLE table_name_17 (castilian VARCHAR, italian VARCHAR) [/INST]
### Response:
SELECT castilian FROM table_name_17 WHERE italian = "auto(mobile)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 would an Italian say the Andalusian word coche?
### Context:
CREATE TABLE table_name_78 (italian VARCHAR, andalusian VARCHAR) [/INST]
### Response:
SELECT italian FROM table_name_78 WHERE andalusian = "coche" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Home has a Visitor of ny rangers, and a Series of flyers win 4–3?
### Context:
CREATE TABLE table_name_42 (home VARCHAR, visitor VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_42 WHERE visitor = "ny rangers" AND series = "flyers win 4–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 Score has a Series of flyers lead 3–2?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_17 WHERE series = "flyers lead 3–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Decision has a Date of april 25?
### Context:
CREATE TABLE table_name_85 (decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_85 WHERE date = "april 25" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Decision has a Date of april 30?
### Context:
CREATE TABLE table_name_95 (decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT decision FROM table_name_95 WHERE date = "april 30" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Home has a Series of series tied 3–3?
### Context:
CREATE TABLE table_name_92 (home VARCHAR, series VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_92 WHERE series = "series tied 3–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:
Events of 22, and a Rank smaller than 4 involved which of the lowest earnings ($)?
### Context:
CREATE TABLE table_name_91 (earnings___ INTEGER, events VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(earnings___) AS $__ FROM table_name_91 WHERE events = 22 AND rank < 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:
Player of corey pavin, and a Rank larger than 4 involved which highest earnings ($)?
### Context:
CREATE TABLE table_name_72 (earnings___ INTEGER, player VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(earnings___) AS $__ FROM table_name_72 WHERE player = "corey pavin" AND rank > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the mascot with an enrollment (2010) less than 980, and heritage as the school?
### Context:
CREATE TABLE table_name_20 (mascot VARCHAR, enrollment__2010_ VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT mascot FROM table_name_20 WHERE enrollment__2010_ < 980 AND school = "heritage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the class of the player with a weight of 242 pounds?
### Context:
CREATE TABLE table_name_9 (class VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_9 WHERE weight = 242 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were played by the player at FB?
### Context:
CREATE TABLE table_name_18 (games VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(games) AS ↑ FROM table_name_18 WHERE position = "fb" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name has a Round smaller than 5, and a Pick # larger than 13?
### Context:
CREATE TABLE table_name_50 (name VARCHAR, round VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_50 WHERE round < 5 AND pick__number > 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:
Which Pick # has a Round smaller than 6, and an Overall larger than 13, and a College of penn state?
### Context:
CREATE TABLE table_name_6 (pick__number VARCHAR, college VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_name_6 WHERE round < 6 AND overall > 13 AND college = "penn state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Name has an Overall of 235?
### Context:
CREATE TABLE table_name_78 (name VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_78 WHERE overall = 235 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cosponsors have a Date introduced of may 22, 2008?
### Context:
CREATE TABLE table_name_15 (_number_of_cosponsors VARCHAR, date_introduced VARCHAR) [/INST]
### Response:
SELECT COUNT(_number_of_cosponsors) FROM table_name_15 WHERE date_introduced = "may 22, 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:
Which Congress has a # of cosponsors of 19?
### Context:
CREATE TABLE table_name_51 (congress VARCHAR, _number_of_cosponsors VARCHAR) [/INST]
### Response:
SELECT congress FROM table_name_51 WHERE _number_of_cosponsors = 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:
On what date was a friendly match held at Auckland?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE competition = "friendly match" AND venue = "auckland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What were the goals at Sydney?
### Context:
CREATE TABLE table_name_16 (goals VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT goals FROM table_name_16 WHERE venue = "sydney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sets lost have a sets won less than 0?
### Context:
CREATE TABLE table_name_15 (sets_lost VARCHAR, sets_won INTEGER) [/INST]
### Response:
SELECT COUNT(sets_lost) FROM table_name_15 WHERE sets_won < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What shows for IATA for the City of sapporo?
### Context:
CREATE TABLE table_name_89 (iata VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_89 WHERE city = "sapporo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO when the IATA shows cts?
### Context:
CREATE TABLE table_name_72 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_72 WHERE iata = "cts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Country when the IATA shows cju?
### Context:
CREATE TABLE table_name_98 (country VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_98 WHERE iata = "cju" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO when the IATA shows mfm?
### Context:
CREATE TABLE table_name_2 (icao VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_2 WHERE iata = "mfm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ICAO for Hong Kong?
### Context:
CREATE TABLE table_name_73 (icao VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT icao FROM table_name_73 WHERE country = "hong kong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Airport when the ICAO shows rpvm?
### Context:
CREATE TABLE table_name_56 (airport VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_56 WHERE icao = "rpvm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals for value with fewer than 5 draws and under 70 points?
### Context:
CREATE TABLE table_name_88 (goals_for INTEGER, draw VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(goals_for) FROM table_name_88 WHERE draw < 5 AND points < 70 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals against value for a team with 83 points and a difference over 50?
### Context:
CREATE TABLE table_name_31 (goals_against INTEGER, points VARCHAR, goal_difference VARCHAR) [/INST]
### Response:
SELECT MIN(goals_against) FROM table_name_31 WHERE points = 83 AND goal_difference > 50 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest season that has a position over 12?
### Context:
CREATE TABLE table_name_80 (season INTEGER, position INTEGER) [/INST]
### Response:
SELECT MIN(season) FROM table_name_80 WHERE position > 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average goals for with a position under 12, draws over 1, and goals against under 28?
### Context:
CREATE TABLE table_name_49 (goals_for INTEGER, goals_against VARCHAR, position VARCHAR, draw VARCHAR) [/INST]
### Response:
SELECT AVG(goals_for) FROM table_name_49 WHERE position < 12 AND draw > 1 AND goals_against < 28 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the Opponent with a Result of l 17–24?
### Context:
CREATE TABLE table_name_78 (opponent VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_78 WHERE result = "l 17–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 Date has a Result of l 21–34?
### Context:
CREATE TABLE table_name_31 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_31 WHERE result = "l 21–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 Game Site has a Week smaller than 11, and a Date of october 21, 1973?
### Context:
CREATE TABLE table_name_85 (game_site VARCHAR, week VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_85 WHERE week < 11 AND date = "october 21, 1973" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the value of the lowest Week with a Record of 2–9?
### Context:
CREATE TABLE table_name_46 (week INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_46 WHERE record = "2–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:
Who is the opponent for the game that occurred after week 13?
### Context:
CREATE TABLE table_name_12 (opponent VARCHAR, week INTEGER) [/INST]
### Response:
SELECT opponent FROM table_name_12 WHERE week > 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did the play on week 6?
### Context:
CREATE TABLE table_name_3 (date VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_3 WHERE week = 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:
Which tournament had a 2009 result of 1R?
### Context:
CREATE TABLE table_name_77 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_77 WHERE 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:
Which tournament had a 2010 result of QF and a 2012 result of SF?
### Context:
CREATE TABLE table_name_64 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_64 WHERE 2012 = "sf" AND 2010 = "qf" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which tournament had a result in 2010 and 2012 of a?
### Context:
CREATE TABLE table_name_49 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_49 WHERE 2012 = "a" AND 2010 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was third during round 6 in Rybinsk?
### Context:
CREATE TABLE table_name_73 (third VARCHAR, venue VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_73 WHERE venue = "rybinsk" AND round = "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:
Who was third in round 14?
### Context:
CREATE TABLE table_name_43 (third VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_43 WHERE round = "14" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the venue with a 3.3km c prologue discipline?
### Context:
CREATE TABLE table_name_95 (venue VARCHAR, discipline VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_95 WHERE discipline = "3.3km c prologue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner on 28 December 2007?
### Context:
CREATE TABLE table_name_59 (winner VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_59 WHERE date = "28 december 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:
Who was third at the 0.8km f sprint discipline?
### Context:
CREATE TABLE table_name_32 (third VARCHAR, discipline VARCHAR) [/INST]
### Response:
SELECT third FROM table_name_32 WHERE discipline = "0.8km f sprint" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 cargo of an airport ranked larger than 19 with a code of BKK/VTBS?
### Context:
CREATE TABLE table_name_18 (total_cargo__metric_tonnes_ INTEGER, code__iata_icao_ VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(total_cargo__metric_tonnes_) FROM table_name_18 WHERE code__iata_icao_ = "bkk/vtbs" AND rank > 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:
What is the rank of the airport with the BKK/VTBS code?
### Context:
CREATE TABLE table_name_60 (rank VARCHAR, code__iata_icao_ VARCHAR) [/INST]
### Response:
SELECT rank FROM table_name_60 WHERE code__iata_icao_ = "bkk/vtbs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Matches has champion Rank of 5?
### Context:
CREATE TABLE table_name_16 (matches_as_champion INTEGER, rank VARCHAR) [/INST]
### Response:
SELECT MAX(matches_as_champion) FROM table_name_16 WHERE rank = 5 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Matches is on 24 march 1963 with a Rank larger than 44?
### Context:
CREATE TABLE table_name_6 (matches_as_champion INTEGER, title_last_held VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(matches_as_champion) FROM table_name_6 WHERE title_last_held = "24 march 1963" AND rank > 44 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what game was on may 24
### Context:
CREATE TABLE table_name_27 (game VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game FROM table_name_27 WHERE date = "may 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 game was on may 29
### Context:
CREATE TABLE table_name_5 (result VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_5 WHERE date = "may 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 played on may 20 on the home side
### Context:
CREATE TABLE table_name_50 (home_team VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_50 WHERE date = "may 20" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what team played in game 2
### Context:
CREATE TABLE table_name_24 (road_team VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT road_team FROM table_name_24 WHERE game = "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:
Which Raison Blue has the highest nicotine?
### Context:
CREATE TABLE table_name_40 (nicotine INTEGER, name VARCHAR) [/INST]
### Response:
SELECT MAX(nicotine) FROM table_name_40 WHERE name = "raison blue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For Raison Blue with a nicotine larger than 0.30000000000000004, what's the lowest quantity?
### Context:
CREATE TABLE table_name_60 (quantity INTEGER, name VARCHAR, nicotine VARCHAR) [/INST]
### Response:
SELECT MIN(quantity) FROM table_name_60 WHERE name = "raison blue" AND nicotine > 0.30000000000000004 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result for the fil Paljas?
### Context:
CREATE TABLE table_name_1 (result VARCHAR, film_title VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_1 WHERE film_title = "paljas" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year was the rank less than 6 for Damac Heights?
### Context:
CREATE TABLE table_name_10 (year VARCHAR, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_10 WHERE rank < 6 AND name = "damac heights" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 height for rank greater than 10 in Tameer Tower?
### Context:
CREATE TABLE table_name_77 (height_m__ft_ VARCHAR, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height_m__ft_ FROM table_name_77 WHERE rank > 10 AND name = "tameer tower" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 earliest year with rank 20 and less than 60 floors?
### Context:
CREATE TABLE table_name_65 (year INTEGER, rank VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_65 WHERE rank = 20 AND floors < 60 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 floors with rank greater than 1 in Conrad Dubai?
### Context:
CREATE TABLE table_name_96 (floors INTEGER, rank VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT MAX(floors) FROM table_name_96 WHERE rank > 1 AND name = "conrad dubai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Laps have a Driver of satrio hermanto?
### Context:
CREATE TABLE table_name_76 (laps INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_76 WHERE driver = "satrio hermanto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time has a Grid of 19?
### Context:
CREATE TABLE table_name_59 (time VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_59 WHERE grid = 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:
Which Grid is the lowest one that has a Team of germany, and Laps smaller than 45?
### Context:
CREATE TABLE table_name_42 (grid INTEGER, team VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT MIN(grid) FROM table_name_42 WHERE team = "germany" AND laps < 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:
WHich team draft the player who went to college in Washington?
### Context:
CREATE TABLE table_name_19 (nfl_team VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT nfl_team FROM table_name_19 WHERE college = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position did the palyer drafted out of Washington play?
### Context:
CREATE TABLE table_name_34 (position VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_34 WHERE college = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of Gold medals when there are 5 bronze medals?
### Context:
CREATE TABLE table_name_82 (gold INTEGER, bronze VARCHAR) [/INST]
### Response:
SELECT AVG(gold) FROM table_name_82 WHERE bronze = 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 highest amount of bronze medals when the rank was larger than 9?
### Context:
CREATE TABLE table_name_46 (bronze INTEGER, rank INTEGER) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_46 WHERE rank > 9 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the leowest number of Bronze medals for Jamaica who ranked less than 4 and had more than 0 silver medals and a total of less than 22 medals?
### Context:
CREATE TABLE table_name_75 (bronze INTEGER, total VARCHAR, nation VARCHAR, silver VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(bronze) FROM table_name_75 WHERE silver > 0 AND rank < 4 AND nation = "jamaica" AND total < 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:
Nation of bulgaria, and a Place larger than 1 had what highest 3 Balls, 2 Ribbons?
### Context:
CREATE TABLE table_name_16 (_2_ribbons VARCHAR, nation VARCHAR, place VARCHAR) [/INST]
### Response:
SELECT MAX(3 AS _balls), _2_ribbons FROM table_name_16 WHERE nation = "bulgaria" AND place > 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:
5 Hoops that has a Place larger than 7, and a Total larger than 38.525 had what sum?
### Context:
CREATE TABLE table_name_83 (place VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(5 AS _hoops) FROM table_name_83 WHERE place > 7 AND total > 38.525 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 voice acter played tien
### Context:
CREATE TABLE table_name_59 (voice_actor__japanese_ VARCHAR, character_name VARCHAR) [/INST]
### Response:
SELECT voice_actor__japanese_ FROM table_name_59 WHERE character_name = "tien" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character did Laara sadiq play
### Context:
CREATE TABLE table_name_50 (character_name VARCHAR, voice_actor__english_1998___pioneer_ VARCHAR) [/INST]
### Response:
SELECT character_name FROM table_name_50 WHERE voice_actor__english_1998___pioneer_ = "laara sadiq" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character did Masaharu satou play
### Context:
CREATE TABLE table_name_76 (character_name VARCHAR, voice_actor__japanese_ VARCHAR) [/INST]
### Response:
SELECT character_name FROM table_name_76 WHERE voice_actor__japanese_ = "masaharu satou" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character did dave ward play
### Context:
CREATE TABLE table_name_36 (voice_actor__english_1998___pioneer_ VARCHAR, voice_actor__english_1997___saban_ VARCHAR) [/INST]
### Response:
SELECT voice_actor__english_1998___pioneer_ FROM table_name_36 WHERE voice_actor__english_1997___saban_ = "dave ward" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 character did naoko watanabe play
### Context:
CREATE TABLE table_name_82 (character_name VARCHAR, voice_actor__japanese_ VARCHAR) [/INST]
### Response:
SELECT character_name FROM table_name_82 WHERE voice_actor__japanese_ = "naoko watanabe" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
At what Location was Miss World 2009?
### Context:
CREATE TABLE table_name_51 (location VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_51 WHERE year = 2009 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the 1996 Emarate cup on March 25, 1996?
### Context:
CREATE TABLE table_name_79 (score VARCHAR, competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_79 WHERE competition = "1996 emarate cup" AND date = "march 25, 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition was on August 11, 1996?
### Context:
CREATE TABLE table_name_42 (competition VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_42 WHERE date = "august 11, 1996" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 competition was in Dubai?
### Context:
CREATE TABLE table_name_80 (competition VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_80 WHERE venue = "dubai" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the match in Bangkok?
### Context:
CREATE TABLE table_name_75 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_75 WHERE venue = "bangkok" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the match with a result of 4-0?
### Context:
CREATE TABLE table_name_44 (date VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_44 WHERE result = "4-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the match with a 4-0 result?
### Context:
CREATE TABLE table_name_39 (score VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_39 WHERE result = "4-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which name has an overall number of more than 164, when the pick number is more than 2, the position is running back, and the round is 16?
### Context:
CREATE TABLE table_name_9 (name VARCHAR, round VARCHAR, position VARCHAR, overall VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_9 WHERE overall > 164 AND pick__number > 2 AND position = "running back" AND round = 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:
Which college's round is more than 4, when the overall is less than 237 and Ted Cottrell was the name?
### Context:
CREATE TABLE table_name_90 (college VARCHAR, name VARCHAR, round VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT college FROM table_name_90 WHERE round > 4 AND overall < 237 AND name = "ted cottrell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall for Oregon State?
### Context:
CREATE TABLE table_name_7 (overall INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MIN(overall) FROM table_name_7 WHERE college = "oregon state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the class of the qb, Josh Riddell?
### Context:
CREATE TABLE table_name_45 (class VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_45 WHERE position = "qb" AND name = "josh riddell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Jamar Chaney play?
### Context:
CREATE TABLE table_name_45 (position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_45 WHERE name = "jamar chaney" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometown is Kyle love from?
### Context:
CREATE TABLE table_name_47 (hometown VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_47 WHERE name = "kyle love" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Attendance has a Home of philadelphia, and Points smaller than 23?
### Context:
CREATE TABLE table_name_59 (attendance INTEGER, home VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_59 WHERE home = "philadelphia" AND points < 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Visitor has a Record of 9–12–5?
### Context:
CREATE TABLE table_name_71 (visitor VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_71 WHERE record = "9–12–5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Date has a Visitor of boston?
### Context:
CREATE TABLE table_name_76 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_76 WHERE visitor = "boston" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date for the grass surface final against Nathan Healey?
### Context:
CREATE TABLE table_name_41 (date VARCHAR, surface VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_41 WHERE surface = "grass" AND opponent_in_the_final = "nathan healey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the final against Dane Propoggia?
### Context:
CREATE TABLE table_name_72 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_72 WHERE opponent_in_the_final = "dane propoggia" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.