text stringlengths 380 1.33k |
|---|
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the School/Junior/Club Group (Class) that has a Nationality of canada, and a Place of goalie?
### Context:
CREATE TABLE table_name_69 (college_junior_club_team__league_ VARCHAR, nationality VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team__league_ FROM table_name_69 WHERE nationality = "canada" AND position = "goalie" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Nationality for alexandre jacques?
### Context:
CREATE TABLE table_name_2 (nationality VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_2 WHERE player = "alexandre jacques" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest Pick that is wide receiver with overall of 29?
### Context:
CREATE TABLE table_name_60 (pick__number INTEGER, position VARCHAR, overall VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_60 WHERE position = "wide receiver" AND overall = 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest Round with Overall of 247 and pick less than 41?
### Context:
CREATE TABLE table_name_39 (round INTEGER, overall VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT MIN(round) FROM table_name_39 WHERE overall = 247 AND pick__number < 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 is the Position with a round 3 pick for r. jay soward?
### Context:
CREATE TABLE table_name_20 (position VARCHAR, round VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_20 WHERE round < 3 AND name = "r. jay soward" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average Round for wide receiver r. jay soward and Overall smaller than 29?
### Context:
CREATE TABLE table_name_16 (round INTEGER, overall VARCHAR, position VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT AVG(round) FROM table_name_16 WHERE position = "wide receiver" AND name = "r. jay soward" AND overall < 29 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Points is the lowest one that has Touchdowns smaller than 2, and an Extra points of 7, and a Field goals smaller than 0?
### Context:
CREATE TABLE table_name_85 (points INTEGER, field_goals VARCHAR, touchdowns VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_85 WHERE touchdowns < 2 AND extra_points = 7 AND field_goals < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many Touchdowns have a Player of rolla bigelow, and an Extra points smaller than 0?
### Context:
CREATE TABLE table_name_33 (touchdowns INTEGER, player VARCHAR, extra_points VARCHAR) [/INST]
### Response:
SELECT SUM(touchdowns) FROM table_name_33 WHERE player = "rolla bigelow" AND extra_points < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Longi- tude is on jun 6?
### Context:
CREATE TABLE table_name_28 (longi__tude VARCHAR, date_³ VARCHAR) [/INST]
### Response:
SELECT longi__tude FROM table_name_28 WHERE date_³ = "jun 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:
When has a Korean name ² of 청명 (清明) cheongmyeong?
### Context:
CREATE TABLE table_name_88 (date_³ VARCHAR, korean_name_² VARCHAR) [/INST]
### Response:
SELECT date_³ FROM table_name_88 WHERE korean_name_² = "청명 (清明) cheongmyeong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Vietnamese name has a Chinese name ¹ of 芒種 (芒种) mángzhòng?
### Context:
CREATE TABLE table_name_23 (vietnamese_name VARCHAR, chinese_name_¹ VARCHAR) [/INST]
### Response:
SELECT vietnamese_name FROM table_name_23 WHERE chinese_name_¹ = "芒種 (芒种) mángzhòng" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Usual translation is on jun 21?
### Context:
CREATE TABLE table_name_98 (usual_translation VARCHAR, date_³ VARCHAR) [/INST]
### Response:
SELECT usual_translation FROM table_name_98 WHERE date_³ = "jun 21" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Japanese name has a Korean name ² of 경칩 (驚蟄) gyeongchip?
### Context:
CREATE TABLE table_name_8 (japanese_name VARCHAR, korean_name_² VARCHAR) [/INST]
### Response:
SELECT japanese_name FROM table_name_8 WHERE korean_name_² = "경칩 (驚蟄) gyeongchip" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Usual translation is on sep 23?
### Context:
CREATE TABLE table_name_80 (usual_translation VARCHAR, date_³ VARCHAR) [/INST]
### Response:
SELECT usual_translation FROM table_name_80 WHERE date_³ = "sep 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 is the average Week for the game at three rivers stadium, with a Record of 3–2?
### Context:
CREATE TABLE table_name_44 (week INTEGER, location VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_44 WHERE location = "three rivers stadium" AND record = "3–2" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the result of the game at three rivers stadium with a Record of 6–3?
### Context:
CREATE TABLE table_name_20 (result VARCHAR, location VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_20 WHERE location = "three rivers stadium" AND record = "6–3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the earliest week that shows a record of 8–5?
### Context:
CREATE TABLE table_name_40 (week INTEGER, record VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_40 WHERE record = "8–5" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record of the game that has a result of w 45–17?
### Context:
CREATE TABLE table_name_31 (record VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_31 WHERE result = "w 45–17" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What week that shows a game record of 0–1?
### Context:
CREATE TABLE table_name_94 (week INTEGER, record VARCHAR) [/INST]
### Response:
SELECT AVG(week) FROM table_name_94 WHERE record = "0–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:
Which driver has less than 37 wins and at 14.12%?
### Context:
CREATE TABLE table_name_64 (entries INTEGER, wins VARCHAR, percentage VARCHAR) [/INST]
### Response:
SELECT AVG(entries) FROM table_name_64 WHERE wins < 37 AND percentage = "14.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:
Which driver has 162 entries?
### Context:
CREATE TABLE table_name_74 (driver VARCHAR, entries VARCHAR) [/INST]
### Response:
SELECT driver FROM table_name_74 WHERE entries = 162 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which season did jackie stewart enter with entries less than 215?
### Context:
CREATE TABLE table_name_67 (seasons VARCHAR, entries VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT seasons FROM table_name_67 WHERE entries < 215 AND driver = "jackie stewart" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 ERP W is it that has a Call sign of w273bs?
### Context:
CREATE TABLE table_name_40 (erp_w INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT SUM(erp_w) FROM table_name_40 WHERE call_sign = "w273bs" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which City of license has a Frequency MHz smaller than 100.9, and a ERP W larger than 100?
### Context:
CREATE TABLE table_name_45 (city_of_license VARCHAR, frequency_mhz VARCHAR, erp_w VARCHAR) [/INST]
### Response:
SELECT city_of_license FROM table_name_45 WHERE frequency_mhz < 100.9 AND erp_w > 100 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Frequency MHz in woodstock, georgia?
### Context:
CREATE TABLE table_name_91 (frequency_mhz INTEGER, city_of_license VARCHAR) [/INST]
### Response:
SELECT SUM(frequency_mhz) FROM table_name_91 WHERE city_of_license = "woodstock, georgia" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ERP W of w223bp?
### Context:
CREATE TABLE table_name_6 (erp_w INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT MIN(erp_w) FROM table_name_6 WHERE call_sign = "w223bp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest points where there were less than 2 drawn and the games were less than 6?
### Context:
CREATE TABLE table_name_26 (points INTEGER, drawn VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT MAX(points) FROM table_name_26 WHERE drawn < 2 AND games < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the license plate code for the country with an area of 784?
### Context:
CREATE TABLE table_name_52 (license_plate_code VARCHAR, area__sqmi_ VARCHAR) [/INST]
### Response:
SELECT license_plate_code FROM table_name_52 WHERE area__sqmi_ = 784 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the country seat for the license plate code 5c?
### Context:
CREATE TABLE table_name_72 (county VARCHAR, license_plate_code VARCHAR) [/INST]
### Response:
SELECT county AS seat FROM table_name_72 WHERE license_plate_code = "5c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pada 3 has a Pada 1 of टे te?
### Context:
CREATE TABLE table_name_41 (pada_3 VARCHAR, pada_1 VARCHAR) [/INST]
### Response:
SELECT pada_3 FROM table_name_41 WHERE pada_1 = "टे te" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pada 4 has a Pada 2 of थ tha?
### Context:
CREATE TABLE table_name_32 (pada_4 VARCHAR, pada_2 VARCHAR) [/INST]
### Response:
SELECT pada_4 FROM table_name_32 WHERE pada_2 = "थ tha" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Pada 3 has a Pada 2 of चे che?
### Context:
CREATE TABLE table_name_27 (pada_3 VARCHAR, pada_2 VARCHAR) [/INST]
### Response:
SELECT pada_3 FROM table_name_27 WHERE pada_2 = "चे che" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 ङ ng/na?
### Context:
CREATE TABLE table_name_87 (name VARCHAR, pada_3 VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_87 WHERE pada_3 = "ङ ng/na" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of Pada 4 has a Pada 1 of खी ju/khi?
### Context:
CREATE TABLE table_name_90 (pada_4 VARCHAR, pada_1 VARCHAR) [/INST]
### Response:
SELECT pada_4 FROM table_name_90 WHERE pada_1 = "खी ju/khi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What kind of Pada 1 has a Pada 2 of सा sa?
### Context:
CREATE TABLE table_name_8 (pada_1 VARCHAR, pada_2 VARCHAR) [/INST]
### Response:
SELECT pada_1 FROM table_name_8 WHERE pada_2 = "सा sa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points classification for stage of 18b
### Context:
CREATE TABLE table_name_86 (points_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_86 WHERE stage = "18b" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 points classification of stage 16
### Context:
CREATE TABLE table_name_31 (points_classification VARCHAR, stage VARCHAR) [/INST]
### Response:
SELECT points_classification FROM table_name_31 WHERE stage = "16" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the round of the match with Emanuel Newton as the opponent?
### Context:
CREATE TABLE table_name_70 (round VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_70 WHERE opponent = "emanuel newton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the match with Aron Lofton as the opponent?
### Context:
CREATE TABLE table_name_29 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_29 WHERE opponent = "aron lofton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the location of the match with an event of ecc 8: comeback?
### Context:
CREATE TABLE table_name_49 (location VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_49 WHERE event = "ecc 8: comeback" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the opponent of the match with a win result and a time of 3:02?
### Context:
CREATE TABLE table_name_13 (opponent VARCHAR, res VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_13 WHERE res = "win" AND time = "3:02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 method of the match with 1 round and a time of 1:58?
### Context:
CREATE TABLE table_name_60 (method VARCHAR, round VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT method FROM table_name_60 WHERE round = 1 AND time = "1:58" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 people attended the game on September 19, 1976?
### Context:
CREATE TABLE table_name_29 (attendance VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT COUNT(attendance) FROM table_name_29 WHERE date = "september 19, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 week number where they played against the Detroit Lions?
### Context:
CREATE TABLE table_name_94 (week INTEGER, opponent VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_94 WHERE opponent = "detroit lions" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average attendance for the game on September 26, 1976?
### Context:
CREATE TABLE table_name_48 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_48 WHERE date = "september 26, 1976" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which pick has a school/club team that is kentucky?
### Context:
CREATE TABLE table_name_26 (pick VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_26 WHERE school_club_team = "kentucky" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 player is it that has a pick of 147?
### Context:
CREATE TABLE table_name_22 (player VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_22 WHERE pick = "147" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 round has a position that is cornerback?
### Context:
CREATE TABLE table_name_19 (round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_19 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 height of the building named 555 17th street?
### Context:
CREATE TABLE table_name_77 (height_ft___m VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height_ft___m FROM table_name_77 WHERE name = "555 17th street" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 building with 40 floors?
### Context:
CREATE TABLE table_name_77 (height_ft___m VARCHAR, floors VARCHAR) [/INST]
### Response:
SELECT height_ft___m FROM table_name_77 WHERE floors = 40 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 per capital income for Charles county?
### Context:
CREATE TABLE table_name_9 (per_capita_income VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT per_capita_income FROM table_name_9 WHERE county = "charles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 per capital income for Washington county?
### Context:
CREATE TABLE table_name_12 (per_capita_income VARCHAR, county VARCHAR) [/INST]
### Response:
SELECT per_capita_income FROM table_name_12 WHERE county = "washington" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what builder is now retired
### Context:
CREATE TABLE table_name_20 (pennant_number VARCHAR, current_status VARCHAR) [/INST]
### Response:
SELECT pennant_number FROM table_name_20 WHERE current_status = "retired" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
what builder launched the name minerva
### Context:
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_97 WHERE name = "minerva" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 builder who launched in danaide
### Context:
CREATE TABLE table_name_97 (launched VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT launched FROM table_name_97 WHERE name = "danaide" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 wins did he have when he played under 2 events?
### Context:
CREATE TABLE table_name_22 (wins VARCHAR, events INTEGER) [/INST]
### Response:
SELECT COUNT(wins) FROM table_name_22 WHERE events < 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 his highest number of top 25s when eh played over 2 events and under 0 wins?
### Context:
CREATE TABLE table_name_28 (top_25 INTEGER, events VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT MAX(top_25) FROM table_name_28 WHERE events > 2 AND wins < 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 his low win total when he has over 3 top 25s and under 9 cuts made?
### Context:
CREATE TABLE table_name_95 (wins INTEGER, top_25 VARCHAR, cuts_made VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_95 WHERE top_25 = 3 AND cuts_made < 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 opponent had an attendance of 10,089?
### Context:
CREATE TABLE table_name_11 (opponent VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_11 WHERE attendance = "10,089" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the game against the Braves with a record of 41–27?
### Context:
CREATE TABLE table_name_25 (score VARCHAR, opponent VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_25 WHERE opponent = "braves" AND record = "41–27" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 for the match were the outcome was runner-up and the score was 5-7, 1-6?
### Context:
CREATE TABLE table_name_79 (opponent VARCHAR, outcome VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_79 WHERE outcome = "runner-up" AND score = "5-7, 1-6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the outcome of the match against Stacy Margolin?
### Context:
CREATE TABLE table_name_79 (outcome VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT outcome FROM table_name_79 WHERE opponent = "stacy margolin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score of the match against duk-hee lee?
### Context:
CREATE TABLE table_name_43 (score VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_43 WHERE opponent = "duk-hee lee" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 have a Rank of 17th, and Wins larger than 0?
### Context:
CREATE TABLE table_name_29 (points VARCHAR, rank VARCHAR, wins VARCHAR) [/INST]
### Response:
SELECT COUNT(points) FROM table_name_29 WHERE rank = "17th" AND wins > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Wins have a Class of 500cc, and a Year smaller than 1975?
### Context:
CREATE TABLE table_name_46 (wins VARCHAR, class VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT wins FROM table_name_46 WHERE class = "500cc" AND year < 1975 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Wins is the highest one that has a Class of 500cc, and Points smaller than 6?
### Context:
CREATE TABLE table_name_99 (wins INTEGER, class VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(wins) FROM table_name_99 WHERE class = "500cc" AND points < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Points is the lowest one that has a Year larger than 1974, and a Rank of 15th?
### Context:
CREATE TABLE table_name_75 (points INTEGER, year VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_75 WHERE year > 1974 AND rank = "15th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Frequency MHz of 88.7 had what average erp w?
### Context:
CREATE TABLE table_name_50 (erp_w INTEGER, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT AVG(erp_w) FROM table_name_50 WHERE frequency_mhz = 88.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:
Frequency MHz smaller than 95.3, and a Call sign of k234ag is what class?
### Context:
CREATE TABLE table_name_69 (class VARCHAR, frequency_mhz VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_69 WHERE frequency_mhz < 95.3 AND call_sign = "k234ag" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Call sign of k231bg has what sum of erp w?
### Context:
CREATE TABLE table_name_30 (erp_w INTEGER, call_sign VARCHAR) [/INST]
### Response:
SELECT SUM(erp_w) FROM table_name_30 WHERE call_sign = "k231bg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Class of d, and a Frequency MHz smaller than 107.7, and a ERP W smaller than 232 has what call sign?
### Context:
CREATE TABLE table_name_24 (call_sign VARCHAR, erp_w VARCHAR, class VARCHAR, frequency_mhz VARCHAR) [/INST]
### Response:
SELECT call_sign FROM table_name_24 WHERE class = "d" AND frequency_mhz < 107.7 AND erp_w < 232 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
ERP W that has a Class of d, and a Call sign of k299ar is what total number?
### Context:
CREATE TABLE table_name_84 (erp_w VARCHAR, class VARCHAR, call_sign VARCHAR) [/INST]
### Response:
SELECT COUNT(erp_w) FROM table_name_84 WHERE class = "d" AND call_sign = "k299ar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date for loss of ruffin (3-5)
### Context:
CREATE TABLE table_name_44 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_44 WHERE loss = "ruffin (3-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 date with loss of carman (3-12)
### Context:
CREATE TABLE table_name_59 (date VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_59 WHERE loss = "carman (3-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 score for save of lancaster (3)
### Context:
CREATE TABLE table_name_7 (score VARCHAR, save VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_7 WHERE save = "lancaster (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:
Name the opponent with loss of sanderson (9-8)
### Context:
CREATE TABLE table_name_80 (opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_80 WHERE loss = "sanderson (9-8)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which game has the highest score in October with 9?
### Context:
CREATE TABLE table_name_41 (october INTEGER, game VARCHAR) [/INST]
### Response:
SELECT MAX(october) FROM table_name_41 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 average game with a record of 4-4-0?
### Context:
CREATE TABLE table_name_58 (game INTEGER, record VARCHAR) [/INST]
### Response:
SELECT AVG(game) FROM table_name_58 WHERE record = "4-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 literacy rate published in the 2001 census for the state that saw a 12.66% increase?
### Context:
CREATE TABLE table_name_80 (literacy_rate___percentage____2001_census VARCHAR, _percentage_increase VARCHAR) [/INST]
### Response:
SELECT literacy_rate___percentage____2001_census FROM table_name_80 WHERE _percentage_increase = "12.66%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who earned the save in the game against the Sinon Bulls when Jeriome Robertson took the loss?
### Context:
CREATE TABLE table_name_32 (save VARCHAR, opponent VARCHAR, loss VARCHAR) [/INST]
### Response:
SELECT save FROM table_name_32 WHERE opponent = "sinon bulls" AND loss = "jeriome robertson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of people went to the tiger stadium
### Context:
CREATE TABLE table_name_89 (result VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT result FROM table_name_89 WHERE venue = "tiger stadium" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 undecided percentage of the poll where Goldberg had 6%?
### Context:
CREATE TABLE table_name_51 (undecided VARCHAR, goldberg VARCHAR) [/INST]
### Response:
SELECT undecided FROM table_name_51 WHERE goldberg = "6%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the poll where Murray had 11% from the Suffolk University source?
### Context:
CREATE TABLE table_name_1 (date VARCHAR, source VARCHAR, murray VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_1 WHERE source = "suffolk university" AND murray = "11%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the undecided percentage of the poll from Suffolk University with Murray at 11%?
### Context:
CREATE TABLE table_name_80 (undecided VARCHAR, source VARCHAR, murray VARCHAR) [/INST]
### Response:
SELECT undecided FROM table_name_80 WHERE source = "suffolk university" AND murray = "11%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the poll with Silbert at 18%?
### Context:
CREATE TABLE table_name_53 (date VARCHAR, silbert VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_53 WHERE silbert = "18%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the date of the poll with Silbert at 10.0%?
### Context:
CREATE TABLE table_name_48 (date VARCHAR, silbert VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_48 WHERE silbert = "10.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 date of the poll with Goldberg at 26%?
### Context:
CREATE TABLE table_name_12 (date VARCHAR, goldberg VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_12 WHERE goldberg = "26%" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of tries with conversions more than 0?
### Context:
CREATE TABLE table_name_22 (tries INTEGER, conversions INTEGER) [/INST]
### Response:
SELECT MIN(tries) FROM table_name_22 WHERE conversions > 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 average number of tries for British and Irish Lions with less than 2 games?
### Context:
CREATE TABLE table_name_82 (tries INTEGER, team VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT AVG(tries) FROM table_name_82 WHERE team = "british and irish lions" AND games < 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 average number of conversions for the Cardiff Blues with less than 14 tries?
### Context:
CREATE TABLE table_name_91 (conversions INTEGER, team VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT AVG(conversions) FROM table_name_91 WHERE team = "cardiff blues" AND tries < 14 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Median family income when the Median household income is $38,137?
### Context:
CREATE TABLE table_name_8 (median_family_income VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT median_family_income FROM table_name_8 WHERE median_household_income = "$38,137" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What County has a Median household income of $46,872?
### Context:
CREATE TABLE table_name_36 (county VARCHAR, median_household_income VARCHAR) [/INST]
### Response:
SELECT county FROM table_name_36 WHERE median_household_income = "$46,872" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average number of field goals scored by a right halfback who had more than 3 touchdowns?
### Context:
CREATE TABLE table_name_80 (field_goals INTEGER, position VARCHAR, touchdowns VARCHAR) [/INST]
### Response:
SELECT AVG(field_goals) FROM table_name_80 WHERE position = "right halfback" AND touchdowns > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the week of the game played on November 28, 1974?
### Context:
CREATE TABLE table_name_94 (week INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MIN(week) FROM table_name_94 WHERE date = "november 28, 1974" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What Year was james mcclure Deputy, and the Name is robert mcphearson?
### Context:
CREATE TABLE table_name_44 (year VARCHAR, deputy VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_44 WHERE deputy = "james mcclure" AND name = "robert mcphearson" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Deputy when the Name was elizabeth black?
### Context:
CREATE TABLE table_name_88 (deputy VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT deputy FROM table_name_88 WHERE name = "elizabeth 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:
What is the Name for 1997–99?
### Context:
CREATE TABLE table_name_76 (name VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_76 WHERE year = "1997–99" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Political affiliation of deputy john dallat?
### Context:
CREATE TABLE table_name_39 (political_affiliation VARCHAR, deputy VARCHAR) [/INST]
### Response:
SELECT political_affiliation FROM table_name_39 WHERE deputy = "john dallat" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 deputy in 1992–93?
### Context:
CREATE TABLE table_name_41 (deputy VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT deputy FROM table_name_41 WHERE year = "1992–93" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 civil liberties 2013 values are associated with a 2010 political rights value of 6, civil liberties 2012 values over 5, and political rights 2011 under 6?
### Context:
CREATE TABLE table_name_42 (civil_liberties_2013 VARCHAR, political_rights_2011 VARCHAR, political_rights_2010 VARCHAR, civil_liberties_2012 VARCHAR) [/INST]
### Response:
SELECT COUNT(civil_liberties_2013) FROM table_name_42 WHERE political_rights_2010 = 6 AND civil_liberties_2012 > 5 AND political_rights_2011 < 6 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.