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:
How many students enrolled in 2005 at New Hampshire Institute of Art?
### Context:
CREATE TABLE table_2076490_1 (enrollment__2005_ VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT enrollment__2005_ FROM table_2076490_1 WHERE school = "New Hampshire Institute of Art" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the most founded for enrollment 2005 being 1285
### Context:
CREATE TABLE table_2076533_1 (founded INTEGER, enrollment__2005_ VARCHAR) [/INST]
### Response:
SELECT MAX(founded) FROM table_2076533_1 WHERE enrollment__2005_ = 1285 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 main location for public and masters university
### Context:
CREATE TABLE table_2076533_1 (main_location VARCHAR, control VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT main_location FROM table_2076533_1 WHERE control = "Public" AND type = "Masters university" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type for mcminnville
### Context:
CREATE TABLE table_2076533_1 (type VARCHAR, main_location VARCHAR) [/INST]
### Response:
SELECT type FROM table_2076533_1 WHERE main_location = "McMinnville" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 control for albany
### Context:
CREATE TABLE table_2076533_1 (control VARCHAR, main_location VARCHAR) [/INST]
### Response:
SELECT control FROM table_2076533_1 WHERE main_location = "Albany" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 founded for gutenberg college
### Context:
CREATE TABLE table_2076533_1 (founded INTEGER, school VARCHAR) [/INST]
### Response:
SELECT MIN(founded) FROM table_2076533_1 WHERE school = "Gutenberg College" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type for 1245 enrollment
### Context:
CREATE TABLE table_2076533_1 (type VARCHAR, enrollment__2005_ VARCHAR) [/INST]
### Response:
SELECT type FROM table_2076533_1 WHERE enrollment__2005_ = 1245 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 type of work is novel and published in english is 1977, what was published in russian?
### Context:
CREATE TABLE table_207795_1 (published_in_russian VARCHAR, type_of_work VARCHAR, published_in_english VARCHAR) [/INST]
### Response:
SELECT published_in_russian FROM table_207795_1 WHERE type_of_work = "novel" AND published_in_english = "1977" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 types of work is хромая судьба?
### Context:
CREATE TABLE table_207795_1 (type_of_work VARCHAR, russian_title VARCHAR) [/INST]
### Response:
SELECT COUNT(type_of_work) FROM table_207795_1 WHERE russian_title = "Хромая судьба" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 russian title of the ugly swans?
### Context:
CREATE TABLE table_207795_1 (russian_title VARCHAR, english_title VARCHAR) [/INST]
### Response:
SELECT russian_title FROM table_207795_1 WHERE english_title = "The Ugly Swans" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 it published in english is n/a and published in russian is 1986, what is the type of work?
### Context:
CREATE TABLE table_207795_1 (type_of_work VARCHAR, published_in_english VARCHAR, published_in_russian VARCHAR) [/INST]
### Response:
SELECT type_of_work FROM table_207795_1 WHERE published_in_english = "N/A" AND published_in_russian = "1986" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
List the presbyterian members of the senate.
### Context:
CREATE TABLE table_20803065_1 (senator VARCHAR, religion VARCHAR) [/INST]
### Response:
SELECT senator FROM table_20803065_1 WHERE religion = "Presbyterian" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which state does congressman jim demint represent?
### Context:
CREATE TABLE table_20803065_1 (state VARCHAR, senator VARCHAR) [/INST]
### Response:
SELECT state FROM table_20803065_1 WHERE senator = "Jim DeMint" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tie number for team 2 osijek
### Context:
CREATE TABLE table_20819379_2 (tie_no VARCHAR, team_2 VARCHAR) [/INST]
### Response:
SELECT COUNT(tie_no) FROM table_20819379_2 WHERE team_2 = "Osijek" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the minimum number of total placings?
### Context:
CREATE TABLE table_20823568_3 (total_placings_s_ INTEGER) [/INST]
### Response:
SELECT MIN(total_placings_s_) FROM table_20823568_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 was the result of the game with the record of 3-1?
### Context:
CREATE TABLE table_20849830_1 (result VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT result FROM table_20849830_1 WHERE record = "3-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 date of the game with the record of 2-1?
### Context:
CREATE TABLE table_20849830_1 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_20849830_1 WHERE record = "2-1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games were there in the 1966 season?
### Context:
CREATE TABLE table_20849830_1 (game INTEGER) [/INST]
### Response:
SELECT MAX(game) FROM table_20849830_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 game number had a record of 3-1?
### Context:
CREATE TABLE table_20849830_1 (game VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT game FROM table_20849830_1 WHERE record = "3-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 happened when the new points was 1705?
### Context:
CREATE TABLE table_20855452_4 (status VARCHAR, new_points VARCHAR) [/INST]
### Response:
SELECT status FROM table_20855452_4 WHERE new_points = 1705 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 max when they score 2200?
### Context:
CREATE TABLE table_20855452_4 (new_points INTEGER, points VARCHAR) [/INST]
### Response:
SELECT MAX(new_points) FROM table_20855452_4 WHERE points = 2200 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points did agnieszka radwańska score?
### Context:
CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT points FROM table_20855452_4 WHERE player = "Agnieszka Radwańska" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points did shahar pe'er score?
### Context:
CREATE TABLE table_20855452_4 (points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT points AS won FROM table_20855452_4 WHERE player = "Shahar Pe'er" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 weight for western ontario college?
### Context:
CREATE TABLE table_20872722_1 (weight VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT weight FROM table_20872722_1 WHERE college = "Western Ontario" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 positions have round 3?
### Context:
CREATE TABLE table_20872722_1 (position VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_20872722_1 WHERE round = 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 position has 225lb as weight?
### Context:
CREATE TABLE table_20872722_1 (position VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT position FROM table_20872722_1 WHERE weight = "225lb" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round?
### Context:
CREATE TABLE table_20872722_1 (round INTEGER) [/INST]
### Response:
SELECT MIN(round) FROM table_20872722_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 height of the cornerback position?
### Context:
CREATE TABLE table_20872722_1 (height VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(height) FROM table_20872722_1 WHERE position = "Cornerback" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 recent year joined?
### Context:
CREATE TABLE table_20887670_1 (year_joined INTEGER) [/INST]
### Response:
SELECT MAX(year_joined) FROM table_20887670_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 affiliation of the hilltoppers mascot?
### Context:
CREATE TABLE table_20887670_1 (affiliation VARCHAR, mascot VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_20887670_1 WHERE mascot = "Hilltoppers" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 affiliation of the colors maroon and white?
### Context:
CREATE TABLE table_20887670_1 (affiliation VARCHAR, colors VARCHAR) [/INST]
### Response:
SELECT affiliation FROM table_20887670_1 WHERE colors = "Maroon and White" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 enrollment of the central institution?
### Context:
CREATE TABLE table_20887670_1 (enrollment VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT enrollment FROM table_20887670_1 WHERE institution = "Central" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 institution of the sparta, wi location?
### Context:
CREATE TABLE table_20887670_1 (institution VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT institution FROM table_20887670_1 WHERE location = "Sparta, WI" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 colors red and gold join?
### Context:
CREATE TABLE table_20887670_1 (year_joined VARCHAR, colors VARCHAR) [/INST]
### Response:
SELECT COUNT(year_joined) FROM table_20887670_1 WHERE colors = "Red and Gold" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit did rick kelly win on?
### Context:
CREATE TABLE table_20884163_2 (circuit VARCHAR, winner VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_20884163_2 WHERE winner = "Rick Kelly" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit features the placemakers v8 supercars race?
### Context:
CREATE TABLE table_20884163_2 (circuit VARCHAR, race_title VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_20884163_2 WHERE race_title = "PlaceMakers V8 Supercars" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 dates was the falken tasmania challenge race that had triple eight race engineering as the team?
### Context:
CREATE TABLE table_20884163_2 (date VARCHAR, team VARCHAR, race_title VARCHAR) [/INST]
### Response:
SELECT date FROM table_20884163_2 WHERE team = "Triple Eight Race Engineering" AND race_title = "Falken Tasmania Challenge" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 report for the winton race?
### Context:
CREATE TABLE table_20884163_2 (report VARCHAR, race_title VARCHAR) [/INST]
### Response:
SELECT report FROM table_20884163_2 WHERE race_title = "Winton" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 medium was used for the sculpture of George Harold Baker?
### Context:
CREATE TABLE table_20903658_1 (medium VARCHAR, title_subject VARCHAR) [/INST]
### Response:
SELECT medium FROM table_20903658_1 WHERE title_subject = "George Harold Baker" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 subject of the sculpture created in 1982?
### Context:
CREATE TABLE table_20903658_1 (title_subject VARCHAR, date_painted_created VARCHAR) [/INST]
### Response:
SELECT title_subject FROM table_20903658_1 WHERE date_painted_created = "1982" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the subject of the bronze sculpture who was a colonist and soldier in Ville Marie, New France?
### Context:
CREATE TABLE table_20903658_1 (title_subject VARCHAR, medium VARCHAR, public_office VARCHAR) [/INST]
### Response:
SELECT title_subject FROM table_20903658_1 WHERE medium = "Bronze" AND public_office = "colonist and soldier in Ville Marie, New France" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the public office of the subject whose sculpture was created in 1954?
### Context:
CREATE TABLE table_20903658_1 (public_office VARCHAR, date_painted_created VARCHAR) [/INST]
### Response:
SELECT public_office FROM table_20903658_1 WHERE date_painted_created = "1954" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 medium was used for the sculpture by Ernest Richard Gause?
### Context:
CREATE TABLE table_20903658_1 (medium VARCHAR, artist VARCHAR) [/INST]
### Response:
SELECT medium FROM table_20903658_1 WHERE artist = "Ernest Richard Gause" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 originl title for no stars in the jungle
### Context:
CREATE TABLE table_20963074_1 (original_title VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_20963074_1 WHERE film_title_used_in_nomination = "No Stars in the Jungle" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original title for not nominated result with report on death
### Context:
CREATE TABLE table_20963074_1 (original_title VARCHAR, result VARCHAR, film_title_used_in_nomination VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_20963074_1 WHERE result = "Not Nominated" AND film_title_used_in_nomination = "Report on Death" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 results for octubre
### Context:
CREATE TABLE table_20963074_1 (result VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT COUNT(result) FROM table_20963074_1 WHERE original_title = "Octubre" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 film title for la boca del lobo
### Context:
CREATE TABLE table_20963074_1 (film_title_used_in_nomination VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT film_title_used_in_nomination FROM table_20963074_1 WHERE original_title = "La boca del lobo" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year for reportaje a la muerte
### Context:
CREATE TABLE table_20963074_1 (year__ceremony_ VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT year__ceremony_ FROM table_20963074_1 WHERE original_title = "Reportaje a la muerte" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 directors for #15?
### Context:
CREATE TABLE table_20942925_1 (directed_by VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_20942925_1 WHERE _number = 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 every director with production code of NABF13?
### Context:
CREATE TABLE table_20942925_1 (directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_20942925_1 WHERE production_code = "NABF13" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are all values for U.S. viewers(millions) with Kevin Curran as a writer?
### Context:
CREATE TABLE table_20942925_1 (us_viewers__millions_ VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT us_viewers__millions_ FROM table_20942925_1 WHERE written_by = "Kevin Curran" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many titles for the production code of NABF07?
### Context:
CREATE TABLE table_20942925_1 (title VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT COUNT(title) FROM table_20942925_1 WHERE production_code = "NABF07" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 episode for 18-49 rating being 3.6
### Context:
CREATE TABLE table_20971444_3 (episode VARCHAR, rating__18_49_ VARCHAR) [/INST]
### Response:
SELECT COUNT(episode) FROM table_20971444_3 WHERE rating__18_49_ = "3.6" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the rank timeslot for 11.59 viewers
### Context:
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT rank__timeslot_ FROM table_20971444_3 WHERE viewers__millions_ = "11.59" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the first air date for 9 episode
### Context:
CREATE TABLE table_20971444_3 (first_air_date VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT first_air_date FROM table_20971444_3 WHERE episode = 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:
Name the rank timeslot for 18-49 share being 13
### Context:
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, share__18_49_ VARCHAR) [/INST]
### Response:
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE share__18_49_ = 13 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the total number of rank timeslot for 18-49 being 3.1
### Context:
CREATE TABLE table_20971444_3 (rank__timeslot_ VARCHAR, rating__18_49_ VARCHAR) [/INST]
### Response:
SELECT COUNT(rank__timeslot_) FROM table_20971444_3 WHERE rating__18_49_ = "3.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:
Name the total number for 18-49 share being 18-49 being 3.1
### Context:
CREATE TABLE table_20971444_3 (share__18_49_ VARCHAR, rating__18_49_ VARCHAR) [/INST]
### Response:
SELECT COUNT(share__18_49_) FROM table_20971444_3 WHERE rating__18_49_ = "3.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 date for the Champs Sports Bowl?
### Context:
CREATE TABLE table_20996923_20 (date VARCHAR, bowl_game VARCHAR) [/INST]
### Response:
SELECT date FROM table_20996923_20 WHERE bowl_game = "Champs Sports Bowl" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date when the city is San Antonio, Texas?
### Context:
CREATE TABLE table_20996923_20 (date VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT date FROM table_20996923_20 WHERE city = "San Antonio, Texas" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 city when the Television network was the NFL Network?
### Context:
CREATE TABLE table_20996923_20 (city VARCHAR, television VARCHAR) [/INST]
### Response:
SELECT city FROM table_20996923_20 WHERE television = "NFL Network" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponents did the Sun Devils play when they scored 41 points?
### Context:
CREATE TABLE table_21007615_1 (opponent VARCHAR, sun_devils_points VARCHAR) [/INST]
### Response:
SELECT COUNT(opponent) FROM table_21007615_1 WHERE sun_devils_points = 41 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 record for the Sun Devils when they scored 44 points?
### Context:
CREATE TABLE table_21007615_1 (record VARCHAR, sun_devils_points VARCHAR) [/INST]
### Response:
SELECT record FROM table_21007615_1 WHERE sun_devils_points = 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:
When the torsion spring diameter is 38.4cm what would be the length or weight of the missile
### Context:
CREATE TABLE table_21012786_2 (length_weight_of_missile VARCHAR, diameter_of_torsion_spring VARCHAR) [/INST]
### Response:
SELECT length_weight_of_missile FROM table_21012786_2 WHERE diameter_of_torsion_spring = "38.4cm" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wrote the episode that had 8.84 million viewers?
### Context:
CREATE TABLE table_21025437_5 (written_by VARCHAR, viewers__millions_ VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_21025437_5 WHERE viewers__millions_ = "8.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:
How many million viewers watched episode number 20?
### Context:
CREATE TABLE table_21025437_5 (viewers__millions_ VARCHAR, episode_no VARCHAR) [/INST]
### Response:
SELECT viewers__millions_ FROM table_21025437_5 WHERE episode_no = 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 was the title of the episode written by Keith Temple?
### Context:
CREATE TABLE table_21025437_5 (title VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT title FROM table_21025437_5 WHERE written_by = "Keith Temple" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what is the lowest value under the column series no.?
### Context:
CREATE TABLE table_21025437_3 (series_no INTEGER) [/INST]
### Response:
SELECT MIN(series_no) FROM table_21025437_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:
When there are 7.4 million viewers how many episodes are there?
### Context:
CREATE TABLE table_2102945_1 (episode VARCHAR, viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT COUNT(episode) FROM table_2102945_1 WHERE viewers__in_millions_ = "7.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:
When 24:31 is the run time how many measurements of viewers (in millions) are there?
### Context:
CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) [/INST]
### Response:
SELECT COUNT(viewers__in_millions_) FROM table_2102945_1 WHERE run_time = "24:31" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 24:31 is the run time how many millions of viewers are there?
### Context:
CREATE TABLE table_2102945_1 (viewers__in_millions_ VARCHAR, run_time VARCHAR) [/INST]
### Response:
SELECT viewers__in_millions_ FROM table_2102945_1 WHERE run_time = "24:31" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 there are 7.5 million viewers what is the archive?
### Context:
CREATE TABLE table_2102945_1 (archive VARCHAR, viewers__in_millions_ VARCHAR) [/INST]
### Response:
SELECT archive FROM table_2102945_1 WHERE viewers__in_millions_ = "7.5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the broadcast network for saitama prefecture
### Context:
CREATE TABLE table_21076286_2 (broadcast_network VARCHAR, broadcast_scope VARCHAR) [/INST]
### Response:
SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Saitama Prefecture" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 broadcast network for chiba prefecture
### Context:
CREATE TABLE table_21076286_2 (broadcast_network VARCHAR, broadcast_scope VARCHAR) [/INST]
### Response:
SELECT broadcast_network FROM table_21076286_2 WHERE broadcast_scope = "Chiba Prefecture" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 broadcast day and timings for tv saitama
### Context:
CREATE TABLE table_21076286_2 (broadcast_day_and_timings__in_jst__ VARCHAR, broadcast_network VARCHAR) [/INST]
### Response:
SELECT broadcast_day_and_timings__in_jst__ FROM table_21076286_2 WHERE broadcast_network = "TV Saitama" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 opponents being 12
### Context:
CREATE TABLE table_21092427_1 (opponent VARCHAR, opponents VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_21092427_1 WHERE opponents = 12 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the result for 9-1 record
### Context:
CREATE TABLE table_21092427_1 (result VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT result FROM table_21092427_1 WHERE record = "9-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:
Name the most opponents for 8-1 record
### Context:
CREATE TABLE table_21092427_1 (opponents INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(opponents) FROM table_21092427_1 WHERE record = "8-1" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many seats in 2006 has a % 1997 rating of 38.9?
### Context:
CREATE TABLE table_21132404_1 (seats_2006 VARCHAR, _percentage_1997 VARCHAR) [/INST]
### Response:
SELECT COUNT(seats_2006) FROM table_21132404_1 WHERE _percentage_1997 = "38.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 was the % 2006 rating in 2006 where there were 5 seats?
### Context:
CREATE TABLE table_21132404_1 (_percentage_2006 VARCHAR, seats_2006 VARCHAR) [/INST]
### Response:
SELECT _percentage_2006 FROM table_21132404_1 WHERE seats_2006 = 5 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many time was the political party the social democratic party of germany?
### Context:
CREATE TABLE table_21132404_1 (_percentage_2006 VARCHAR, political_parties VARCHAR) [/INST]
### Response:
SELECT COUNT(_percentage_2006) FROM table_21132404_1 WHERE political_parties = "Social Democratic Party of 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:
How many political parties had a %2006 rating of 43.5?
### Context:
CREATE TABLE table_21132404_1 (political_parties VARCHAR, _percentage_2006 VARCHAR) [/INST]
### Response:
SELECT COUNT(political_parties) FROM table_21132404_1 WHERE _percentage_2006 = "43.5" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many seats were there in 2001 when there were 11 seats in 2006?
### Context:
CREATE TABLE table_21132404_1 (seats_2001 INTEGER, seats_2006 VARCHAR) [/INST]
### Response:
SELECT MIN(seats_2001) FROM table_21132404_1 WHERE seats_2006 = 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:
Name the won promotion for 1987
### Context:
CREATE TABLE table_2119448_3 (won_promotion VARCHAR, season VARCHAR) [/INST]
### Response:
SELECT won_promotion FROM table_2119448_3 WHERE season = 1987 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won promotion for kalmar ff
### Context:
CREATE TABLE table_2119448_3 (won_promotion VARCHAR, lost_promotion_playoffs VARCHAR) [/INST]
### Response:
SELECT won_promotion FROM table_2119448_3 WHERE lost_promotion_playoffs = "Kalmar FF" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
If the matches for NQF is 2009, what is the position?
### Context:
CREATE TABLE table_21223773_2 (position VARCHAR, matches_for_nqf VARCHAR) [/INST]
### Response:
SELECT position FROM table_21223773_2 WHERE matches_for_nqf = "2009" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was Robin's score when she was eliminated?
### Context:
CREATE TABLE table_21234111_10 (robin VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT robin FROM table_21234111_10 WHERE result = "Eliminated" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 song did Robin perform with a result of 4.0?
### Context:
CREATE TABLE table_21234111_10 (song VARCHAR, robin VARCHAR) [/INST]
### Response:
SELECT song FROM table_21234111_10 WHERE robin = "4.0" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Among deaths 106 000 how many is crude rate.
### Context:
CREATE TABLE table_21258_1 (crude_death_rate VARCHAR, deaths VARCHAR) [/INST]
### Response:
SELECT crude_death_rate FROM table_21258_1 WHERE deaths = "106 000" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 births is 388 000 how many number is natural increase
### Context:
CREATE TABLE table_21258_1 (natural_increase VARCHAR, births VARCHAR) [/INST]
### Response:
SELECT COUNT(natural_increase) FROM table_21258_1 WHERE births = "388 000" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
period between 1985 - 1990 have minimum infant mortality rate of what.
### Context:
CREATE TABLE table_21258_1 (infant_mortality_rate INTEGER, period VARCHAR) [/INST]
### Response:
SELECT MIN(infant_mortality_rate) FROM table_21258_1 WHERE period = "1985 - 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:
How many winners scored exactly 202 (-11)?
### Context:
CREATE TABLE table_21260421_1 (winner VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT COUNT(winner) FROM table_21260421_1 WHERE score = "202 (-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:
How many tournaments were held at Alabama?
### Context:
CREATE TABLE table_21260421_1 (score VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT COUNT(score) FROM table_21260421_1 WHERE location = "Alabama" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the tourney when Louisville won the regular season?
### Context:
CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR) [/INST]
### Response:
SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Louisville" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the tourney when UCLA won the regular season?
### Context:
CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR) [/INST]
### Response:
SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "UCLA" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was the tourney when Weber State won the regular season?
### Context:
CREATE TABLE table_21269441_4 (tournament_venue__city_ VARCHAR, regular_season_winner VARCHAR) [/INST]
### Response:
SELECT tournament_venue__city_ FROM table_21269441_4 WHERE regular_season_winner = "Weber State" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which drivers won $40,000 in the NASCAR Winston Cup?
### Context:
CREATE TABLE table_21297652_1 (driver VARCHAR, series VARCHAR, winnings VARCHAR) [/INST]
### Response:
SELECT driver FROM table_21297652_1 WHERE series = "NASCAR Winston Cup" AND winnings = "$40,000" </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series is at the position 7?
### Context:
CREATE TABLE table_21297652_1 (series VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT series FROM table_21297652_1 WHERE position = 7 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
In what series did the driver get 30 points?
### Context:
CREATE TABLE table_21297652_1 (series VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT series FROM table_21297652_1 WHERE points = 30 </s>
|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How much did Dale Jarrett win?
### Context:
CREATE TABLE table_21297652_1 (winnings VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT winnings FROM table_21297652_1 WHERE driver = "Dale Jarrett" </s>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.