instruction stringlengths 244 1.75k | input stringlengths 44 110 | output stringlengths 30 133 |
|---|---|---|
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.AccountOwners (createdAt timestamp without time zone NOT NULL, createdBy bigint, type integer NOT NULL, status integer ... | ### Input:
List all account owners created after '2023-01-01'.
### Response: | SELECT * FROM accounts.AccountOwners WHERE createdAt > '2023-01-01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.AccountOwnersMapping (entityName character varying(40) NOT NULL, createdAt timestamp without time zone, accOwnerId bigi... | ### Input:
Find all account owner mappings for accOwnerId 12345.
### Response: | SELECT * FROM accounts.AccountOwnersMapping WHERE accOwnerId = 12345; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.Accounts (status integer, code character(20) NOT NULL, accownerId bigint NOT NULL, id bigint NOT NULL, name character v... | ### Input:
Retrieve accounts with a balance greater than 10000.
### Response: | SELECT * FROM accounts.Accounts WHERE balance > 10000; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.Currencies (name character varying(50) NOT NULL, rate double precision NOT NULL, createdBy bigint NOT NULL, createdAt t... | ### Input:
List all currencies with a rate above 1.5.
### Response: | SELECT * FROM accounts.Currencies WHERE rate > 1.5; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.Transactions (vat double precision NOT NULL, vatCode integer, discount double precision NOT NULL, currentBalance double... | ### Input:
Show all transactions with a discount greater than 10.
### Response: | SELECT * FROM accounts.Transactions WHERE discount > 10; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.TransactionsCode (positive boolean NOT NULL, id integer NOT NULL, genericAttributes jsonb, roles ARRAY NOT NULL, create... | ### Input:
Get transaction codes where positive is true.
### Response: | SELECT * FROM accounts.TransactionsCode WHERE positive = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE accounts.TransactionsMapping (transactionsId bigint NOT NULL, type integer, entityId bigint NOT NULL, id bigint NOT NULL, create... | ### Input:
Find transaction mappings for transactionsId 98765.
### Response: | SELECT * FROM accounts.TransactionsMapping WHERE transactionsId = 98765; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE chat.ChatGroup (title character varying, createdAt timestamp without time zone, updatedAt timestamp without time zone, imageId b... | ### Input:
List all private chat groups.
### Response: | SELECT * FROM chat.ChatGroup WHERE private = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE chat.ChatGroupMembers (entityName character varying, name character varying, guid uuid NOT NULL, id bigint NOT NULL, read boolea... | ### Input:
Retrieve members of chat group with id 101.
### Response: | SELECT * FROM chat.ChatGroupMembers WHERE chatGroupId = 101; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE chat.ChatGroupMessages (createdAt timestamp with time zone NOT NULL, type integer, files ARRAY, memberId bigint NOT NULL, messag... | ### Input:
Fetch messages from chat group id 202.
### Response: | SELECT * FROM chat.ChatGroupMessages WHERE chatGroupId = 202; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE chat.OnlineUsers (status integer, id bigint NOT NULL, guid uuid NOT NULL, userId bigint NOT NULL, createdAt timestamp without ti... | ### Input:
List online users with status active.
### Response: | SELECT * FROM chat.OnlineUsers WHERE status = 1; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE cms.News (createdBy bigint, status integer, id integer NOT NULL, updatedAt timestamp without time zone, description text NOT NUL... | ### Input:
Get news items in category 'Sports'.
### Response: | SELECT * FROM cms.News WHERE 'Sports' = ANY(category); |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE cms.Topics (description text, updatedAt timestamp without time zone, createdBy bigint, createdAt timestamp without time zone, me... | ### Input:
List topics with metaTitle containing 'Update'.
### Response: | SELECT * FROM cms.Topics WHERE metaTitle ILIKE '%Update%'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Address (notes character varying, updatedBy bigint, updatedAt timestamp without time zone, type integer, guid uuid NOT NULL,... | ### Input:
Show all addresses in the city 'New York'.
### Response: | SELECT * FROM crm.Address WHERE city = 'New York'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.ClientDetails (updatedAt timestamp without time zone, updatedBy bigint, referredByEntityId bigint, genericAttributes jsonb, ... | ### Input:
List client details for entityId 555.
### Response: | SELECT * FROM crm.ClientDetails WHERE entityId = 555; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.ClientIdentification (createdBy bigint NOT NULL, documentValue character varying NOT NULL, entityName character varying NOT ... | ### Input:
Retrieve main identification records.
### Response: | SELECT * FROM crm.ClientIdentification WHERE mainIdentification = true AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Company (createdBy bigint NOT NULL, updatedBy bigint, updatedAt timestamp without time zone, businessActivity integer, regis... | ### Input:
Get companies registered after '2022-01-01'.
### Response: | SELECT * FROM crm.Company WHERE registrationDate > '2022-01-01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.CompanyAddress (updatedBy bigint, mainAddress boolean, isDeleted boolean, createdBy bigint NOT NULL, createdAt timestamp wit... | ### Input:
Find company addresses for companyId 300.
### Response: | SELECT * FROM crm.CompanyAddress WHERE companyId = 300; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.CompanyClients (updatedAt timestamp without time zone, id bigint NOT NULL, createdBy bigint NOT NULL, companyId bigint NOT N... | ### Input:
List all clients for companyId 200.
### Response: | SELECT * FROM crm.CompanyClients WHERE companyId = 200 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.CompanyEmployees (grossSalary double precision, id bigint NOT NULL, customerId bigint NOT NULL, companyId bigint NOT NULL, d... | ### Input:
List employees of companyId 150 hired after '2020-01-01' with grossSalary over 50000.
### Response: | SELECT * FROM crm.CompanyEmployees WHERE companyId = 150 AND dateOfHire > '2020-01-01' AND grossSalary > 50000 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.CompanyStakeholders (updatedBy bigint, id bigint NOT NULL, customerId bigint NOT NULL, notes character varying, numberOfShar... | ### Input:
Retrieve stakeholders with ownership percentage above 10%.
### Response: | SELECT * FROM crm.CompanyStakeholders WHERE percentage > 10 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Contact (genericAttributes jsonb, updatedBy bigint, entityId bigint NOT NULL, id bigint NOT NULL, createdBy bigint NOT NULL,... | ### Input:
List all contacts for entityName 'Customer'.
### Response: | SELECT * FROM crm.Contact WHERE entityName = 'Customer' AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Customer (createdBy bigint NOT NULL, professionalOccupation character varying, lastName character varying NOT NULL, middleNa... | ### Input:
Fetch all female customers (assuming gender = 2 represents female).
### Response: | SELECT * FROM crm.Customer WHERE gender = 2 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.CustomerAddress (createdBy bigint NOT NULL, createdAt timestamp without time zone NOT NULL, mainAddress boolean NOT NULL, is... | ### Input:
Show customer addresses for customerId 789.
### Response: | SELECT * FROM crm.CustomerAddress WHERE customerId = 789 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Department (parent integer, id bigint NOT NULL, status integer, type integer, companyId bigint, guid uuid NOT NULL, genericA... | ### Input:
List departments with code 'HR'.
### Response: | SELECT * FROM crm.Department WHERE code = 'HR'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.FinancialOrigins (isDeleted boolean NOT NULL, id bigint NOT NULL, customerId bigint NOT NULL, sourceOfIncome integer NOT NUL... | ### Input:
Get financial origins for customerId 321.
### Response: | SELECT * FROM crm.FinancialOrigins WHERE customerId = 321 AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.FinancialProfile (id bigint NOT NULL, updatedBy bigint, updatedAt timestamp without time zone, createdBy bigint NOT NULL, cr... | ### Input:
List financial profiles with annual turnover above 100000.
### Response: | SELECT * FROM crm.FinancialProfile WHERE annualExpectedAccountTurnover > 100000; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Position (name character varying(100), status integer, createdAt timestamp without time zone, id integer NOT NULL, guid uuid... | ### Input:
Fetch positions with name 'Manager'.
### Response: | SELECT * FROM crm.Position WHERE name = 'Manager'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.Relationships (resignationDate timestamp without time zone, appointmentDate timestamp without time zone, notes character var... | ### Input:
Find relationships where powerOfAttorney is true.
### Response: | SELECT * FROM crm.Relationships WHERE powerOfAttorney = true AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.UserAddress (userId bigint NOT NULL, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, type integer... | ### Input:
List user addresses for userId 456.
### Response: | SELECT * FROM crm.UserAddress WHERE userId = 456; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE crm.UserCompany (id bigint NOT NULL, departmentId bigint, companyId bigint, createdAt timestamp without time zone NOT NULL, crea... | ### Input:
Retrieve user companies for userId 789.
### Response: | SELECT * FROM crm.UserCompany WHERE userId = 789; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE dmp.Datasets (tags ARRAY, properties jsonb, previewData jsonb, fileId bigint, createdAt timestamp without time zone, createdBy b... | ### Input:
Show all public datasets.
### Response: | SELECT * FROM dmp.Datasets WHERE public = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE dmp.DatasetsColumn (status integer NOT NULL, cleaningRules jsonb, anonymousRules jsonb, encryptRules jsonb, createdBy bigint, cr... | ### Input:
List mandatory columns for datasetId 10.
### Response: | SELECT * FROM dmp.DatasetsColumn WHERE datasetId = 10 AND mandatory = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE dmp.DatasetsData (createdAt timestamp without time zone, createdBy bigint, dataRow jsonb, datasetId bigint NOT NULL, id bigint N... | ### Input:
Retrieve data rows for datasetId 5.
### Response: | SELECT * FROM dmp.DatasetsData WHERE datasetId = 5; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE dmp.DatasetsModel (id integer NOT NULL, database character varying(40), to character varying, name character varying NOT NULL, e... | ### Input:
List dataset models for entityName 'sales'.
### Response: | SELECT * FROM dmp.DatasetsModel WHERE entityName = 'sales'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE file.DocumentManagement (guid uuid NOT NULL, id bigint NOT NULL, status integer NOT NULL, availableUntil timestamp without time ... | ### Input:
Retrieve documents with title 'Annual Report'.
### Response: | SELECT * FROM file.DocumentManagement WHERE title = 'Annual Report'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE file.DocumentManagementCategory (createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, id bigint NOT NULL, ... | ### Input:
List document categories with description containing 'finance'.
### Response: | SELECT * FROM file.DocumentManagementCategory WHERE description ILIKE '%finance%'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE file.File (fileType integer NOT NULL, fileSize double precision NOT NULL, id bigint NOT NULL, guid uuid NOT NULL, visible boolea... | ### Input:
Fetch files with mimeType 'application/pdf'.
### Response: | SELECT * FROM file.File WHERE mimeType = 'application/pdf' AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE file.FileEntityMapping (status integer NOT NULL, genericAttributes jsonb, entityId bigint NOT NULL, entityName character varying... | ### Input:
Get file entity mappings for entityName 'Product'.
### Response: | SELECT * FROM file.FileEntityMapping WHERE entityName = 'Product'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.Asset (id character varying NOT NULL, title character varying NOT NULL, href character varying NOT NULL, type charact... | ### Input:
List all assets of type 'image'.
### Response: | SELECT * FROM geospatial.Asset WHERE type = 'image' AND deleted_at IS NULL; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.Collection (dateStart timestamp without time zone NOT NULL, dateEnd timestamp without time zone NOT NULL, provider ch... | ### Input:
Select collections provided by 'GeoProvider'.
### Response: | SELECT * FROM geospatial.Collection WHERE provider = 'GeoProvider'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.IngestionSchedule (name character varying(255) NOT NULL, enabled boolean NOT NULL, areaOfInterest ARRAY NOT NULL, int... | ### Input:
List enabled ingestion schedules.
### Response: | SELECT * FROM geospatial.IngestionSchedule WHERE enabled = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.Item (properties jsonb NOT NULL, geometry USER-DEFINED NOT NULL, deleted_at date, id character varying NOT NULL, date... | ### Input:
Fetch items from collectionId 'col123'.
### Response: | SELECT * FROM geospatial.Item WHERE collectionId = 'col123' AND deleted_at IS NULL; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.ItemLayer (ingestionScheduleId uuid, collectionId character varying, name character varying(255) NOT NULL, id uuid NO... | ### Input:
List item layers with name 'Layer 1'.
### Response: | SELECT * FROM geospatial.ItemLayer WHERE name = 'Layer 1'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.Migrations (name character varying NOT NULL, timestamp bigint NOT NULL, id integer NOT NULL);
| ### Input:
Select migrations after timestamp 1600000000.
### Response: | SELECT * FROM geospatial.Migrations WHERE timestamp > 1600000000; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.ObjectGeneric (comments character varying(500), id bigint NOT NULL, uuid uuid NOT NULL, currentObjectLocation bigint,... | ### Input:
Retrieve object generics with codeId 'OBJ123'.
### Response: | SELECT * FROM geospatial.ObjectGeneric WHERE codeId = 'OBJ123'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.ObjectGroup (name character varying NOT NULL, colour character varying, id integer NOT NULL, uuid uuid NOT NULL, gene... | ### Input:
Select object groups with colour 'red'.
### Response: | SELECT * FROM geospatial.ObjectGroup WHERE colour = 'red'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE geospatial.ObjectLocation (createdAt timestamp without time zone NOT NULL, createdBy bigint, objectGenericId bigint, genericAttr... | ### Input:
List object locations for objectGenericId 999.
### Response: | SELECT * FROM geospatial.ObjectLocation WHERE objectGenericId = 999; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE ocpp.Cars (id integer NOT NULL, model character varying, brand character varying, name character varying NOT NULL, code characte... | ### Input:
Show all cars by brand 'Tesla'.
### Response: | SELECT * FROM ocpp.Cars WHERE brand = 'Tesla'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE ocpp.ChargingStation (serialNumber character varying(255), model character varying(255) NOT NULL, vendorName character varying(2... | ### Input:
List charging stations that are connected.
### Response: | SELECT * FROM ocpp.ChargingStation WHERE isConnected = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE ocpp.MessageLog (payload jsonb, createdAt timestamp without time zone NOT NULL, action character varying, updatedAt timestamp wi... | ### Input:
Retrieve message logs for stationId 300.
### Response: | SELECT * FROM ocpp.MessageLog WHERE stationId = 300; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE ocpp.Transaction (createdAt timestamp without time zone NOT NULL, redirectUrl character varying, maxCost double precision, guid ... | ### Input:
List transactions with totalCost above 500.
### Response: | SELECT * FROM ocpp.Transaction WHERE totalCost > 500; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE orders.Lisence (guid uuid, entityName character varying, licenceCartId integer, createdBy bigint, createdAt timestamp without ti... | ### Input:
Get licences expiring after '2023-12-31'.
### Response: | SELECT * FROM orders.Lisence WHERE toDate > '2023-12-31'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE orders.Orders (userId bigint, guid uuid NOT NULL, id bigint NOT NULL, paymentMethodAttributes jsonb, paymentMethod integer, crea... | ### Input:
List orders for userId 1001.
### Response: | SELECT * FROM orders.Orders WHERE userId = 1001; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE orders.OrdersItems (lisenceFkId bigint, id bigint NOT NULL, entityId bigint NOT NULL, amount double precision NOT NULL, vat doub... | ### Input:
Retrieve order items for orderId 500.
### Response: | SELECT * FROM orders.OrdersItems WHERE orderId = 500; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE orders.ShoppingCartItems (userId bigint NOT NULL, id bigint NOT NULL, entityName character varying, discount double precision, v... | ### Input:
List shopping cart items for userId 2002.
### Response: | SELECT * FROM orders.ShoppingCartItems WHERE userId = 2002; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.Invoices (accountId bigint NOT NULL, status integer NOT NULL, category integer, type integer NOT NULL, codeString chara... | ### Input:
Select unpaid invoices (status not equal to 2).
### Response: | SELECT * FROM payments.Invoices WHERE status <> 2; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.InvoicesItems (invoicessId bigint NOT NULL, description character varying, quantity double precision, genericAttributes... | ### Input:
List invoice items with discount greater than 5.
### Response: | SELECT * FROM payments.InvoicesItems WHERE discount > 5; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.InvoicesItemsCode (code character varying, genericAttributes jsonb, type integer, vatPercentage double precision NOT NU... | ### Input:
Fetch invoice item codes with status 1.
### Response: | SELECT * FROM payments.InvoicesItemsCode WHERE status = 1; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.PaymentOtp (guid uuid NOT NULL, id bigint NOT NULL, otpCode character varying NOT NULL, otpToken character varying NOT ... | ### Input:
Retrieve OTPs that haven't expired (expiresAt in the future).
### Response: | SELECT * FROM payments.PaymentOtp WHERE expiresAt > NOW(); |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.PaymentTemplate (userId bigint NOT NULL, id integer NOT NULL, type integer NOT NULL, data jsonb NOT NULL, guid uuid NOT... | ### Input:
List payment templates for userId 300.
### Response: | SELECT * FROM payments.PaymentTemplate WHERE userId = 300; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE payments.Payments (category integer, currencyOrderRate double precision, currencyBenRate double precision, accountOrderValidIban... | ### Input:
List payments with amountOrder over 1000.
### Response: | SELECT * FROM payments.Payments WHERE amountOrder > 1000; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE products.Category (guid uuid NOT NULL, name character varying NOT NULL, description character varying, metaKeywords character va... | ### Input:
Fetch categories that are shown on the home page.
### Response: | SELECT * FROM products.Category WHERE showOnHomePage = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE products.Product (hasUserAgreement boolean NOT NULL, id bigint NOT NULL, guid uuid NOT NULL, ownerId bigint, productTypeId integ... | ### Input:
List products priced below 50.
### Response: | SELECT * FROM products.Product WHERE price < 50; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE products.Vendor (email character varying, name character varying, guid uuid NOT NULL, id integer NOT NULL, createdAt timestamp w... | ### Input:
Find vendors with email ending in '@example.com'.
### Response: | SELECT * FROM products.Vendor WHERE email ILIKE '%@example.com'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE projects.ProjectProducts (genericAttributes jsonb, createdBy bigint, projectProductsId bigint, name character varying, quantity ... | ### Input:
List project products for projectId 400.
### Response: | SELECT * FROM projects.ProjectProducts WHERE projectId = 400; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE projects.Projects (sla integer, slaStart date, slaEnd date, createdBy bigint, createdAt timestamp without time zone, updatedBy b... | ### Input:
Fetch projects with status 1.
### Response: | SELECT * FROM projects.Projects WHERE status = 1; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE projects.ProjectsPriceList (createdAt timestamp without time zone, activationFee double precision, cost double precision NOT NUL... | ### Input:
List project price lists with cost over 200.
### Response: | SELECT * FROM projects.ProjectsPriceList WHERE cost > 200; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.ActivityLog (createdAt timestamp without time zone NOT NULL, userId bigint, entityId integer, activityLogTypeId integer N... | ### Input:
Retrieve activity logs for userId 555.
### Response: | SELECT * FROM public.ActivityLog WHERE userId = 555; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.City (name character varying(100) NOT NULL, id bigint NOT NULL, countryId bigint NOT NULL);
| ### Input:
List cities in countryId 44.
### Response: | SELECT * FROM public.City WHERE countryId = 44; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Country (id bigint NOT NULL, code character varying(5) NOT NULL, name character varying NOT NULL, isMemberState boolean N... | ### Input:
List countries that are member states.
### Response: | SELECT * FROM public.Country WHERE isMemberState = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.CronJobs (status integer, executionDate date, lastExecutionDate date, schedule jsonb, guid uuid NOT NULL, id integer NOT ... | ### Input:
Select cron jobs scheduled for today.
### Response: | SELECT * FROM public.CronJobs WHERE executionDate = CURRENT_DATE; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.DataCaching (value jsonb NOT NULL, entityName character varying, key character varying NOT NULL, id bigint NOT NULL, expi... | ### Input:
Get caching data for key 'cache_01'.
### Response: | SELECT * FROM public.DataCaching WHERE key = 'cache_01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.DepartmentRoleMapping (departmentId bigint NOT NULL, id bigint NOT NULL, roleId bigint NOT NULL);
| ### Input:
List department role mappings for departmentId 10.
### Response: | SELECT * FROM public.DepartmentRoleMapping WHERE departmentId = 10; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.GenericAttribute (createdAt timestamp without time zone NOT NULL, options jsonb, name character varying(100), typeValues ... | ### Input:
Fetch required generic attributes.
### Response: | SELECT * FROM public.GenericAttribute WHERE isRequired = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.GenericAuditLog (dmlFromTimestamp timestamp without time zone, tableName character varying, dmlType character varying NOT... | ### Input:
Select audit logs after '2023-01-01'.
### Response: | SELECT * FROM public.GenericAuditLog WHERE dmlTimestamp > '2023-01-01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.InternalLog (metadata jsonb, requestId character varying(1000), serviceName character varying(1000), message character va... | ### Input:
List internal logs with message containing 'error'.
### Response: | SELECT * FROM public.InternalLog WHERE message ILIKE '%error%'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Language (code character varying(5) NOT NULL, name character varying(100) NOT NULL, id bigint NOT NULL);
| ### Input:
List all languages.
### Response: | SELECT * FROM public.Language; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Localization (key character varying(100) NOT NULL, language bigint NOT NULL, value text NOT NULL, id bigint NOT NULL, ent... | ### Input:
Retrieve localization for key 'WELCOME_MESSAGE'.
### Response: | SELECT * FROM public.Localization WHERE key = 'WELCOME_MESSAGE'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Log (project character varying(500), id bigint NOT NULL, userId bigint, payload json, createdAt timestamp without time zo... | ### Input:
Fetch logs with logLevel 'ERROR'.
### Response: | SELECT * FROM public.Log WHERE logLevel = 'ERROR'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Notification (id bigint NOT NULL, pushNotificationData jsonb, genericAttributes jsonb, updatedAt timestamp without time z... | ### Input:
List notifications that have not been viewed.
### Response: | SELECT * FROM public.Notification WHERE viewedBy IS NULL OR array_length(viewedBy, 1) = 0; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Otp (otp character varying(6) NOT NULL, id bigint NOT NULL, createdAt timestamp without time zone, guid uuid NOT NULL, us... | ### Input:
Retrieve OTPs that are still valid.
### Response: | SELECT * FROM public.Otp WHERE expiresAt > NOW(); |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Paralist (genericAttributes jsonb, id bigint NOT NULL, groupCode character varying(100) NOT NULL, description character v... | ### Input:
List paralist groups with groupCode 'GRP01'.
### Response: | SELECT * FROM public.Paralist WHERE groupCode = 'GRP01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Permission (name character varying(100) NOT NULL, id bigint NOT NULL, description character varying(500), systemName char... | ### Input:
Fetch permissions with systemName 'ADMIN'.
### Response: | SELECT * FROM public.Permission WHERE systemName = 'ADMIN'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.PermissionRoleMapping (id bigint NOT NULL, permissionId bigint NOT NULL, roleId bigint NOT NULL);
| ### Input:
List permission role mappings for permissionId 77.
### Response: | SELECT * FROM public.PermissionRoleMapping WHERE permissionId = 77; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.PositionRoleMapping (id bigint NOT NULL, positionId bigint NOT NULL, roleId bigint NOT NULL);
| ### Input:
Retrieve position role mappings for positionId 88.
### Response: | SELECT * FROM public.PositionRoleMapping WHERE positionId = 88; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Role (id bigint NOT NULL, genericAttributes jsonb, systemName character varying(100) NOT NULL, internal boolean, name cha... | ### Input:
List roles that are internal.
### Response: | SELECT * FROM public.Role WHERE internal = true; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Settings (name character varying, id integer NOT NULL, value character varying);
| ### Input:
Retrieve settings for name 'theme'.
### Response: | SELECT * FROM public.Settings WHERE name = 'theme'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.Test (bool boolean NOT NULL, date timestamp without time zone NOT NULL, dp double precision NOT NULL, name character vary... | ### Input:
Select tests with dp greater than 3.5.
### Response: | SELECT * FROM public.Test WHERE dp > 3.5; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.TraceRouteLogs (id bigint NOT NULL, reqBody character varying, reqDuration double precision, responseSize integer, method... | ### Input:
List trace route logs for userId 1010.
### Response: | SELECT * FROM public.TraceRouteLogs WHERE userId = 1010; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.User (lastName character varying NOT NULL, fileIds ARRAY, uuid uuid NOT NULL, genericAttributes jsonb, language integer, ... | ### Input:
Fetch verified users.
### Response: | SELECT * FROM public.User WHERE isVerified = true AND isDeleted = false; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.UserRoleMapping (userId bigint, roleId bigint, id bigint NOT NULL);
| ### Input:
List user role mappings for userId 2020.
### Response: | SELECT * FROM public.UserRoleMapping WHERE userId = 2020; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.UserSession (id bigint NOT NULL, clientId character varying, authToken character varying(10000) NOT NULL, clientType char... | ### Input:
Retrieve sessions for userId 3030.
### Response: | SELECT * FROM public.UserSession WHERE userId = 3030; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.geography_columns (srid integer, type text, f_table_schema name, f_geography_column name, f_table_catalog name, f_table_n... | ### Input:
List geography columns for schema 'public'.
### Response: | SELECT * FROM public.geography_columns WHERE f_table_schema = 'public'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.geometry_columns (srid integer, coord_dimension integer, type character varying(30), f_table_schema name, f_geometry_colu... | ### Input:
Select geometry columns for table 'spatial_ref_sys'.
### Response: | SELECT * FROM public.geometry_columns WHERE f_table_name = 'spatial_ref_sys'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.migrations (id integer NOT NULL, run_on timestamp without time zone NOT NULL, name character varying(255) NOT NULL);
| ### Input:
List migrations run after '2023-06-01'.
### Response: | SELECT * FROM public.migrations WHERE run_on > '2023-06-01'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.q_result (coalesce character varying(1000));
| ### Input:
Select q_result values.
### Response: | SELECT coalesce FROM public.q_result; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE public.spatial_ref_sys (proj4text character varying(2048), srtext character varying(2048), srid integer NOT NULL, auth_name char... | ### Input:
List spatial reference systems with auth_name 'EPSG'.
### Response: | SELECT * FROM public.spatial_ref_sys WHERE auth_name = 'EPSG'; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE quizes.Games (score integer, status integer, guid uuid, level integer, id integer NOT NULL, createdAt timestamp without time zon... | ### Input:
Fetch games with score above 80.
### Response: | SELECT * FROM quizes.Games WHERE score > 80; |
I want you to act as a SQL terminal in front of an example database. You need only to return the SQL command to me. Below is an instruction that describes a task.
## Instruction:
CREATE TABLE quizes.Questions (points integer NOT NULL, id integer NOT NULL, name character varying NOT NULL, title character varying, descri... | ### Input:
List questions with points greater than 5.
### Response: | SELECT * FROM quizes.Questions WHERE points > 5; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.