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 varyin... | ### 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... | ### 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, entityN... | ### 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, ... | ### 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 zo... | ### 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 NUL... | ### 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 ti... | ### 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 US... | ### 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 tim... | ### 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)... | ### 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, ... | ### 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 wi... | ### 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 timestam... | ### 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(1000... | ### 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, workflo... | ### 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... | ### 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 AR... | ### 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 N... | ### 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,... | ### 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, workflowTransitio... | ### 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, ui... | ### 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, gen... | ### 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 varyin... | ### 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... | ### 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, entityN... | ### 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, ... | ### 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 zo... | ### 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 NUL... | ### 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 ti... | ### 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 US... | ### 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 tim... | ### 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)... | ### 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, ... | ### 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 wi... | ### 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 timestam... | ### 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(1000... | ### 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, workflo... | ### 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... | ### 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 AR... | ### 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 N... | ### 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,... | ### 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, workflowTransitio... | ### 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, ui... | ### 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, gen... | ### 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 varyin... | ### 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... | ### 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, entityN... | ### 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, ... | ### 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 zo... | ### 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 NUL... | ### 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 ti... | ### 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 US... | ### 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 tim... | ### 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)... | ### 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, ... | ### 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 wi... | ### 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 timestam... | ### 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(1000... | ### 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, workflo... | ### 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... | ### 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 AR... | ### 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 N... | ### 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,... | ### 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, workflowTransitio... | ### 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, ui... | ### 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, gen... | ### 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 varyin... | ### 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... | ### 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, entityN... | ### 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, ... | ### 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 zo... | ### 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 NUL... | ### 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 ti... | ### 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 US... | ### 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 tim... | ### 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)... | ### 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, ... | ### 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 wi... | ### 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 timestam... | ### 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(1000... | ### 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, workflo... | ### 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... | ### 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 AR... | ### 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 N... | ### 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,... | ### 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, workflowTransitio... | ### 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, ui... | ### 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, gen... | ### Input:
Select reports with name containing 'Summary'.
### Response: | SELECT * FROM reporting.Reports WHERE name ILIKE '%Summary%'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.