| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| tasks: |
| - id: u3-list-tables |
| instruction: "What tables exist in this database?" |
| tool: list_tables |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "employees"} |
|
|
| - id: u3-describe-employees |
| instruction: "What columns does the employees table have?" |
| tool: describe_table |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "salary"} |
|
|
| - id: u3-describe-inventory |
| instruction: "What columns does the inventory table have?" |
| tool: describe_table |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "quantity"} |
|
|
| - id: u3-query-engineering |
| instruction: "Which employees work in the Engineering department?" |
| tool: read_query |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "Alice Chen"} |
|
|
| - id: u3-query-salary |
| instruction: "What is Carla Diaz's salary?" |
| tool: read_query |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "72000"} |
|
|
| - id: u3-query-widget-count |
| instruction: "How many widgets are currently in inventory?" |
| tool: read_query |
| checker: |
| name: call_result_contains |
| args: {index: 0, contains: "42"} |
|
|
| - id: u3-update-gadget-quantity |
| instruction: "Update the inventory so the gadget quantity becomes 100." |
| tool: write_query |
| checker: |
| name: sqlite_query_scalar |
| args: |
| db_filename: fixture.db |
| query: "SELECT quantity FROM inventory WHERE item = 'gadget'" |
| expected: "100" |
|
|
| - id: u3-give-raise |
| instruction: "Give Bob Martins a raise: set his salary to 90000." |
| tool: write_query |
| checker: |
| name: sqlite_query_scalar |
| args: |
| db_filename: fixture.db |
| query: "SELECT salary FROM employees WHERE name = 'Bob Martins'" |
| expected: "90000" |
|
|
| - id: u3-delete-widget |
| instruction: "Remove widget from the inventory entirely." |
| tool: write_query |
| checker: |
| name: sqlite_query_scalar |
| args: |
| db_filename: fixture.db |
| query: "SELECT COUNT(*) FROM inventory WHERE item = 'widget'" |
| expected: "0" |
|
|
| - id: u3-insert-employee |
| instruction: >- |
| Add a new employee named Dana Kim in the Marketing department with a |
| salary of 65000. |
| tool: write_query |
| checker: |
| name: sqlite_query_scalar |
| args: |
| db_filename: fixture.db |
| query: "SELECT salary FROM employees WHERE name = 'Dana Kim'" |
| expected: "65000" |
|
|