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 different numbers of B shares does Handelsbanken fonder have?
### Context:
CREATE TABLE table_206359_1 (b_shares VARCHAR, shareholder_name VARCHAR) [/INST]
### Response:
SELECT COUNT(b_shares) FROM table_206359_1 WHERE shareholder_name = "Handelsbanken fonder" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the green (SW) of the model with charcoal/white interior/roof?
### Context:
CREATE TABLE table_2066296_5 (green__sw_ INTEGER, interior_roof VARCHAR) [/INST]
### Response:
SELECT MIN(green__sw_) FROM table_2066296_5 WHERE interior_roof = "Charcoal/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:
How many different results for red (e8) does the model with parchment/saddle interior/roof have?
### Context:
CREATE TABLE table_2066296_5 (red__e8_ VARCHAR, interior_roof VARCHAR) [/INST]
### Response:
SELECT COUNT(red__e8_) FROM table_2066296_5 WHERE interior_roof = "Parchment/saddle" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many different total results are there for the model with parchment/black interior/roof?
### Context:
CREATE TABLE table_2066296_5 (totals VARCHAR, interior_roof VARCHAR) [/INST]
### Response:
SELECT COUNT(totals) FROM table_2066296_5 WHERE interior_roof = "Parchment/black" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 aaron wagner go to college
### Context:
CREATE TABLE table_20649850_1 (college VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college FROM table_20649850_1 WHERE player = "Aaron Wagner" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Where did the ol go to college?
### Context:
CREATE TABLE table_20649850_1 (college VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT college FROM table_20649850_1 WHERE position = "OL" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number for new mexico
### Context:
CREATE TABLE table_20649850_1 (pick__number INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MIN(pick__number) FROM table_20649850_1 WHERE college = "New Mexico" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number for db
### Context:
CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_20649850_1 WHERE position = "DB" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player for ol
### Context:
CREATE TABLE table_20649850_1 (player VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_20649850_1 WHERE position = "OL" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number for dl
### Context:
CREATE TABLE table_20649850_1 (pick__number VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT pick__number FROM table_20649850_1 WHERE position = "DL" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 companies have a free float of 0.2726?
### Context:
CREATE TABLE table_20667854_1 (company VARCHAR, free_float VARCHAR) [/INST]
### Response:
SELECT company FROM table_20667854_1 WHERE free_float = "0.2726" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 BSE code for a free float of 0.2726?
### Context:
CREATE TABLE table_20667854_1 (bse_code VARCHAR, free_float VARCHAR) [/INST]
### Response:
SELECT bse_code FROM table_20667854_1 WHERE free_float = "0.2726" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 GICS sector for free float of 0.3180?
### Context:
CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR) [/INST]
### Response:
SELECT gics_sector FROM table_20667854_1 WHERE free_float = "0.3180" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 company with an index weighting % of 1 and the city of Dimitrovgrad?
### Context:
CREATE TABLE table_20667854_1 (company VARCHAR, index_weighting___percentage VARCHAR, city VARCHAR) [/INST]
### Response:
SELECT company FROM table_20667854_1 WHERE index_weighting___percentage = "1" AND city = "Dimitrovgrad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 GICS sectors have a free float of 0.2391?
### Context:
CREATE TABLE table_20667854_1 (gics_sector VARCHAR, free_float VARCHAR) [/INST]
### Response:
SELECT COUNT(gics_sector) FROM table_20667854_1 WHERE free_float = "0.2391" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 values of free float for the BSE code of 4EH?
### Context:
CREATE TABLE table_20667854_1 (free_float VARCHAR, bse_code VARCHAR) [/INST]
### Response:
SELECT COUNT(free_float) FROM table_20667854_1 WHERE bse_code = "4EH" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 polls taken on different dates show an undecided percentage of 25%?
### Context:
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, undecided VARCHAR) [/INST]
### Response:
SELECT COUNT(date_of_opinion_poll) FROM table_20683381_2 WHERE undecided = "25%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When was Quantum Research's poll conducted?
### Context:
CREATE TABLE table_20683381_2 (date_of_opinion_poll VARCHAR, conductor VARCHAR) [/INST]
### Response:
SELECT date_of_opinion_poll FROM table_20683381_2 WHERE conductor = "Quantum Research" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 conducted the poll with sample size of 2000 that shows 18% undecided?
### Context:
CREATE TABLE table_20683381_2 (conductor VARCHAR, undecided VARCHAR, sample_size VARCHAR) [/INST]
### Response:
SELECT conductor FROM table_20683381_2 WHERE undecided = "18%" AND sample_size = 2000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is the contestant from Ecuador?
### Context:
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Ecuador" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 tall is the contestant from Aruba?
### Context:
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT height__ft_ FROM table_20669355_2 WHERE country = "Aruba" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What country is the contestant from San Francisco de Yojoa from?
### Context:
CREATE TABLE table_20669355_2 (country VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT country FROM table_20669355_2 WHERE hometown = "San Francisco de Yojoa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many different heights are there for the contestants from Warsaw?
### Context:
CREATE TABLE table_20669355_2 (height__ft_ VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT COUNT(height__ft_) FROM table_20669355_2 WHERE hometown = "Warsaw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of countys where Obama is popular by 35.44%?
### Context:
CREATE TABLE table_20688030_1 (county VARCHAR, obama_percentage VARCHAR) [/INST]
### Response:
SELECT COUNT(county) FROM table_20688030_1 WHERE obama_percentage = "35.44%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are McCain's Percent when Obama has 36.47%?
### Context:
CREATE TABLE table_20688030_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR) [/INST]
### Response:
SELECT mccain_percentage FROM table_20688030_1 WHERE obama_percentage = "36.47%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 McCains percent when Obamas is 39.13%
### Context:
CREATE TABLE table_20688030_1 (mccain_number VARCHAR, obama_percentage VARCHAR) [/INST]
### Response:
SELECT COUNT(mccain_number) FROM table_20688030_1 WHERE obama_percentage = "39.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 maximum Obama supporters in Wayne county?
### Context:
CREATE TABLE table_20688030_1 (obama_number INTEGER, county VARCHAR) [/INST]
### Response:
SELECT MAX(obama_number) FROM table_20688030_1 WHERE county = "Wayne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 th epopulation may for general terrero
### Context:
CREATE TABLE table_2068761_1 (population__may_1 VARCHAR, _2000_ VARCHAR, barangay VARCHAR) [/INST]
### Response:
SELECT population__may_1, _2000_ FROM table_2068761_1 WHERE barangay = "General Terrero" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 season number for Series #23, the Runway Job?
### Context:
CREATE TABLE table_20704243_3 (season__number VARCHAR, series__number VARCHAR) [/INST]
### Response:
SELECT season__number FROM table_20704243_3 WHERE series__number = 23 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What series was directed by Mark Roskin?
### Context:
CREATE TABLE table_20704243_3 (series__number INTEGER, directed_by VARCHAR) [/INST]
### Response:
SELECT MIN(series__number) FROM table_20704243_3 WHERE directed_by = "Mark Roskin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were written by Peter Winther?
### Context:
CREATE TABLE table_20704243_3 (written_by VARCHAR, directed_by VARCHAR) [/INST]
### Response:
SELECT COUNT(written_by) FROM table_20704243_3 WHERE directed_by = "Peter Winther" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were in Season 2?
### Context:
CREATE TABLE table_20704243_3 (directed_by VARCHAR, season__number VARCHAR) [/INST]
### Response:
SELECT COUNT(directed_by) FROM table_20704243_3 WHERE season__number = 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:
When was the episode written by Albert Kim aired for the first time?
### Context:
CREATE TABLE table_20704243_4 (original_air_date VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT original_air_date FROM table_20704243_4 WHERE written_by = "Albert Kim" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 series number for m. scott veach & rebecca kirsch
### Context:
CREATE TABLE table_20704243_5 (series__number VARCHAR, written_by VARCHAR) [/INST]
### Response:
SELECT series__number FROM table_20704243_5 WHERE written_by = "M. Scott Veach & Rebecca Kirsch" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number of viewers for series number 50
### Context:
CREATE TABLE table_20704243_5 (us_viewers__in_millions_ VARCHAR, series__number VARCHAR) [/INST]
### Response:
SELECT us_viewers__in_millions_ FROM table_20704243_5 WHERE series__number = 50 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name who directed season 1
### Context:
CREATE TABLE table_20704243_5 (directed_by VARCHAR, season__number VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_20704243_5 WHERE season__number = 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 moment of intertia in torsion (j) Cm4) for the beam height (mm) 120??=
### Context:
CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, beam_height__mm_ VARCHAR) [/INST]
### Response:
SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE beam_height__mm_ = 120 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 cross section area (cm 2) for the moment of intertia in torsion (j) (cm 4) 2.54?
### Context:
CREATE TABLE table_2071644_1 (cross_section_area__cm_2__ VARCHAR, moment_of_inertia_in_torsion__j___cm_4__ VARCHAR) [/INST]
### Response:
SELECT cross_section_area__cm_2__ FROM table_2071644_1 WHERE moment_of_inertia_in_torsion__j___cm_4__ = "2.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:
What is the flange thickness (mm) for the weight (kg/m) 6.0?Wg
### Context:
CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR) [/INST]
### Response:
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "6.0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the number for the moment of intertia in torsion (j) (cm 4) for the 4.7 web thickness (mm)?
### Context:
CREATE TABLE table_2071644_1 (moment_of_inertia_in_torsion__j___cm_4__ VARCHAR, web_thickness__mm_ VARCHAR) [/INST]
### Response:
SELECT COUNT(moment_of_inertia_in_torsion__j___cm_4__) FROM table_2071644_1 WHERE web_thickness__mm_ = "4.7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the flange thickness (mm) for the weight (kg/m) 10.4?
### Context:
CREATE TABLE table_2071644_1 (flange_thickness__mm_ VARCHAR, weight__kg_m_ VARCHAR) [/INST]
### Response:
SELECT flange_thickness__mm_ FROM table_2071644_1 WHERE weight__kg_m_ = "10.4" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the flange width (mm) for cross section area (cm 2) 16.4?
### Context:
CREATE TABLE table_2071644_1 (flange_width__mm_ VARCHAR, cross_section_area__cm_2__ VARCHAR) [/INST]
### Response:
SELECT COUNT(flange_width__mm_) FROM table_2071644_1 WHERE cross_section_area__cm_2__ = "16.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:
In what round was lyon (32) a 5 seed?
### Context:
CREATE TABLE table_20711545_1 (lyon__32_ VARCHAR, seed VARCHAR) [/INST]
### Response:
SELECT lyon__32_ FROM table_20711545_1 WHERE seed = 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 items were recorded marseille (32 draw) was a 2 seed?
### Context:
CREATE TABLE table_20711545_1 (marseille__32_draw_ VARCHAR, seed VARCHAR) [/INST]
### Response:
SELECT COUNT(marseille__32_draw_) FROM table_20711545_1 WHERE seed = 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the seed for lyon (32) was DNQ?
### Context:
CREATE TABLE table_20711545_1 (seed INTEGER, lyon__32_ VARCHAR) [/INST]
### Response:
SELECT MAX(seed) FROM table_20711545_1 WHERE lyon__32_ = "DNQ" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the result for Paris(48-byes) for 3 seed?
### Context:
CREATE TABLE table_20711545_1 (paris__48___byes_ VARCHAR, seed VARCHAR) [/INST]
### Response:
SELECT paris__48___byes_ FROM table_20711545_1 WHERE seed = 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 McCain's percentage when Obama had 64.39% of the vote?
### Context:
CREATE TABLE table_20722805_1 (mccain_percentage VARCHAR, obama_percentage VARCHAR) [/INST]
### Response:
SELECT mccain_percentage FROM table_20722805_1 WHERE obama_percentage = "64.39%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was McCain's vote when Obama had 48.35%
### Context:
CREATE TABLE table_20722805_1 (mccain_number INTEGER, obama_percentage VARCHAR) [/INST]
### Response:
SELECT MIN(mccain_number) FROM table_20722805_1 WHERE obama_percentage = "48.35%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many votes did Obama have at 32.12%
### Context:
CREATE TABLE table_20722805_1 (obama_number INTEGER, obama_percentage VARCHAR) [/INST]
### Response:
SELECT MIN(obama_number) FROM table_20722805_1 WHERE obama_percentage = "32.12%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What parish did McCain have 45.37% of the votes?
### Context:
CREATE TABLE table_20722805_1 (parish VARCHAR, mccain_percentage VARCHAR) [/INST]
### Response:
SELECT parish FROM table_20722805_1 WHERE mccain_percentage = "45.37%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of votes McCain had in Webster?
### Context:
CREATE TABLE table_20722805_1 (mccain_number INTEGER, parish VARCHAR) [/INST]
### Response:
SELECT MAX(mccain_number) FROM table_20722805_1 WHERE parish = "Webster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 original air date for the episode with production code 1wab06?
### Context:
CREATE TABLE table_20726262_2 (originalairdate VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT originalairdate FROM table_20726262_2 WHERE production_code = "1WAB06" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What title episode did Paris Barclay direct?
### Context:
CREATE TABLE table_20726262_2 (title VARCHAR, directedby VARCHAR) [/INST]
### Response:
SELECT title FROM table_20726262_2 WHERE directedby = "Paris Barclay" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code for episode #1?
### Context:
CREATE TABLE table_20726262_2 (production_code VARCHAR, no_in_series VARCHAR) [/INST]
### Response:
SELECT production_code FROM table_20726262_2 WHERE no_in_series = 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 number episode was written by kurt sutter & jack logiudice?
### Context:
CREATE TABLE table_20726262_2 (no_in_series INTEGER, writtenby VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_20726262_2 WHERE writtenby = "Kurt Sutter & Jack LoGiudice" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 production code for the episode with 3.38 million viewers?
### Context:
CREATE TABLE table_20726262_3 (production_code VARCHAR, usviewers__million_ VARCHAR) [/INST]
### Response:
SELECT production_code FROM table_20726262_3 WHERE usviewers__million_ = "3.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 season number did production code 2wab12?
### Context:
CREATE TABLE table_20726262_3 (no_in_season VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT no_in_season FROM table_20726262_3 WHERE production_code = "2WAB12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 numbers in the season were written by Brett Conrad & Liz Sagal?
### Context:
CREATE TABLE table_20726262_3 (no_in_season VARCHAR, writtenby VARCHAR) [/INST]
### Response:
SELECT COUNT(no_in_season) FROM table_20726262_3 WHERE writtenby = "Brett Conrad & Liz Sagal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what i the maximum number in the series where the production code is 3wab07?
### Context:
CREATE TABLE table_20726262_4 (no_in_series INTEGER, production_code VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_series) FROM table_20726262_4 WHERE production_code = "3WAB07" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 maximum number in the season wher the us viewers is 2.59?
### Context:
CREATE TABLE table_20726262_4 (no_in_season INTEGER, usviewers__million_ VARCHAR) [/INST]
### Response:
SELECT MAX(no_in_season) FROM table_20726262_4 WHERE usviewers__million_ = "2.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:
what is the written by and production code is 3wab03?
### Context:
CREATE TABLE table_20726262_4 (writtenby VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT writtenby FROM table_20726262_4 WHERE production_code = "3WAB03" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won, when the seats contested was 48?
### Context:
CREATE TABLE table_20728138_1 (seats_won VARCHAR, seats_contested VARCHAR) [/INST]
### Response:
SELECT seats_won FROM table_20728138_1 WHERE seats_contested = 48 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 are contested for independents?
### Context:
CREATE TABLE table_20728138_1 (seats_contested VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT seats_contested FROM table_20728138_1 WHERE party = "Independents" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 percentage seats contested for the revolutionary socialist party?
### Context:
CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT _percentage_in_seats_contested FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 2003 seat number, when seats contested was at 38.23%
### Context:
CREATE TABLE table_20728138_1 (_percentage_in_seats_contested VARCHAR) [/INST]
### Response:
SELECT MIN(2003 AS _seats) FROM table_20728138_1 WHERE _percentage_in_seats_contested = "38.23%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many seats were forfeited in the revolutionary socialist party?
### Context:
CREATE TABLE table_20728138_1 (seats_forfeited VARCHAR, party VARCHAR) [/INST]
### Response:
SELECT COUNT(seats_forfeited) FROM table_20728138_1 WHERE party = "Revolutionary Socialist party" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the attendance was exactly 16642?
### Context:
CREATE TABLE table_20745685_1 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_20745685_1 WHERE attendance = 16642 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 for game #7?
### Context:
CREATE TABLE table_20745685_1 (score VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT score FROM table_20745685_1 WHERE _number = 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:
Who was the opponent on February 28, 1991
### Context:
CREATE TABLE table_20745685_1 (opponent VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_20745685_1 WHERE date = "February 28, 1991" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 when the record was 1-0?
### Context:
CREATE TABLE table_20745444_1 (date VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_20745444_1 WHERE record = "1-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:
How many results finished in a loss?
### Context:
CREATE TABLE table_20745444_1 (tar_heels_points VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT COUNT(tar_heels_points) FROM table_20745444_1 WHERE result = "Loss" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 against Furman?
### Context:
CREATE TABLE table_20745444_1 (game INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_20745444_1 WHERE opponent = "Furman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 times were Duke the opponents?
### Context:
CREATE TABLE table_20745444_1 (opponents VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT COUNT(opponents) FROM table_20745444_1 WHERE opponent = "Duke" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many losses were there when the record was 4-0?
### Context:
CREATE TABLE table_20745444_1 (opponents INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MAX(opponents) FROM table_20745444_1 WHERE record = "4-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the game #7, at or versus (home or at)?
### Context:
CREATE TABLE table_20745754_1 (at_vs VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT at_vs FROM table_20745754_1 WHERE _number = "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:
Who did they play against in game 7?
### Context:
CREATE TABLE table_20745754_1 (opponent VARCHAR, _number VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_20745754_1 WHERE _number = "7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game number had an attendance of 2813?
### Context:
CREATE TABLE table_20745754_1 (_number VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT _number FROM table_20745754_1 WHERE attendance = 2813 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What day did the play game number 9?
### Context:
CREATE TABLE table_20746062_1 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_20746062_1 WHERE game = 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 result of the game when they were 2-1?
### Context:
CREATE TABLE table_20746062_1 (result VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT result FROM table_20746062_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:
What was the record when the Bruins had 41 points?
### Context:
CREATE TABLE table_20760407_1 (record VARCHAR, bruins_points VARCHAR) [/INST]
### Response:
SELECT record FROM table_20760407_1 WHERE bruins_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 date for game 9?
### Context:
CREATE TABLE table_20760407_1 (date VARCHAR, game VARCHAR) [/INST]
### Response:
SELECT date FROM table_20760407_1 WHERE game = 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 game did the Bruins have 56 points?
### Context:
CREATE TABLE table_20760407_1 (game INTEGER, bruins_points VARCHAR) [/INST]
### Response:
SELECT MAX(game) FROM table_20760407_1 WHERE bruins_points = 56 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total of played where lost equals 4 and drawn equals 1?
### Context:
CREATE TABLE table_20760802_1 (played VARCHAR, lost VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT played FROM table_20760802_1 WHERE lost = "4" AND drawn = "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 drawn are there where the Club is new ross?
### Context:
CREATE TABLE table_20760802_1 (drawn VARCHAR, club VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_20760802_1 WHERE club = "New Ross" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 may drawn equal points against at 129?
### Context:
CREATE TABLE table_20760802_1 (drawn VARCHAR, points_against VARCHAR) [/INST]
### Response:
SELECT drawn FROM table_20760802_1 WHERE points_against = "129" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 differ from 134?
### Context:
CREATE TABLE table_20760802_1 (points_difference VARCHAR, points_for VARCHAR) [/INST]
### Response:
SELECT points_difference FROM table_20760802_1 WHERE points_for = "134" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of the points difference lost equal 10?
### Context:
CREATE TABLE table_20760802_1 (points_difference VARCHAR, lost VARCHAR) [/INST]
### Response:
SELECT points_difference FROM table_20760802_1 WHERE 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:
How many teams that played won 0 games?
### Context:
CREATE TABLE table_20760802_1 (played VARCHAR, won VARCHAR) [/INST]
### Response:
SELECT played FROM table_20760802_1 WHERE won = "0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What are the public schools with a master's university?
### Context:
CREATE TABLE table_2076595_1 (location_s_ VARCHAR, control VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT location_s_ FROM table_2076595_1 WHERE control = "Public" AND type = "Master's 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:
What is the minimum enrollment for Plainfield?
### Context:
CREATE TABLE table_2076595_1 (enrollment__2009_ INTEGER, location_s_ VARCHAR) [/INST]
### Response:
SELECT MIN(enrollment__2009_) FROM table_2076595_1 WHERE location_s_ = "Plainfield" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 school had an enrollment in 2009 of 224?
### Context:
CREATE TABLE table_2076595_1 (type VARCHAR, enrollment__2009_ VARCHAR) [/INST]
### Response:
SELECT type FROM table_2076595_1 WHERE enrollment__2009_ = 224 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was Southern Vermont College founded?
### Context:
CREATE TABLE table_2076595_1 (founded INTEGER, school VARCHAR) [/INST]
### Response:
SELECT MAX(founded) FROM table_2076595_1 WHERE school = "Southern Vermont 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:
Is art school public or private?
### Context:
CREATE TABLE table_2076595_1 (control VARCHAR, type VARCHAR) [/INST]
### Response:
SELECT control FROM table_2076595_1 WHERE type = "Art school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school was founded in 1791?
### Context:
CREATE TABLE table_2076595_1 (school VARCHAR, founded VARCHAR) [/INST]
### Response:
SELECT school FROM table_2076595_1 WHERE founded = 1791 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the number of spring enrollment for sioux falls seminary
### Context:
CREATE TABLE table_2076557_2 (enrollment__spring_2012_ VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT COUNT(enrollment__spring_2012_) FROM table_2076557_2 WHERE school = "Sioux Falls Seminary" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 accrediatation for southeast technical institute
### Context:
CREATE TABLE table_2076557_2 (accreditation VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT accreditation FROM table_2076557_2 WHERE school = "Southeast Technical Institute" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 founded for yankton
### Context:
CREATE TABLE table_2076557_2 (founded VARCHAR, location_s_ VARCHAR) [/INST]
### Response:
SELECT COUNT(founded) FROM table_2076557_2 WHERE location_s_ = "Yankton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Italian word for the English word "otter"?
### Context:
CREATE TABLE table_2077192_2 (italian VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT italian FROM table_2077192_2 WHERE english = "otter" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 French words does zinnapòtamu in Central-Southern Calabrian translate to?
### Context:
CREATE TABLE table_2077192_2 (french VARCHAR, central_southern_calabrian VARCHAR) [/INST]
### Response:
SELECT COUNT(french) FROM table_2077192_2 WHERE central_southern_calabrian = "zinnapòtamu" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 French translation for the English word "orange"?
### Context:
CREATE TABLE table_2077192_2 (french VARCHAR, english VARCHAR) [/INST]
### Response:
SELECT french FROM table_2077192_2 WHERE english = "orange" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.