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:
Tell me the 2012 when 2005 is 314
### Context:
CREATE TABLE table_name_82 (Id VARCHAR) [/INST]
### Response:
SELECT 2012 FROM table_name_82 WHERE 2005 = "314" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position does the player with 13 caps play?
### Context:
CREATE TABLE table_name_85 (position VARCHAR, caps VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_85 WHERE caps = 13 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many caps for mike macdonald?
### Context:
CREATE TABLE table_name_30 (caps INTEGER, player VARCHAR) [/INST]
### Response:
SELECT SUM(caps) FROM table_name_30 WHERE player = "mike macdonald" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 position for round less than 3
### Context:
CREATE TABLE table_name_1 (position VARCHAR, round INTEGER) [/INST]
### Response:
SELECT position FROM table_name_1 WHERE round < 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the nationality for d
### Context:
CREATE TABLE table_name_19 (nationality VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT nationality FROM table_name_19 WHERE position = "d" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sort of Fuel/Trans does the Grey & Red locomotive have?
### Context:
CREATE TABLE table_name_15 (fuel__trans VARCHAR, colour VARCHAR) [/INST]
### Response:
SELECT fuel__trans FROM table_name_15 WHERE colour = "grey & red" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status of the Cub/John locomotive?
### Context:
CREATE TABLE table_name_34 (status VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_34 WHERE name = "the cub/john" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 manufacturer, found under the Built column, that made locomotives with a Fuel/Trans of diesel-electric?
### Context:
CREATE TABLE table_name_22 (built VARCHAR, fuel__trans VARCHAR) [/INST]
### Response:
SELECT built FROM table_name_22 WHERE fuel__trans = "diesel-electric" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 found in the Built column of the locomotive with 0-4-0 wheels that is still in service?
### Context:
CREATE TABLE table_name_8 (built VARCHAR, wheels VARCHAR, status VARCHAR) [/INST]
### Response:
SELECT built FROM table_name_8 WHERE wheels = "0-4-0" AND status = "in service" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 color of the locomotive built by Minirail 1954?
### Context:
CREATE TABLE table_name_42 (colour VARCHAR, built VARCHAR) [/INST]
### Response:
SELECT colour FROM table_name_42 WHERE built = "minirail 1954" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What's the total number of rounds with a win result at the sf 5: stadium event?
### Context:
CREATE TABLE table_name_65 (round VARCHAR, res VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT COUNT(round) FROM table_name_65 WHERE res = "win" AND event = "sf 5: 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 location was fábio maldonado the opponent at?
### Context:
CREATE TABLE table_name_26 (location VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_26 WHERE opponent = "fábio maldonado" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 skaters have a Rank in FS of 3, and a Rank in SP larger than 4?
### Context:
CREATE TABLE table_name_37 (final_rank VARCHAR, rank_in_fs VARCHAR, rank_in_sp VARCHAR) [/INST]
### Response:
SELECT COUNT(final_rank) FROM table_name_37 WHERE rank_in_fs = 3 AND rank_in_sp > 4 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the average SP rank for skaters with a Rank in FS larger than 2, and a Final Rank larger than 5?
### Context:
CREATE TABLE table_name_92 (rank_in_sp INTEGER, rank_in_fs VARCHAR, final_rank VARCHAR) [/INST]
### Response:
SELECT AVG(rank_in_sp) FROM table_name_92 WHERE rank_in_fs > 2 AND final_rank > 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 tournament is listed as A in 1972 and 2R in 1975?
### Context:
CREATE TABLE table_name_69 (tournament VARCHAR) [/INST]
### Response:
SELECT tournament FROM table_name_69 WHERE 1972 = "a" AND 1975 = "2r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 theW-L of the tournament listed as A for 1976?
### Context:
CREATE TABLE table_name_82 (career_w_l VARCHAR) [/INST]
### Response:
SELECT career_w_l FROM table_name_82 WHERE 1976 = "a" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 listing for the US Open in 1977?
### Context:
CREATE TABLE table_name_12 (tournament VARCHAR) [/INST]
### Response:
SELECT 1977 FROM table_name_12 WHERE tournament = "us open" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 career W-L of the tournament that is listed as A in 1968 and 4R in 1974?
### Context:
CREATE TABLE table_name_23 (career_w_l VARCHAR) [/INST]
### Response:
SELECT career_w_l FROM table_name_23 WHERE 1968 = "a" AND 1974 = "4r" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 combined consumption of 1.6 16v?
### Context:
CREATE TABLE table_name_60 (combined_consumption VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT combined_consumption FROM table_name_60 WHERE name = "1.6 16v" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 power of the engine with a combined consumption of (gas/ethanol) and the k7m hi-torque code?
### Context:
CREATE TABLE table_name_76 (power VARCHAR, combined_consumption VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT power FROM table_name_76 WHERE combined_consumption = "(gas/ethanol)" AND code = "k7m hi-torque" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 combined consumption of the engine with the code k9k 796?
### Context:
CREATE TABLE table_name_85 (combined_consumption VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT combined_consumption FROM table_name_85 WHERE code = "k9k 796" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 torque of the engine with a type 16 valves dohc and a code k4m hi-flex?
### Context:
CREATE TABLE table_name_99 (torque VARCHAR, type VARCHAR, code VARCHAR) [/INST]
### Response:
SELECT torque FROM table_name_99 WHERE type = "16 valves dohc" AND code = "k4m hi-flex" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 highest assists on the November 13 game?
### Context:
CREATE TABLE table_name_56 (high_assists VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT high_assists FROM table_name_56 WHERE date = "november 13" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the most recent date for a singles final with the score of 1–6, 4–6, 5–7?
### Context:
CREATE TABLE table_name_77 (date INTEGER, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT MAX(date) FROM table_name_77 WHERE score_in_the_final = "1–6, 4–6, 5–7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What was the championship that had final score of 6–2, 5–7, 6–4, 6–2 and was on a clay surface?
### Context:
CREATE TABLE table_name_41 (championship VARCHAR, surface VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_41 WHERE surface = "clay" AND score_in_the_final = "6–2, 5–7, 6–4, 6–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 was the score in the final, that Víctor Pecci was the opponent and winner after 1984?
### Context:
CREATE TABLE table_name_92 (score_in_the_final VARCHAR, opponent_in_the_final VARCHAR, date VARCHAR, outcome VARCHAR) [/INST]
### Response:
SELECT score_in_the_final FROM table_name_92 WHERE date > 1984 AND outcome = "winner" AND opponent_in_the_final = "víctor pecci" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which championship had a score in the final of 3–6, 6–4, 5–7?
### Context:
CREATE TABLE table_name_79 (championship VARCHAR, score_in_the_final VARCHAR) [/INST]
### Response:
SELECT championship FROM table_name_79 WHERE score_in_the_final = "3–6, 6–4, 5–7" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the grid total when there are 37 laps?
### Context:
CREATE TABLE table_name_57 (grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_57 WHERE laps = 37 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What constructor has a grid less than 13 with under 9 laps?
### Context:
CREATE TABLE table_name_19 (constructor VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT constructor FROM table_name_19 WHERE grid < 13 AND laps < 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 year was the Competition of World Junior Championships with a 20th (qf) position?
### Context:
CREATE TABLE table_name_18 (year INTEGER, competition VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT AVG(year) FROM table_name_18 WHERE competition = "world junior championships" AND position = "20th (qf)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 notes of the 400 m event before 2004 with a position of 12th (h)?
### Context:
CREATE TABLE table_name_69 (notes VARCHAR, position VARCHAR, event VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_69 WHERE event = "400 m" AND year < 2004 AND position = "12th (h)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 venue had a note of 3:34.88 after 2003?
### Context:
CREATE TABLE table_name_32 (venue VARCHAR, year VARCHAR, notes VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_32 WHERE year > 2003 AND notes = "3:34.88" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 were the notes of the All-Africa Games before 2007?
### Context:
CREATE TABLE table_name_41 (notes VARCHAR, competition VARCHAR, year VARCHAR) [/INST]
### Response:
SELECT notes FROM table_name_41 WHERE competition = "all-africa games" AND year < 2007 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which event in 2007 had a position of 5th?
### Context:
CREATE TABLE table_name_87 (event VARCHAR, year VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_87 WHERE year = 2007 AND position = "5th" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on 12/17 with stephen jackson as the leading scorer?
### Context:
CREATE TABLE table_name_45 (attendance INTEGER, leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT SUM(attendance) FROM table_name_45 WHERE leading_scorer = "stephen jackson" AND date = "12/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 WAS THE SCORE IN THE FINAL PLAYED AGAINST JOSE CHECA-CALVO IN THE SANT CUGAT TOURNAMENT ?
### Context:
CREATE TABLE table_name_80 (score VARCHAR, tournament VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_80 WHERE tournament = "sant cugat" AND opponent_in_the_final = "jose checa-calvo" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IN THE FINAL AGAINST RABIE CHAKI?
### Context:
CREATE TABLE table_name_92 (score VARCHAR, opponent_in_the_final VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_92 WHERE opponent_in_the_final = "rabie chaki" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 away team's score when Collingwood was the home team?
### Context:
CREATE TABLE table_name_17 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_17 WHERE home_team = "collingwood" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 home team for the game played at Victoria Park?
### Context:
CREATE TABLE table_name_87 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_87 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:
Who was the home team when Fitzroy was the away team?
### Context:
CREATE TABLE table_name_33 (home_team VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_33 WHERE away_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 the home team for the game played at Lake Oval?
### Context:
CREATE TABLE table_name_77 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_77 WHERE venue = "lake 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:
Who was the opponent in the championship in Johannesburg, South Africa?
### Context:
CREATE TABLE table_name_63 (opponent_in_the_final VARCHAR, championship VARCHAR) [/INST]
### Response:
SELECT opponent_in_the_final FROM table_name_63 WHERE championship = "johannesburg, south africa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 amount of wins a manager with more than 0.526 pct., ranked higher than 37, and 947 losses has?
### Context:
CREATE TABLE table_name_8 (wins INTEGER, losses VARCHAR, pct VARCHAR, rank VARCHAR) [/INST]
### Response:
SELECT MIN(wins) FROM table_name_8 WHERE pct > 0.526 AND rank < 37 AND losses = 947 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the total number of people in the crowd for essendon home team
### Context:
CREATE TABLE table_name_31 (crowd VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT COUNT(crowd) FROM table_name_31 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:
How many grids have 102 laps and a Time/Retired of + 6.18?
### Context:
CREATE TABLE table_name_64 (grid VARCHAR, laps VARCHAR, time_retired VARCHAR) [/INST]
### Response:
SELECT COUNT(grid) FROM table_name_64 WHERE laps > 102 AND time_retired = "+ 6.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:
How many laps did innes ireland drive with a grid higher than 11?
### Context:
CREATE TABLE table_name_29 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT SUM(laps) FROM table_name_29 WHERE driver = "innes ireland" AND grid > 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 average grid that has a Constructor of brm, tony maggs, and a Laps larger than 102?
### Context:
CREATE TABLE table_name_16 (grid INTEGER, laps VARCHAR, constructor VARCHAR, driver VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_16 WHERE constructor = "brm" AND driver = "tony maggs" AND laps > 102 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the score for 23 july 1992
### Context:
CREATE TABLE table_name_86 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_86 WHERE date = "23 july 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
I want the venue for 23 july 1992
### Context:
CREATE TABLE table_name_64 (venue VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_64 WHERE date = "23 july 1992" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Time/Retired that has a Grid smaller than 8, 73 laps, and a Constructor of williams - bmw?
### Context:
CREATE TABLE table_name_1 (time_retired VARCHAR, constructor VARCHAR, grid VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT time_retired FROM table_name_1 WHERE grid < 8 AND laps = 73 AND constructor = "williams - bmw" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 what date was Richmond playing as an away team?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE away_team = "richmond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 crowd size for Victoria park?
### Context:
CREATE TABLE table_name_99 (crowd VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT crowd FROM table_name_99 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 average crowd size for princes park?
### Context:
CREATE TABLE table_name_97 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_97 WHERE venue = "princes 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:
Name the transfer wind for giuly
### Context:
CREATE TABLE table_name_15 (transfer_window VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_15 WHERE name = "giuly" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer fee for transfer status for fra
### Context:
CREATE TABLE table_name_24 (transfer_fee VARCHAR, status VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT transfer_fee FROM table_name_24 WHERE status = "transfer" AND country = "fra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 status for belletti
### Context:
CREATE TABLE table_name_8 (status VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT status FROM table_name_8 WHERE name = "belletti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 moving to for fra
### Context:
CREATE TABLE table_name_22 (moving_to VARCHAR, country VARCHAR) [/INST]
### Response:
SELECT moving_to FROM table_name_22 WHERE country = "fra" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 transfer window of realmadrid
### Context:
CREATE TABLE table_name_12 (transfer_window VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT transfer_window FROM table_name_12 WHERE moving_to = "realmadrid" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 country moving to chelsea
### Context:
CREATE TABLE table_name_24 (country VARCHAR, moving_to VARCHAR) [/INST]
### Response:
SELECT country FROM table_name_24 WHERE moving_to = "chelsea" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 leading scorer of the game on 20 February 2008?
### Context:
CREATE TABLE table_name_44 (leading_scorer VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT leading_scorer FROM table_name_44 WHERE date = "20 february 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor team of the game with Rudy Gay (23) as the leading scorer?
### Context:
CREATE TABLE table_name_99 (visitor VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_99 WHERE leading_scorer = "rudy gay (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 home team of the game where the Grizzlies were the visitor team and Rudy Gay (21) was the leading scorer?
### Context:
CREATE TABLE table_name_83 (home VARCHAR, visitor VARCHAR, leading_scorer VARCHAR) [/INST]
### Response:
SELECT home FROM table_name_83 WHERE visitor = "grizzlies" AND leading_scorer = "rudy gay (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:
What is the record of the game on 5 February 2008?
### Context:
CREATE TABLE table_name_87 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_87 WHERE date = "5 february 2008" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 writer of production code ad1d09.
### Context:
CREATE TABLE table_name_33 (written_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT written_by FROM table_name_33 WHERE production_code = "ad1d09" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 director of the production code ad1d02.
### Context:
CREATE TABLE table_name_32 (directed_by VARCHAR, production_code VARCHAR) [/INST]
### Response:
SELECT directed_by FROM table_name_32 WHERE production_code = "ad1d02" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team has a Reg GP of 0, a pick number under 136 with a player named Regan Darby?
### Context:
CREATE TABLE table_name_85 (team__league_ VARCHAR, player VARCHAR, reg_gp VARCHAR, pick__number VARCHAR) [/INST]
### Response:
SELECT team__league_ FROM table_name_85 WHERE reg_gp = 0 AND pick__number < 136 AND player = "regan darby" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 planet orbits in 3.23 days?
### Context:
CREATE TABLE table_name_50 (planet VARCHAR, orbital_period VARCHAR) [/INST]
### Response:
SELECT planet FROM table_name_50 WHERE orbital_period = "3.23 days" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What type of planet has a radial velocity of 45.2 m/s?
### Context:
CREATE TABLE table_name_56 (planet VARCHAR, radial_velocity__m_s_ INTEGER) [/INST]
### Response:
SELECT planet AS Type FROM table_name_56 WHERE radial_velocity__m_s_ > 45.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 type of planet has a semimajor axis of 0.07 AU?
### Context:
CREATE TABLE table_name_51 (planet VARCHAR, semimajor_axis___au__ VARCHAR) [/INST]
### Response:
SELECT planet AS Type FROM table_name_51 WHERE semimajor_axis___au__ = 0.07 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the city where the Telstra Dome is?
### Context:
CREATE TABLE table_name_83 (city VARCHAR, stadium VARCHAR) [/INST]
### Response:
SELECT city FROM table_name_83 WHERE stadium = "telstra dome" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 41 which has a D 46 of r 6
### Context:
CREATE TABLE table_name_97 (d_41 VARCHAR, d_46 VARCHAR) [/INST]
### Response:
SELECT d_41 FROM table_name_97 WHERE d_46 = "r 6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Name the D 41 which has a D 43 of r 18
### Context:
CREATE TABLE table_name_45 (d_41 VARCHAR, d_43 VARCHAR) [/INST]
### Response:
SELECT d_41 FROM table_name_45 WHERE d_43 = "r 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:
Name the R 52 which has a D 44 of d 44
### Context:
CREATE TABLE table_name_54 (r_52 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT r_52 FROM table_name_54 WHERE d_44 = "d 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 D 46 which has a D 43 of majority→
### Context:
CREATE TABLE table_name_34 (d_46 VARCHAR, d_43 VARCHAR) [/INST]
### Response:
SELECT d_46 FROM table_name_34 WHERE d_43 = "majority→" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 42 which has a D 46 of r 26
### Context:
CREATE TABLE table_name_6 (d_42 VARCHAR, d_46 VARCHAR) [/INST]
### Response:
SELECT d_42 FROM table_name_6 WHERE d_46 = "r 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:
Name the D 42 which has a D 44 of d 44
### Context:
CREATE TABLE table_name_29 (d_42 VARCHAR, d_44 VARCHAR) [/INST]
### Response:
SELECT d_42 FROM table_name_29 WHERE d_44 = "d 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:
How many wins did SD Eibar, which played less than 38 games, have?
### Context:
CREATE TABLE table_name_24 (wins INTEGER, club VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT SUM(wins) FROM table_name_24 WHERE club = "sd eibar" AND played < 38 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of draws a club with less than 20 wins, less than 41 points, and less than 27 goals have?
### Context:
CREATE TABLE table_name_56 (draws INTEGER, goals_for VARCHAR, wins VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(draws) FROM table_name_56 WHERE wins < 20 AND points < 41 AND goals_for < 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:
What is the lowest goal difference a club with more than 13 wins, less than 8 losses, and less than 11 draws has?
### Context:
CREATE TABLE table_name_81 (goal_difference INTEGER, draws VARCHAR, wins VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT MIN(goal_difference) FROM table_name_81 WHERE wins > 13 AND losses < 8 AND draws < 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 number of played games a club with more than 71 points and less than 8 losses has?
### Context:
CREATE TABLE table_name_50 (played INTEGER, points VARCHAR, losses VARCHAR) [/INST]
### Response:
SELECT SUM(played) FROM table_name_50 WHERE points > 71 AND losses < 8 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest goal difference a club with 61 goals against and less than 11 draws has?
### Context:
CREATE TABLE table_name_94 (goal_difference INTEGER, goals_against VARCHAR, draws VARCHAR) [/INST]
### Response:
SELECT MIN(goal_difference) FROM table_name_94 WHERE goals_against = 61 AND draws < 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:
Which Crowd has a Venue of princes park?
### Context:
CREATE TABLE table_name_25 (crowd INTEGER, venue VARCHAR) [/INST]
### Response:
SELECT MIN(crowd) FROM table_name_25 WHERE venue = "princes 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:
Which Away team has a Venue of mcg?
### Context:
CREATE TABLE table_name_82 (away_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT away_team FROM table_name_82 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:
Which average Crowd has a Home team of essendon?
### Context:
CREATE TABLE table_name_59 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_59 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 terry cook picked?
### Context:
CREATE TABLE table_name_92 (pick INTEGER, player VARCHAR) [/INST]
### Response:
SELECT AVG(pick) FROM table_name_92 WHERE player = "terry cook" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What position is todd hammel?
### Context:
CREATE TABLE table_name_99 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_99 WHERE player = "todd hammel" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the away team that played Essendon?
### Context:
CREATE TABLE table_name_98 (away_team VARCHAR, home_team VARCHAR) [/INST]
### Response:
SELECT away_team AS score FROM table_name_98 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:
How many people attended the North Melbourne game?
### Context:
CREATE TABLE table_name_71 (crowd INTEGER, home_team VARCHAR) [/INST]
### Response:
SELECT AVG(crowd) FROM table_name_71 WHERE home_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 Carlton play?
### Context:
CREATE TABLE table_name_9 (venue VARCHAR, away_team VARCHAR) [/INST]
### Response:
SELECT venue FROM table_name_9 WHERE away_team = "carlton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 team played at VFL Park?
### Context:
CREATE TABLE table_name_95 (home_team VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT home_team FROM table_name_95 WHERE venue = "vfl 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:
Which player has a College of arizona?
### Context:
CREATE TABLE table_name_83 (player VARCHAR, college VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_83 WHERE college = "arizona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 school has a Hometown of phoenix, az?
### Context:
CREATE TABLE table_name_39 (school VARCHAR, hometown VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_39 WHERE hometown = "phoenix, az" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 NBA draft has a School of huntington high school?
### Context:
CREATE TABLE table_name_57 (nba_draft VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT nba_draft FROM table_name_57 WHERE school = "huntington high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which NBA draft has a School of st. mary's high school?
### Context:
CREATE TABLE table_name_91 (nba_draft VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT nba_draft FROM table_name_91 WHERE school = "st. mary's high school" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which school has a Player of donte greene?
### Context:
CREATE TABLE table_name_6 (school VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_6 WHERE player = "donte greene" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
For R. Magjistari scores over 12, what is the highest number of points?
### Context:
CREATE TABLE table_name_33 (points INTEGER, r_magjistari INTEGER) [/INST]
### Response:
SELECT MAX(points) FROM table_name_33 WHERE r_magjistari > 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:
For R. Magjistari scores under 6, D. Tukiqi scores of 6, and ranks under 5, what is the average A. Krajka score?
### Context:
CREATE TABLE table_name_60 (a_krajka INTEGER, rank VARCHAR, r_magjistari VARCHAR, d_tukiqi VARCHAR) [/INST]
### Response:
SELECT AVG(a_krajka) FROM table_name_60 WHERE r_magjistari < 6 AND d_tukiqi = 6 AND rank < 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:
Where did the Vitória de Setúbal club place in the 2006-2007 season?
### Context:
CREATE TABLE table_name_13 (club VARCHAR) [/INST]
### Response:
SELECT 2006 AS _2007_season FROM table_name_13 WHERE club = "vitória de setúbal" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Long for yards less than 197 and players of matt nagy
### Context:
CREATE TABLE table_name_12 (long INTEGER, yards VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(long) FROM table_name_12 WHERE yards < 197 AND player = "matt nagy" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 visitor team in tampa bay?
### Context:
CREATE TABLE table_name_26 (visitor VARCHAR, home VARCHAR) [/INST]
### Response:
SELECT visitor FROM table_name_26 WHERE home = "tampa bay" </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.