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 lowest height for Parent grasmoor when it has a Prom larger than 117?
### Context:
CREATE TABLE table_name_94 (height__m_ INTEGER, parent VARCHAR, prom__m_ VARCHAR) [/INST]
### Response:
SELECT MIN(height__m_) FROM table_name_94 WHERE parent = "grasmoor" AND prom__m_ > 117 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Class is Peak Sail when it has a Prom larger than 30?
### Context:
CREATE TABLE table_name_34 (class VARCHAR, prom__m_ VARCHAR, peak VARCHAR) [/INST]
### Response:
SELECT class FROM table_name_34 WHERE prom__m_ > 30 AND peak = "sail" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Parent has height smaller than 756 and a Prom of 39?
### Context:
CREATE TABLE table_name_52 (parent VARCHAR, height__m_ VARCHAR, prom__m_ VARCHAR) [/INST]
### Response:
SELECT parent FROM table_name_52 WHERE height__m_ < 756 AND prom__m_ = 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:
Who had the lowest interview score from South Dakota with an evening gown less than 8.513?
### Context:
CREATE TABLE table_name_52 (interview INTEGER, state VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MIN(interview) FROM table_name_52 WHERE state = "south dakota" AND evening_gown < 8.513 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average of the contestant from Texas with an evening gown larger than 8.875?
### Context:
CREATE TABLE table_name_57 (average INTEGER, state VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MAX(average) FROM table_name_57 WHERE state = "texas" AND evening_gown > 8.875 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 interview score from Kentucky?
### Context:
CREATE TABLE table_name_27 (interview INTEGER, state VARCHAR) [/INST]
### Response:
SELECT AVG(interview) FROM table_name_27 WHERE state = "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:
What is the lowest evening score of the contestant with an evening gown less than 8.938, from Texas, and with an average less than 8.846 has?
### Context:
CREATE TABLE table_name_3 (interview INTEGER, average VARCHAR, evening_gown VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT MIN(interview) FROM table_name_3 WHERE evening_gown < 8.938 AND state = "texas" AND average < 8.846 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 swimsuit score of the contestant with an evening gown larger than 9.175 and an interview score less than 8.425?
### Context:
CREATE TABLE table_name_91 (swimsuit INTEGER, evening_gown VARCHAR, interview VARCHAR) [/INST]
### Response:
SELECT MAX(swimsuit) FROM table_name_91 WHERE evening_gown > 9.175 AND interview < 8.425 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 average of the contestant with an interview of 8.275 and an evening gown bigger than 8.7?
### Context:
CREATE TABLE table_name_31 (average INTEGER, interview VARCHAR, evening_gown VARCHAR) [/INST]
### Response:
SELECT MIN(average) FROM table_name_31 WHERE interview = 8.275 AND evening_gown > 8.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:
How many attended the game at Arden Street Oval?
### Context:
CREATE TABLE table_name_86 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_86 WHERE venue = "arden street oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the score for Geelong?
### Context:
CREATE TABLE table_name_84 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_84 WHERE home_team = "geelong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year joined in the city of College Park at the Conference championships smaller than 0?
### Context:
CREATE TABLE table_name_81 (joined INTEGER, city VARCHAR, conference_championships VARCHAR) [/INST]
### Response:
SELECT MIN(joined) FROM table_name_81 WHERE city = "college park" AND conference_championships < 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 latest year joined with a Conference championships of 5, and an Institution of university of north carolina?
### Context:
CREATE TABLE table_name_84 (joined INTEGER, conference_championships VARCHAR, institution VARCHAR) [/INST]
### Response:
SELECT MAX(joined) FROM table_name_84 WHERE conference_championships = 5 AND institution = "university of north carolina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year joined with a Conference championships of 5, and a Nickname of wolfpack?
### Context:
CREATE TABLE table_name_15 (joined VARCHAR, conference_championships VARCHAR, nickname VARCHAR) [/INST]
### Response:
SELECT joined FROM table_name_15 WHERE conference_championships = 5 AND nickname = "wolfpack" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 is the smallest Total produced with a model of FM H-15-44?
### Context:
CREATE TABLE table_name_68 (total_produced INTEGER, model VARCHAR) [/INST]
### Response:
SELECT MIN(total_produced) FROM table_name_68 WHERE model = "fm h-15-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:
Name the date for attendance more than 20,268
### Context:
CREATE TABLE table_name_47 (date VARCHAR, attendance INTEGER) [/INST]
### Response:
SELECT date FROM table_name_47 WHERE attendance > 20 OFFSET 268 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 47 when it has a D 45 of d 32
### Context:
CREATE TABLE table_name_32 (d_47 VARCHAR, d_45 VARCHAR) [/INST]
### Response:
SELECT d_47 FROM table_name_32 WHERE d_45 = "d 32" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 47 when it has a D 41 of r 36
### Context:
CREATE TABLE table_name_93 (d_47 VARCHAR, d_41 VARCHAR) [/INST]
### Response:
SELECT d_47 FROM table_name_93 WHERE d_41 = "r 36" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 47 when it has a D 48 of d 49 and D 42 of r 42
### Context:
CREATE TABLE table_name_35 (d_47 VARCHAR, d_48 VARCHAR, d_42 VARCHAR) [/INST]
### Response:
SELECT d_47 FROM table_name_35 WHERE d_48 = "d 49" AND d_42 = "r 42" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 48 when it has a D 44 of d 33
### Context:
CREATE TABLE table_name_29 (d_48 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT d_48 FROM table_name_29 WHERE d_44 = "d 33" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 D 44 when it has a D 46 of d 31
### Context:
CREATE TABLE table_name_63 (d_44 VARCHAR, d_46 VARCHAR) [/INST]
### Response:
SELECT d_44 FROM table_name_63 WHERE d_46 = "d 31" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Tell me the model with fuel or propulsion of diesel and orion manufacturer in 2005
### Context:
CREATE TABLE table_name_68 (model VARCHAR, year VARCHAR, fuel_or_propulsion VARCHAR, manufacturer VARCHAR) [/INST]
### Response:
SELECT model FROM table_name_68 WHERE fuel_or_propulsion = "diesel" AND manufacturer = "orion" AND year = 2005 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the sum of quantity for before 2011 model slf-230
### Context:
CREATE TABLE table_name_60 (quantity INTEGER, year VARCHAR, model VARCHAR) [/INST]
### Response:
SELECT SUM(quantity) FROM table_name_60 WHERE year < 2011 AND model = "slf-230" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 fleet series with a quantity of 5
### Context:
CREATE TABLE table_name_96 (fleet_series VARCHAR, quantity VARCHAR) [/INST]
### Response:
SELECT fleet_series FROM table_name_96 WHERE quantity = 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:
When was the Mallala race held?
### Context:
CREATE TABLE table_name_57 (date VARCHAR, race_title VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_57 WHERE race_title = "mallala" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 won the Phillip Island Grand Prix Circuit?
### Context:
CREATE TABLE table_name_61 (winner VARCHAR, circuit VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_61 WHERE circuit = "phillip island grand prix circuit" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 name of the driver that won the Lakeside race?
### Context:
CREATE TABLE table_name_44 (winner VARCHAR, race_title VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_44 WHERE race_title = "lakeside" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clerk when the highway commissioner was Albert Lewis?
### Context:
CREATE TABLE table_name_14 (clerk VARCHAR, highway_commissioners VARCHAR) [/INST]
### Response:
SELECT clerk FROM table_name_14 WHERE highway_commissioners = "albert lewis" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 supervisor in the year 1846?
### Context:
CREATE TABLE table_name_43 (supervisor VARCHAR, years VARCHAR) [/INST]
### Response:
SELECT supervisor FROM table_name_43 WHERE years = "1846" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Treasurer was treasurer, who was the highway commissioner?
### Context:
CREATE TABLE table_name_37 (highway_commissioners VARCHAR) [/INST]
### Response:
SELECT highway_commissioners FROM table_name_37 WHERE "treasurer" = "treasurer" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 snatches were there with a total of 267.5?
### Context:
CREATE TABLE table_name_73 (snatch VARCHAR, total INTEGER) [/INST]
### Response:
SELECT COUNT(snatch) FROM table_name_73 WHERE total < 267.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 event has a 122.5 snatch rate?
### Context:
CREATE TABLE table_name_2 (event VARCHAR, snatch VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_2 WHERE snatch = 122.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 lowest total that had less than 170 snatches, 56 kg events and less than 145 clean & jerk?
### Context:
CREATE TABLE table_name_21 (total INTEGER, snatch VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST]
### Response:
SELECT MIN(total) FROM table_name_21 WHERE snatch < 170 AND event = "56 kg" AND clean_ & _jerk < 145 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 that had an event of +105 kg and clean & jerk less than 227.5?
### Context:
CREATE TABLE table_name_54 (total VARCHAR, event VARCHAR, clean_ VARCHAR, _jerk VARCHAR) [/INST]
### Response:
SELECT COUNT(total) FROM table_name_54 WHERE event = "+105 kg" AND clean_ & _jerk < 227.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 was the average attendance when the decision was price and montreal were the visitors?
### Context:
CREATE TABLE table_name_58 (attendance INTEGER, visitor VARCHAR, decision VARCHAR) [/INST]
### Response:
SELECT AVG(attendance) FROM table_name_58 WHERE visitor = "montreal" AND decision = "price" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendance for week 2?
### Context:
CREATE TABLE table_name_50 (attendance INTEGER, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_50 WHERE week = 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:
Tell me the shuttle run with grade c
### Context:
CREATE TABLE table_name_36 (shuttle_run__sec_ VARCHAR, grade VARCHAR) [/INST]
### Response:
SELECT shuttle_run__sec_ FROM table_name_36 WHERE grade = "c" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On January 15, what was the most in attendance?
### Context:
CREATE TABLE table_name_42 (attendance INTEGER, date VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_42 WHERE date = "january 15" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On January 29, who had the decision of Mason?
### Context:
CREATE TABLE table_name_17 (visitor VARCHAR, decision VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_17 WHERE decision = "mason" AND date = "january 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 was the time of the driver on grid 3?
### Context:
CREATE TABLE table_name_15 (time_retired VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_15 WHERE grid = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the retired time on someone who had 43 laps on a grip of 18?
### Context:
CREATE TABLE table_name_17 (time_retired VARCHAR, laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_17 WHERE laps = 43 AND grid = 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 was the fewest laps for somone who finished +18.445?
### Context:
CREATE TABLE table_name_89 (laps INTEGER, time_retired VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_89 WHERE time_retired = "+18.445" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On which date was a game played at Junction Oval?
### Context:
CREATE TABLE table_name_40 (date VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_40 WHERE venue = "junction oval" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
On which date was Essendon the home team?
### Context:
CREATE TABLE table_name_13 (date VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_13 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on the game that was played on october 27?
### Context:
CREATE TABLE table_name_72 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_72 WHERE date = "october 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:
How many receptions for players with over 647 yards and an under 14 yard average?
### Context:
CREATE TABLE table_name_83 (rec INTEGER, yards VARCHAR, avg VARCHAR) [/INST]
### Response:
SELECT MIN(rec) FROM table_name_83 WHERE yards > 647 AND avg < 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 home teams score at Victoria Park?
### Context:
CREATE TABLE table_name_31 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team AS score FROM table_name_31 WHERE venue = "victoria park" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the home team at the venue mcg?
### Context:
CREATE TABLE table_name_20 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_20 WHERE venue = "mcg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 attendace of the game with the Lakers as the home team?
### Context:
CREATE TABLE table_name_56 (attendance INTEGER, home VARCHAR) [/INST]
### Response:
SELECT MAX(attendance) FROM table_name_56 WHERE home = "lakers" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 on December 5, 2007?
### Context:
CREATE TABLE table_name_55 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_55 WHERE date = "december 5, 2007" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who was the winner and nominees for the movie directed by cary joji fukunaga?
### Context:
CREATE TABLE table_name_44 (winner_and_nominees VARCHAR, director VARCHAR) [/INST]
### Response:
SELECT winner_and_nominees FROM table_name_44 WHERE director = "cary joji fukunaga" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title for the king's speech?
### Context:
CREATE TABLE table_name_58 (original_title VARCHAR, winner_and_nominees VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_58 WHERE winner_and_nominees = "the king's speech" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 title of the king's speech?
### Context:
CREATE TABLE table_name_99 (original_title VARCHAR, winner_and_nominees VARCHAR) [/INST]
### Response:
SELECT original_title FROM table_name_99 WHERE winner_and_nominees = "the king's speech" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the king's speech?
### Context:
CREATE TABLE table_name_77 (director VARCHAR, original_title VARCHAR) [/INST]
### Response:
SELECT director FROM table_name_77 WHERE original_title = "the king's speech" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 of the goalie in Round 7?
### Context:
CREATE TABLE table_name_51 (nationality VARCHAR, round VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_51 WHERE round = 7 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 was the score from the game played on June 22?
### Context:
CREATE TABLE table_name_84 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_84 WHERE date = "june 22" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many people were assisted in 1997?
### Context:
CREATE TABLE table_name_14 (people_assisted VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT people_assisted FROM table_name_14 WHERE year = "1997" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 year did USA undergo a disaster?
### Context:
CREATE TABLE table_name_15 (year VARCHAR, countries_affected VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_15 WHERE countries_affected = "usa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the disaster in which 1,000 people were helped, what was the nature of help?
### Context:
CREATE TABLE table_name_31 (nature_of_help VARCHAR, people_assisted VARCHAR) [/INST]
### Response:
SELECT nature_of_help FROM table_name_31 WHERE people_assisted = "1,000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the pick number of Penn State?
### Context:
CREATE TABLE table_name_2 (pick VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT pick FROM table_name_2 WHERE school = "penn state" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Round is pick 112 in?
### Context:
CREATE TABLE table_name_2 (round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_2 WHERE pick = 112 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 from Washington?
### Context:
CREATE TABLE table_name_18 (pick INTEGER, school VARCHAR) [/INST]
### Response:
SELECT MAX(pick) FROM table_name_18 WHERE school = "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 is the total pick number from round 2?
### Context:
CREATE TABLE table_name_60 (pick VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_60 WHERE round = "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 total pick number for a wide receiver?
### Context:
CREATE TABLE table_name_7 (pick VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_7 WHERE position = "wide receiver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Thad Jemison's position?
### Context:
CREATE TABLE table_name_85 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_85 WHERE player = "thad jemison" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 club or province of Girvan Dempsey, who has 74 caps?
### Context:
CREATE TABLE table_name_3 (club_province VARCHAR, caps VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT club_province FROM table_name_3 WHERE caps = 74 AND player = "girvan dempsey" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Ulster player has fewer than 49 caps and plays the wing position?
### Context:
CREATE TABLE table_name_4 (player VARCHAR, club_province VARCHAR, caps VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_4 WHERE caps < 49 AND position = "wing" AND club_province = "ulster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Munster from Munster is a fly-half?
### Context:
CREATE TABLE table_name_67 (player VARCHAR, position VARCHAR, club_province VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_67 WHERE position = "fly-half" AND club_province = "munster" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 time/retired with less than 67 laps and 6 points?
### Context:
CREATE TABLE table_name_28 (time_retired VARCHAR, laps VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_28 WHERE laps < 67 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:
How many average laps for Alex Tagliani with more than 17 points?
### Context:
CREATE TABLE table_name_54 (laps INTEGER, driver VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT AVG(laps) FROM table_name_54 WHERE driver = "alex tagliani" AND points > 17 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What sum of Attendance has a Week smaller than 10, and a Result of l 30-21?
### Context:
CREATE TABLE table_name_18 (attendance INTEGER, week VARCHAR, result VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_18 WHERE week < 10 AND result = "l 30-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 Week has a Result of w 24-0, and an Attendance smaller than 10,000?
### Context:
CREATE TABLE table_name_40 (week INTEGER, result VARCHAR, attendance VARCHAR) [/INST]
### Response:
SELECT MAX(week) FROM table_name_40 WHERE result = "w 24-0" AND attendance < 10 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Attendance has an Opponent of green bay packers, and a Week larger than 10?
### Context:
CREATE TABLE table_name_95 (attendance INTEGER, opponent VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT MIN(attendance) FROM table_name_95 WHERE opponent = "green bay packers" AND week > 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:
Where did fitzroy play as the home team?
### Context:
CREATE TABLE table_name_21 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_21 WHERE home_team = "fitzroy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 North Melbourne's home opponent?
### Context:
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_33 WHERE away_team = "north melbourne" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Essendon play as the home team?
### Context:
CREATE TABLE table_name_93 (venue VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_93 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointment date for the manager replaced by Lucien Favre?
### Context:
CREATE TABLE table_name_68 (date_of_appointment VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_68 WHERE replaced_by = "lucien favre" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When is the appointment date for outgoing manager Petrik Sander?
### Context:
CREATE TABLE table_name_60 (date_of_appointment VARCHAR, outgoing_manager VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_60 WHERE outgoing_manager = "petrik sander" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 appointment date for VFL Wolfsburg?
### Context:
CREATE TABLE table_name_72 (date_of_appointment VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT date_of_appointment FROM table_name_72 WHERE team = "vfl wolfsburg" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 departure date when a manager was replaced by Bojan Prašnikar?
### Context:
CREATE TABLE table_name_41 (date_of_departure VARCHAR, replaced_by VARCHAR) [/INST]
### Response:
SELECT date_of_departure FROM table_name_41 WHERE replaced_by = "bojan prašnikar" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 2011 which sport had the year award?
### Context:
CREATE TABLE table_name_92 (sport VARCHAR, year_of_award VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_92 WHERE year_of_award = 2011 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps did Giancarlo Fisichella do with a grid larger than 15?
### Context:
CREATE TABLE table_name_36 (laps VARCHAR, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT COUNT(laps) FROM table_name_36 WHERE driver = "giancarlo fisichella" AND grid > 15 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many laps did Jos Verstappen do on Grid 2?
### Context:
CREATE TABLE table_name_43 (laps INTEGER, grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_43 WHERE grid > 2 AND driver = "jos verstappen" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
David Coulthard was the driver in which grid?
### Context:
CREATE TABLE table_name_37 (grid VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT grid FROM table_name_37 WHERE driver = "david coulthard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps were there in grid 21?
### Context:
CREATE TABLE table_name_80 (laps VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT laps FROM table_name_80 WHERE grid = "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:
When Essendon was the Home Team, what was the Away Team score?
### Context:
CREATE TABLE table_name_43 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_43 WHERE home_team = "essendon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
When the Crowd was larger than 25,000. what was the Home Team score?
### Context:
CREATE TABLE table_name_44 (home_team VARCHAR, crowd INTEGER) [/INST]
### Response:
SELECT home_team AS score FROM table_name_44 WHERE crowd > 25 OFFSET 000 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the total number for the Bulls when they were at Old Trafford?
### Context:
CREATE TABLE table_name_27 (bulls VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(bulls) FROM table_name_27 WHERE venue = "old trafford" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 does Iceland rank with under 19 silvers?
### Context:
CREATE TABLE table_name_12 (rank INTEGER, nation VARCHAR, silver VARCHAR) [/INST]
### Response:
SELECT MAX(rank) FROM table_name_12 WHERE nation = "iceland" AND silver < 19 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many bronzes for nations with over 22 golds and ranked under 2?
### Context:
CREATE TABLE table_name_66 (bronze INTEGER, gold VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MAX(bronze) FROM table_name_66 WHERE gold > 22 AND rank < 2 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many golds for the nation with 14 total?
### Context:
CREATE TABLE table_name_56 (gold VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT gold FROM table_name_56 WHERE total = 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:
How many bronzes for Iceland with over 2 silvers?
### Context:
CREATE TABLE table_name_53 (bronze INTEGER, silver VARCHAR, nation VARCHAR) [/INST]
### Response:
SELECT AVG(bronze) FROM table_name_53 WHERE silver > 2 AND nation = "iceland" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 year that had under 26 points and a toyota v8 engine?
### Context:
CREATE TABLE table_name_99 (year INTEGER, engine VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(year) FROM table_name_99 WHERE engine = "toyota v8" AND points < 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 low point total after 2006 with an m16 chassis?
### Context:
CREATE TABLE table_name_59 (points INTEGER, chassis VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT MIN(points) FROM table_name_59 WHERE chassis = "m16" AND year > 2006 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 golds for nations with over 0 silvers, over 1 total, and over 3 bronze?
### Context:
CREATE TABLE table_name_40 (gold VARCHAR, bronze VARCHAR, silver VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT COUNT(gold) FROM table_name_40 WHERE silver > 0 AND total > 1 AND bronze > 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the highest Pick # for the College of Simon Fraser?
### Context:
CREATE TABLE table_name_14 (pick__number INTEGER, college VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_14 WHERE college = "simon fraser" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick # for the Edmonton Eskimos?
### Context:
CREATE TABLE table_name_14 (pick__number VARCHAR, cfl_team VARCHAR) [/INST]
### Response:
SELECT COUNT(pick__number) FROM table_name_14 WHERE cfl_team = "edmonton eskimos" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You 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 Pick # for Ryan Strong?
### Context:
CREATE TABLE table_name_84 (pick__number INTEGER, player VARCHAR) [/INST]
### Response:
SELECT MAX(pick__number) FROM table_name_84 WHERE player = "ryan strong" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 the Rockies play at the game that had a score of 6–5 (10)?
### Context:
CREATE TABLE table_name_22 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_22 WHERE score = "6–5 (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:
What is the maximum power of engine code 2e?
### Context:
CREATE TABLE table_name_95 (max_power_at_rpm VARCHAR, engine_code_s_ VARCHAR) [/INST]
### Response:
SELECT max_power_at_rpm FROM table_name_95 WHERE engine_code_s_ = "2e" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.