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 average 2012 civil liberties value associated with a 2011 status of not free, political rights 2012 over 6, and political rights 2011 over 7?
### Context:
CREATE TABLE table_name_42 (civil_liberties_2012 INTEGER, political_rights_2011 VARCHAR, status_2011 VARCHAR, political_rights_2012 VARCHAR) [/INST]
### Response:
SELECT AVG(civil_liberties_2012) FROM table_name_42 WHERE status_2011 = "not free" AND political_rights_2012 > 6 AND political_rights_2011 > 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:
What is the total number of civil liberties 2011 values having 2010 political rights values under 3 and 2011 political rights values under 1?
### Context:
CREATE TABLE table_name_70 (civil_liberties_2011 VARCHAR, political_rights_2010 VARCHAR, political_rights_2011 VARCHAR) [/INST]
### Response:
SELECT COUNT(civil_liberties_2011) FROM table_name_70 WHERE political_rights_2010 < 3 AND political_rights_2011 < 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 percentage of people were opposed to the candidate based on the WNBC/Marist poll that showed 8% of people were unsure?
### Context:
CREATE TABLE table_name_47 (oppose VARCHAR, unsure VARCHAR, poll_source VARCHAR) [/INST]
### Response:
SELECT oppose FROM table_name_47 WHERE unsure = "8%" AND poll_source = "wnbc/marist poll" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 percentage of people were opposed to the candidate based on the Time Poll poll that showed 6% of people were unsure?
### Context:
CREATE TABLE table_name_22 (oppose VARCHAR, poll_source VARCHAR, unsure VARCHAR) [/INST]
### Response:
SELECT oppose FROM table_name_22 WHERE poll_source = "time poll" AND unsure = "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 percentage of people said they would consider Rudy Giuliani as a candidate according to the Newsweek poll that showed 32% opposed him?
### Context:
CREATE TABLE table_name_21 (consider VARCHAR, candidate VARCHAR, poll_source VARCHAR, oppose VARCHAR) [/INST]
### Response:
SELECT consider FROM table_name_21 WHERE poll_source = "newsweek poll" AND oppose = "32%" AND candidate = "rudy giuliani" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result of the game in Stuttgart, West Germany and a goal number of less than 9?
### Context:
CREATE TABLE table_name_12 (result VARCHAR, venue VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_12 WHERE venue = "stuttgart, west germany" AND goal < 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 Record has an Opponent of twins, and a Date of july 25?
### Context:
CREATE TABLE table_name_10 (record VARCHAR, opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_10 WHERE opponent = "twins" AND date = "july 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:
How much is per capita income when median household income is $42,845?
### Context:
CREATE TABLE table_name_43 (per_capita_income VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT per_capita_income FROM table_name_43 WHERE median_household_income = "$42,845" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Points have a Score of 4–1, and a Game smaller than 39?
### Context:
CREATE TABLE table_name_91 (points INTEGER, score VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT SUM(points) FROM table_name_91 WHERE score = "4–1" AND game < 39 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 January has a Score of 7–4, and a Game smaller than 42?
### Context:
CREATE TABLE table_name_69 (january INTEGER, score VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT SUM(january) FROM table_name_69 WHERE score = "7–4" AND game < 42 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games have a Score of 1–0, and Points smaller than 66?
### Context:
CREATE TABLE table_name_9 (game VARCHAR, score VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT COUNT(game) FROM table_name_9 WHERE score = "1–0" AND points < 66 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Points is the lowest one that has a Score of 1–4, and a January smaller than 18?
### Context:
CREATE TABLE table_name_26 (points INTEGER, score VARCHAR, january VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_26 WHERE score = "1–4" AND january < 18 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which borough or census area has a $59,596 median household income?
### Context:
CREATE TABLE table_name_68 (borough_or_census_area VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT borough_or_census_area FROM table_name_68 WHERE median_household_income = "$59,596" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 population of the area with a median family income of $71,278?
### Context:
CREATE TABLE table_name_59 (population VARCHAR, median_family_income VARCHAR) [/INST]
### Response:
SELECT COUNT(population) FROM table_name_59 WHERE median_family_income = "$71,278" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the Outcome of the Danish Open in 1985?
### Context:
CREATE TABLE table_name_21 (outcome VARCHAR, venue VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_21 WHERE venue = "danish open" AND year = "1985" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 in 1986 with an Outcome of 1?
### Context:
CREATE TABLE table_name_71 (venue VARCHAR, year VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_71 WHERE year = "1986" AND outcome = "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 was the Outcome in 1983 of the WD Event?
### Context:
CREATE TABLE table_name_11 (outcome VARCHAR, event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_11 WHERE event = "wd" AND year = "1983" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did the German Open have Yoo Sang-Hee as Partner?
### Context:
CREATE TABLE table_name_8 (year VARCHAR, partner VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_8 WHERE partner = "yoo sang-hee" AND venue = "german open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Outcome in the Malaysia Open with Partner Yoo Sang-Hee?
### Context:
CREATE TABLE table_name_81 (outcome VARCHAR, partner VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_81 WHERE partner = "yoo sang-hee" AND venue = "malaysia open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Partner during the Asian Games Year?
### Context:
CREATE TABLE table_name_23 (partner VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT partner FROM table_name_23 WHERE year = "asian games" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 loss for August 19?
### Context:
CREATE TABLE table_name_91 (loss VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT loss FROM table_name_91 WHERE date = "august 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 Municipality has a Rank of 44?
### Context:
CREATE TABLE table_name_94 (municipality VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT municipality FROM table_name_94 WHERE 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 is the total Rank that has a Municipality of Winnipeg, an Area (KM 2) that's larger than 464.01?
### Context:
CREATE TABLE table_name_85 (rank INTEGER, municipality VARCHAR, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_85 WHERE municipality = "winnipeg" AND area__km_2__ > 464.01 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Area (KM 2) for the Province of Ontario, that has the Status of Town, a Municipality of Minto, and a Rank that's smaller than 84?
### Context:
CREATE TABLE table_name_96 (area__km_2__ INTEGER, rank VARCHAR, municipality VARCHAR, province VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT MAX(area__km_2__) FROM table_name_96 WHERE province = "ontario" AND status = "town" AND municipality = "minto" AND rank < 84 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 total of Rank that has an Area (KM 2) of 1050.14?
### Context:
CREATE TABLE table_name_6 (rank INTEGER, area__km_2__ VARCHAR) [/INST]
### Response:
SELECT SUM(rank) FROM table_name_6 WHERE area__km_2__ = 1050.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 is the listed Status that has the Province of Ontario and Rank of 86?
### Context:
CREATE TABLE table_name_19 (status VARCHAR, province VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_19 WHERE province = "ontario" AND rank = 86 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of event had the wrestler with a reign of 2 and held the title for 35 days?
### Context:
CREATE TABLE table_name_31 (event VARCHAR, reign VARCHAR, days_held VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_31 WHERE reign = "2" AND days_held = "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:
Where did the wrestler, super parka, with the title with a reign of 2?
### Context:
CREATE TABLE table_name_41 (location VARCHAR, wrestler VARCHAR, reign VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_41 WHERE wrestler = "super parka" AND reign = "2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the reign for super kendo who held it for 35 days?
### Context:
CREATE TABLE table_name_16 (reign VARCHAR, days_held VARCHAR, wrestler VARCHAR) [/INST]
### Response:
SELECT reign FROM table_name_16 WHERE days_held = "35" AND wrestler = "super kendo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 FCC info has an ERP W of 100 watts?
### Context:
CREATE TABLE table_name_67 (fcc_info VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT fcc_info FROM table_name_67 WHERE erp_w = "100 watts" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Frequency MHz has a Call Sign of K218BE?
### Context:
CREATE TABLE table_name_7 (frequency_mhz VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT frequency_mhz FROM table_name_7 WHERE call_sign = "k218be" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W has a Frequency MHz of 88.5 FM?
### Context:
CREATE TABLE table_name_15 (erp_w VARCHAR, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT erp_w FROM table_name_15 WHERE frequency_mhz = "88.5 fm" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the player from Spain with a rank lower than 3?
### Context:
CREATE TABLE table_name_62 (name VARCHAR, nationality VARCHAR, ranking VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_62 WHERE nationality = "spain" AND ranking > 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 region had a catalog number of 570 734-2?
### Context:
CREATE TABLE table_name_19 (region VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_19 WHERE catalog = "570 734-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 region had a release format of CD Maxi?
### Context:
CREATE TABLE table_name_8 (region VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_8 WHERE format = "cd maxi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 region had a release format of CD Maxi?
### Context:
CREATE TABLE table_name_20 (region VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_20 WHERE format = "cd maxi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did the Jet's play with an attendance of 11,309?
### Context:
CREATE TABLE table_name_98 (game_site VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_98 WHERE attendance = "11,309" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 result of the game against Bye?
### Context:
CREATE TABLE table_name_34 (result VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_34 WHERE opponent = "bye" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Result for week 15?
### Context:
CREATE TABLE table_name_53 (result VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_53 WHERE week = 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day was the appointment when Credentials Presented was jul 2, 1969?
### Context:
CREATE TABLE table_name_79 (appointment VARCHAR, credentials_presented VARCHAR) [/INST]
### Response:
SELECT appointment FROM table_name_79 WHERE credentials_presented = "jul 2, 1969" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the credentials presented for new jersey with a status of foreign service officer?
### Context:
CREATE TABLE table_name_59 (credentials_presented VARCHAR, state VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT credentials_presented FROM table_name_59 WHERE state = "new jersey" AND status = "foreign service officer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 title for david campbell mulford?
### Context:
CREATE TABLE table_name_90 (title VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT title FROM table_name_90 WHERE name = "david campbell mulford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 state has an appointment for jul 12, 2001?
### Context:
CREATE TABLE table_name_47 (state VARCHAR, appointment VARCHAR) [/INST]
### Response:
SELECT state FROM table_name_47 WHERE appointment = "jul 12, 2001" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were credentials presented for vermont?
### Context:
CREATE TABLE table_name_35 (credentials_presented VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT credentials_presented FROM table_name_35 WHERE state = "vermont" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Class has a Weight of 203?
### Context:
CREATE TABLE table_name_57 (class VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_57 WHERE weight = 203 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team 1 with team 2 Mount Cameroon FC?
### Context:
CREATE TABLE table_name_43 (team_1 VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT team_1 FROM table_name_43 WHERE team_2 = "mount cameroon fc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2nd leg of team 1 Dolphins?
### Context:
CREATE TABLE table_name_99 (team_1 VARCHAR) [/INST]
### Response:
SELECT 2 AS nd_leg FROM table_name_99 WHERE team_1 = "dolphins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the winner was No Race in a year after 1909, what was the distance?
### Context:
CREATE TABLE table_name_68 (distance__miles_ VARCHAR, winner VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT distance__miles_ FROM table_name_68 WHERE winner = "no race" AND year > 1909 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 horse won with a trainer of "no race"?
### Context:
CREATE TABLE table_name_21 (winner VARCHAR, trainer VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_21 WHERE trainer = "no race" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the jockey for the winning horse Helioptic?
### Context:
CREATE TABLE table_name_41 (jockey VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT jockey FROM table_name_41 WHERE winner = "helioptic" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 time for the winning horse Salford ii?
### Context:
CREATE TABLE table_name_94 (time VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_94 WHERE winner = "salford ii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 winning time for the winning horse, Kentucky ii?
### Context:
CREATE TABLE table_name_49 (time VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_49 WHERE winner = "kentucky ii" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position with the total number less than 1?
### Context:
CREATE TABLE table_name_1 (position VARCHAR, lost INTEGER) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_1 WHERE lost < 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 sum of golds for ranks of 6 and totals over 3?
### Context:
CREATE TABLE table_name_36 (gold INTEGER, rank VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT SUM(gold) FROM table_name_36 WHERE rank = "6" AND total > 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 average silver for golds over 2, ranks of 1, and bronzes over 0?
### Context:
CREATE TABLE table_name_35 (silver INTEGER, bronze VARCHAR, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT AVG(silver) FROM table_name_35 WHERE gold > 2 AND rank = "1" AND bronze > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number of totals that have silvers under 2, bronzes over 0, and golds over 1?
### Context:
CREATE TABLE table_name_57 (total VARCHAR, gold VARCHAR, silver VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_57 WHERE silver < 2 AND bronze > 0 AND gold > 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 total number of golds having a total of 1, bronzes of 0, and from West Germany?
### Context:
CREATE TABLE table_name_61 (gold VARCHAR, nation VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_61 WHERE total = 1 AND bronze < 1 AND nation = "west germany" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of bronzes having silvers over 5 and golds under 20?
### Context:
CREATE TABLE table_name_43 (bronze INTEGER, silver VARCHAR, gold VARCHAR) [/INST]
### Response:
SELECT SUM(bronze) FROM table_name_43 WHERE silver > 5 AND gold < 20 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the game with an attendance greater than 67,702?
### Context:
CREATE TABLE table_name_71 (result VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT result FROM table_name_71 WHERE attendance > 67 OFFSET 702 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Losses have a Ballarat FL of melton south, and an Against larger than 1468?
### Context:
CREATE TABLE table_name_10 (losses VARCHAR, ballarat_fl VARCHAR, against VARCHAR) [/INST]
### Response:
SELECT COUNT(losses) FROM table_name_10 WHERE ballarat_fl = "melton south" AND against > 1468 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Against has Byes smaller than 2?
### Context:
CREATE TABLE table_name_15 (against INTEGER, byes INTEGER) [/INST]
### Response:
SELECT AVG(against) FROM table_name_15 WHERE byes < 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:
How many Against has a Ballarat FL of darley and Wins larger than 8?
### Context:
CREATE TABLE table_name_4 (against VARCHAR, ballarat_fl VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(against) FROM table_name_4 WHERE ballarat_fl = "darley" AND wins > 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:
How many Byes have Against of 1076 and Wins smaller than 13?
### Context:
CREATE TABLE table_name_16 (byes INTEGER, against VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT AVG(byes) FROM table_name_16 WHERE against = 1076 AND wins < 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of Total Passengers when the annual change is 28.8% and the rank is less than 8?
### Context:
CREATE TABLE table_name_28 (total_passengers VARCHAR, annual_change VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT COUNT(total_passengers) FROM table_name_28 WHERE annual_change = "28.8%" AND rank < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Total Passengers when the annual change is 9.7% and the rank is less than 6?
### Context:
CREATE TABLE table_name_9 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT SUM(total_passengers) FROM table_name_9 WHERE annual_change = "9.7%" AND rank < 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 highest Total Passengers when the annual change is 18.3%, and the rank is less than 11?
### Context:
CREATE TABLE table_name_49 (total_passengers INTEGER, annual_change VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(total_passengers) FROM table_name_49 WHERE annual_change = "18.3%" AND rank < 11 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What location has an annual change of 7.6%
### Context:
CREATE TABLE table_name_32 (location VARCHAR, annual_change VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_32 WHERE annual_change = "7.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 Result has a Score of 1–0, and a Goal of 16?
### Context:
CREATE TABLE table_name_7 (result VARCHAR, score VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_7 WHERE score = "1–0" AND goal = 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 Score has a Result of 2–1, and a Competition of friendly, and a Goal smaller than 17?
### Context:
CREATE TABLE table_name_21 (score VARCHAR, goal VARCHAR, result VARCHAR, competition VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_21 WHERE result = "2–1" AND competition = "friendly" AND goal < 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Score has a Date of october 8, 2005, and a Venue of estadio alfonso lastras, san luis potosí, mexico?
### Context:
CREATE TABLE table_name_96 (score VARCHAR, date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_96 WHERE date = "october 8, 2005" AND venue = "estadio alfonso lastras, san luis potosí, mexico" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 has a Venue of estadio alfonso lastras, san luis potosí, mexico, and a Goal larger than 15?
### Context:
CREATE TABLE table_name_45 (competition VARCHAR, venue VARCHAR, goal VARCHAR) [/INST]
### Response:
SELECT competition FROM table_name_45 WHERE venue = "estadio alfonso lastras, san luis potosí, mexico" AND goal > 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the area for Worth Parish?
### Context:
CREATE TABLE table_name_22 (area__hectare_ VARCHAR, parish VARCHAR) [/INST]
### Response:
SELECT area__hectare_ FROM table_name_22 WHERE parish = "worth" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 week number with Phil Collins as the original artist?
### Context:
CREATE TABLE table_name_88 (week__number VARCHAR, original_artist VARCHAR) [/INST]
### Response:
SELECT week__number FROM table_name_88 WHERE original_artist = "phil collins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 order number that has top 20 (10 women) as the week number?
### Context:
CREATE TABLE table_name_16 (order__number VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT order__number FROM table_name_16 WHERE week__number = "top 20 (10 women)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original artist of top 9 as the week number?
### Context:
CREATE TABLE table_name_88 (original_artist VARCHAR, week__number VARCHAR) [/INST]
### Response:
SELECT original_artist FROM table_name_88 WHERE week__number = "top 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 week number that has Dolly Parton as the theme?
### Context:
CREATE TABLE table_name_12 (week__number VARCHAR, theme VARCHAR) [/INST]
### Response:
SELECT week__number FROM table_name_12 WHERE theme = "dolly parton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original artist that has 11 as the order number?
### Context:
CREATE TABLE table_name_69 (original_artist VARCHAR, order__number VARCHAR) [/INST]
### Response:
SELECT original_artist FROM table_name_69 WHERE order__number = "11" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the order number that has Aretha Franklin as the original artist?
### Context:
CREATE TABLE table_name_97 (order__number VARCHAR, original_artist VARCHAR) [/INST]
### Response:
SELECT order__number FROM table_name_97 WHERE original_artist = "aretha franklin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Format has a Date of 1993, and a Catalog of cleo 2481-2?
### Context:
CREATE TABLE table_name_81 (format VARCHAR, date VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_81 WHERE date = 1993 AND catalog = "cleo 2481-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 Label has a Date smaller than 2008, and a Catalog of fall cd 006?
### Context:
CREATE TABLE table_name_82 (label VARCHAR, date VARCHAR, catalog VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_82 WHERE date < 2008 AND catalog = "fall cd 006" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Round with a Position that is center?
### Context:
CREATE TABLE table_name_88 (round INTEGER, position VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_88 WHERE position = "center" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the sum of Round with a Pick that is 55?
### Context:
CREATE TABLE table_name_89 (round INTEGER, pick VARCHAR) [/INST]
### Response:
SELECT SUM(round) FROM table_name_89 WHERE pick = 55 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most wins when the number of losses was less than 4 and there was more than 0 ties?
### Context:
CREATE TABLE table_name_77 (wins INTEGER, losses VARCHAR, ties VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_77 WHERE losses < 4 AND ties > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which team had fewer than 2 losses and a position number more than 1?
### Context:
CREATE TABLE table_name_37 (team VARCHAR, losses VARCHAR, pos VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_37 WHERE losses < 2 AND pos > 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 season had Marcio Lassiter?
### Context:
CREATE TABLE table_name_97 (season VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_97 WHERE name = "marcio lassiter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 season had an acquisition of free agency, and was higher than 9?
### Context:
CREATE TABLE table_name_89 (season VARCHAR, acquisition_via VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_89 WHERE acquisition_via = "free agency" AND number > 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 number has an acquisition via the Rookie Draft, and is part of a School/club team at Cal State Fullerton?
### Context:
CREATE TABLE table_name_54 (number VARCHAR, acquisition_via VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT number FROM table_name_54 WHERE acquisition_via = "rookie draft" AND school_club_team = "cal state fullerton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rank of the medal total less than 15, more than 2 bronzes, 0 gold and 1 silver?
### Context:
CREATE TABLE table_name_29 (rank INTEGER, silver VARCHAR, gold VARCHAR, total VARCHAR, bronze VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_29 WHERE total < 15 AND bronze > 2 AND gold = 0 AND silver = 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 location of the team nicknamed Broncos, which was founded after 1889?
### Context:
CREATE TABLE table_name_59 (location VARCHAR, founded VARCHAR, team_nickname VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_59 WHERE founded > 1889 AND team_nickname = "broncos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the University of Montana, which was founded after 1890?
### Context:
CREATE TABLE table_name_23 (location VARCHAR, founded VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_23 WHERE founded > 1890 AND institution = "university of montana" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 landfall was in category 1 for Saffir-Simpson in 1999?
### Context:
CREATE TABLE table_name_85 (landfall VARCHAR, saffir_simpson_category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT landfall FROM table_name_85 WHERE saffir_simpson_category = 1 AND year = 1999 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lowest V(mph) for a Saffir-Simpson of 4 in 2005?
### Context:
CREATE TABLE table_name_36 (v_mph_ INTEGER, saffir_simpson_category VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(v_mph_) FROM table_name_36 WHERE saffir_simpson_category = 4 AND year = 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest SaffirSimpson with an NHC advisory of 18?
### Context:
CREATE TABLE table_name_8 (saffir_simpson_category INTEGER, nhc_advisory_number VARCHAR) [/INST]
### Response:
SELECT MAX(saffir_simpson_category) FROM table_name_8 WHERE nhc_advisory_number = "18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which athlete's rank is more than 15 when the result is less than 7.68, the group is b, and the nationality listed is Great Britain?
### Context:
CREATE TABLE table_name_82 (athlete VARCHAR, nationality VARCHAR, group VARCHAR, rank VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT athlete FROM table_name_82 WHERE rank > 15 AND result < 7.68 AND group = "b" AND nationality = "great britain" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did NASA launch the wide field infrared explorer (wire)?
### Context:
CREATE TABLE table_name_11 (launch_date VARCHAR, space_agency VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT launch_date FROM table_name_11 WHERE space_agency = "nasa" AND name = "wide field infrared explorer (wire)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 space agency launched the herschel space observatory?
### Context:
CREATE TABLE table_name_17 (space_agency VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT space_agency FROM table_name_17 WHERE name = "herschel space observatory" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lead has the third David Nedohin?
### Context:
CREATE TABLE table_name_98 (lead VARCHAR, third VARCHAR) [/INST]
### Response:
SELECT lead FROM table_name_98 WHERE third = "david nedohin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 builder completed after 1889?
### Context:
CREATE TABLE table_name_93 (builder VARCHAR, completed INTEGER) [/INST]
### Response:
SELECT builder FROM table_name_93 WHERE completed > 1889 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 builder completed before 1890 and launched on 9 june 1888?
### Context:
CREATE TABLE table_name_84 (builder VARCHAR, completed VARCHAR, launched VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_84 WHERE completed < 1890 AND launched = "9 june 1888" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 boat that was built by Chatham and Laid down of 25 april 1887?
### Context:
CREATE TABLE table_name_75 (name VARCHAR, builder VARCHAR, laid_down VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_75 WHERE builder = "chatham" AND laid_down = "25 april 1887" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.