id
stringlengths
0
16
messages
listlengths
3
10
metadata
dict
[ { "role": "system", "content": "You are a database agent. Always respond with exactly one of: (1) Action: Operation + a single SQL code block, or (2) Action: Answer + Final Answer:. Do not ask questions." }, { "role": "user", "content": "Task: Insert a new record. You are given all required valu...
null
[ { "role": "system", "content": "You are a database agent. If a task is INSERT/UPDATE, do it directly. Avoid repeated SELECT checks unless necessary. Do not loop." }, { "role": "user", "content": "Task: Insert.\nTable: employees\nColumns: EmployeeID, Name, Department\nValues: EmployeeID=1005, Nam...
null
[ { "role": "system", "content": "You are a database agent. If a value is not present in DISTINCT candidates, do not reuse the same WHERE value. Switch strategy (LIKE / different column)." }, { "role": "user", "content": "Task: Find the ID for customer 'Jon Smyth'. Table: customers. Columns includ...
null
[ { "role": "system", "content": "You are a database agent. If a value is not found exactly, switch to LIKE. Never loop the same exact query/value." }, { "role": "user", "content": "Task: Find customer_id for a name that might be misspelled: 'Jon Smyth'. Table: customers (customer_id, customer_nam...
null
[ { "role": "system", "content": "You are a database agent. Do not invent column names. If you hit Unknown column, run SHOW COLUMNS once, then only use displayed columns." }, { "role": "user", "content": "Task: Get top 5 by score. Table: players. You tried WHERE Player='Alice' and got Unknown colu...
null
[ { "role": "system", "content": "You are a database agent. After SHOW COLUMNS, use only real columns (no reusing the previously unknown one)." }, { "role": "user", "content": "Task: Get top 5 by score from players. Assume SHOW COLUMNS revealed columns: Name, Overall, Team." }, { "role": "...
null
[ { "role": "system", "content": "You are a database agent. For INSERT tasks, do not spend turns on existence checks. Write the INSERT first." }, { "role": "user", "content": "Task: Insert.\nTable: books\nColumns: ISBN, Title, Author\nValues: ISBN='978-0-00-000000-1', Title='Example Book', Author=...
null
[ { "role": "system", "content": "You are a database agent. If the task is UPDATE, do UPDATE directly with given key; do not loop with repeated SELECT." }, { "role": "user", "content": "Task: Update.\nTable: orders\nColumns: order_id, status\nUpdate: set status='shipped' where order_id=2042." },...
null
[ { "role": "system", "content": "You are a database agent. Avoid bouncing between 2 queries. If a filter yields no rows, broaden search (LIKE) or change column." }, { "role": "user", "content": "Task: Find a movie year for title that might include extra words: 'Star Wars'. Table: movies (Title, Y...
null
[ { "role": "system", "content": "You are a database agent. If DISTINCT values do not contain an exact match, do not repeat exact match attempts. Use LIKE." }, { "role": "user", "content": "Task: Find team_id for team name 'LA Lakers'. Table: teams (team_id, team_name)." }, { "role": "assi...
null
[ { "role": "system", "content": "You are a database agent. If the user gives table + exact columns + values, write INSERT in one shot. No extra commentary." }, { "role": "user", "content": "Task: Insert.\nTable: products\nColumns: product_id, product_name, price\nValues: product_id=3001, product_...
null
[ { "role": "system", "content": "You are a database agent. For aggregation questions, answer with a single SQL query. Do not loop." }, { "role": "user", "content": "Task: What is the average salary in employees table? Columns: salary." }, { "role": "assistant", "content": "Action: Ope...
null
[ { "role": "system", "content": "You are a database agent. For aggregation-SUM questions, use SUM once. Do not switch between similar queries repeatedly." }, { "role": "user", "content": "Task: Total revenue from sales table. Columns: revenue." }, { "role": "assistant", "content": "Ac...
null
[ { "role": "system", "content": "You are a database agent. For aggregation-MIN/MAX, use MIN/MAX directly. No extra steps." }, { "role": "user", "content": "Task: Find the maximum score in results table. Column: score." }, { "role": "assistant", "content": "Action: Operation\n```sql\nS...
null
[ { "role": "system", "content": "You are a database agent. If a requested column name is unclear, first inspect columns once, then decide. Do not guess repeatedly." }, { "role": "user", "content": "Task: Find the best player overall. Table: players. You are not sure whether the score column is Ov...
null
[ { "role": "system", "content": "You are a database agent. After inspecting columns, pick the most plausible existing column and proceed. Do not re-run SHOW COLUMNS." }, { "role": "user", "content": "Task: Best player overall. Assume columns include: Name, Overall, Age, Team." }, { "role"...
null
[ { "role": "system", "content": "You are a database agent. Never respond with questions. If you can answer, return Action: Answer with Final Answer." }, { "role": "user", "content": "Task: Respond with a single final value only.\nQuestion: What is 2+2? (No SQL needed in this synthetic test.)" }...
null
[ { "role": "system", "content": "You are a database agent. When inserting text containing apostrophes, escape correctly. Do INSERT directly." }, { "role": "user", "content": "Task: Insert.\nTable: quotes\nColumns: quote_id, quote_text\nValues: quote_id=7, quote_text=\"Don't stop\"." }, { ...
null
[ { "role": "system", "content": "You are a database agent. If a SELECT returns no rows for an exact match, immediately broaden with LIKE instead of repeating the same exact match." }, { "role": "user", "content": "Task: Find employee_id for name 'Robert'. Table: employees (employee_id, name). Exa...
null
[ { "role": "system", "content": "You are a database agent. For INSERT tasks, if there is a likely primary key provided, use it. Do not do pre-check loops." }, { "role": "user", "content": "Task: Insert.\nTable: users\nColumns: user_id, username, email\nValues: user_id=9002, username='masa9432', e...
null