Dataset Viewer
Auto-converted to Parquet
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 NOT NULL, guid uuid NOT NULL, id bigint NOT NULL, name character varying, genericAttributes jsonb);
### 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 bigint NOT NULL, genericAttributes jsonb, type integer, entityId bigint NOT NULL, id bigint NOT NULL);
### 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 varying, ccy character(3) NOT NULL, iban character(40), creditLimit integer, genericAttributes jsonb, type integer, updatedBy bigint, createdBy bigint, updatedAt timestamp without time zone, debitLimit integer, unclearedAmount double precision, createdAt timestamp without time zone, guid uuid NOT NULL, balance double precision NOT NULL);
### 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 timestamp without time zone NOT NULL, updatedBy bigint NOT NULL, updatedAt timestamp without time zone NOT NULL, code character varying(3) NOT NULL, locale character varying(50) NOT NULL);
### 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 precision, fromCCY character(3), description character varying, guid uuid NOT NULL, id bigint NOT NULL, ref character varying, toCCY character(3), fromAmount double precision NOT NULL, toAccount bigint, fromAccount bigint NOT NULL, transactionCode integer NOT NULL, createdBy bigint NOT NULL, toAmount double precision, createdAt timestamp without time zone NOT NULL, transactionRefId ARRAY, genericAttributes jsonb, type integer);
### 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, createdBy bigint NOT NULL, createdAt timestamp without time zone NOT NULL, name character varying NOT NULL);
### 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, createdBy bigint, genericAttributes jsonb, createdAt timestamp without time zone, entityName character varying(40) NOT NULL);
### 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 bigint, id bigint NOT NULL, guid uuid NOT NULL, createdBy bigint NOT NULL, status integer, type integer, private boolean);
### 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 boolean, createdAt timestamp without time zone, isDeleted boolean, entityId bigint, role integer, status integer, chatGroupId bigint NOT NULL);
### 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, message character varying, status integer, visible boolean, id bigint NOT NULL, chatGroupId bigint NOT NULL, media ARRAY);
### 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 time zone, sessionId character varying NOT NULL);
### 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 NULL, updatedBy bigint, fileIds ARRAY, metaTitle character varying, createdAt timestamp without time zone NOT NULL, metaKeywords character varying, availableFrom timestamp without time zone, availableTo timestamp without time zone, guid uuid NOT NULL, category ARRAY, title character varying NOT NULL);
### 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, metaTitle character varying, metaKeywords character varying, updatedBy bigint, themeId integer, template integer, id integer NOT NULL, category ARRAY, status integer, title character varying, fileIds ARRAY, body character varying);
### 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, createdBy bigint NOT NULL, createdAt timestamp without time zone NOT NULL, genericAttributes jsonb, municipalityId integer, cityId integer, stateProvinceId integer, countryId bigint, position point, firstName text, id integer NOT NULL, lastName text, email text, company text, country text, city text, area text, municipality text, address1 text, address2 text, zipPostalCode text, phoneNumber text, faxNumber text);
### 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, terminationDate timestamp without time zone, type integer, commissionPercentage double precision, backOfficeOfficer bigint, accountOfficer bigint, pricelist integer, clientRisk integer, entityId bigint NOT NULL, id bigint NOT NULL, referredByEntity character varying, notes character varying, entityName character varying NOT NULL, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL);
### 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 NULL, id bigint NOT NULL, entityId bigint NOT NULL, documentType integer NOT NULL, documentExpiryDate timestamp without time zone, documentCountryIssued bigint, mainIdentification boolean NOT NULL, isDeleted boolean NOT NULL, createdAt timestamp without time zone NOT NULL, updatedAt timestamp without time zone, updatedBy bigint);
### 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, registrationDate timestamp without time zone, identificationType integer, createdAt timestamp without time zone NOT NULL, notes character varying, type ARRAY, cif character varying, name character varying(100), id bigint NOT NULL, registrationNumber character varying(50), website character varying, auditFirm character varying, guid uuid NOT NULL, status integer, identificationValue character varying, nextReviewDate timestamp without time zone, genericAttributes jsonb, authorizedCapital double precision, issuedCapital double precision);
### 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 without time zone NOT NULL, type integer, addressId bigint NOT NULL, companyId bigint NOT NULL, id bigint NOT NULL, updatedAt timestamp without time zone);
### 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 NULL, clientEntityId bigint NOT NULL, clientEntityName character varying NOT NULL, isDeleted boolean, createdAt timestamp without time zone NOT NULL, updatedBy bigint);
### 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, departmentId bigint, positionId bigint, status integer NOT NULL, dateOfHire timestamp without time zone NOT NULL, genericAttributes jsonb, isDeleted boolean NOT NULL, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, notes character varying);
### 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, numberOfShares double precision, entityId bigint, companyId bigint NOT NULL, entityName character varying, type integer NOT NULL, percentage double precision NOT NULL, isDeleted boolean NOT NULL, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, updatedAt timestamp without time zone);
### 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, createdAt timestamp without time zone NOT NULL, updatedAt timestamp without time zone, mainContact boolean NOT NULL, notes character varying, contactValue character varying NOT NULL, entityName character varying NOT NULL, isDeleted boolean NOT NULL, contactType integer 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, middleName character varying, firstName character varying NOT NULL, cif character varying NOT NULL, id bigint NOT NULL, title integer, gender integer, dateOfBirth timestamp without time zone, placeOfBirth bigint, createdAt timestamp without time zone NOT NULL, nationality bigint, maritalStatus integer, nextReviewDate timestamp without time zone, isDeleted boolean NOT NULL, updatedBy bigint, updatedAt timestamp without time zone, userId bigint, status integer NOT NULL, guid uuid NOT NULL, genericAttributes jsonb, notes character varying);
### 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, isDeleted boolean NOT NULL, addressId bigint NOT NULL, customerId bigint NOT NULL, id bigint NOT NULL, updatedBy bigint, updatedAt timestamp without time zone);
### 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, genericAttributes jsonb, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, code character varying(10), name character varying(100) NOT NULL);
### 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 NULL, type integer NOT NULL, companyId bigint, createdAt timestamp without time zone NOT NULL, createdBy bigint NOT NULL, updatedBy bigint, updatedAt timestamp without time zone, notes character varying, amount double precision NOT NULL);
### 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, createdAt timestamp without time zone NOT NULL, numberOfTransactions integer NOT NULL, notes character varying, expectedDestinationOfOutgoing character varying NOT NULL, expectedOriginOfIncomingPayments character varying NOT NULL, accountUsage character varying NOT NULL, companyId bigint, customerId bigint NOT NULL, minimumAmountOfIncomingPayments double precision NOT NULL, maximumAmountOfIncomingPayments double precision NOT NULL, minimumAmountOfOutgoing double precision NOT NULL, maxAmountOfOutgoing double precision NOT NULL, annualExpectedAccountTurnover double precision NOT NULL);
### 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 NOT NULL, genericAttributes jsonb, createdBy bigint);
### 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 varying, updatedBy bigint, updatedAt timestamp without time zone, id bigint NOT NULL, relatedEntityName character varying NOT NULL, type bigint NOT NULL, entityName character varying NOT NULL, percentageOfOwnership character varying, createdBy bigint NOT NULL, createdAt timestamp without time zone NOT NULL, relatedEntityId bigint NOT NULL, isDeleted boolean NOT NULL, entityId bigint NOT NULL, powerOfAttorney boolean);
### 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, addressId bigint NOT NULL, id bigint NOT NULL);
### 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, createdBy bigint NOT NULL, positionId bigint, userId bigint NOT NULL);
### 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 bigint, departmentShared ARRAY, organizationsShared ARRAY, usersShared ARRAY, dataCheckIn integer, type integer, public boolean, status integer, guid uuid NOT NULL, id integer NOT NULL, name character varying NOT NULL, description character varying, database character varying(40) NOT NULL, genericAttributes jsonb, version character varying(10), errorComments character varying);
### 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, cretaedAt timestamp without time zone, name character varying NOT NULL, modelEquivalent character varying, additionalInfo character varying, mandatory boolean NOT NULL, datasetId bigint NOT NULL, type integer NOT NULL, guid uuid NOT NULL, id bigint NOT NULL, modelEquivalentColumn character varying);
### 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 NOT NULL);
### 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, entityName character varying NOT NULL, entityField character varying NOT NULL, defaultValue character varying, entityNameReference character varying, from character varying, order integer, optional boolean, primaryKey boolean, type integer);
### 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 zone, createdBy bigint NOT NULL, createdAt timestamp without time zone NOT NULL, genericAttributes jsonb, categories ARRAY, notes character varying, keywords ARRAY, description character varying, title character varying NOT NULL);
### 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, title character varying NOT NULL, canEdit ARRAY, keywords ARRAY, canView ARRAY, genericAttributes jsonb, guid uuid NOT NULL, description character varying);
### 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 boolean NOT NULL, mimeType character varying(500), seoFilename character varying(300), altAttribute character varying, titleAttribute character varying, createdAt timestamp without time zone NOT NULL, isDeleted boolean NOT NULL, createdBy bigint, virtualPath character varying NOT NULL, originalFilename character varying, caption character varying, payload jsonb, fileContentType integer NOT NULL, isNew boolean NOT NULL);
### 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(50) NOT NULL, id bigint NOT NULL, fileId bigint NOT NULL);
### 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 character varying NOT NULL, gsd integer, link character varying NOT NULL, shape ARRAY, deleted_at date, itemLayerId uuid, bbox ARRAY, itemId character varying, transform ARRAY);
### 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 character varying(255) NOT NULL, thumbnail character varying(2083) NOT NULL, id character varying NOT NULL, title character varying(255) NOT NULL, description text NOT NULL);
### 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, interval bigint NOT NULL, id uuid NOT NULL, cronExpression character varying(255) NOT NULL, workspace character varying(255) NOT NULL, coverageStoreDir character varying(512) NOT NULL, selectFields ARRAY NOT NULL);
### 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, datetime timestamp without time zone NOT NULL, bbox ARRAY NOT NULL, collectionId character varying, preview character varying);
### 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 NOT NULL);
### 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, updatedAt timestamp with time zone, genericAttributes jsonb, insertedLocationTimestamp timestamp without time zone, groupId integer, sourceType integer, entityId bigint, category integer, status integer, fileIds ARRAY, type character varying(100), codeId character varying(200), additionalInfo character varying, isLocked character varying(1), entityName character varying, name character varying);
### 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, genericAttributes jsonb, type integer, createdBy bigint, createdAt timestamp without time zone);
### 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, genericAttributes jsonb, id bigint NOT NULL, geo USER-DEFINED);
### 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 character varying, consumption double precision, fileIds ARRAY, connector character varying, description character varying, year integer, battery double precision);
### 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(255), firmwareVersion character varying(255), id integer NOT NULL, lastBoot timestamp without time zone, projectId integer, status integer, guid uuid NOT NULL, lastMessage jsonb, lastReceivedTime timestamp without time zone, isConnected boolean, connectorId integer, productId integer, cable boolean, currentType integer, power integer);
### 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 without time zone, stationId integer NOT NULL, id integer NOT NULL, messageType integer, sender character varying(255));
### 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 uuid NOT NULL, paymentStatus integer, transactionAssert jsonb, totalMeterValues double precision, meterValues jsonb, status integer, totalCost double precision, activationCost double precision, cost double precision, meterStop double precision, meterStart double precision, id integer NOT NULL, updatedAt timestamp without time zone NOT NULL, stationId integer NOT NULL, userId integer, energyTransferStopped timestamp without time zone, energyTransferStarted timestamp without time zone, energyTransferInProgress boolean NOT NULL, transactionId character varying(255), token character varying(255));
### 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 time zone, count bigint, toDate timestamp without time zone, fromDate timestamp without time zone, status integer, type integer, entityId bigint, id bigint NOT NULL);
### 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, createdBy bigint, createdAt timestamp without time zone, invoiceId bigint, totDiscount double precision, totVat double precision, totAmount double precision, status integer, addressId bigint);
### 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 double precision, discount double precision, quantity double precision, genericAttributes jsonb, createdAt timestamp without time zone, createdBy bigint, orderId bigint NOT NULL, lisenceType integer, entityName character varying NOT NULL);
### 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, vat double precision, licenceId integer, amount double precision, genericAttributes jsonb, createdBy bigint, createdAt timestamp without time zone, quantity integer, entityId bigint);
### 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 character varying, guid uuid NOT NULL, id bigint NOT NULL, code bigint, description character varying, toAccountId bigint, paidAmount double precision, genericAttributes jsonb, createdAt timestamp without time zone, createdBy bigint, dateOfPaid timestamp without time zone, dueDate timestamp without time zone, totalDiscount double precision NOT NULL, totalVat double precision NOT NULL, amount double precision NOT NULL);
### 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 jsonb, discount double precision NOT NULL, vatPercentage double precision NOT NULL, vat double precision NOT NULL, amount double precision NOT NULL, invoicesItemCodeId bigint NOT NULL, id bigint NOT NULL);
### 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 NULL, amount double precision NOT NULL, status integer, name character varying NOT NULL, id bigint NOT NULL);
### 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 NULL, benName character varying, orderName character varying, status integer NOT NULL, expiresAt timestamp without time zone NOT NULL, amount double precision NOT NULL, createdAt timestamp without time zone NOT NULL, userId bigint NOT NULL, responseDate timestamp without time zone, paymentId bigint NOT NULL);
### 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 NULL, genericAttributes jsonb, name character varying NOT NULL);
### 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 boolean, accountBenValidIban boolean, type integer NOT NULL, valueDate date, guid uuid NOT NULL, currencyOrder character(3) NOT NULL, transactionReference character varying, id bigint NOT NULL, bankBICOrderAddress character varying, detailOfCharges character varying, charges jsonb, customerBenPostCode character varying, customerBenAddress character varying, customerOrderAddress character varying, customerOrderPostCode character varying, customerOrderCity character varying, customerOrderCountry character varying, countryOrder character varying(50), countryBen character varying(50), bankBICBen character(20), bankBICOrder character(20), senderToReceiver character varying, accountBen character varying, accountOrder character varying, customerOrder character varying, customerBen character varying, correspondBen character varying, correspondOrder character varying, currencyBen character(3) NOT NULL, createdBy bigint NOT NULL, updatedAt timestamp without time zone NOT NULL, createdAt timestamp without time zone NOT NULL, customerBenCity character varying, status integer NOT NULL, customerOrderId bigint, customerBenId bigint, accountBenId bigint, accountOrderId bigint, priority integer, genericAttributes jsonb, executionType integer, amountBen double precision NOT NULL, amountOrder double precision NOT NULL, updatedBy bigint NOT NULL, bankBICBenAddress character varying, customerBenCountry character varying);
### 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 varying, metaDescription character varying, metaTitle character varying, id integer NOT NULL, parentId integer, pictureId bigint, status integer, showOnHomePage boolean, genericAttributes jsonb, createdBy bigint, createdAt timestamp without time zone NOT NULL);
### 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 integer NOT NULL, status integer NOT NULL, addressId integer, vendorId integer NOT NULL, showOnHomepage boolean NOT NULL, allowCustomerReviews boolean NOT NULL, isDownload boolean NOT NULL, isShipEnabled boolean NOT NULL, isFreeShipping boolean NOT NULL, taxCategoryId integer NOT NULL, warehouseId integer NOT NULL, stockQuantity integer NOT NULL, displayStockAvailability boolean NOT NULL, displayStockQuantity boolean NOT NULL, minStockQuantity integer NOT NULL, orderMinimumQuantity integer NOT NULL, orderMaximumQuantity integer NOT NULL, disableBuyButton boolean NOT NULL, price numeric, oldPrice numeric, productCost numeric, weight numeric NOT NULL, length numeric NOT NULL, width numeric NOT NULL, height numeric NOT NULL, displayOrder integer NOT NULL, published boolean NOT NULL, createdAt timestamp without time zone NOT NULL, createdBy integer NOT NULL, fileIds ARRAY, specificationAttributes jsonb, genericAttributes jsonb, categories ARRAY, imageIds ARRAY, checkoutAttributes jsonb, tags ARRAY, userAgreementText text, manufacturerPartNumber character varying(400), sku character varying(400), metaTitle character varying(400) NOT NULL, metaDescription text NOT NULL, metaKeywords character varying(400) NOT NULL, fullDescription text, shortDescription text, name character varying(400) NOT NULL);
### 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 without time zone, createdBy bigint, responsibleUserId bigint, phone character varying, url character varying);
### 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 integer, projectId bigint, productId bigint, id bigint NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone);
### 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 bigint, updatedAt timestamp without time zone, name character varying, contractNotes text, companies ARRAY, phase integer, customers ARRAY, status integer, type ARRAY, users ARRAY, addressIds ARRAY, slaFileIds ARRAY, contractFileIds ARRAY, slaNotes character varying, contractEndDate date, contractHelpdeskSupport integer, id bigint NOT NULL, description character varying, guid uuid NOT NULL, duration integer, startDate date, endDate date, projectManager bigint, genericAttributes jsonb, collaterals jsonb, contractStartDate date);
### 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 NULL, clientType integer, projectId integer NOT NULL, id integer NOT NULL, toTime integer, fromTime integer, days ARRAY, updatedBy integer, updatedAt timestamp without time zone, createdBy bigint);
### 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 NOT NULL, id bigint NOT NULL, ipAddress character varying(200), comment text NOT NULL, entityName character varying(400), requestId uuid);
### 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 NOT NULL);
### 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 NULL, jobId character varying NOT NULL, name character varying NOT NULL, executedDate timestamp without time zone, description character varying, emailOnError ARRAY, action jsonb, stopOnError boolean, retryConfig jsonb);
### 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, expiresIn timestamp without time zone, entityId bigint);
### 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 jsonb, entityName character varying(50), systemName character varying(50) NOT NULL, id integer NOT NULL, isRequired boolean NOT NULL, prefix character varying, parentId integer, type integer, pictureId bigint, createdBy bigint NOT NULL, icon character varying, colour character varying, allowFiltering boolean);
### 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 NULL, id bigint NOT NULL, userId bigint, dmlTimestamp timestamp without time zone NOT NULL, entityId bigint NOT NULL, data jsonb);
### 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 varying NOT NULL, logLevel character varying(50) NOT NULL, payload json, project character varying(500), id bigint NOT NULL, userId bigint, createdAt timestamp without time zone NOT NULL);
### 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, entityId bigint NOT NULL, entity character varying(100) NOT NULL);
### 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 zone NOT NULL, message character varying(5000) NOT NULL, logLevel character varying(50) NOT NULL, ipAddress character varying(200), path character varying(10000), action character varying(500), serviceName character varying(1000), requestId character varying(1000));
### 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 zone, updatedBy bigint, createdAt timestamp without time zone, createdBy bigint, viewedBy ARRAY, entityId bigint NOT NULL, dateSend timestamp without time zone, subject character varying, body character varying, emailRecepient character varying, url character varying, entityName character varying(300) NOT NULL, type ARRAY, category character varying);
### 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, userId bigint NOT NULL, type integer, expiresAt timestamp without time zone NOT NULL);
### 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 varying NOT NULL, code integer NOT NULL);
### 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 character varying(100) NOT NULL);
### 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 character varying(50) NOT NULL, description character varying(50) NOT NULL);
### 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 varying NOT NULL, id bigint NOT NULL);
### 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 character varying NOT NULL, createdAt timestamp without time zone, message character varying, reqResponse character varying, serviceName character varying, requestId character varying NOT NULL, project character varying, queryParams character varying, path character varying, status integer, userId bigint, headers character varying);
### 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, settings jsonb, socialAuthId character varying(100), identificationType integer, isBlocked boolean, resetPasswordToken character varying(2000), verifyEmailToken character varying(2000), createdAt timestamp without time zone NOT NULL, registrationType character varying(20) NOT NULL, pinsalt character varying, pin character varying, code character varying, passwordSalt character varying(100), phoneIsVerified boolean, isDeleted boolean NOT NULL, firstName character varying NOT NULL, isVerified boolean NOT NULL, id bigint NOT NULL, email character varying(100) NOT NULL, password character varying(100), createdBy bigint, identificationValue character varying, phone integer, retries bigint, status 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 character varying, userId bigint NOT NULL, createdAt timestamp without time zone NOT NULL, fcmToken character varying(2000));
### 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_name name, coord_dimension integer);
### 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_column name, f_table_name name, f_table_catalog character varying(256));
### 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 character varying(256), auth_srid integer);
### 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 zone, questionsAnswers jsonb, genericAttributes jsonb, questionGroupId integer, finishedAt timestamp without time zone, userId bigint);
### 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, description character varying, status integer, order real, genericAttributes jsonb, questionsGroupId integer, updatedAt timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone, createdBy bigint NOT NULL, level integer, type integer, fileIds ARRAY, guid uuid NOT NULL);
### Input: List questions with points greater than 5. ### Response:
SELECT * FROM quizes.Questions WHERE points > 5;
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
84