question stringclasses 63
values | context stringclasses 1
value | instruction stringclasses 1
value | answer stringclasses 84
values | formatted_text stringlengths 618 639 |
|---|---|---|---|---|
What is the maximum City in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(ContactName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average CustomerID of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average ContactTitle of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(Address) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average CustomerID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Country in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Fax are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(PostalCode) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CompanyName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Address in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(PostalCode) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Quantity of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many ProductID are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many ContactName are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CompanyName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many CustomerID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many EmployeeID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average CompanyName of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(PostalCode) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum CustomerID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CompanyName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ProductID in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum City in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(City) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Quantity of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum EmployeeID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ContactName in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(ContactName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average ProductID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Quantity are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum EmployeeID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum EmployeeID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many EmployeeID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average EmployeeID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many OrderDate are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average ProductID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Country) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average RequiredDate of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many UnitPrice are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderDate in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average EmployeeID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average RequiredDate of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum CustomerID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Phone in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(ContactTitle) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Phone of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(Fax) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Phone of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Address) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ContactName in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(PostalCode) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many City are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Address) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderDate of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many CustomerID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many CustomerID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Region are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Region) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Quantity in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Fax of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Address) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum UnitPrice in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average RequiredDate of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Fax of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Address) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Country in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(ContactName) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Address in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(City) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ProductID in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many OrderID are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderDate in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(OrderDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average CustomerID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many OrderDate are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ContactTitle in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(ContactTitle) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many RequiredDate are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many ContactName are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum ContactTitle in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many Country are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Region) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many ProductID are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Fax in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(City) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Quantity in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum UnitPrice in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many ProductID are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(Quantity) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum UnitPrice in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average OrderID of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(ProductID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderID in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many CompanyName are there in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many OrderID are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT SUM(EmployeeID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many OrderDate are there in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(RequiredDate) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average Region of Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(PostalCode) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average RequiredDate of Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(CustomerID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Discount in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum OrderDate in Orders? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(OrderID) FROM Orders LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
How many UnitPrice are there in OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT MAX(Discount) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the maximum Country in Customers? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(CustomerID) FROM Customers LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average UnitPrice of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT AVG(OrderID) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
What is the average ProductID of OrderDetails? | Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City, Region, PostalCode, Country, Phone, Fax, Table: Orders, Columns: OrderID, CustomerID, EmployeeID, OrderDate, RequiredDate, Table: OrderDetails, Columns: OrderID, ProductID, UnitPrice, Quantity, Discount | You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function | SELECT COUNT(UnitPrice) FROM OrderDetails LIMIT 10; | <s>[INST] <<SYS>>
You are an agent designed to interact with a SQL database. Answer the user questions about the database. Output should be a fully formed SQL query and give it an alias if the columns if it using join function
Table: Customers, Columns: CustomerID, CompanyName, ContactName, ContactTitle, Address, City,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.