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 rulesengine.DummyTable (createdAt timestamp without time zone NOT NULL, id bigint NOT NULL, beneficiaryΒankName character varying, beneficiaryAccount character varying, orderingAccount character varying, accountingBankName character varying, guid uuid NOT NULL, createdBy bigint, type integer, amount integer);
### Input: List dummy table records with amount less than 500. ### Response:
SELECT * FROM rulesengine.DummyTable WHERE amount < 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 rulesengine.EntityFieldsMapping (guid uuid NOT NULL, entityDescription character varying, type integer, schema character varying, fieldName character varying(200), entityName character varying(200), fieldDescription character varying, id integer NOT NULL);
### Input: Fetch entity fields mapping where type is 2. ### Response:
SELECT * FROM rulesengine.EntityFieldsMapping WHERE type = 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 rulesengine.Events (guid uuid NOT NULL, rulesHit ARRAY, message character varying, sanctionsHit jsonb, createdBy bigint, entityName character varying NOT NULL, updatedBy bigint, notes character varying(20000), entityId bigint, updatedAt timestamp without time zone, totalScore integer, id bigint NOT NULL, inputData jsonb NOT NULL, genericAttributes jsonb, status integer NOT NULL, createdAt timestamp without time zone NOT NULL);
### Input: List events with totalScore equal to 100. ### Response:
SELECT * FROM rulesengine.Events WHERE totalScore = 100;
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 rulesengine.Rules (state integer, list jsonb, numberOfHeats integer, updatedAt timestamp without time zone, uuid uuid NOT NULL, createdAt timestamp without time zone, createdBy bigint, id integer NOT NULL, data jsonb, status integer, type integer, action integer, name character varying(800), score double precision, updatedBy bigint);
### Input: Select rules with score greater than 50. ### Response:
SELECT * FROM rulesengine.Rules WHERE score > 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 schedule.Schedule (entityId bigint, startDate timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone, startTime time without time zone, guid uuid NOT NULL, id bigint NOT NULL, entityName character varying, title character varying, description character varying, endTime time without time zone, assignedUsers ARRAY, type integer NOT NULL, status integer NOT NULL, fileIds ARRAY, createdBy bigint, category integer, updatedAt timestamp without time zone, endDate timestamp without time zone);
### Input: List schedules starting after '2023-07-01'. ### Response:
SELECT * FROM schedule.Schedule WHERE startDate > '2023-07-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 tmp.AccountOwners (updatedAt timestamp without time zone, genericAttributes jsonb, createdAt timestamp without time zone NOT NULL, createdBy bigint, type integer NOT NULL, status integer NOT NULL, updatedBy bigint, name character varying, guid uuid NOT NULL, id bigint NOT NULL);
### Input: Fetch temporary account owners with status 1. ### Response:
SELECT * FROM tmp.AccountOwners 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 tmp.Accounts (updatedBy bigint, type integer, genericAttributes jsonb, accountId bigint NOT NULL, updatedAt timestamp without time zone, debitLimit integer, createdAt timestamp without time zone, guid uuid NOT NULL, balance double precision NOT NULL, accownerId bigint NOT NULL, status integer, id bigint NOT NULL, code character(20) NOT NULL, iban character(40), ccy character(3) NOT NULL, name character varying, createdBy bigint);
### Input: Retrieve temporary accounts with balance less than 1000. ### Response:
SELECT * FROM tmp.Accounts WHERE balance < 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 tmp.Language (code character varying(5) NOT NULL, name character varying(100) NOT NULL, id bigint NOT NULL);
### Input: List temporary languages with code 'EN'. ### Response:
SELECT * FROM tmp.Language WHERE code = 'EN';
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 tmp.ObjectLocation (createdAt timestamp without time zone, updatedAt timestamp without time zone, id bigint NOT NULL, geojson USER-DEFINED, updatedBy bigint, createdBy bigint);
### Input: Fetch object locations created by user 123. ### Response:
SELECT * FROM tmp.ObjectLocation WHERE createdBy = 123;
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 tmp.Payments (paymentDesc character varying, createdBy bigint, paymentAmount numeric NOT NULL, paymentDate timestamp without time zone NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, paymentId bigint NOT NULL, id bigint NOT NULL, createdAt timestamp without time zone);
### Input: List temporary payments with amount greater than 500. ### Response:
SELECT * FROM tmp.Payments WHERE paymentAmount > 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 tmp.User (isVerified boolean NOT NULL, id bigint NOT NULL, email character varying(50) NOT NULL, password character varying(100), createdAt timestamp without time zone NOT NULL, createdBy bigint, passwordSalt character varying(100), firstName character varying(50) NOT NULL, lastName character varying(50) NOT NULL, uuid uuid NOT NULL, genericAttributes jsonb, language integer, identificationType integer, userId bigint NOT NULL, identificationValue character varying, updatedAt timestamp without time zone, resetPasswordToken character varying(2000), updatedBy bigint, verifyEmailToken character varying(2000), registrationType character varying(20) NOT NULL, socialAuthId character varying(100), isDeleted boolean NOT NULL);
### Input: Retrieve temporary users who are not deleted. ### Response:
SELECT * FROM tmp.User WHERE 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 tmp.UserPayments (userId bigint NOT NULL, id bigint NOT NULL, paymentId bigint NOT NULL, createdAt timestamp without time zone, createdBy bigint, updatedAt timestamp without time zone, updatedBy bigint);
### Input: List user payments for userId 202. ### Response:
SELECT * FROM tmp.UserPayments WHERE userId = 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 tmp.Users (updatedBy bigint, firstName character varying NOT NULL, updatedAt timestamp without time zone, createdAt timestamp without time zone, lastName character varying, id bigint NOT NULL, isVerified boolean, userId bigint NOT NULL, createdBy bigint, currentLocation USER-DEFINED);
### Input: Fetch temporary users with first name 'John'. ### Response:
SELECT * FROM tmp.Users WHERE firstName = 'John';
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 workflow.KnowledgeBase (guid uuid NOT NULL, title character varying NOT NULL, numberOfViews integer NOT NULL, createdAt timestamp without time zone NOT NULL, description character varying NOT NULL, createdBy integer NOT NULL, status integer NOT NULL, favorites boolean NOT NULL, parent integer, id integer NOT NULL);
### Input: List knowledge base articles with more than 100 views. ### Response:
SELECT * FROM workflow.KnowledgeBase WHERE numberOfViews > 100;
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 workflow.Workflow (id bigint NOT NULL, updatedAt timestamp without time zone, guid uuid NOT NULL, comment character varying(10000), type bigint NOT NULL, status bigint NOT NULL, genericAttributes jsonb, groupId bigint, dateEnd timestamp without time zone, dateStart timestamp without time zone, report ARRAY, assigned ARRAY, data jsonb, createdAt timestamp without time zone NOT NULL, updatedBy bigint, createdBy bigint NOT NULL, isDeleted boolean NOT NULL);
### Input: Fetch workflows that are not deleted. ### Response:
SELECT * FROM workflow.Workflow WHERE 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 workflow.WorkflowComment (createdAt timestamp without time zone NOT NULL, guid uuid NOT NULL, createdBy bigint NOT NULL, workflowId bigint NOT NULL, comment character varying NOT NULL, id bigint NOT NULL);
### Input: List workflow comments for workflowId 5000. ### Response:
SELECT * FROM workflow.WorkflowComment WHERE workflowId = 5000;
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 workflow.WorkflowDetail (workflowId bigint NOT NULL, id bigint NOT NULL);
### Input: Fetch workflow details for workflowId 3000. ### Response:
SELECT * FROM workflow.WorkflowDetail WHERE workflowId = 3000;
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 workflow.WorkflowHistory (createdBy bigint NOT NULL, comment character varying(10000), dateStart timestamp without time zone, id bigint NOT NULL, dateEnd timestamp without time zone, groupId bigint, createdAt timestamp without time zone NOT NULL, workflowId bigint NOT NULL, status bigint NOT NULL, assigned ARRAY, report ARRAY, data jsonb);
### Input: List workflow history entries with status 3. ### Response:
SELECT * FROM workflow.WorkflowHistory WHERE status = 3;
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 workflow.WorkflowPrivilege (id bigint NOT NULL, type bigint NOT NULL, status bigint NOT NULL, canView ARRAY NOT NULL, canEdit ARRAY NOT NULL);
### Input: Fetch workflow privileges with type 2. ### Response:
SELECT * FROM workflow.WorkflowPrivilege WHERE type = 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 workflow.WorkflowPrivilegeRoleMapping (role ARRAY NOT NULL, disabled ARRAY, id bigint NOT NULL, workflowPrivilegeId bigint NOT NULL, hidden ARRAY);
### Input: Retrieve privilege role mappings for workflowPrivilegeId 700. ### Response:
SELECT * FROM workflow.WorkflowPrivilegeRoleMapping WHERE workflowPrivilegeId = 700;
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 workflow.WorkflowStatus (id bigint NOT NULL, name character varying(100) NOT NULL);
### Input: List workflow statuses. ### Response:
SELECT * FROM workflow.WorkflowStatus;
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 workflow.WorkflowTransition (nextStatus bigint NOT NULL, name character varying(500), type integer NOT NULL, id bigint NOT NULL, genericEmail integer, canPerform ARRAY NOT NULL, status bigint NOT NULL);
### Input: Select workflow transitions with type 1. ### Response:
SELECT * FROM workflow.WorkflowTransition WHERE type = 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 workflow.WorkflowTransitionRoleMapping (condition jsonb, role ARRAY NOT NULL, id bigint NOT NULL, rules jsonb, workflowTransitionId bigint NOT NULL);
### Input: Fetch workflow transition role mappings where condition is not null. ### Response:
SELECT * FROM workflow.WorkflowTransitionRoleMapping WHERE condition IS NOT 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 workflow.WorkflowType (name character varying(500) NOT NULL, description character varying, type integer, id bigint NOT NULL, uiSchema json NOT NULL, finalStatus ARRAY NOT NULL, schema json NOT NULL, canCreate ARRAY NOT NULL, initialStatus bigint NOT NULL, code character varying(4) NOT NULL);
### Input: List workflow types with initialStatus equal to 1. ### Response:
SELECT * FROM workflow.WorkflowType WHERE initialStatus = 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 reporting.Reports (preCommand jsonb, filters jsonb, name character varying NOT NULL, status integer NOT NULL, command jsonb, genericAttributes jsonb, createdAt timestamp without time zone, id integer NOT NULL, guid uuid NOT NULL, createdBy bigint, sharedUserid ARRAY, sharedRoles ARRAY, category integer, postCommand jsonb);
### Input: Fetch reports with status 1. ### Response:
SELECT * FROM reporting.Reports 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 rulesengine.DummyTable (createdAt timestamp without time zone NOT NULL, id bigint NOT NULL, beneficiaryΒankName character varying, beneficiaryAccount character varying, orderingAccount character varying, accountingBankName character varying, guid uuid NOT NULL, createdBy bigint, type integer, amount integer);
### Input: Find dummy records created before '2023-05-01'. ### Response:
SELECT * FROM rulesengine.DummyTable WHERE createdAt < '2023-05-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 rulesengine.EntityFieldsMapping (guid uuid NOT NULL, entityDescription character varying, type integer, schema character varying, fieldName character varying(200), entityName character varying(200), fieldDescription character varying, id integer NOT NULL);
### Input: Fetch mappings where fieldName like '%id%'. ### Response:
SELECT * FROM rulesengine.EntityFieldsMapping WHERE fieldName ILIKE '%id%';
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 rulesengine.Events (guid uuid NOT NULL, rulesHit ARRAY, message character varying, sanctionsHit jsonb, createdBy bigint, entityName character varying NOT NULL, updatedBy bigint, notes character varying(20000), entityId bigint, updatedAt timestamp without time zone, totalScore integer, id bigint NOT NULL, inputData jsonb NOT NULL, genericAttributes jsonb, status integer NOT NULL, createdAt timestamp without time zone NOT NULL);
### Input: Retrieve events where status is 0. ### Response:
SELECT * FROM rulesengine.Events WHERE status = 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 rulesengine.Rules (state integer, list jsonb, numberOfHeats integer, updatedAt timestamp without time zone, uuid uuid NOT NULL, createdAt timestamp without time zone, createdBy bigint, id integer NOT NULL, data jsonb, status integer, type integer, action integer, name character varying(800), score double precision, updatedBy bigint);
### Input: List rules with state equal to 1. ### Response:
SELECT * FROM rulesengine.Rules WHERE state = 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 schedule.Schedule (entityId bigint, startDate timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone, startTime time without time zone, guid uuid NOT NULL, id bigint NOT NULL, entityName character varying, title character varying, description character varying, endTime time without time zone, assignedUsers ARRAY, type integer NOT NULL, status integer NOT NULL, fileIds ARRAY, createdBy bigint, category integer, updatedAt timestamp without time zone, endDate timestamp without time zone);
### Input: Get schedules for entityName 'Meeting'. ### Response:
SELECT * FROM schedule.Schedule WHERE entityName = 'Meeting';
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 tmp.AccountOwners (updatedAt timestamp without time zone, genericAttributes jsonb, createdAt timestamp without time zone NOT NULL, createdBy bigint, type integer NOT NULL, status integer NOT NULL, updatedBy bigint, name character varying, guid uuid NOT NULL, id bigint NOT NULL);
### Input: Select temporary account owners created by user 111. ### Response:
SELECT * FROM tmp.AccountOwners WHERE createdBy = 111;
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 tmp.Accounts (updatedBy bigint, type integer, genericAttributes jsonb, accountId bigint NOT NULL, updatedAt timestamp without time zone, debitLimit integer, createdAt timestamp without time zone, guid uuid NOT NULL, balance double precision NOT NULL, accownerId bigint NOT NULL, status integer, id bigint NOT NULL, code character(20) NOT NULL, iban character(40), ccy character(3) NOT NULL, name character varying, createdBy bigint);
### Input: Retrieve temporary accounts with debitLimit greater than 500. ### Response:
SELECT * FROM tmp.Accounts WHERE debitLimit > 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 tmp.Language (code character varying(5) NOT NULL, name character varying(100) NOT NULL, id bigint NOT NULL);
### Input: Fetch languages with name 'Spanish'. ### Response:
SELECT * FROM tmp.Language WHERE name = 'Spanish';
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 tmp.ObjectLocation (createdAt timestamp without time zone, updatedAt timestamp without time zone, id bigint NOT NULL, geojson USER-DEFINED, updatedBy bigint, createdBy bigint);
### Input: List object locations updated after '2023-01-01'. ### Response:
SELECT * FROM tmp.ObjectLocation WHERE updatedAt > '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 tmp.Payments (paymentDesc character varying, createdBy bigint, paymentAmount numeric NOT NULL, paymentDate timestamp without time zone NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, paymentId bigint NOT NULL, id bigint NOT NULL, createdAt timestamp without time zone);
### Input: Find temporary payments made on '2023-04-01'. ### Response:
SELECT * FROM tmp.Payments WHERE paymentDate = '2023-04-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 tmp.User (isVerified boolean NOT NULL, id bigint NOT NULL, email character varying(50) NOT NULL, password character varying(100), createdAt timestamp without time zone NOT NULL, createdBy bigint, passwordSalt character varying(100), firstName character varying(50) NOT NULL, lastName character varying(50) NOT NULL, uuid uuid NOT NULL, genericAttributes jsonb, language integer, identificationType integer, userId bigint NOT NULL, identificationValue character varying, updatedAt timestamp without time zone, resetPasswordToken character varying(2000), updatedBy bigint, verifyEmailToken character varying(2000), registrationType character varying(20) NOT NULL, socialAuthId character varying(100), isDeleted boolean NOT NULL);
### Input: List temporary users with email ending in 'gmail.com'. ### Response:
SELECT * FROM tmp.User WHERE email ILIKE '%gmail.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 tmp.UserPayments (userId bigint NOT NULL, id bigint NOT NULL, paymentId bigint NOT NULL, createdAt timestamp without time zone, createdBy bigint, updatedAt timestamp without time zone, updatedBy bigint);
### Input: Get temporary user payments created after '2022-01-01'. ### Response:
SELECT * FROM tmp.UserPayments WHERE createdAt > '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 tmp.Users (updatedBy bigint, firstName character varying NOT NULL, updatedAt timestamp without time zone, createdAt timestamp without time zone, lastName character varying, id bigint NOT NULL, isVerified boolean, userId bigint NOT NULL, createdBy bigint, currentLocation USER-DEFINED);
### Input: Fetch temporary users where isVerified is false. ### Response:
SELECT * FROM tmp.Users WHERE isVerified = 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 workflow.KnowledgeBase (guid uuid NOT NULL, title character varying NOT NULL, numberOfViews integer NOT NULL, createdAt timestamp without time zone NOT NULL, description character varying NOT NULL, createdBy integer NOT NULL, status integer NOT NULL, favorites boolean NOT NULL, parent integer, id integer NOT NULL);
### Input: Retrieve knowledge base articles with title containing 'guide'. ### Response:
SELECT * FROM workflow.KnowledgeBase WHERE title ILIKE '%guide%';
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 workflow.Workflow (id bigint NOT NULL, updatedAt timestamp without time zone, guid uuid NOT NULL, comment character varying(10000), type bigint NOT NULL, status bigint NOT NULL, genericAttributes jsonb, groupId bigint, dateEnd timestamp without time zone, dateStart timestamp without time zone, report ARRAY, assigned ARRAY, data jsonb, createdAt timestamp without time zone NOT NULL, updatedBy bigint, createdBy bigint NOT NULL, isDeleted boolean NOT NULL);
### Input: Select workflows created before '2023-03-01'. ### Response:
SELECT * FROM workflow.Workflow WHERE createdAt < '2023-03-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 workflow.WorkflowComment (createdAt timestamp without time zone NOT NULL, guid uuid NOT NULL, createdBy bigint NOT NULL, workflowId bigint NOT NULL, comment character varying NOT NULL, id bigint NOT NULL);
### Input: List workflow comments created by user 222 in workflows. ### Response:
SELECT * FROM workflow.WorkflowComment WHERE createdBy = 222;
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 workflow.WorkflowDetail (workflowId bigint NOT NULL, id bigint NOT NULL);
### Input: Retrieve workflow details for a specific detail id 150. ### Response:
SELECT * FROM workflow.WorkflowDetail WHERE id = 150;
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 workflow.WorkflowHistory (createdBy bigint NOT NULL, comment character varying(10000), dateStart timestamp without time zone, id bigint NOT NULL, dateEnd timestamp without time zone, groupId bigint, createdAt timestamp without time zone NOT NULL, workflowId bigint NOT NULL, status bigint NOT NULL, assigned ARRAY, report ARRAY, data jsonb);
### Input: Select workflow history entries created before '2022-12-31'. ### Response:
SELECT * FROM workflow.WorkflowHistory WHERE createdAt < '2022-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 workflow.WorkflowPrivilege (id bigint NOT NULL, type bigint NOT NULL, status bigint NOT NULL, canView ARRAY NOT NULL, canEdit ARRAY NOT NULL);
### Input: Get workflow privileges with status 0. ### Response:
SELECT * FROM workflow.WorkflowPrivilege WHERE status = 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 workflow.WorkflowPrivilegeRoleMapping (role ARRAY NOT NULL, disabled ARRAY, id bigint NOT NULL, workflowPrivilegeId bigint NOT NULL, hidden ARRAY);
### Input: List workflow privilege role mappings where role array contains 'admin'. ### Response:
SELECT * FROM workflow.WorkflowPrivilegeRoleMapping WHERE 'admin' = ANY(role);
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 workflow.WorkflowStatus (id bigint NOT NULL, name character varying(100) NOT NULL);
### Input: Get workflow status with id 3. ### Response:
SELECT * FROM workflow.WorkflowStatus WHERE id = 3;
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 workflow.WorkflowTransition (nextStatus bigint NOT NULL, name character varying(500), type integer NOT NULL, id bigint NOT NULL, genericEmail integer, canPerform ARRAY NOT NULL, status bigint NOT NULL);
### Input: Retrieve transitions where nextStatus equals 2. ### Response:
SELECT * FROM workflow.WorkflowTransition WHERE nextStatus = 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 workflow.WorkflowTransitionRoleMapping (condition jsonb, role ARRAY NOT NULL, id bigint NOT NULL, rules jsonb, workflowTransitionId bigint NOT NULL);
### Input: Fetch workflow transition role mappings where rules contains 'approve'. ### Response:
SELECT * FROM workflow.WorkflowTransitionRoleMapping WHERE rules::text ILIKE '%approve%';
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 workflow.WorkflowType (name character varying(500) NOT NULL, description character varying, type integer, id bigint NOT NULL, uiSchema json NOT NULL, finalStatus ARRAY NOT NULL, schema json NOT NULL, canCreate ARRAY NOT NULL, initialStatus bigint NOT NULL, code character varying(4) NOT NULL);
### Input: List workflow types with code 'WT01'. ### Response:
SELECT * FROM workflow.WorkflowType WHERE code = 'WT01';
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 reporting.Reports (preCommand jsonb, filters jsonb, name character varying NOT NULL, status integer NOT NULL, command jsonb, genericAttributes jsonb, createdAt timestamp without time zone, id integer NOT NULL, guid uuid NOT NULL, createdBy bigint, sharedUserid ARRAY, sharedRoles ARRAY, category integer, postCommand jsonb);
### Input: Get reports created by user 333. ### Response:
SELECT * FROM reporting.Reports WHERE createdBy = 333;
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 rulesengine.DummyTable (createdAt timestamp without time zone NOT NULL, id bigint NOT NULL, beneficiaryΒankName character varying, beneficiaryAccount character varying, orderingAccount character varying, accountingBankName character varying, guid uuid NOT NULL, createdBy bigint, type integer, amount integer);
### Input: List dummy records where type is 3. ### Response:
SELECT * FROM rulesengine.DummyTable WHERE type = 3;
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 rulesengine.EntityFieldsMapping (guid uuid NOT NULL, entityDescription character varying, type integer, schema character varying, fieldName character varying(200), entityName character varying(200), fieldDescription character varying, id integer NOT NULL);
### Input: Retrieve entity fields mapping where schema is 'public'. ### Response:
SELECT * FROM rulesengine.EntityFieldsMapping WHERE 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 rulesengine.Events (guid uuid NOT NULL, rulesHit ARRAY, message character varying, sanctionsHit jsonb, createdBy bigint, entityName character varying NOT NULL, updatedBy bigint, notes character varying(20000), entityId bigint, updatedAt timestamp without time zone, totalScore integer, id bigint NOT NULL, inputData jsonb NOT NULL, genericAttributes jsonb, status integer NOT NULL, createdAt timestamp without time zone NOT NULL);
### Input: Select events with message containing 'failed'. ### Response:
SELECT * FROM rulesengine.Events WHERE message ILIKE '%failed%';
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 rulesengine.Rules (state integer, list jsonb, numberOfHeats integer, updatedAt timestamp without time zone, uuid uuid NOT NULL, createdAt timestamp without time zone, createdBy bigint, id integer NOT NULL, data jsonb, status integer, type integer, action integer, name character varying(800), score double precision, updatedBy bigint);
### Input: List rules with numberOfHeats greater than 2. ### Response:
SELECT * FROM rulesengine.Rules WHERE numberOfHeats > 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 schedule.Schedule (entityId bigint, startDate timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone, startTime time without time zone, guid uuid NOT NULL, id bigint NOT NULL, entityName character varying, title character varying, description character varying, endTime time without time zone, assignedUsers ARRAY, type integer NOT NULL, status integer NOT NULL, fileIds ARRAY, createdBy bigint, category integer, updatedAt timestamp without time zone, endDate timestamp without time zone);
### Input: Fetch schedules with title 'Review Meeting'. ### Response:
SELECT * FROM schedule.Schedule WHERE title = 'Review Meeting';
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 tmp.AccountOwners (updatedAt timestamp without time zone, genericAttributes jsonb, createdAt timestamp without time zone NOT NULL, createdBy bigint, type integer NOT NULL, status integer NOT NULL, updatedBy bigint, name character varying, guid uuid NOT NULL, id bigint NOT NULL);
### Input: Get temporary account owners with type 2. ### Response:
SELECT * FROM tmp.AccountOwners WHERE type = 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 tmp.Accounts (updatedBy bigint, type integer, genericAttributes jsonb, accountId bigint NOT NULL, updatedAt timestamp without time zone, debitLimit integer, createdAt timestamp without time zone, guid uuid NOT NULL, balance double precision NOT NULL, accownerId bigint NOT NULL, status integer, id bigint NOT NULL, code character(20) NOT NULL, iban character(40), ccy character(3) NOT NULL, name character varying, createdBy bigint);
### Input: Select temporary accounts with code starting with 'AC'. ### Response:
SELECT * FROM tmp.Accounts WHERE code LIKE 'AC%';
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 tmp.Language (code character varying(5) NOT NULL, name character varying(100) NOT NULL, id bigint NOT NULL);
### Input: List temporary languages with code 'FR'. ### Response:
SELECT * FROM tmp.Language WHERE code = 'FR';
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 tmp.ObjectLocation (createdAt timestamp without time zone, updatedAt timestamp without time zone, id bigint NOT NULL, geojson USER-DEFINED, updatedBy bigint, createdBy bigint);
### Input: Retrieve object locations where updatedBy is not null. ### Response:
SELECT * FROM tmp.ObjectLocation WHERE updatedBy IS NOT 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 tmp.Payments (paymentDesc character varying, createdBy bigint, paymentAmount numeric NOT NULL, paymentDate timestamp without time zone NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, paymentId bigint NOT NULL, id bigint NOT NULL, createdAt timestamp without time zone);
### Input: Fetch temporary payments with paymentDesc containing 'invoice'. ### Response:
SELECT * FROM tmp.Payments WHERE paymentDesc ILIKE '%invoice%';
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 tmp.User (isVerified boolean NOT NULL, id bigint NOT NULL, email character varying(50) NOT NULL, password character varying(100), createdAt timestamp without time zone NOT NULL, createdBy bigint, passwordSalt character varying(100), firstName character varying(50) NOT NULL, lastName character varying(50) NOT NULL, uuid uuid NOT NULL, genericAttributes jsonb, language integer, identificationType integer, userId bigint NOT NULL, identificationValue character varying, updatedAt timestamp without time zone, resetPasswordToken character varying(2000), updatedBy bigint, verifyEmailToken character varying(2000), registrationType character varying(20) NOT NULL, socialAuthId character varying(100), isDeleted boolean NOT NULL);
### Input: List temporary users with firstName 'Alice'. ### Response:
SELECT * FROM tmp.User WHERE firstName = 'Alice';
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 tmp.UserPayments (userId bigint NOT NULL, id bigint NOT NULL, paymentId bigint NOT NULL, createdAt timestamp without time zone, createdBy bigint, updatedAt timestamp without time zone, updatedBy bigint);
### Input: Select temporary user payments with paymentId 4000. ### Response:
SELECT * FROM tmp.UserPayments WHERE paymentId = 4000;
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 tmp.Users (updatedBy bigint, firstName character varying NOT NULL, updatedAt timestamp without time zone, createdAt timestamp without time zone, lastName character varying, id bigint NOT NULL, isVerified boolean, userId bigint NOT NULL, createdBy bigint, currentLocation USER-DEFINED);
### Input: Get temporary users with lastName 'Smith'. ### Response:
SELECT * FROM tmp.Users WHERE lastName = 'Smith';
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 workflow.KnowledgeBase (guid uuid NOT NULL, title character varying NOT NULL, numberOfViews integer NOT NULL, createdAt timestamp without time zone NOT NULL, description character varying NOT NULL, createdBy integer NOT NULL, status integer NOT NULL, favorites boolean NOT NULL, parent integer, id integer NOT NULL);
### Input: Retrieve knowledge base articles created after '2023-01-01'. ### Response:
SELECT * FROM workflow.KnowledgeBase 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 workflow.Workflow (id bigint NOT NULL, updatedAt timestamp without time zone, guid uuid NOT NULL, comment character varying(10000), type bigint NOT NULL, status bigint NOT NULL, genericAttributes jsonb, groupId bigint, dateEnd timestamp without time zone, dateStart timestamp without time zone, report ARRAY, assigned ARRAY, data jsonb, createdAt timestamp without time zone NOT NULL, updatedBy bigint, createdBy bigint NOT NULL, isDeleted boolean NOT NULL);
### Input: List workflows updated by user 444. ### Response:
SELECT * FROM workflow.Workflow WHERE updatedBy = 444;
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 workflow.WorkflowComment (createdAt timestamp without time zone NOT NULL, guid uuid NOT NULL, createdBy bigint NOT NULL, workflowId bigint NOT NULL, comment character varying NOT NULL, id bigint NOT NULL);
### Input: Fetch workflow comments for workflows with id 200. ### Response:
SELECT * FROM workflow.WorkflowComment WHERE workflowId = 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 workflow.WorkflowDetail (workflowId bigint NOT NULL, id bigint NOT NULL);
### Input: Retrieve workflow details for workflow with id 100. ### Response:
SELECT * FROM workflow.WorkflowDetail WHERE workflowId = 100;
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 workflow.WorkflowHistory (createdBy bigint NOT NULL, comment character varying(10000), dateStart timestamp without time zone, id bigint NOT NULL, dateEnd timestamp without time zone, groupId bigint, createdAt timestamp without time zone NOT NULL, workflowId bigint NOT NULL, status bigint NOT NULL, assigned ARRAY, report ARRAY, data jsonb);
### Input: Select workflow history with data containing 'approved'. ### Response:
SELECT * FROM workflow.WorkflowHistory WHERE data::text ILIKE '%approved%';
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 workflow.WorkflowPrivilege (id bigint NOT NULL, type bigint NOT NULL, status bigint NOT NULL, canView ARRAY NOT NULL, canEdit ARRAY NOT NULL);
### Input: List workflow privileges with type 1. ### Response:
SELECT * FROM workflow.WorkflowPrivilege WHERE type = 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 workflow.WorkflowPrivilegeRoleMapping (role ARRAY NOT NULL, disabled ARRAY, id bigint NOT NULL, workflowPrivilegeId bigint NOT NULL, hidden ARRAY);
### Input: List workflow privilege role mappings with disabled not null. ### Response:
SELECT * FROM workflow.WorkflowPrivilegeRoleMapping WHERE disabled IS NOT 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 workflow.WorkflowStatus (id bigint NOT NULL, name character varying(100) NOT NULL);
### Input: Fetch workflow status where name is 'Completed'. ### Response:
SELECT * FROM workflow.WorkflowStatus WHERE name = 'Completed';
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 workflow.WorkflowTransition (nextStatus bigint NOT NULL, name character varying(500), type integer NOT NULL, id bigint NOT NULL, genericEmail integer, canPerform ARRAY NOT NULL, status bigint NOT NULL);
### Input: Select workflow transitions with canPerform array length greater than 1. ### Response:
SELECT * FROM workflow.WorkflowTransition WHERE array_length(canPerform, 1) > 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 workflow.WorkflowTransitionRoleMapping (condition jsonb, role ARRAY NOT NULL, id bigint NOT NULL, rules jsonb, workflowTransitionId bigint NOT NULL);
### Input: Retrieve workflow transition role mappings where hidden is not empty. ### Response:
SELECT * FROM workflow.WorkflowTransitionRoleMapping WHERE hidden IS NOT NULL AND array_length(hidden,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 workflow.WorkflowType (name character varying(500) NOT NULL, description character varying, type integer, id bigint NOT NULL, uiSchema json NOT NULL, finalStatus ARRAY NOT NULL, schema json NOT NULL, canCreate ARRAY NOT NULL, initialStatus bigint NOT NULL, code character varying(4) NOT NULL);
### Input: List workflow types with meta information in uiSchema containing 'form'. ### Response:
SELECT * FROM workflow.WorkflowType WHERE uiSchema::text ILIKE '%form%';
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 reporting.Reports (preCommand jsonb, filters jsonb, name character varying NOT NULL, status integer NOT NULL, command jsonb, genericAttributes jsonb, createdAt timestamp without time zone, id integer NOT NULL, guid uuid NOT NULL, createdBy bigint, sharedUserid ARRAY, sharedRoles ARRAY, category integer, postCommand jsonb);
### Input: Get reports with category equal to 2. ### Response:
SELECT * FROM reporting.Reports WHERE category = 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 rulesengine.DummyTable (createdAt timestamp without time zone NOT NULL, id bigint NOT NULL, beneficiaryΒankName character varying, beneficiaryAccount character varying, orderingAccount character varying, accountingBankName character varying, guid uuid NOT NULL, createdBy bigint, type integer, amount integer);
### Input: List dummy records where beneficiaryAccount is not null. ### Response:
SELECT * FROM rulesengine.DummyTable WHERE beneficiaryAccount IS NOT 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 rulesengine.EntityFieldsMapping (guid uuid NOT NULL, entityDescription character varying, type integer, schema character varying, fieldName character varying(200), entityName character varying(200), fieldDescription character varying, id integer NOT NULL);
### Input: Fetch entity fields mapping where entityName = 'Order'. ### Response:
SELECT * FROM rulesengine.EntityFieldsMapping WHERE entityName = 'Order';
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 rulesengine.Events (guid uuid NOT NULL, rulesHit ARRAY, message character varying, sanctionsHit jsonb, createdBy bigint, entityName character varying NOT NULL, updatedBy bigint, notes character varying(20000), entityId bigint, updatedAt timestamp without time zone, totalScore integer, id bigint NOT NULL, inputData jsonb NOT NULL, genericAttributes jsonb, status integer NOT NULL, createdAt timestamp without time zone NOT NULL);
### Input: Retrieve events with sanctionsHit not empty. ### Response:
SELECT * FROM rulesengine.Events WHERE sanctionsHit IS NOT 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 rulesengine.Rules (state integer, list jsonb, numberOfHeats integer, updatedAt timestamp without time zone, uuid uuid NOT NULL, createdAt timestamp without time zone, createdBy bigint, id integer NOT NULL, data jsonb, status integer, type integer, action integer, name character varying(800), score double precision, updatedBy bigint);
### Input: Select rules with action equal to 0. ### Response:
SELECT * FROM rulesengine.Rules WHERE action = 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 schedule.Schedule (entityId bigint, startDate timestamp without time zone, updatedBy bigint, createdAt timestamp without time zone, startTime time without time zone, guid uuid NOT NULL, id bigint NOT NULL, entityName character varying, title character varying, description character varying, endTime time without time zone, assignedUsers ARRAY, type integer NOT NULL, status integer NOT NULL, fileIds ARRAY, createdBy bigint, category integer, updatedAt timestamp without time zone, endDate timestamp without time zone);
### Input: List schedules with assignedUsers containing userId 555. ### Response:
SELECT * FROM schedule.Schedule WHERE 555 = ANY(assignedUsers);
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 tmp.AccountOwners (updatedAt timestamp without time zone, genericAttributes jsonb, createdAt timestamp without time zone NOT NULL, createdBy bigint, type integer NOT NULL, status integer NOT NULL, updatedBy bigint, name character varying, guid uuid NOT NULL, id bigint NOT NULL);
### Input: Fetch temporary account owners with genericAttributes not null. ### Response:
SELECT * FROM tmp.AccountOwners WHERE genericAttributes IS NOT 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 tmp.Accounts (updatedBy bigint, type integer, genericAttributes jsonb, accountId bigint NOT NULL, updatedAt timestamp without time zone, debitLimit integer, createdAt timestamp without time zone, guid uuid NOT NULL, balance double precision NOT NULL, accownerId bigint NOT NULL, status integer, id bigint NOT NULL, code character(20) NOT NULL, iban character(40), ccy character(3) NOT NULL, name character varying, createdBy bigint);
### Input: Select temporary accounts with ccy 'USD'. ### Response:
SELECT * FROM tmp.Accounts WHERE ccy = 'USD';
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 tmp.Language (code character varying(5) NOT NULL, name character varying(100) NOT NULL, id bigint NOT NULL);
### Input: Retrieve temporary languages where name contains 'English'. ### Response:
SELECT * FROM tmp.Language WHERE name ILIKE '%English%';
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 tmp.ObjectLocation (createdAt timestamp without time zone, updatedAt timestamp without time zone, id bigint NOT NULL, geojson USER-DEFINED, updatedBy bigint, createdBy bigint);
### Input: List object locations created after '2023-02-01'. ### Response:
SELECT * FROM tmp.ObjectLocation WHERE createdAt > '2023-02-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 tmp.Payments (paymentDesc character varying, createdBy bigint, paymentAmount numeric NOT NULL, paymentDate timestamp without time zone NOT NULL, updatedAt timestamp without time zone, updatedBy bigint, paymentId bigint NOT NULL, id bigint NOT NULL, createdAt timestamp without time zone);
### Input: Get temporary payments where paymentAmount equals 1000. ### Response:
SELECT * FROM tmp.Payments WHERE paymentAmount = 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 tmp.User (isVerified boolean NOT NULL, id bigint NOT NULL, email character varying(50) NOT NULL, password character varying(100), createdAt timestamp without time zone NOT NULL, createdBy bigint, passwordSalt character varying(100), firstName character varying(50) NOT NULL, lastName character varying(50) NOT NULL, uuid uuid NOT NULL, genericAttributes jsonb, language integer, identificationType integer, userId bigint NOT NULL, identificationValue character varying, updatedAt timestamp without time zone, resetPasswordToken character varying(2000), updatedBy bigint, verifyEmailToken character varying(2000), registrationType character varying(20) NOT NULL, socialAuthId character varying(100), isDeleted boolean NOT NULL);
### Input: Select temporary users with socialAuthId not null. ### Response:
SELECT * FROM tmp.User WHERE socialAuthId IS NOT 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 tmp.UserPayments (userId bigint NOT NULL, id bigint NOT NULL, paymentId bigint NOT NULL, createdAt timestamp without time zone, createdBy bigint, updatedAt timestamp without time zone, updatedBy bigint);
### Input: Retrieve temporary user payments updated after '2023-05-01'. ### Response:
SELECT * FROM tmp.UserPayments WHERE updatedAt > '2023-05-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 tmp.Users (updatedBy bigint, firstName character varying NOT NULL, updatedAt timestamp without time zone, createdAt timestamp without time zone, lastName character varying, id bigint NOT NULL, isVerified boolean, userId bigint NOT NULL, createdBy bigint, currentLocation USER-DEFINED);
### Input: List temporary users with userId greater than 5000. ### Response:
SELECT * FROM tmp.Users WHERE userId > 5000;
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 workflow.KnowledgeBase (guid uuid NOT NULL, title character varying NOT NULL, numberOfViews integer NOT NULL, createdAt timestamp without time zone NOT NULL, description character varying NOT NULL, createdBy integer NOT NULL, status integer NOT NULL, favorites boolean NOT NULL, parent integer, id integer NOT NULL);
### Input: Fetch knowledge base articles with favorites set to true. ### Response:
SELECT * FROM workflow.KnowledgeBase WHERE favorites = 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 workflow.Workflow (id bigint NOT NULL, updatedAt timestamp without time zone, guid uuid NOT NULL, comment character varying(10000), type bigint NOT NULL, status bigint NOT NULL, genericAttributes jsonb, groupId bigint, dateEnd timestamp without time zone, dateStart timestamp without time zone, report ARRAY, assigned ARRAY, data jsonb, createdAt timestamp without time zone NOT NULL, updatedBy bigint, createdBy bigint NOT NULL, isDeleted boolean NOT NULL);
### Input: Retrieve workflows with comment containing 'urgent'. ### Response:
SELECT * FROM workflow.Workflow WHERE comment ILIKE '%urgent%';
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 workflow.WorkflowComment (createdAt timestamp without time zone NOT NULL, guid uuid NOT NULL, createdBy bigint NOT NULL, workflowId bigint NOT NULL, comment character varying NOT NULL, id bigint NOT NULL);
### Input: List workflow comments where comment length is greater than 50. ### Response:
SELECT * FROM workflow.WorkflowComment WHERE LENGTH(comment) > 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 workflow.WorkflowDetail (workflowId bigint NOT NULL, id bigint NOT NULL);
### Input: Fetch workflow details for a specific detail id 250. ### Response:
SELECT * FROM workflow.WorkflowDetail WHERE id = 250;
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 workflow.WorkflowHistory (createdBy bigint NOT NULL, comment character varying(10000), dateStart timestamp without time zone, id bigint NOT NULL, dateEnd timestamp without time zone, groupId bigint, createdAt timestamp without time zone NOT NULL, workflowId bigint NOT NULL, status bigint NOT NULL, assigned ARRAY, report ARRAY, data jsonb);
### Input: Select workflow history entries where data contains 'approved'. ### Response:
SELECT * FROM workflow.WorkflowHistory WHERE data::text ILIKE '%approved%';
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 workflow.WorkflowPrivilege (id bigint NOT NULL, type bigint NOT NULL, status bigint NOT NULL, canView ARRAY NOT NULL, canEdit ARRAY NOT NULL);
### Input: List workflow privileges with type 1. ### Response:
SELECT * FROM workflow.WorkflowPrivilege WHERE type = 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 workflow.WorkflowPrivilegeRoleMapping (role ARRAY NOT NULL, disabled ARRAY, id bigint NOT NULL, workflowPrivilegeId bigint NOT NULL, hidden ARRAY);
### Input: Retrieve workflow privilege role mappings with role containing 'manager'. ### Response:
SELECT * FROM workflow.WorkflowPrivilegeRoleMapping WHERE 'manager' = ANY(role);
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 workflow.WorkflowStatus (id bigint NOT NULL, name character varying(100) NOT NULL);
### Input: Fetch workflow status where name starts with 'In Progress'. ### Response:
SELECT * FROM workflow.WorkflowStatus WHERE name ILIKE 'In Progress%';
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 workflow.WorkflowTransition (nextStatus bigint NOT NULL, name character varying(500), type integer NOT NULL, id bigint NOT NULL, genericEmail integer, canPerform ARRAY NOT NULL, status bigint NOT NULL);
### Input: Select workflow transitions where genericEmail is not null. ### Response:
SELECT * FROM workflow.WorkflowTransition WHERE genericEmail IS NOT 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 workflow.WorkflowTransitionRoleMapping (condition jsonb, role ARRAY NOT NULL, id bigint NOT NULL, rules jsonb, workflowTransitionId bigint NOT NULL);
### Input: List workflow transition role mappings where condition equals '{}'. ### Response:
SELECT * FROM workflow.WorkflowTransitionRoleMapping WHERE condition = '{}';
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 workflow.WorkflowType (name character varying(500) NOT NULL, description character varying, type integer, id bigint NOT NULL, uiSchema json NOT NULL, finalStatus ARRAY NOT NULL, schema json NOT NULL, canCreate ARRAY NOT NULL, initialStatus bigint NOT NULL, code character varying(4) NOT NULL);
### Input: Retrieve workflow types where finalStatus contains 4. ### Response:
SELECT * FROM workflow.WorkflowType WHERE 4 = ANY(finalStatus);
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 reporting.Reports (preCommand jsonb, filters jsonb, name character varying NOT NULL, status integer NOT NULL, command jsonb, genericAttributes jsonb, createdAt timestamp without time zone, id integer NOT NULL, guid uuid NOT NULL, createdBy bigint, sharedUserid ARRAY, sharedRoles ARRAY, category integer, postCommand jsonb);
### Input: Select reports with name containing 'Summary'. ### Response:
SELECT * FROM reporting.Reports WHERE name ILIKE '%Summary%';