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:
Who is the July playmate with a December playmate Morgan Fox?
### Context:
CREATE TABLE table_name_58 (july VARCHAR, december VARCHAR) [/INST]
### Response:
SELECT july FROM table_name_58 WHERE december = "morgan fox" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the March playmate with a November playmate Cara Wakelin?
### Context:
CREATE TABLE table_name_3 (march VARCHAR, november VARCHAR) [/INST]
### Response:
SELECT march FROM table_name_3 WHERE november = "cara wakelin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In which year did he finish 11th?
### Context:
CREATE TABLE table_name_31 (year VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_31 WHERE result = "11th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In which year did he finish 8th?
### Context:
CREATE TABLE table_name_3 (year VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_3 WHERE result = "8th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game that was played in the time of 2:38?
### Context:
CREATE TABLE table_name_95 (game INTEGER, time VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_name_95 WHERE time = "2:38" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the game that was played on October 4?
### Context:
CREATE TABLE table_name_61 (game INTEGER, date VARCHAR) [/INST]
### Response:
SELECT SUM(game) FROM table_name_61 WHERE date = "october 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:
August 16 had what record?
### Context:
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_72 WHERE date = "august 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:
Tell me the record for the date of August 18.
### Context:
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_55 WHERE date = "august 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:
For the record of 52-60 what's the date?
### Context:
CREATE TABLE table_name_60 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_60 WHERE record = "52-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 average attendance for the date of 7 November 2007 with an H/A of H?
### Context:
CREATE TABLE table_name_38 (attendance INTEGER, h___a VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_38 WHERE h___a = "h" AND date = "7 november 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:
What is the Group position for the date of 7 November 2007?
### Context:
CREATE TABLE table_name_9 (group_position VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT group_position FROM table_name_9 WHERE date = "7 november 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:
What year had a 1st round playoff in the NASL indoor league?
### Context:
CREATE TABLE table_name_6 (year VARCHAR, playoffs VARCHAR, league VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_6 WHERE playoffs = "1st round" AND league = "nasl indoor" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 normal temperature of Abbotsford, British Columbia?
### Context:
CREATE TABLE table_name_8 (normal_temperature VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT normal_temperature FROM table_name_8 WHERE city = "abbotsford, british columbia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on May 18?
### Context:
CREATE TABLE table_name_75 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_75 WHERE date = "may 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:
What is the home team of the game on May 22 with the Edmonton Oilers as the visiting team?
### Context:
CREATE TABLE table_name_29 (home VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_29 WHERE visitor = "edmonton oilers" AND date = "may 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:
What is the record of the game where the visitor team is the Edmonton Oilers?
### Context:
CREATE TABLE table_name_50 (record VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_50 WHERE visitor = "edmonton oilers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the lane less than 5 and is named ágnes kovács?
### Context:
CREATE TABLE table_name_65 (time VARCHAR, lane VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT time FROM table_name_65 WHERE lane < 5 AND name = "ágnes kovács" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lane for china?
### Context:
CREATE TABLE table_name_52 (lane INTEGER, nationality VARCHAR) [/INST]
### Response:
SELECT AVG(lane) FROM table_name_52 WHERE nationality = "china" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 lane that is called rebecca brown?
### Context:
CREATE TABLE table_name_88 (lane INTEGER, name VARCHAR) [/INST]
### Response:
SELECT AVG(lane) FROM table_name_88 WHERE name = "rebecca brown" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Championship total is over 13?
### Context:
CREATE TABLE table_name_99 (total INTEGER, championship INTEGER) [/INST]
### Response:
SELECT AVG(total) FROM table_name_99 WHERE championship > 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:
When Kerry is at 36.7%, what is the total number of others?
### Context:
CREATE TABLE table_name_88 (others_number VARCHAR, kerry_percentage VARCHAR) [/INST]
### Response:
SELECT COUNT(others_number) FROM table_name_88 WHERE kerry_percentage = "36.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:
When Bush has 52.9%, what is the Bush#?
### Context:
CREATE TABLE table_name_10 (bush_number VARCHAR, bush_percentage VARCHAR) [/INST]
### Response:
SELECT bush_number FROM table_name_10 WHERE bush_percentage = "52.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 IATA of Guam?
### Context:
CREATE TABLE table_name_4 (iata VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT iata FROM table_name_4 WHERE city = "guam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
VIE is the IATA for which city?
### Context:
CREATE TABLE table_name_80 (airport VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT airport FROM table_name_80 WHERE iata = "vie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which city's ICAO is WADD?
### Context:
CREATE TABLE table_name_92 (city VARCHAR, icao VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_92 WHERE icao = "wadd" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
PER is the IATA for which city?
### Context:
CREATE TABLE table_name_84 (city VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_84 WHERE iata = "per" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which city's IATA is KUL?
### Context:
CREATE TABLE table_name_50 (city VARCHAR, iata VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_50 WHERE iata = "kul" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
The Brisbane airport is located in which country?
### Context:
CREATE TABLE table_name_85 (country VARCHAR, airport VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_85 WHERE airport = "brisbane airport" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the opponent for august 26
### Context:
CREATE TABLE table_name_99 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_99 WHERE date = "august 26" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 win number of the competitor who had 90 points before 1994?
### Context:
CREATE TABLE table_name_41 (wins INTEGER, points VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_41 WHERE points = 90 AND year < 1994 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins after 1999?
### Context:
CREATE TABLE table_name_47 (wins INTEGER, year INTEGER) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_47 WHERE 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 is the result on Saturday when it's रविवार ravivār on Sunday and मंगळवार mangaḷavār on Tuesday?
### Context:
CREATE TABLE table_name_41 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR, tuesday_mangala__mars_ VARCHAR) [/INST]
### Response:
SELECT saturday_shani__saturn_ FROM table_name_41 WHERE sunday_surya__the_sun_ = "रविवार ravivār" AND tuesday_mangala__mars_ = "मंगळवार mangaḷavār" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on Saturday that's রবিবার robibar on Sunday
### Context:
CREATE TABLE table_name_14 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR) [/INST]
### Response:
SELECT saturday_shani__saturn_ FROM table_name_14 WHERE sunday_surya__the_sun_ = "রবিবার robibar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Friday that's တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra on Tuesday?
### Context:
CREATE TABLE table_name_91 (friday_shukra__venus_ VARCHAR, tuesday_mangala__mars_ VARCHAR) [/INST]
### Response:
SELECT friday_shukra__venus_ FROM table_name_91 WHERE tuesday_mangala__mars_ = "တ္ၚဲ အၚါ [ŋoa əŋɛ̀a] from sans. aṅgāra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Saturday that's ថ្ងៃអាទិត្យ [tŋaj ʔaatɨt ] on Sunday?
### Context:
CREATE TABLE table_name_30 (saturday_shani__saturn_ VARCHAR, sunday_surya__the_sun_ VARCHAR) [/INST]
### Response:
SELECT saturday_shani__saturn_ FROM table_name_30 WHERE sunday_surya__the_sun_ = "ថ្ងៃអាទិត្យ [tŋaj ʔaatɨt ]" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on Sunday that's सोमवार somavār on Monday and मंगलवार mangalavār on Tuesday?
### Context:
CREATE TABLE table_name_29 (sunday_surya__the_sun_ VARCHAR, monday_soma__the_moon_ VARCHAR, tuesday_mangala__mars_ VARCHAR) [/INST]
### Response:
SELECT sunday_surya__the_sun_ FROM table_name_29 WHERE monday_soma__the_moon_ = "सोमवार somavār" AND tuesday_mangala__mars_ = "मंगलवार mangalavār" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year has american music awards?
### Context:
CREATE TABLE table_name_97 (year VARCHAR, award VARCHAR) [/INST]
### Response:
SELECT COUNT(year) FROM table_name_97 WHERE award = "american music awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 album of the year after 2009?
### Context:
CREATE TABLE table_name_99 (result VARCHAR, year VARCHAR, category VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_99 WHERE year > 2009 AND category = "album of the year" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 years had ozone awards?
### Context:
CREATE TABLE table_name_43 (year INTEGER, award VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_43 WHERE award = "ozone awards" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What event did he fight masato shiozawa?
### Context:
CREATE TABLE table_name_82 (event VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_82 WHERE opponent = "masato shiozawa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 with a score of 4–6, 7–5, [10–8]?
### Context:
CREATE TABLE table_name_25 (partnering VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT partnering FROM table_name_25 WHERE score = "4–6, 7–5, [10–8]" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for the game against Marquette?
### Context:
CREATE TABLE table_name_68 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_68 WHERE opponent = "marquette" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Milwaukee?
### Context:
CREATE TABLE table_name_34 (result VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_34 WHERE city = "milwaukee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What team was the opponent when the score was 25-0?
### Context:
CREATE TABLE table_name_7 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_7 WHERE score = "25-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 date was the game in Minneapolis?
### Context:
CREATE TABLE table_name_21 (date VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_21 WHERE city = "minneapolis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Result of loss, and a Time of 3:54?
### Context:
CREATE TABLE table_name_96 (record VARCHAR, res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_96 WHERE res = "loss" AND time = "3:54" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Record has a Method of submission (heel hook), a Round larger than 1, and a Time of 2:28?
### Context:
CREATE TABLE table_name_32 (record VARCHAR, time VARCHAR, method VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_32 WHERE method = "submission (heel hook)" AND round > 1 AND time = "2:28" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest round resulting in a draw with an Opponent of mari kaneko?
### Context:
CREATE TABLE table_name_88 (round INTEGER, res VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_88 WHERE res = "draw" AND opponent = "mari kaneko" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ship type was from SE?
### Context:
CREATE TABLE table_name_86 (ship_type VARCHAR, nat VARCHAR) [/INST]
### Response:
SELECT ship_type FROM table_name_86 WHERE nat = "se" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the victims of the US ship that sank in the Mississippi River near Memphis?
### Context:
CREATE TABLE table_name_35 (principal_victims VARCHAR, nat VARCHAR, where_sunk VARCHAR) [/INST]
### Response:
SELECT principal_victims FROM table_name_35 WHERE nat = "us" AND where_sunk = "mississippi river near memphis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 estimated number of victims for the April 27, 1865 sinking?
### Context:
CREATE TABLE table_name_78 (estimate VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT estimate FROM table_name_78 WHERE date = "april 27, 1865" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which nation was the ship from that had 372 victims?
### Context:
CREATE TABLE table_name_26 (nat VARCHAR, estimate VARCHAR) [/INST]
### Response:
SELECT nat FROM table_name_26 WHERE estimate = "372" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ship was the HMSST George?
### Context:
CREATE TABLE table_name_66 (ship_type VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT ship_type FROM table_name_66 WHERE name = "hmsst george" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the CD maxi format?
### Context:
CREATE TABLE table_name_91 (region VARCHAR, format VARCHAR) [/INST]
### Response:
SELECT region FROM table_name_91 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:
What was the format in September 1990 for Catalog 887 847-1?
### Context:
CREATE TABLE table_name_84 (format VARCHAR, catalog VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT format FROM table_name_84 WHERE catalog = "887 847-1" AND date = "september 1990" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 label in Japan?
### Context:
CREATE TABLE table_name_14 (label VARCHAR, region VARCHAR) [/INST]
### Response:
SELECT label FROM table_name_14 WHERE region = "japan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In which Tournament was Mansour Bahrami Eric Winogradsky
### Context:
CREATE TABLE table_name_9 (tournament VARCHAR, opponent_in_final VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_9 WHERE opponent_in_final = "mansour bahrami eric winogradsky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was less than 421 overall played by Matt Clark?
### Context:
CREATE TABLE table_name_28 (position VARCHAR, overall VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_28 WHERE overall < 421 AND player = "matt clark" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 overall for Louis Coleman?
### Context:
CREATE TABLE table_name_91 (overall INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MIN(overall) FROM table_name_91 WHERE player = "louis coleman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round did Matt Clark play?
### Context:
CREATE TABLE table_name_94 (round VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_94 WHERE player = "matt clark" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position was more than 421 overall for the St. Louis Cardinals?
### Context:
CREATE TABLE table_name_45 (position VARCHAR, overall VARCHAR, mlb_team VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_45 WHERE overall > 421 AND mlb_team = "st. louis cardinals" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round was less than 545 overall for San Francisco Giants?
### Context:
CREATE TABLE table_name_92 (round VARCHAR, overall VARCHAR, mlb_team VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_92 WHERE overall < 545 AND mlb_team = "san francisco giants" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Gender has the area of swannanoa?
### Context:
CREATE TABLE table_name_53 (gender VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT gender FROM table_name_53 WHERE area = "swannanoa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years had the decile smaller than 8 in the area of southbrook?
### Context:
CREATE TABLE table_name_13 (years VARCHAR, decile VARCHAR, area VARCHAR) [/INST]
### Response:
SELECT years FROM table_name_13 WHERE decile < 8 AND area = "southbrook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 a Lost of 10 and a Try Bonus of 4, what are the points against them?
### Context:
CREATE TABLE table_name_54 (points_against VARCHAR, try_bonus VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT points_against FROM table_name_54 WHERE try_bonus = "4" AND lost = "10" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Having 429 points against, what is the Tries Against?
### Context:
CREATE TABLE table_name_24 (tries_against VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_24 WHERE points_against = "429" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With a Try Bonus of 8, what is the Tries Against?
### Context:
CREATE TABLE table_name_47 (tries_against VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT tries_against FROM table_name_47 WHERE try_bonus = "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 club has a Try Bonus of 8?
### Context:
CREATE TABLE table_name_16 (club VARCHAR, try_bonus VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_16 WHERE try_bonus = "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:
For Pontyberem RFC that has a Try Bonus of 2, what is the played?
### Context:
CREATE TABLE table_name_56 (played VARCHAR, try_bonus VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT played FROM table_name_56 WHERE try_bonus = "2" AND club = "pontyberem rfc" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
With a club that has 400 Points against, what are the points?
### Context:
CREATE TABLE table_name_50 (points_for VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT points_for FROM table_name_50 WHERE points_against = "400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 goals against is greater than 60 and losses less than 29, what is the highest played?
### Context:
CREATE TABLE table_name_6 (played INTEGER, goals_against VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_name_6 WHERE goals_against > 60 AND losses < 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 club has less than 60 goals against, a goal difference smaller than 1, and a position of 8?
### Context:
CREATE TABLE table_name_73 (club VARCHAR, position VARCHAR, goals_against VARCHAR, goal_difference VARCHAR) [/INST]
### Response:
SELECT club FROM table_name_73 WHERE goals_against < 60 AND goal_difference < 1 AND position = 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:
Where did they play in week 14?
### Context:
CREATE TABLE table_name_57 (game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_57 WHERE week = "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:
Who was the opponent when 48,121 people attended?
### Context:
CREATE TABLE table_name_49 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_49 WHERE attendance = "48,121" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when 50,514 people were in attendance?
### Context:
CREATE TABLE table_name_54 (result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_54 WHERE attendance = "50,514" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 they have the divisional playoffs?
### Context:
CREATE TABLE table_name_59 (game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_59 WHERE week = "divisional playoffs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result when there was an attendance of 54,418?
### Context:
CREATE TABLE table_name_21 (result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_21 WHERE attendance = "54,418" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was the role of Rachel active in TV?
### Context:
CREATE TABLE table_name_83 (year_active VARCHAR, role VARCHAR) [/INST]
### Response:
SELECT year_active FROM table_name_83 WHERE role = "rachel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of population 1.1.2008 for tønsberg and population 1.1.2006 more than 45.447
### Context:
CREATE TABLE table_name_62 (population_112008 INTEGER, urban_area VARCHAR, population_112006 VARCHAR) [/INST]
### Response:
SELECT SUM(population_112008) FROM table_name_62 WHERE urban_area = "tønsberg" AND population_112006 > 45.447 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the least population 1.1.2008 with population per square km of 1.957 and population 1.1.2006 less than 12.67
### Context:
CREATE TABLE table_name_62 (population_112008 INTEGER, population_per_square_km VARCHAR, population_112006 VARCHAR) [/INST]
### Response:
SELECT MIN(population_112008) FROM table_name_62 WHERE population_per_square_km = 1.957 AND population_112006 < 12.67 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of population per square km with population 1.12006 of 12.757
### Context:
CREATE TABLE table_name_97 (population_per_square_km VARCHAR, population_112006 VARCHAR) [/INST]
### Response:
SELECT COUNT(population_per_square_km) FROM table_name_97 WHERE population_112006 = 12.757 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Points when the engine was a climax straight-4 earlier than 1958?
### Context:
CREATE TABLE table_name_4 (points INTEGER, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT AVG(points) FROM table_name_4 WHERE engine = "climax straight-4" AND year < 1958 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points for the maserati straight-4 engine, later than 1959?
### Context:
CREATE TABLE table_name_94 (points VARCHAR, engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_94 WHERE engine = "maserati straight-4" AND year > 1959 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine had a JBW chassis in 1960?
### Context:
CREATE TABLE table_name_49 (engine VARCHAR, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_49 WHERE chassis = "jbw" AND year = 1960 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points for the JBW chassis with a climax straight-4 engine, later than 1961?
### Context:
CREATE TABLE table_name_53 (points INTEGER, year VARCHAR, chassis VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_53 WHERE chassis = "jbw" AND engine = "climax straight-4" AND year > 1961 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine in 1961?
### Context:
CREATE TABLE table_name_83 (engine VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_83 WHERE year = 1961 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which date were the 2003 Toronto Blue Jays 54-55?
### Context:
CREATE TABLE table_name_5 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_5 WHERE record = "54-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 average attendance of the Mariners' attendance when their record was 62-64?
### Context:
CREATE TABLE table_name_86 (attendance INTEGER, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_86 WHERE opponent = "mariners" AND record = "62-64" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 when the Blue Jays had an attendance larger than 9,430?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT score FROM table_name_25 WHERE attendance > 9 OFFSET 430 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the fort peck dam which was built before 1968, is located in the united states and has a dam type of TE ?
### Context:
CREATE TABLE table_name_93 (structure_height_ VARCHAR, m VARCHAR, name VARCHAR, country VARCHAR, year VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT structure_height_[m] FROM table_name_93 WHERE year < 1968 AND type = "te" AND country = "united states" AND name = "fort peck dam" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 runner up before 2007?
### Context:
CREATE TABLE table_name_93 (runner_up VARCHAR, season INTEGER) [/INST]
### Response:
SELECT runner_up FROM table_name_93 WHERE season < 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which season was Manresa the champion?
### Context:
CREATE TABLE table_name_46 (season VARCHAR, champion VARCHAR) [/INST]
### Response:
SELECT season FROM table_name_46 WHERE champion = "manresa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What year was the cosworth ca2006 2.4 v8 4 series used?
### Context:
CREATE TABLE table_name_74 (year INTEGER, engine VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_74 WHERE engine = "cosworth ca2006 2.4 v8 4 series" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 engine did the mclaren mp4-20 use?
### Context:
CREATE TABLE table_name_40 (engine VARCHAR, chassis VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_40 WHERE chassis = "mclaren mp4-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 used the toyota rvx-07 2.4 v8 engine
### Context:
CREATE TABLE table_name_79 (entrant VARCHAR, engine VARCHAR) [/INST]
### Response:
SELECT entrant FROM table_name_79 WHERE engine = "toyota rvx-07 2.4 v8" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were 2 points scored?
### Context:
CREATE TABLE table_name_19 (year INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(year) FROM table_name_19 WHERE points = "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 engine scored 17 points?
### Context:
CREATE TABLE table_name_86 (engine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT engine FROM table_name_86 WHERE points = "17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What years won when the To par is more than 13?
### Context:
CREATE TABLE table_name_65 (year_s__won VARCHAR, to_par INTEGER) [/INST]
### Response:
SELECT year_s__won FROM table_name_65 WHERE to_par > 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 highest Total for Australia?
### Context:
CREATE TABLE table_name_78 (total INTEGER, country VARCHAR) [/INST]
### Response:
SELECT MAX(total) FROM table_name_78 WHERE country = "australia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Total for the United States with a To par more than 6 and 1996 was won?
### Context:
CREATE TABLE table_name_96 (total INTEGER, year_s__won VARCHAR, country VARCHAR, to_par VARCHAR) [/INST]
### Response:
SELECT AVG(total) FROM table_name_96 WHERE country = "united states" AND to_par > 6 AND year_s__won = "1996" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.