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 number of Justin Jeffries?
### Context:
CREATE TABLE table_name_31 (number VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT COUNT(number) FROM table_name_31 WHERE name = "justin jeffries" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How many games has number 61 played in?
### Context:
CREATE TABLE table_name_29 (games INTEGER, number VARCHAR) [/INST]
### Response:
SELECT MIN(games) AS ↑ FROM table_name_29 WHERE number = 61 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the name of the player who is a wr and has a weight of 197?
### Context:
CREATE TABLE table_name_83 (name VARCHAR, position VARCHAR, weight VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_83 WHERE position = "wr" AND weight = 197 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 hometown of number 40?
### Context:
CREATE TABLE table_name_44 (hometown VARCHAR, number VARCHAR) [/INST]
### Response:
SELECT hometown FROM table_name_44 WHERE number = 40 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date is the visitor Ottawa?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, visitor VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE visitor = "ottawa" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sum of the year in rhode island
### Context:
CREATE TABLE table_name_99 (year INTEGER, state VARCHAR) [/INST]
### Response:
SELECT SUM(year) FROM table_name_99 WHERE state = "rhode island" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 senator in kentucky
### Context:
CREATE TABLE table_name_72 (senator VARCHAR, state VARCHAR) [/INST]
### Response:
SELECT senator FROM table_name_72 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 destination of the rail with Dhanbad as the origin?
### Context:
CREATE TABLE table_name_76 (destination VARCHAR, origin VARCHAR) [/INST]
### Response:
SELECT destination FROM table_name_76 WHERE origin = "dhanbad" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 destination of the Garib nwaz exp train?
### Context:
CREATE TABLE table_name_87 (destination VARCHAR, train_name VARCHAR) [/INST]
### Response:
SELECT destination FROM table_name_87 WHERE train_name = "garib nwaz exp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 train name of the rail with a daily frequency and a destination of Rajgir?
### Context:
CREATE TABLE table_name_44 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT train_name FROM table_name_44 WHERE frequency__inbound_outbound_ = "daily" AND destination = "rajgir" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 train name of the rail with a daily frequency and Jammutawi as the destination?
### Context:
CREATE TABLE table_name_61 (train_name VARCHAR, frequency__inbound_outbound_ VARCHAR, destination VARCHAR) [/INST]
### Response:
SELECT train_name FROM table_name_61 WHERE frequency__inbound_outbound_ = "daily" AND destination = "jammutawi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency of the rail with an origin of Ranchi?
### Context:
CREATE TABLE table_name_72 (frequency__inbound_outbound_ VARCHAR, origin VARCHAR) [/INST]
### Response:
SELECT frequency__inbound_outbound_ FROM table_name_72 WHERE origin = "ranchi" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 frequency of the train named Garib nwaz exp?
### Context:
CREATE TABLE table_name_10 (frequency__inbound_outbound_ VARCHAR, train_name VARCHAR) [/INST]
### Response:
SELECT frequency__inbound_outbound_ FROM table_name_10 WHERE train_name = "garib nwaz exp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 segment c with episode less than 179 and segment b of s sticker
### Context:
CREATE TABLE table_name_63 (segment_c VARCHAR, episode VARCHAR, segment_b VARCHAR) [/INST]
### Response:
SELECT segment_c FROM table_name_63 WHERE episode < 179 AND segment_b = "s sticker" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 segment c for ski goggles
### Context:
CREATE TABLE table_name_78 (segment_c VARCHAR, segment_a VARCHAR) [/INST]
### Response:
SELECT segment_c FROM table_name_78 WHERE segment_a = "ski goggles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 which position did Steve play first?
### Context:
CREATE TABLE table_name_26 (position VARCHAR, first VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_26 WHERE first = "steve" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 bats did mitchell play first?
### Context:
CREATE TABLE table_name_23 (bats VARCHAR, first VARCHAR) [/INST]
### Response:
SELECT bats FROM table_name_23 WHERE first = "mitchell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 mr. ryan's DOB?
### Context:
CREATE TABLE table_name_19 (dob VARCHAR, surname VARCHAR) [/INST]
### Response:
SELECT dob FROM table_name_19 WHERE surname = "ryan" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Throws have a Position of 3b/rhp?
### Context:
CREATE TABLE table_name_1 (throws VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT throws FROM table_name_1 WHERE position = "3b/rhp" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Collins' DOB?
### Context:
CREATE TABLE table_name_22 (dob VARCHAR, surname VARCHAR) [/INST]
### Response:
SELECT dob FROM table_name_22 WHERE surname = "collins" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a D.O.B. of 3 june 1989?
### Context:
CREATE TABLE table_name_78 (position VARCHAR, dob VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_78 WHERE dob = "3 june 1989" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 architecture does the Saturn Vue have?
### Context:
CREATE TABLE table_name_15 (architecture VARCHAR, vehicle_name VARCHAR) [/INST]
### Response:
SELECT architecture FROM table_name_15 WHERE vehicle_name = "saturn vue" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 architecture type does the Ford Escort Wagon have?
### Context:
CREATE TABLE table_name_73 (architecture VARCHAR, original_vehicle VARCHAR) [/INST]
### Response:
SELECT architecture FROM table_name_73 WHERE original_vehicle = "ford escort wagon" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 original vehicle has uwhvt homepage architecture?
### Context:
CREATE TABLE table_name_76 (original_vehicle VARCHAR, architecture VARCHAR) [/INST]
### Response:
SELECT original_vehicle FROM table_name_76 WHERE architecture = "uwhvt homepage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner has a Last 16 of £400?
### Context:
CREATE TABLE table_name_4 (winner VARCHAR, last_16 VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_4 WHERE last_16 = "£400" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-Up has a Total of £31,200?
### Context:
CREATE TABLE table_name_44 (runner_up VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_44 WHERE total = "£31,200" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Runner-Up has a Last 16 of £300?
### Context:
CREATE TABLE table_name_52 (runner_up VARCHAR, last_16 VARCHAR) [/INST]
### Response:
SELECT runner_up FROM table_name_52 WHERE last_16 = "£300" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Last 64 has a Total of £34,600?
### Context:
CREATE TABLE table_name_65 (last_64 VARCHAR, total VARCHAR) [/INST]
### Response:
SELECT last_64 FROM table_name_65 WHERE total = "£34,600" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Winner has Semi-Finalists of £2,000?
### Context:
CREATE TABLE table_name_71 (winner VARCHAR, semi_finalists VARCHAR) [/INST]
### Response:
SELECT winner FROM table_name_71 WHERE semi_finalists = "£2,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 Year has a Quarter-Finalists of £1,000, and Semi-Finalists of £1,500?
### Context:
CREATE TABLE table_name_16 (year VARCHAR, quarter_finalists VARCHAR, semi_finalists VARCHAR) [/INST]
### Response:
SELECT year FROM table_name_16 WHERE quarter_finalists = "£1,000" AND semi_finalists = "£1,500" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
How tall is Dylan Postl?
### Context:
CREATE TABLE table_name_69 (height VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT height FROM table_name_69 WHERE name = "dylan postl" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 largest amount of goals when the points are less than 0?
### Context:
CREATE TABLE table_name_3 (goals INTEGER, points INTEGER) [/INST]
### Response:
SELECT MAX(goals) FROM table_name_3 WHERE points < 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player has more than 0 goals and less than 12 tries?
### Context:
CREATE TABLE table_name_5 (player VARCHAR, goals VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_5 WHERE goals > 0 AND tries < 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the smallest number of tries when Matt Diskin is the player and there are more than 16 points?
### Context:
CREATE TABLE table_name_84 (tries INTEGER, player VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MIN(tries) FROM table_name_84 WHERE player = "matt diskin" AND points > 16 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which position has more than 4 points, less than 12 tries, a squad number of more than 1, and where Ali Lauitiiti is a player?
### Context:
CREATE TABLE table_name_58 (position VARCHAR, player VARCHAR, squad_no VARCHAR, points VARCHAR, tries VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_58 WHERE points > 4 AND tries < 12 AND squad_no > 1 AND player = "ali lauitiiti" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number of squad no when there are more than 8 points, Danny Mcguire is a player, and there are more than 0 goals?
### Context:
CREATE TABLE table_name_23 (squad_no INTEGER, goals VARCHAR, points VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT SUM(squad_no) FROM table_name_23 WHERE points > 8 AND player = "danny mcguire" AND goals > 0 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the lowest lost from drawn of 1 or greater?
### Context:
CREATE TABLE table_name_18 (lost INTEGER, drawn INTEGER) [/INST]
### Response:
SELECT MIN(lost) FROM table_name_18 WHERE drawn > 1 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest games from a game with points less than 4, drawn of 1 and a lost less than 6?
### Context:
CREATE TABLE table_name_58 (games INTEGER, lost VARCHAR, points VARCHAR, drawn VARCHAR) [/INST]
### Response:
SELECT MAX(games) FROM table_name_58 WHERE points < 4 AND drawn = 1 AND lost < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game on January 18?
### Context:
CREATE TABLE table_name_85 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_85 WHERE date = "january 18" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the score of the game on January 10?
### Context:
CREATE TABLE table_name_82 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_82 WHERE date = "january 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 score of the game on November 12 with the Chicago Black Hawks as the visitor team?
### Context:
CREATE TABLE table_name_24 (score VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_24 WHERE visitor = "chicago black hawks" AND date = "november 12" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the series score of the game on May 6?
### Context:
CREATE TABLE table_name_55 (series VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT series FROM table_name_55 WHERE date = "may 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:
The Zeehond was built by whom?
### Context:
CREATE TABLE table_name_49 (builder VARCHAR, ship VARCHAR) [/INST]
### Response:
SELECT builder FROM table_name_49 WHERE ship = "zeehond" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 college, junior, or club team did Victor Ignatjev play for?
### Context:
CREATE TABLE table_name_90 (college_junior_club_team VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT college_junior_club_team FROM table_name_90 WHERE player = "victor ignatjev" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which player is from Sweden?
### Context:
CREATE TABLE table_name_47 (player VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_47 WHERE nationality = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 on April 22?
### Context:
CREATE TABLE table_name_17 (score VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT score FROM table_name_17 WHERE date = "april 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:
What opponent has a score of 1-3?
### Context:
CREATE TABLE table_name_70 (opponent VARCHAR, score VARCHAR) [/INST]
### Response:
SELECT opponent FROM table_name_70 WHERE score = "1-3" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record for April 21?
### Context:
CREATE TABLE table_name_42 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_42 WHERE date = "april 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 Player has a Round larger than 5, and a School/Club Team of bethune-cookman?
### Context:
CREATE TABLE table_name_52 (player VARCHAR, round VARCHAR, school_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_52 WHERE round > 5 AND school_club_team = "bethune-cookman" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Which Position has a Pick smaller than 152, and a Round smaller than 3?
### Context:
CREATE TABLE table_name_92 (position VARCHAR, pick VARCHAR, round VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_92 WHERE pick < 152 AND 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:
How many Picks have a Position of defensive back?
### Context:
CREATE TABLE table_name_61 (pick VARCHAR, position VARCHAR) [/INST]
### Response:
SELECT COUNT(pick) FROM table_name_61 WHERE position = "defensive back" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Round smaller than 11, and a Pick smaller than 152, and a Position of guard?
### Context:
CREATE TABLE table_name_10 (player VARCHAR, position VARCHAR, round VARCHAR, pick VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_10 WHERE round < 11 AND pick < 152 AND position = "guard" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 participants won the silver medal for the Men's Doubles?
### Context:
CREATE TABLE table_name_57 (name VARCHAR, medal VARCHAR, event VARCHAR) [/INST]
### Response:
SELECT name FROM table_name_57 WHERE medal = "silver" AND event = "men's doubles" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 did Rashid Sidek participate in?
### Context:
CREATE TABLE table_name_8 (event VARCHAR, name VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_8 WHERE name = "rashid sidek" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Olympic Games had a silver medal for the Men's Singles?
### Context:
CREATE TABLE table_name_33 (games VARCHAR, event VARCHAR, medal VARCHAR) [/INST]
### Response:
SELECT games FROM table_name_33 WHERE event = "men's singles" AND medal = "silver" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 sport was in the 1992 Barcelona games?
### Context:
CREATE TABLE table_name_92 (sport VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT sport FROM table_name_92 WHERE games = "1992 barcelona" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 was in the 2008 Beijing games?
### Context:
CREATE TABLE table_name_81 (event VARCHAR, games VARCHAR) [/INST]
### Response:
SELECT event FROM table_name_81 WHERE games = "2008 beijing" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the round of the defense player from the United States?
### Context:
CREATE TABLE table_name_32 (round VARCHAR, position VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT round FROM table_name_32 WHERE position = "defense" AND nationality = "united states" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of Dale Craigwell?
### Context:
CREATE TABLE table_name_67 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_67 WHERE player = "dale craigwell" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the position of the player from Sweden?
### Context:
CREATE TABLE table_name_93 (position VARCHAR, nationality VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_93 WHERE nationality = "sweden" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the player from a round larger than 5 and the college/junior/club team of Leningrad SKA (russia)?
### Context:
CREATE TABLE table_name_94 (player VARCHAR, round VARCHAR, college_junior_club_team VARCHAR) [/INST]
### Response:
SELECT player FROM table_name_94 WHERE round > 5 AND college_junior_club_team = "leningrad ska (russia)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Mikhail Kravets play?
### Context:
CREATE TABLE table_name_15 (position VARCHAR, player VARCHAR) [/INST]
### Response:
SELECT position FROM table_name_15 WHERE player = "mikhail kravets" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date was held at Laguna Seca Raceway, in class GTX/GTO?
### Context:
CREATE TABLE table_name_94 (date VARCHAR, circuit VARCHAR, class VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_94 WHERE circuit = "laguna seca raceway" AND class = "gtx/gto" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit was held on May 7 for 1 hour?
### Context:
CREATE TABLE table_name_24 (circuit VARCHAR, date VARCHAR, length VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_24 WHERE date = "may 7" AND length = "1 hour" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 circuit has a length of 45 minutes and is held on August 6?
### Context:
CREATE TABLE table_name_78 (circuit VARCHAR, length VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT circuit FROM table_name_78 WHERE length = "45 minutes" AND date = "august 6" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the length of the 6 Hours of Talladega?
### Context:
CREATE TABLE table_name_82 (length VARCHAR, race VARCHAR) [/INST]
### Response:
SELECT length FROM table_name_82 WHERE race = "6 hours of talladega" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class AA with class A of rule and school year of 1995-96
### Context:
CREATE TABLE table_name_52 (class_aA VARCHAR, class_a VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_aA FROM table_name_52 WHERE class_a = "rule" AND school_year = "1995-96" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 class A with school year of 2004-05
### Context:
CREATE TABLE table_name_59 (class_a VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_a FROM table_name_59 WHERE school_year = "2004-05" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 clas AAAA of school year 2000-01
### Context:
CREATE TABLE table_name_76 (class_aAAA VARCHAR, school_year VARCHAR) [/INST]
### Response:
SELECT class_aAAA FROM table_name_76 WHERE school_year = "2000-01" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school is from 45 Lake county and is located in Merrillville?
### Context:
CREATE TABLE table_name_32 (school VARCHAR, county VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_32 WHERE county = "45 lake" AND location = "merrillville" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What school is located in Michigan City?
### Context:
CREATE TABLE table_name_37 (school VARCHAR, location VARCHAR) [/INST]
### Response:
SELECT school FROM table_name_37 WHERE location = "michigan city" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA class for Chesterton?
### Context:
CREATE TABLE table_name_49 (ihsaa_class VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_49 WHERE school = "chesterton" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA class for Portage?
### Context:
CREATE TABLE table_name_69 (ihsaa_class VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_69 WHERE school = "portage" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 IHSAA class for Crown Point?
### Context:
CREATE TABLE table_name_98 (ihsaa_class VARCHAR, school VARCHAR) [/INST]
### Response:
SELECT ihsaa_class FROM table_name_98 WHERE school = "crown point" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 of driver Christian Vietoris who has less than 12 laps?
### Context:
CREATE TABLE table_name_79 (grid INTEGER, driver VARCHAR, laps VARCHAR) [/INST]
### Response:
SELECT AVG(grid) FROM table_name_79 WHERE driver = "christian vietoris" AND laps < 12 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the grid of driver joão urbano?
### Context:
CREATE TABLE table_name_75 (grid INTEGER, driver VARCHAR) [/INST]
### Response:
SELECT SUM(grid) FROM table_name_75 WHERE driver = "joão urbano" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 laps a grid less than 22 with a time of +35.268 has?
### Context:
CREATE TABLE table_name_92 (laps INTEGER, grid VARCHAR, time VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_92 WHERE grid < 22 AND time = "+35.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:
What is the lowest laps driver Christian Vietoris with a grid smaller than 6 has?
### Context:
CREATE TABLE table_name_62 (laps INTEGER, driver VARCHAR, grid VARCHAR) [/INST]
### Response:
SELECT MIN(laps) FROM table_name_62 WHERE driver = "christian vietoris" AND grid < 6 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the primary sponsor of driver Mark Martin?
### Context:
CREATE TABLE table_name_78 (primary_sponsor_s_ VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT primary_sponsor_s_ FROM table_name_78 WHERE driver_s_ = "mark martin" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the crew chief of team Joe Gibbs Racing, which has a Chevrolet Monte Carlo and Fedex as the primary sponsor?
### Context:
CREATE TABLE table_name_81 (crew_chief VARCHAR, primary_sponsor_s_ VARCHAR, car_s_ VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT crew_chief FROM table_name_81 WHERE car_s_ = "chevrolet monte carlo" AND team = "joe gibbs racing" AND primary_sponsor_s_ = "fedex" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the driver of the team with the crew chief Derrick Finley?
### Context:
CREATE TABLE table_name_16 (driver_s_ VARCHAR, crew_chief VARCHAR) [/INST]
### Response:
SELECT driver_s_ FROM table_name_16 WHERE crew_chief = "derrick finley" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
Who is the crew chief of team Chip Ganassi Racing with Felix Sabates, which has Casey Mears as the driver?
### Context:
CREATE TABLE table_name_10 (crew_chief VARCHAR, team VARCHAR, driver_s_ VARCHAR) [/INST]
### Response:
SELECT crew_chief FROM table_name_10 WHERE team = "chip ganassi racing with felix sabates" AND driver_s_ = "casey mears" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 Peak Fitness as the primary sponsor?
### Context:
CREATE TABLE table_name_87 (team VARCHAR, primary_sponsor_s_ VARCHAR) [/INST]
### Response:
SELECT team FROM table_name_87 WHERE primary_sponsor_s_ = "peak fitness" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 date has w 20-17 as the result, and 1-0 as the record?
### Context:
CREATE TABLE table_name_32 (date VARCHAR, result VARCHAR, record VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_32 WHERE result = "w 20-17" AND record = "1-0" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What game site has december 24, 2000 as a date?
### Context:
CREATE TABLE table_name_58 (game_site VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT game_site FROM table_name_58 WHERE date = "december 24, 2000" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What date has dallas cowboys as the opponent?
### Context:
CREATE TABLE table_name_91 (date VARCHAR, opponent VARCHAR) [/INST]
### Response:
SELECT date FROM table_name_91 WHERE opponent = "dallas cowboys" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 attendance that has fedex field as the game site with 3 as the week?
### Context:
CREATE TABLE table_name_24 (attendance VARCHAR, game_site VARCHAR, week VARCHAR) [/INST]
### Response:
SELECT attendance FROM table_name_24 WHERE game_site = "fedex field" AND week = 3 </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the record for April 22?
### Context:
CREATE TABLE table_name_25 (record VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_25 WHERE date = "april 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:
What is the record when the visiting team was the Quebec Nordiques on April 22?
### Context:
CREATE TABLE table_name_26 (record VARCHAR, visitor VARCHAR, date VARCHAR) [/INST]
### Response:
SELECT record FROM table_name_26 WHERE visitor = "quebec nordiques" AND date = "april 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:
What is the longitude of Taurus?
### Context:
CREATE TABLE table_name_98 (longitude_အင်္သာ VARCHAR, latin VARCHAR) [/INST]
### Response:
SELECT longitude_အင်္သာ FROM table_name_98 WHERE latin = "taurus" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the Location for Belshina?
### Context:
CREATE TABLE table_name_99 (location VARCHAR, team VARCHAR) [/INST]
### Response:
SELECT location FROM table_name_99 WHERE team = "belshina" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the total number for Capacity at city stadium, borisov?
### Context:
CREATE TABLE table_name_28 (capacity VARCHAR, venue VARCHAR) [/INST]
### Response:
SELECT COUNT(capacity) FROM table_name_28 WHERE venue = "city stadium, borisov" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. 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 rating larger than 5 have the lowest amount of views in #3 rank with a share of 9?
### Context:
CREATE TABLE table_name_11 (viewers__millions_ INTEGER, rating VARCHAR, weekly_rank VARCHAR, share VARCHAR) [/INST]
### Response:
SELECT MIN(viewers__millions_) FROM table_name_11 WHERE weekly_rank = "#3" AND share = 9 AND rating > 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 highest played that has a drawn less than 9, 36 as the difference, with a lost greater than 7?
### Context:
CREATE TABLE table_name_60 (played INTEGER, lost VARCHAR, drawn VARCHAR, difference VARCHAR) [/INST]
### Response:
SELECT MAX(played) FROM table_name_60 WHERE drawn < 9 AND difference = "36" AND lost > 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 positions have figueirense as the team, with a played greater than 38?
### Context:
CREATE TABLE table_name_39 (position VARCHAR, team VARCHAR, played VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_39 WHERE team = "figueirense" 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 largest drawn that has a played less than 38?
### Context:
CREATE TABLE table_name_8 (drawn INTEGER, played INTEGER) [/INST]
### Response:
SELECT MAX(drawn) FROM table_name_8 WHERE 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:
How many positions have 9 as a drawn, 5 as a difference, with a lost less than 14?
### Context:
CREATE TABLE table_name_9 (position VARCHAR, lost VARCHAR, drawn VARCHAR, difference VARCHAR) [/INST]
### Response:
SELECT COUNT(position) FROM table_name_9 WHERE drawn = 9 AND difference = "5" AND lost < 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 date did Episode 2-01 (42) air?
### Context:
CREATE TABLE table_name_56 (original_airdate VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT original_airdate FROM table_name_56 WHERE episode = "2-01 (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:
Who wrote Episode 2-15 (56)?
### Context:
CREATE TABLE table_name_51 (writer_s_ VARCHAR, episode VARCHAR) [/INST]
### Response:
SELECT writer_s_ FROM table_name_51 WHERE episode = "2-15 (56)" </s> |
<s> [INST] <<SYS>> You are a powerful text-to-SQL model. Your job is to answer questions about a database. You are given a question and context regarding one or more tables. You must output the SQL query that answers the question. <</SYS>>
### Input:
What is the highest number of games with 1 loss and points less than 18?
### Context:
CREATE TABLE table_name_9 (games INTEGER, lost VARCHAR, points VARCHAR) [/INST]
### Response:
SELECT MAX(games) FROM table_name_9 WHERE lost = 1 AND points < 18 </s> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.