text stringlengths 328 5.24k |
|---|
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Show me items that need to be reordered.
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
What is the current stock for all items?
### SQL QUERY
SELECT name, current_stock FROM INVENT... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
List employees currently clocke... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE TIME_ENTRIES (id INT, employee_id INT, clock_in TIMESTAMP, clock_out TIMESTAMP);
### QUESTION
Show employees who clocked in t... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE MENU_ITEMS (id INT, name VARCHAR, price DECIMAL);
CREATE TABLE ORDER_ITEMS (id INT, order_id INT, menu_item_id INT, quantity INT);
CREATE TABLE ORDERS (id INT, status VARCHAR, created_at TIMESTA... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
How many receipts did manager John Smith upload this year?
... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE USERS (id INT, first_name VARCHAR, last_name VARCHAR);
CREATE TABLE RECEIPTS (id INT, manager_id INT, upload_date DATE);
### QUESTION
List receipts uploaded in July 2025 by any manager.
### SQ... |
### INSTRUCTION
Given the database schema below, write a SQL query that answers the user's question.
### SCHEMA
CREATE TABLE INVENTORY_ITEMS (id INT, name VARCHAR, current_stock DECIMAL, min_threshold DECIMAL);
### QUESTION
Which items are out of stock?
### SQL QUERY
SELECT name FROM INVENTORY_ITEMS WHERE current_st... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 41