| [ | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2022-09-13", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2022-09-13T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 6341", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 6341'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where NumberOfEmployees equals Sample NumberOfEmployees 2969", | |
| "output": "SELECT Id, Name FROM Account WHERE NumberOfEmployees = 'Sample NumberOfEmployees 2969'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (9442, 336, 1790)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (9442, 336, 1790)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than -67.70586", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < -67.70586" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Subject having count > 26", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM WorkOrder GROUP BY Subject HAVING COUNT(Id) > 26" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2022-12-24", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2022-12-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contract records where status contains 'demo' and name = 2906", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contract WHERE Status LIKE '%Demo%') FROM Opportunity WHERE Name = 2906" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Task with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Task WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 5461", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 5461'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 6971", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 6971'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related OpportunityLineItem with UnitPrice > 436", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE UnitPrice > 436)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (3491, 7847, 4830)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (3491, 7847, 4830)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 7386", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 7386'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by AccountId having count > 17", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Asset GROUP BY AccountId HAVING COUNT(Id) > 17" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where AccountId equals Sample AccountId 7844", | |
| "output": "SELECT Id, Name FROM Contact WHERE AccountId = 'Sample AccountId 7844'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related WorkOrder with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by EndDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY EndDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where AccountId is in (6078, 9303, 7289)", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId IN (6078, 9303, 7289)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 5723", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 5723'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where CreatedDate is in (7825, 8489, 6880)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate IN (7825, 8489, 6880)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where SerialNumber is in (2269, 7049, 9670)", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber IN (2269, 7049, 9670)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLongitude less than 46.185274", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude < 46.185274" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Invoice with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Invoice WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2021-03-07", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2021-03-07T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related workorder records where enddate contains 'demo' and name = 4133", | |
| "output": "SELECT Name, (SELECT Id, Name FROM WorkOrder WHERE EndDate LIKE '%Demo%') FROM Account WHERE Name = 4133" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Name is in (5413, 9151, 4403)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name IN (5413, 9151, 4403)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 9911", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 9911'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where ClosedDate is in (5345, 7487, 9972)", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate IN (5345, 7487, 9972)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Opportunity with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Opportunity WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per AccountId for Quote where total TotalPrice > 37409", | |
| "output": "SELECT AccountId, SUM(TotalPrice) total FROM Quote GROUP BY AccountId HAVING SUM(TotalPrice) > 37409" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Opportunity with Probability containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Opportunity WHERE Probability LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related OrderItem with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM OrderItem WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per CreatedDate for Account where total AnnualRevenue > 39011", | |
| "output": "SELECT CreatedDate, SUM(AnnualRevenue) total FROM Account GROUP BY CreatedDate HAVING SUM(AnnualRevenue) > 39011" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than -78.069105", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < -78.069105" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where TotalAmount is in (2660, 3898, 3050)", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount IN (2660, 3898, 3050)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related OpportunityLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Test'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count active Users", | |
| "output": "SELECT COUNT(Id) total FROM User WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 9648", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 9648'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 9980", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 9980'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Probability equals Sample Probability 5376", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Probability = 'Sample Probability 5376'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2020-06-18", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2020-06-18T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by OwnerId descending, limit 100", | |
| "output": "SELECT Id, Name FROM Order ORDER BY OwnerId DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 8993", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 8993'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 3972", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 3972'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where OwnerId is in (3390, 9372, 304)", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId IN (3390, 9372, 304)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Priority equals Sample Priority 6788", | |
| "output": "SELECT Id, Name FROM Case WHERE Priority = 'Sample Priority 6788'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where AccountId equals Sample AccountId 8207", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId = 'Sample AccountId 8207'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related case records where priority contains 'demo' and username = 4584", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Case WHERE Priority LIKE '%Demo%') FROM User WHERE Username = 4584" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by TotalPrice descending, limit 5", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY TotalPrice DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 3611", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 3611'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode equals Sample ProductCode 6082", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode = 'Sample ProductCode 6082'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related case records where createddate contains 'demo' and accountid = 2683", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Case WHERE CreatedDate LIKE '%Demo%') FROM Opportunity WHERE AccountId = 2683" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Industry is in (5661, 7456, 9807)", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry IN (5661, 7456, 9807)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related lead records where company contains 'demo' and isactive = 6847", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Lead WHERE Company LIKE '%Demo%') FROM User WHERE IsActive = 6847" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 3", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 439", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 439'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 1544", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 1544'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Lead with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Lead WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Invoice with TotalAmount > 15", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Invoice WHERE TotalAmount > 15)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 5475", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 5475'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 1846", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 1846'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related contract records where startdate contains 'demo' and profileid = 3441", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contract WHERE StartDate LIKE '%Demo%') FROM User WHERE ProfileId = 3441" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by FirstName descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY FirstName DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 3524", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 3524'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 9951", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 9951'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per TotalPrice for Quote where total TotalPrice > 2462", | |
| "output": "SELECT TotalPrice, SUM(TotalPrice) total FROM Quote GROUP BY TotalPrice HAVING SUM(TotalPrice) > 2462" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 5930", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 5930'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Company is in (1737, 373, 1878)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company IN (1737, 373, 1878)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contract records where id contains 'demo' and stagename = 7364", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contract WHERE Id LIKE '%Demo%') FROM Opportunity WHERE StageName = 7364" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Status equals Sample Status 355", | |
| "output": "SELECT Id, Name FROM Quote WHERE Status = 'Sample Status 355'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per LastModifiedDate for Account where total AnnualRevenue > 45100", | |
| "output": "SELECT LastModifiedDate, SUM(AnnualRevenue) total FROM Account GROUP BY LastModifiedDate HAVING SUM(AnnualRevenue) > 45100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 113", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 113'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related workorder records where startdate contains 'demo' and priority = 6474", | |
| "output": "SELECT Name, (SELECT Id, Name FROM WorkOrder WHERE StartDate LIKE '%Demo%') FROM Case WHERE Priority = 6474" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contacts grouped by Department having count greater than 5", | |
| "output": "SELECT Department, COUNT(Id) cnt FROM Contact GROUP BY Department HAVING COUNT(Id) > 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by IsActive descending, limit 10", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY IsActive DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where BillingPostalCode equals Sample BillingPostalCode 1000", | |
| "output": "SELECT Id, Name FROM Account WHERE BillingPostalCode = 'Sample BillingPostalCode 1000'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Pricebook2Id is in (6627, 6956, 4672)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id IN (6627, 6956, 4672)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2025-09-12", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate > '2025-09-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Id for Order where total TotalAmount > 46355", | |
| "output": "SELECT Id, SUM(TotalAmount) total FROM Order GROUP BY Id HAVING SUM(TotalAmount) > 46355" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2021-04-30", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2021-04-30T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related KnowledgeArticleVersion with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM KnowledgeArticleVersion WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead records where Email is user7907@example.com", | |
| "output": "SELECT Id, Name FROM Lead WHERE Email = 'user7907@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where StartDate is in (2545, 4946, 1629)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate IN (2545, 4946, 1629)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related User with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM User WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2022-11-11", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2022-11-11T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by Email descending, limit 1", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY Email DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (7213, 5790, 5336)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (7213, 5790, 5336)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related OpportunityLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 1880", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 1880'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 6218", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 6218'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Name is in (6971, 9134, 1615)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name IN (6971, 9134, 1615)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related QuoteLineItem with UnitPrice > 619", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM QuoteLineItem WHERE UnitPrice > 619)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 3178", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 3178'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by ContactId having count > 4", | |
| "output": "SELECT ContactId, COUNT(Id) cnt FROM Case GROUP BY ContactId HAVING COUNT(Id) > 4" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by Id having count > 20", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Contract GROUP BY Id HAVING COUNT(Id) > 20" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (513, 2638, 6738)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (513, 2638, 6738)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by Id descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY Id DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Status equals Sample Status 4557", | |
| "output": "SELECT Id, Name FROM Quote WHERE Status = 'Sample Status 4557'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Test'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 4817", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 4817'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Priority equals Sample Priority 7037", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority = 'Sample Priority 7037'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Lead with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Lead WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total UnitPrice per CreatedDate for PricebookEntry where total UnitPrice > 44767", | |
| "output": "SELECT CreatedDate, SUM(UnitPrice) total FROM PricebookEntry GROUP BY CreatedDate HAVING SUM(UnitPrice) > 44767" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related ServiceResource with LastKnownLatitude containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE LastKnownLatitude LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 3364", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 3364'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Email having count > 9", | |
| "output": "SELECT Email, COUNT(Id) cnt FROM Lead GROUP BY Email HAVING COUNT(Id) > 9" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Name is in (3467, 4805, 4871)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name IN (3467, 4805, 4871)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by CreatedDate descending, limit 50", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY CreatedDate DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by Status descending, limit 5", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY Status DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 2369", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 2369'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2018-08-05", | |
| "output": "SELECT Id, Name FROM Contact WHERE CreatedDate > '2018-08-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where Status is in (4282, 1710, 1688)", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status IN (4282, 1710, 1688)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Subject having count > 10", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM WorkOrder GROUP BY Subject HAVING COUNT(Id) > 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related product2 records where id contains 'demo' and lastlogindate = 8262", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Id LIKE '%Demo%') FROM User WHERE LastLoginDate = 8262" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Phone equals Sample Phone 9615", | |
| "output": "SELECT Id, Name FROM Contact WHERE Phone = 'Sample Phone 9615'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 3843", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 3843'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName equals Sample LastName 927", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName = 'Sample LastName 927'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 6110", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 6110'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related contact records where firstname contains 'demo' and isactive = 9764", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Demo%') FROM User WHERE IsActive = 9764" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related servicecontract records where id contains 'demo' and ownerid = 9902", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE Id LIKE '%Demo%') FROM Account WHERE OwnerId = 9902" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 4819", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 4819'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where AccountId is in (9268, 7489, 824)", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId IN (9268, 7489, 824)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by StartDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY StartDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 9506", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 9506'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related contact records where id contains 'demo' and contactid = 7958", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contact WHERE Id LIKE '%Demo%') FROM Case WHERE ContactId = 7958" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per CreatedDate for Account where total AnnualRevenue > 12546", | |
| "output": "SELECT CreatedDate, SUM(AnnualRevenue) total FROM Account GROUP BY CreatedDate HAVING SUM(AnnualRevenue) > 12546" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related pricebookentry records where product2id contains 'demo' and probability = 2658", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE Product2Id LIKE '%Demo%') FROM Opportunity WHERE Probability = 2658" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related EmailMessage with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where Status is in (7007, 7758, 591)", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status IN (7007, 7758, 591)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName equals Sample LastName 799", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName = 'Sample LastName 799'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2024-02-08", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2024-02-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by Status descending, limit 50", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY Status DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where UnitPrice is in (5604, 9898, 8788)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice IN (5604, 9898, 8788)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than -86.147122", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < -86.147122" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 7784", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 7784'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related lead records where createddate contains 'demo' and email = 3891", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Lead WHERE CreatedDate LIKE '%Demo%') FROM User WHERE Email = 3891" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by UnitPrice descending, limit 1", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY UnitPrice DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 8250", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 8250'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Industry is in (1362, 683, 9436)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry IN (1362, 683, 9436)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get sum of AnnualRevenue per Industry for Account where Industry is not null", | |
| "output": "SELECT Industry, SUM(AnnualRevenue) total FROM Account WHERE Industry != null GROUP BY Industry" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Family having count > 8", | |
| "output": "SELECT Family, COUNT(Id) cnt FROM Product2 GROUP BY Family HAVING COUNT(Id) > 8" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2021-08-19", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate > '2021-08-19T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2019-06-08", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2019-06-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 5424", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 5424'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 3304", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 3304'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Case with ContactId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Case WHERE ContactId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Test'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2024-05-18", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2024-05-18T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by Id descending, limit 50", | |
| "output": "SELECT Id, Name FROM Case ORDER BY Id DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where ContactId equals Sample ContactId 8715", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId = 'Sample ContactId 8715'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 1014", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 1014'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Users grouped by ProfileId", | |
| "output": "SELECT ProfileId, COUNT(Id) cnt FROM User GROUP BY ProfileId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2025-05-05", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2025-05-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 5184", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 5184'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 8202", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 8202'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where AccountId is in (8462, 3605, 4509)", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId IN (8462, 3605, 4509)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2022-11-04", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2022-11-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Product2 with ProductCode containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Product2 WHERE ProductCode LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Name having count > 5", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Lead GROUP BY Name HAVING COUNT(Id) > 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by EffectiveDate descending, limit 1", | |
| "output": "SELECT Id, Name FROM Order ORDER BY EffectiveDate DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Case with Priority containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Case WHERE Priority LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than -85.196291", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < -85.196291" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by CreatedDate having count > 21", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Case GROUP BY CreatedDate HAVING COUNT(Id) > 21" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related KnowledgeArticleVersion with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM KnowledgeArticleVersion WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 2584", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 2584'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by Amount descending, limit 50", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY Amount DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by ShippingLatitude having count > 38", | |
| "output": "SELECT ShippingLatitude, COUNT(Id) cnt FROM ServiceContract GROUP BY ShippingLatitude HAVING COUNT(Id) > 38" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contracts grouped by AccountId", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Contract GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where ShippingLongitude is in (5430, 5204, 5593)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude IN (5430, 5204, 5593)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related product2 records where createddate contains 'demo' and createddate = 243", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE CreatedDate LIKE '%Demo%') FROM Case WHERE CreatedDate = 243" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2022-12-01", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2022-12-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per Probability for Opportunity where total Amount > 48144", | |
| "output": "SELECT Probability, SUM(Amount) total FROM Opportunity GROUP BY Probability HAVING SUM(Amount) > 48144" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Test'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related EmailMessage with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Invoice with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Invoice WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by Id having count > 3", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Asset GROUP BY Id HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related WorkOrder with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 4960", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 4960" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 7606", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 7606'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 5268", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 5268'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2025-10-26", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2025-10-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related OpportunityLineItem with TotalPrice > 318", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE TotalPrice > 318)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2025-11-15", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2025-11-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by AccountId having count > 47", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Asset GROUP BY AccountId HAVING COUNT(Id) > 47" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by EndDate having count > 10", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM ServiceContract GROUP BY EndDate HAVING COUNT(Id) > 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 5659", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 5659'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related OrderItem with Quantity > 404", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM OrderItem WHERE Quantity > 404)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where AccountId equals Sample AccountId 7182", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId = 'Sample AccountId 7182'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Id equals Sample Id 2965", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id = 'Sample Id 2965'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by TotalPrice descending, limit 50", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY TotalPrice DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where IsActive is in (4384, 7645, 5248)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive IN (4384, 7645, 5248)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 1325", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 1325'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by EndDate having count > 12", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM Contract GROUP BY EndDate HAVING COUNT(Id) > 12" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 1305", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 1305'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2018-05-09", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2018-05-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 5192", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 5192'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by OpportunityId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY OpportunityId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2019-02-17", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate > '2019-02-17T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by Status descending, limit 5", | |
| "output": "SELECT Id, Name FROM Order ORDER BY Status DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 27", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 27" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (3593, 1325, 7743)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (3593, 1325, 7743)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Status having count > 17", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status HAVING COUNT(Id) > 17" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 8560", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 8560'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2019-05-17", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2019-05-17T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by ClosedDate having count > 22", | |
| "output": "SELECT ClosedDate, COUNT(Id) cnt FROM Case GROUP BY ClosedDate HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by StageName descending, limit 10", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY StageName DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by Id descending, limit 100", | |
| "output": "SELECT Id, Name FROM Case ORDER BY Id DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 7184", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 7184'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 5958", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 5958'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 4744", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 4744" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per Id for Opportunity where total Amount > 44915", | |
| "output": "SELECT Id, SUM(Amount) total FROM Opportunity GROUP BY Id HAVING SUM(Amount) > 44915" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 5011", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 5011'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Invoice with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Invoice WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by CreatedDate descending, limit 5", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY CreatedDate DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2022-02-08", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2022-02-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where EndDate is in (9341, 3701, 9103)", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate IN (9341, 3701, 9103)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Status having count > 3", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2024-06-24", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2024-06-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2018-08-29", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2018-08-29T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Priority having count > 16", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM WorkOrder GROUP BY Priority HAVING COUNT(Id) > 16" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where AccountId is in (775, 7532, 142)", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId IN (775, 7532, 142)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Subject having count > 48", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM Case GROUP BY Subject HAVING COUNT(Id) > 48" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related pricebookentry records where isactive contains 'demo' and name = 271", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE IsActive LIKE '%Demo%') FROM Opportunity WHERE Name = 271" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related lead records where company contains 'demo' and closeddate = 3694", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Lead WHERE Company LIKE '%Demo%') FROM Case WHERE ClosedDate = 3694" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2019-10-18", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2019-10-18T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per Amount for Opportunity where total Amount > 47502", | |
| "output": "SELECT Amount, SUM(Amount) total FROM Opportunity GROUP BY Amount HAVING SUM(Amount) > 47502" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Cases grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Asset with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Asset WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (7440, 6681, 5524)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (7440, 6681, 5524)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (1113, 5178, 3342)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (1113, 5178, 3342)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related FeedComment with FeedItemId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM FeedComment WHERE FeedItemId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2020-10-19", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2020-10-19T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 9578", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 9578'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2020-02-04", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2020-02-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contract records where startdate contains 'demo' and name = 1675", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contract WHERE StartDate LIKE '%Demo%') FROM Opportunity WHERE Name = 1675" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2022-08-25", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate > '2022-08-25T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related ServiceResource with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 7264", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 7264'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 2908", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 2908'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 9179", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 9179'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by Pricebook2Id descending, limit 1", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY Pricebook2Id DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Priority having count > 7", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM WorkOrder GROUP BY Priority HAVING COUNT(Id) > 7" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Email is in (228, 2726, 7079)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email IN (228, 2726, 7079)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 6913", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 6913'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per EffectiveDate for Order where total TotalAmount > 45591", | |
| "output": "SELECT EffectiveDate, SUM(TotalAmount) total FROM Order GROUP BY EffectiveDate HAVING SUM(TotalAmount) > 45591" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 8608", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 8608'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 5489", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 5489'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by StageName descending, limit 10", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY StageName DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Priority is in (7805, 8512, 9943)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority IN (7805, 8512, 9943)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 8457", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 8457'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 3077", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 3077'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by ShippingLongitude descending, limit 10", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY ShippingLongitude DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 4312", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 4312'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (9784, 8736, 6465)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (9784, 8736, 6465)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (108, 1841, 4229)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (108, 1841, 4229)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 854", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 854'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by Subject descending, limit 100", | |
| "output": "SELECT Id, Name FROM Case ORDER BY Subject DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related product2 records where createddate contains 'demo' and accountid = 4226", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE CreatedDate LIKE '%Demo%') FROM Opportunity WHERE AccountId = 4226" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related ConsumptionRate with Price > 721", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM ConsumptionRate WHERE Price > 721)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Invoice with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Invoice WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContracts grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM ServiceContract GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get minimum AnnualRevenue per Industry for Account", | |
| "output": "SELECT Industry, MIN(AnnualRevenue) minRevenue FROM Account GROUP BY Industry" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 8894", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 8894'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-11-02", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2025-11-02T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where EndDate is in (3791, 121, 8165)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate IN (3791, 121, 8165)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 9157", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 9157'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where AccountId is in (6052, 5685, 6060)", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId IN (6052, 5685, 6060)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related asset records where accountid contains 'demo' and id = 4042", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE AccountId LIKE '%Demo%') FROM Case WHERE Id = 4042" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Id is in (8417, 3509, 3278)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id IN (8417, 3509, 3278)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Status having count > 40", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status HAVING COUNT(Id) > 40" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 1024", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 1024'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by ProductCode having count > 17", | |
| "output": "SELECT ProductCode, COUNT(Id) cnt FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 17" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2019-08-30", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2019-08-30T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Test'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related quote records where totalprice contains 'demo' and id = 754", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE TotalPrice LIKE '%Demo%') FROM User WHERE Id = 754" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2018-12-12", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2018-12-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Phone having count > 19", | |
| "output": "SELECT Phone, COUNT(Id) cnt FROM Contact GROUP BY Phone HAVING COUNT(Id) > 19" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related quote records where accountid contains 'demo' and username = 2897", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE AccountId LIKE '%Demo%') FROM User WHERE Username = 2897" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Contract with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Contract WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Accounts where Industry is 'Technology'", | |
| "output": "SELECT COUNT(Id) total FROM Account WHERE Industry = 'Technology'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Id is in (2026, 640, 9373)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (2026, 640, 9373)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 3223", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 3223'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ApptBundleAggrDurDnscale with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ApptBundleAggrDurDnscale WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contact records where lastactivitydate contains 'demo' and stagename = 6986", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contact WHERE LastActivityDate LIKE '%Demo%') FROM Opportunity WHERE StageName = 6986" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (2955, 9125, 1935)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (2955, 9125, 1935)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Asset with SerialNumber containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Asset WHERE SerialNumber LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 4229", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 4229" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related pricebookentry records where isactive contains 'demo' and ownerid = 1534", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE IsActive LIKE '%Demo%') FROM Opportunity WHERE OwnerId = 1534" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ServiceResource with LastKnownLatitude containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE LastKnownLatitude LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Status having count > 30", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where InstallDate is in (5231, 5697, 6549)", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate IN (5231, 5697, 6549)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related CaseComment with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM CaseComment WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related InvoiceLine with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where ShippingLongitude is in (2213, 8700, 3822)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude IN (2213, 8700, 3822)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 5305", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 5305" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 5439", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 5439'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 9751", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 9751'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by ProductCode having count > 31", | |
| "output": "SELECT ProductCode, COUNT(Id) cnt FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 31" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by CreatedDate having count > 9", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Lead GROUP BY CreatedDate HAVING COUNT(Id) > 9" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by NumberOfEmployees descending, limit 50", | |
| "output": "SELECT Id, Name FROM Account ORDER BY NumberOfEmployees DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where StageName is in (9960, 1175, 726)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName IN (9960, 1175, 726)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Status is in (5261, 9347, 379)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status IN (5261, 9347, 379)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 4989", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 4989'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by Status descending, limit 10", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY Status DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per CloseDate for Opportunity where total Amount > 21514", | |
| "output": "SELECT CloseDate, SUM(Amount) total FROM Opportunity GROUP BY CloseDate HAVING SUM(Amount) > 21514" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 8646", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 8646'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 4266", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 4266" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Leads grouped by Industry", | |
| "output": "SELECT Industry, COUNT(Id) cnt FROM Lead GROUP BY Industry" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Product2 with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Product2 WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (1317, 389, 8345)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (1317, 389, 8345)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2024-03-22", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2024-03-22T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Name is in (1111, 5010, 1078)", | |
| "output": "SELECT Id, Name FROM Account WHERE Name IN (1111, 5010, 1078)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Test'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ContractCondition with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ContractCondition WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 5513", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 5513'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where TotalAmount is in (1845, 3203, 6333)", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount IN (1845, 3203, 6333)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Quote with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Quote WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related KnowledgeArticleVersion with Title containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM KnowledgeArticleVersion WHERE Title LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead records where Email is user1834@example.com", | |
| "output": "SELECT Id, Name FROM Lead WHERE Email = 'user1834@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 2379", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 2379'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (9644, 7106, 8491)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (9644, 7106, 8491)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related workorder records where accountid contains 'demo' and ownerid = 9110", | |
| "output": "SELECT Name, (SELECT Id, Name FROM WorkOrder WHERE AccountId LIKE '%Demo%') FROM Account WHERE OwnerId = 9110" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2022-03-29", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2022-03-29T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Name is in (9119, 4371, 1356)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name IN (9119, 4371, 1356)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Status equals Sample Status 3345", | |
| "output": "SELECT Id, Name FROM Case WHERE Status = 'Sample Status 3345'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 6576", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 6576'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 5665", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 5665'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Event with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Event WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 5117", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 5117'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count total WorkOrders", | |
| "output": "SELECT COUNT(Id) total FROM WorkOrder" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 5", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by ProductCode descending, limit 10", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY ProductCode DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related WorkOrderLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM WorkOrderLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName equals Sample LastName 9758", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName = 'Sample LastName 9758'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name equals Sample Name 7179", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name = 'Sample Name 7179'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 6797", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 6797'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 8890", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 8890'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 9994", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 9994" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ServiceContract with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ServiceContract WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 6879", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 6879" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 6959", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 6959'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-09-21", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2025-09-21T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where CloseDate is in (6257, 403, 261)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate IN (6257, 403, 261)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2025-04-26", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2025-04-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 7065", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 7065'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 8360", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 8360'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Status for Order where total TotalAmount > 36508", | |
| "output": "SELECT Status, SUM(TotalAmount) total FROM Order GROUP BY Status HAVING SUM(TotalAmount) > 36508" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Name is in (2410, 6705, 7909)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name IN (2410, 6705, 7909)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by ContactId having count > 45", | |
| "output": "SELECT ContactId, COUNT(Id) cnt FROM Case GROUP BY ContactId HAVING COUNT(Id) > 45" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where EndDate is in (5719, 6231, 5310)", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate IN (5719, 6231, 5310)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where EndDate is in (4028, 5896, 8660)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate IN (4028, 5896, 8660)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Product2Id is in (1885, 8225, 8100)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id IN (1885, 8225, 8100)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Name descending, limit 50", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Name DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by Status having count > 3", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Contract GROUP BY Status HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 4667", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 4667'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count total Cases", | |
| "output": "SELECT COUNT(Id) total FROM Case" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Phone is in (3614, 2421, 7024)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Phone IN (3614, 2421, 7024)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 5737", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 5737'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 840", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 840'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Phone is in (9973, 3981, 364)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Phone IN (9973, 3981, 364)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity with Amount greater than 3460", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Amount > 3460" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related CaseComment with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM CaseComment WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Name for Quote where total TotalPrice > 11645", | |
| "output": "SELECT Name, SUM(TotalPrice) total FROM Quote GROUP BY Name HAVING SUM(TotalPrice) > 11645" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related asset records where serialnumber contains 'demo' and status = 5949", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%') FROM Case WHERE Status = 5949" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2022-10-20", | |
| "output": "SELECT Id, Name FROM Case WHERE CreatedDate > '2022-10-20T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get maximum AnnualRevenue per Type for Account", | |
| "output": "SELECT Type, MAX(AnnualRevenue) maxRevenue FROM Account GROUP BY Type" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 2372", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 2372'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Id having count > 19", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Contact GROUP BY Id HAVING COUNT(Id) > 19" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name equals Sample Name 2943", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name = 'Sample Name 2943'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Cases grouped by Subject having count greater than 3", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM Case GROUP BY Subject HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Id is in (6726, 1811, 7424)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id IN (6726, 1811, 7424)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by Id descending, limit 50", | |
| "output": "SELECT Id, Name FROM Account ORDER BY Id DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2021-04-10", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2021-04-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by CreatedDate having count > 28", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Case GROUP BY CreatedDate HAVING COUNT(Id) > 28" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Subject descending, limit 10", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Subject DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Family descending, limit 1", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Family DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Status having count > 49", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status HAVING COUNT(Id) > 49" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 1022", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 1022'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2024-04-16", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2024-04-16T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName equals Sample StageName 900", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName = 'Sample StageName 900'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related quote records where accountid contains 'demo' and id = 4021", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE AccountId LIKE '%Demo%') FROM Case WHERE Id = 4021" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where IsActive is false", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related asset records where serialnumber contains 'demo' and id = 8070", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%') FROM User WHERE Id = 8070" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 7929", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 7929'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where ShippingLongitude is in (9757, 5437, 5717)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude IN (9757, 5437, 5717)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Status having count > 37", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status HAVING COUNT(Id) > 37" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Phone having count > 45", | |
| "output": "SELECT Phone, COUNT(Id) cnt FROM Contact GROUP BY Phone HAVING COUNT(Id) > 45" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Contract with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Contract WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related WorkOrder with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 6950", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 6950'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2019-01-09", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2019-01-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 1141", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 1141'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related WorkOrder with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than -67.922502", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < -67.922502" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 2198", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 2198'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by AccountId having count > 21", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Case GROUP BY AccountId HAVING COUNT(Id) > 21" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where AccountId is in (4021, 1245, 3394)", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId IN (4021, 1245, 3394)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 4322", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 4322'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Quote with TotalPrice > 907", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Quote WHERE TotalPrice > 907)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 383", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 383'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Id equals Sample Id 4027", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id = 'Sample Id 4027'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related opportunity records where id contains 'demo' and ownerid = 9494", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE Id LIKE '%Demo%') FROM Account WHERE OwnerId = 9494" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 2530", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 2530'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 3115", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 3115'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Priority descending, limit 10", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Priority DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 8154", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 8154'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Industry is in (6421, 9286, 8322)", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry IN (6421, 9286, 8322)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by ShippingLongitude descending, limit 50", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY ShippingLongitude DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 9397", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 9397'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 2114", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 2114'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode equals Sample ProductCode 3924", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode = 'Sample ProductCode 3924'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (1496, 8701, 6753)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (1496, 8701, 6753)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Id is in (835, 4192, 8978)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Id IN (835, 4192, 8978)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 5927", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 5927'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2022-06-13", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2022-06-13T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2022-09-05", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2022-09-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2020-06-28", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate > '2020-06-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per TotalPrice for Quote where total TotalPrice > 13577", | |
| "output": "SELECT TotalPrice, SUM(TotalPrice) total FROM Quote GROUP BY TotalPrice HAVING SUM(TotalPrice) > 13577" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Name is in (3568, 4612, 265)", | |
| "output": "SELECT Id, Name FROM Account WHERE Name IN (3568, 4612, 265)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 8147", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 8147'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where ContactId equals Sample ContactId 9323", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId = 'Sample ContactId 9323'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related User with Email = user8753@example.com", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM User WHERE Email = 'user8753@example.com')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2023-10-21", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2023-10-21T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by Status having count > 47", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Contract GROUP BY Status HAVING COUNT(Id) > 47" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2021-12-10", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2021-12-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (5673, 8190, 9205)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (5673, 8190, 9205)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 5669", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 5669'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where NumberOfEmployees equals Sample NumberOfEmployees 9046", | |
| "output": "SELECT Id, Name FROM Account WHERE NumberOfEmployees = 'Sample NumberOfEmployees 9046'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2024-11-14", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate > '2024-11-14T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 5686", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 5686'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by EndDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY EndDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by Status having count > 42", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Contract GROUP BY Status HAVING COUNT(Id) > 42" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 4669", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 4669'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 3038", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 3038'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where OwnerId is in (1845, 5587, 6292)", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId IN (1845, 5587, 6292)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Industry descending, limit 1", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Industry DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 3019", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 3019'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Name having count > 44", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Contact GROUP BY Name HAVING COUNT(Id) > 44" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name equals Sample Name 9454", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name = 'Sample Name 9454'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 9428", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 9428'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by LastName descending, limit 50", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY LastName DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Subject having count > 22", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM Case GROUP BY Subject HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Name for Quote where total TotalPrice > 45785", | |
| "output": "SELECT Name, SUM(TotalPrice) total FROM Quote GROUP BY Name HAVING SUM(TotalPrice) > 45785" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Opportunity with StageName containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Opportunity WHERE StageName LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 9088", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 9088'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by Email descending, limit 5", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY Email DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Company descending, limit 5", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Company DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2019-07-28", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2019-07-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per CreatedDate for Opportunity where total Amount > 8257", | |
| "output": "SELECT CreatedDate, SUM(Amount) total FROM Opportunity GROUP BY CreatedDate HAVING SUM(Amount) > 8257" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by Product2Id having count > 29", | |
| "output": "SELECT Product2Id, COUNT(Id) cnt FROM Asset GROUP BY Product2Id HAVING COUNT(Id) > 29" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2021-11-25", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2021-11-25T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per OwnerId for Order where total TotalAmount > 38378", | |
| "output": "SELECT OwnerId, SUM(TotalAmount) total FROM Order GROUP BY OwnerId HAVING SUM(TotalAmount) > 38378" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 9811", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 9811'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by LastModifiedDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM Account ORDER BY LastModifiedDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by AccountId descending, limit 5", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY AccountId DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 8069", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 8069'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2021-10-28", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2021-10-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 9520", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 9520'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by AccountId descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY AccountId DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2020-03-15", | |
| "output": "SELECT Id, Name FROM Lead WHERE CreatedDate > '2020-03-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where TotalAmount equals Sample TotalAmount 9757", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount = 'Sample TotalAmount 9757'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName equals Sample LastName 9056", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName = 'Sample LastName 9056'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Status is in (458, 4657, 3225)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status IN (458, 4657, 3225)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Case with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Case WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Status descending, limit 1", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Status DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (4582, 2367, 5684)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (4582, 2367, 5684)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related OrderItem with Quantity > 655", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM OrderItem WHERE Quantity > 655)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 4126", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 4126'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by ProductCode having count > 39", | |
| "output": "SELECT ProductCode, COUNT(Id) cnt FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 39" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by ShippingLongitude descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY ShippingLongitude DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per TotalAmount for Order where total TotalAmount > 41798", | |
| "output": "SELECT TotalAmount, SUM(TotalAmount) total FROM Order GROUP BY TotalAmount HAVING SUM(TotalAmount) > 41798" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 8459", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 8459'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Priority having count > 40", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM WorkOrder GROUP BY Priority HAVING COUNT(Id) > 40" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Id equals Sample Id 3192", | |
| "output": "SELECT Id, Name FROM Account WHERE Id = 'Sample Id 3192'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related ServiceContract with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM ServiceContract WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by ProductCode having count > 1", | |
| "output": "SELECT ProductCode, COUNT(Id) cnt FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where TotalPrice is in (2868, 8434, 4635)", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice IN (2868, 8434, 4635)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name equals Sample Name 2535", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name = 'Sample Name 2535'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Email descending, limit 50", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Email DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related EmailMessage with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Lead with Company containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Lead WHERE Company LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 5592", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 5592" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Id is in (7886, 3068, 7933)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id IN (7886, 3068, 7933)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Family descending, limit 1", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Family DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by Id descending, limit 100", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY Id DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by Status having count > 23", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Contract GROUP BY Status HAVING COUNT(Id) > 23" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Assets grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Asset GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related pricebookentry records where unitprice contains 'demo' and profileid = 9349", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE UnitPrice LIKE '%Demo%') FROM User WHERE ProfileId = 9349" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by StartDate having count > 24", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM ServiceContract GROUP BY StartDate HAVING COUNT(Id) > 24" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 43", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 43'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2019-07-05", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2019-07-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Task with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Task WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (8295, 2039, 3471)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (8295, 2039, 3471)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where CreatedDate is in (1674, 3363, 146)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate IN (1674, 3363, 146)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Id equals Sample Id 6032", | |
| "output": "SELECT Id, Name FROM Account WHERE Id = 'Sample Id 6032'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (5374, 5204, 7465)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (5374, 5204, 7465)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where AccountId equals Sample AccountId 1996", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId = 'Sample AccountId 1996'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Status descending, limit 5", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Status DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2025-09-03", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2025-09-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Document__c with Count_Of_DCR__c containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Document__c WHERE Count_Of_DCR__c LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 5157", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 5157'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Lead with Email = user8932@example.com", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Lead WHERE Email = 'user8932@example.com')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 4723", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 4723" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where ConvertedDate is in (3065, 1792, 5771)", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate IN (3065, 1792, 5771)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Id is in (1777, 4709, 5771)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id IN (1777, 4709, 5771)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name equals Sample Name 8599", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name = 'Sample Name 8599'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Id having count > 22", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Lead GROUP BY Id HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Name descending, limit 1", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Name DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Status is in (1240, 876, 9072)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status IN (1240, 876, 9072)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where Status is in (6744, 3493, 1115)", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status IN (6744, 3493, 1115)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Industry is in (7362, 9404, 8369)", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry IN (7362, 9404, 8369)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 2724", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 2724'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2024-04-15", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2024-04-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Name is in (8945, 2061, 4806)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name IN (8945, 2061, 4806)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where ContactId equals Sample ContactId 1893", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId = 'Sample ContactId 1893'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where ContactId is in (8347, 8449, 9167)", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId IN (8347, 8449, 9167)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2023-04-13", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2023-04-13T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 1243", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 1243'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2019-09-21", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2019-09-21T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact records where Email is user4129@example.com", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email = 'user4129@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where AccountId is in (9835, 8062, 5951)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId IN (9835, 8062, 5951)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Priority is in (5560, 9197, 7126)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority IN (5560, 9197, 7126)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 3779", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 3779'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per TotalPrice for Quote where total TotalPrice > 47563", | |
| "output": "SELECT TotalPrice, SUM(TotalPrice) total FROM Quote GROUP BY TotalPrice HAVING SUM(TotalPrice) > 47563" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Service Contract with Shipping Latitude less than 2851", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 2851" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2018-09-26", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2018-09-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where Subject is in (6550, 1836, 356)", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject IN (6550, 1836, 356)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 2120", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 2120'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related product2 records where id contains 'demo' and subject = 3953", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Id LIKE '%Demo%') FROM Case WHERE Subject = 3953" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 4085", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 4085'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2019-08-24", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2019-08-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Asset with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Asset WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2019-12-23", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2019-12-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related QuoteLineItem with UnitPrice > 398", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM QuoteLineItem WHERE UnitPrice > 398)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Status is in (451, 6554, 147)", | |
| "output": "SELECT Id, Name FROM Order WHERE Status IN (451, 6554, 147)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Status for Quote where total TotalPrice > 30126", | |
| "output": "SELECT Status, SUM(TotalPrice) total FROM Quote GROUP BY Status HAVING SUM(TotalPrice) > 30126" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by Amount descending, limit 50", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY Amount DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per AccountId for Quote where total TotalPrice > 21829", | |
| "output": "SELECT AccountId, SUM(TotalPrice) total FROM Quote GROUP BY AccountId HAVING SUM(TotalPrice) > 21829" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2023-02-23", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastActivityDate > '2023-02-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2021-10-03", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2021-10-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Id equals Sample Id 5489", | |
| "output": "SELECT Id, Name FROM Contact WHERE Id = 'Sample Id 5489'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Accounts grouped by Type having count greater than 10", | |
| "output": "SELECT Type, COUNT(Id) cnt FROM Account GROUP BY Type HAVING COUNT(Id) > 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2022-12-05", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2022-12-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where EndDate is in (3411, 3677, 5783)", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate IN (3411, 3677, 5783)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by Status having count > 31", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM ServiceContract GROUP BY Status HAVING COUNT(Id) > 31" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 5561", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 5561'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Id is in (8246, 9672, 7776)", | |
| "output": "SELECT Id, Name FROM Order WHERE Id IN (8246, 9672, 7776)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Id descending, limit 10", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Id DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related asset records where accountid contains 'demo' and email = 4166", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE AccountId LIKE '%Demo%') FROM User WHERE Email = 4166" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 9677", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 9677" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (2392, 2809, 9619)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (2392, 2809, 9619)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 7033", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 7033'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where AccountId is in (5968, 1926, 7631)", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId IN (5968, 1926, 7631)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 1773", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 1773'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 1601", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 1601'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 9536", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 9536'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2020-08-07", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2020-08-07T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2019-05-10", | |
| "output": "SELECT Id, Name FROM Case WHERE CreatedDate > '2019-05-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related quote records where totalprice contains 'demo' and ownerid = 8088", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE TotalPrice LIKE '%Demo%') FROM Account WHERE OwnerId = 8088" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where CreatedDate is in (4492, 1549, 7264)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate IN (4492, 1549, 7264)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where TotalAmount equals Sample TotalAmount 9683", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount = 'Sample TotalAmount 9683'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 1102", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 1102" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 1381", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 1381'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContracts grouped by AccountId", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM ServiceContract GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 3019", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 3019'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by ClosedDate having count > 38", | |
| "output": "SELECT ClosedDate, COUNT(Id) cnt FROM Case GROUP BY ClosedDate HAVING COUNT(Id) > 38" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 4016", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 4016'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ServiceResource with LastKnownLongitude containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE LastKnownLongitude LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by OwnerId having count > 1", | |
| "output": "SELECT OwnerId, COUNT(Id) cnt FROM Contract GROUP BY OwnerId HAVING COUNT(Id) > 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 3004", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 3004'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 18", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 18" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related case records where closeddate contains 'demo' and type = 4782", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Case WHERE ClosedDate LIKE '%Demo%') FROM Account WHERE Type = 4782" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Family having count > 36", | |
| "output": "SELECT Family, COUNT(Id) cnt FROM Product2 GROUP BY Family HAVING COUNT(Id) > 36" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 5132", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 5132'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Case with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Case WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by NumberOfEmployees descending, limit 5", | |
| "output": "SELECT Id, Name FROM Account ORDER BY NumberOfEmployees DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where IsActive is in (5802, 2410, 1526)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive IN (5802, 2410, 1526)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related FeedItem with Body containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM FeedItem WHERE Body LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Id equals Sample Id 2036", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id = 'Sample Id 2036'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead records where Email is user7636@example.com", | |
| "output": "SELECT Id, Name FROM Lead WHERE Email = 'user7636@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2019-02-26", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2019-02-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 43", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 43" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2025-10-31", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2025-10-31T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 8462", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 8462'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related QuoteLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM QuoteLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by StartDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY StartDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related asset records where product2id contains 'demo' and numberofemployees = 286", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE Product2Id LIKE '%Demo%') FROM Account WHERE NumberOfEmployees = 286" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2019-04-14", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2019-04-14T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Asset with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Asset WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by EndDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY EndDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2020-10-10", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2020-10-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2025-07-23", | |
| "output": "SELECT Id, Name FROM Contact WHERE CreatedDate > '2025-07-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2022-05-02", | |
| "output": "SELECT Id, Name FROM Lead WHERE ConvertedDate > '2022-05-02T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get average TotalAmount per AccountId for Order", | |
| "output": "SELECT AccountId, AVG(TotalAmount) avgAmount FROM Order GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account with AnnualRevenue greater than 4536", | |
| "output": "SELECT Id, Name FROM Account WHERE AnnualRevenue > 4536" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Id having count > 14", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Contact GROUP BY Id HAVING COUNT(Id) > 14" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2021-10-11", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2021-10-11T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 747", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 747'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by Id descending, limit 100", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY Id DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2018-12-07", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2018-12-07T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2023-04-04", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2023-04-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity with Amount greater than 6600", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Amount > 6600" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Status for Quote where total TotalPrice > 36437", | |
| "output": "SELECT Status, SUM(TotalPrice) total FROM Quote GROUP BY Status HAVING SUM(TotalPrice) > 36437" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per NumberOfEmployees for Account where total AnnualRevenue > 28604", | |
| "output": "SELECT NumberOfEmployees, SUM(AnnualRevenue) total FROM Account GROUP BY NumberOfEmployees HAVING SUM(AnnualRevenue) > 28604" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 6845", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 6845'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 1035", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 1035'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related asset records where product2id contains 'demo' and probability = 8645", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE Product2Id LIKE '%Demo%') FROM Opportunity WHERE Probability = 8645" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2022-01-11", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2022-01-11T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related product2 records where name contains 'demo' and lastlogindate = 9189", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Name LIKE '%Demo%') FROM User WHERE LastLoginDate = 9189" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where ContactId equals Sample ContactId 1676", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId = 'Sample ContactId 1676'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2025-06-24", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2025-06-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by BillingPostalCode descending, limit 100", | |
| "output": "SELECT Id, Name FROM Account ORDER BY BillingPostalCode DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 5217", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 5217'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 7680", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 7680'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (9361, 1270, 92)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (9361, 1270, 92)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by ShippingLatitude having count > 4", | |
| "output": "SELECT ShippingLatitude, COUNT(Id) cnt FROM ServiceContract GROUP BY ShippingLatitude HAVING COUNT(Id) > 4" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 5960", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 5960" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Name having count > 31", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Contact GROUP BY Name HAVING COUNT(Id) > 31" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by ContactId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Case ORDER BY ContactId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 7053", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 7053'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Status for Quote where total TotalPrice > 33644", | |
| "output": "SELECT Status, SUM(TotalPrice) total FROM Quote GROUP BY Status HAVING SUM(TotalPrice) > 33644" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where AnnualRevenue is in (2756, 743, 1033)", | |
| "output": "SELECT Id, Name FROM Account WHERE AnnualRevenue IN (2756, 743, 1033)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where CloseDate is in (6475, 6502, 537)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate IN (6475, 6502, 537)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related WorkOrder with Priority containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Priority LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Id equals Sample Id 4793", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id = 'Sample Id 4793'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 5243", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 5243'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Test'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Status having count > 16", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status HAVING COUNT(Id) > 16" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLongitude less than -26.066537", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude < -26.066537" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 5999", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 5999'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related ServiceResource with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by CreatedDate descending, limit 1", | |
| "output": "SELECT Id, Name FROM Account ORDER BY CreatedDate DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where TotalAmount is in (9613, 1423, 1285)", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount IN (9613, 1423, 1285)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Entitlement with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Entitlement WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2019-10-01", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2019-10-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per CreatedDate for Opportunity where total Amount > 42621", | |
| "output": "SELECT CreatedDate, SUM(Amount) total FROM Opportunity GROUP BY CreatedDate HAVING SUM(Amount) > 42621" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Id equals Sample Id 5573", | |
| "output": "SELECT Id, Name FROM Case WHERE Id = 'Sample Id 5573'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where BillingPostalCode equals Sample BillingPostalCode 426", | |
| "output": "SELECT Id, Name FROM Account WHERE BillingPostalCode = 'Sample BillingPostalCode 426'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per CloseDate for Opportunity where total Amount > 10379", | |
| "output": "SELECT CloseDate, SUM(Amount) total FROM Opportunity GROUP BY CloseDate HAVING SUM(Amount) > 10379" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 4120", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 4120'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 213", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 213'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2019-08-17", | |
| "output": "SELECT Id, Name FROM Contact WHERE CreatedDate > '2019-08-17T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 8637", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 8637'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName equals Sample LastName 2881", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName = 'Sample LastName 2881'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Quotes grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Quote GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 380", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 380'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 9507", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 9507'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 30", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ApptBundleAggrDurDnscale with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ApptBundleAggrDurDnscale WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2020-09-24", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2020-09-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 1401", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 1401'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by Status descending, limit 1", | |
| "output": "SELECT Id, Name FROM Case ORDER BY Status DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where IsActive is true", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ProductRequest with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ProductRequest WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Id is in (9388, 4851, 6605)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id IN (9388, 4851, 6605)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related opportunity records where createddate contains 'demo' and createddate = 339", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE CreatedDate LIKE '%Demo%') FROM Account WHERE CreatedDate = 339" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Opportunity with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Opportunity WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ApptBundleAggrDurDnscale with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ApptBundleAggrDurDnscale WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Id equals Sample Id 9376", | |
| "output": "SELECT Id, Name FROM Contact WHERE Id = 'Sample Id 9376'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by ShippingLongitude descending, limit 5", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY ShippingLongitude DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count total Accounts grouped by Industry", | |
| "output": "SELECT Industry, COUNT(Id) total FROM Account GROUP BY Industry" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 8408", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 8408'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Subject descending, limit 100", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Subject DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 82", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 82'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (8047, 1871, 5675)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (8047, 1871, 5675)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related WorkOrder with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 884", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 884'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 4439", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 4439'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2018-02-03", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2018-02-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name equals Sample Name 7327", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name = 'Sample Name 7327'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 1001", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 1001'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 9912", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 9912'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 3689", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 3689'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where InstallDate is in (222, 3836, 4355)", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate IN (222, 3836, 4355)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 8184", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 8184'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 3593", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 3593'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related order records where id contains 'demo' and numberofemployees = 7153", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Order WHERE Id LIKE '%Demo%') FROM Account WHERE NumberOfEmployees = 7153" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by Priority descending, limit 100", | |
| "output": "SELECT Id, Name FROM Case ORDER BY Priority DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where CreatedDate is in (1001, 2641, 9476)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate IN (1001, 2641, 9476)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related ServiceContract with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM ServiceContract WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by EndDate having count > 32", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM Contract GROUP BY EndDate HAVING COUNT(Id) > 32" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2022-12-24", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2022-12-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where OpportunityId is in (9574, 354, 1125)", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId IN (9574, 354, 1125)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where ContactId is in (3642, 8038, 2779)", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId IN (3642, 8038, 2779)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related OrderItem with UnitPrice > 31", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM OrderItem WHERE UnitPrice > 31)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count total Contacts", | |
| "output": "SELECT COUNT(Id) total FROM Contact" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Leads grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 3832", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 3832'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Quote with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Quote WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related pricebookentry records where unitprice contains 'demo' and closeddate = 9132", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE UnitPrice LIKE '%Demo%') FROM Case WHERE ClosedDate = 9132" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Type equals Sample Type 6578", | |
| "output": "SELECT Id, Name FROM Account WHERE Type = 'Sample Type 6578'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Industry for Account where total AnnualRevenue > 47508", | |
| "output": "SELECT Industry, SUM(AnnualRevenue) total FROM Account GROUP BY Industry HAVING SUM(AnnualRevenue) > 47508" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2022-09-24", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CreatedDate > '2022-09-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Account with Type containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Account WHERE Type LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Id equals Sample Id 9472", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id = 'Sample Id 9472'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where AccountId is in (4815, 9042, 9685)", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId IN (4815, 9042, 9685)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related servicecontract records where status contains 'demo' and id = 8771", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE Status LIKE '%Demo%') FROM User WHERE Id = 8771" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Contact with Email = user1514@example.com", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Contact WHERE Email = 'user1514@example.com')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Id equals Sample Id 5794", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id = 'Sample Id 5794'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2024-11-15", | |
| "output": "SELECT Id, Name FROM Case WHERE CreatedDate > '2024-11-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Name for Account where total AnnualRevenue > 43842", | |
| "output": "SELECT Name, SUM(AnnualRevenue) total FROM Account GROUP BY Name HAVING SUM(AnnualRevenue) > 43842" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName equals Sample StageName 6040", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName = 'Sample StageName 6040'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by CloseDate descending, limit 5", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY CloseDate DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by InstallDate having count > 21", | |
| "output": "SELECT InstallDate, COUNT(Id) cnt FROM Asset GROUP BY InstallDate HAVING COUNT(Id) > 21" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related pricebookentry records where unitprice contains 'demo' and subject = 2878", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE UnitPrice LIKE '%Demo%') FROM Case WHERE Subject = 2878" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name equals Sample Name 3999", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name = 'Sample Name 3999'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Probability equals Sample Probability 6890", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Probability = 'Sample Probability 6890'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 1087", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 1087'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by StartDate having count > 27", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM ServiceContract GROUP BY StartDate HAVING COUNT(Id) > 27" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Entitlement with EndDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Entitlement WHERE EndDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 6159", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 6159'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 1321", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 1321'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Quote with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Quote WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 2565", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 2565'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related asset records where id contains 'demo' and probability = 6498", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE Id LIKE '%Demo%') FROM Opportunity WHERE Probability = 6498" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 2495", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 2495'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Status having count > 48", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status HAVING COUNT(Id) > 48" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where BillingPostalCode equals Sample BillingPostalCode 1211", | |
| "output": "SELECT Id, Name FROM Account WHERE BillingPostalCode = 'Sample BillingPostalCode 1211'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 9114", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 9114'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related InvoiceLine with ChargeAmount > 322", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE ChargeAmount > 322)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Industry is in (7415, 2471, 8682)", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry IN (7415, 2471, 8682)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related InvoiceLine with TaxRate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE TaxRate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where UnitPrice is in (5594, 1582, 5844)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice IN (5594, 1582, 5844)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 9204", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 9204'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Account with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Account WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 3572", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 3572'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Name descending, limit 100", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Name DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 5640", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 5640'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 3372", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 3372'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 8101", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 8101'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Id for Order where total TotalAmount > 14748", | |
| "output": "SELECT Id, SUM(TotalAmount) total FROM Order GROUP BY Id HAVING SUM(TotalAmount) > 14748" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where ProductCode is in (4774, 9660, 9185)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode IN (4774, 9660, 9185)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Invoice with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Invoice WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Id equals Sample Id 1754", | |
| "output": "SELECT Id, Name FROM Case WHERE Id = 'Sample Id 1754'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Company is in (7455, 6141, 104)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company IN (7455, 6141, 104)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Opportunities grouped by StageName", | |
| "output": "SELECT StageName, COUNT(Id) cnt FROM Opportunity GROUP BY StageName" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related servicecontract records where startdate contains 'demo' and subject = 2269", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE StartDate LIKE '%Demo%') FROM Case WHERE Subject = 2269" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 778", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 778'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Task with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Task WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 9087", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 9087'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where TotalAmount is in (851, 2470, 2305)", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount IN (851, 2470, 2305)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related WorkOrderLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM WorkOrderLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 779", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 779" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (2127, 9261, 9925)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (2127, 9261, 9925)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 7555", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 7555'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by EndDate having count > 27", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM Contract GROUP BY EndDate HAVING COUNT(Id) > 27" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 5059", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 5059'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Id for Order where total TotalAmount > 34868", | |
| "output": "SELECT Id, SUM(TotalAmount) total FROM Order GROUP BY Id HAVING SUM(TotalAmount) > 34868" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Product2 with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Product2 WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2022-05-03", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2022-05-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where CreatedDate is in (1997, 5095, 2645)", | |
| "output": "SELECT Id, Name FROM Lead WHERE CreatedDate IN (1997, 5095, 2645)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where CreatedDate is in (9175, 1192, 4709)", | |
| "output": "SELECT Id, Name FROM Case WHERE CreatedDate IN (9175, 1192, 4709)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Id is in (3223, 6709, 8743)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id IN (3223, 6709, 8743)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Test'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related pricebookentry records where id contains 'demo' and id = 6637", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE Id LIKE '%Demo%') FROM Account WHERE Id = 6637" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ConsumptionRate with Price > 767", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ConsumptionRate WHERE Price > 767)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Status is in (432, 1705, 6595)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status IN (432, 1705, 6595)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity with Amount greater than 3819", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Amount > 3819" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by Email descending, limit 1", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY Email DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 8153", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 8153'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2018-06-04", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2018-06-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Document__c with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Document__c WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (3992, 6104, 8240)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (3992, 6104, 8240)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 2967", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 2967'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related PricebookEntry with Pricebook2Id > 835", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM PricebookEntry WHERE Pricebook2Id > 835)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2019-07-07", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2019-07-07T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where OwnerId is in (9397, 4137, 7499)", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId IN (9397, 4137, 7499)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by EndDate having count > 30", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM WorkOrder GROUP BY EndDate HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by AccountId having count > 50", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM WorkOrder GROUP BY AccountId HAVING COUNT(Id) > 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Priority equals Sample Priority 1084", | |
| "output": "SELECT Id, Name FROM Case WHERE Priority = 'Sample Priority 1084'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where OwnerId equals Sample OwnerId 939", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE OwnerId = 'Sample OwnerId 939'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 1311", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 1311'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Test'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 7634", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 7634'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 8339", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 8339'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by Id descending, limit 1", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY Id DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Industry having count > 50", | |
| "output": "SELECT Industry, COUNT(Id) cnt FROM Lead GROUP BY Industry HAVING COUNT(Id) > 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by AccountId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY AccountId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Pricebook2Id per IsActive for PricebookEntry where total Pricebook2Id > 35710", | |
| "output": "SELECT IsActive, SUM(Pricebook2Id) total FROM PricebookEntry GROUP BY IsActive HAVING SUM(Pricebook2Id) > 35710" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 6649", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 6649'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related asset records where product2id contains 'demo' and contactid = 472", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE Product2Id LIKE '%Demo%') FROM Case WHERE ContactId = 472" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Subject having count > 34", | |
| "output": "SELECT Subject, COUNT(Id) cnt FROM Case GROUP BY Subject HAVING COUNT(Id) > 34" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (4008, 3240, 8395)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (4008, 3240, 8395)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by Name descending, limit 5", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY Name DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Id equals Sample Id 6292", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id = 'Sample Id 6292'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Name having count > 31", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Lead GROUP BY Name HAVING COUNT(Id) > 31" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2020-06-12", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2020-06-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than 21.428733", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 21.428733" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Invoice with DueDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Invoice WHERE DueDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 2520", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 2520'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related case records where closeddate contains 'demo' and email = 5953", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Case WHERE ClosedDate LIKE '%Demo%') FROM User WHERE Email = 5953" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Status equals Sample Status 3265", | |
| "output": "SELECT Id, Name FROM Case WHERE Status = 'Sample Status 3265'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where IsActive is in (2518, 3355, 7601)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive IN (2518, 3355, 7601)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Lead with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Lead WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 9885", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 9885'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 9250", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 9250'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Quote with TotalPrice > 494", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Quote WHERE TotalPrice > 494)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related CreditMemoLine with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM CreditMemoLine WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 897", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 897'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by TotalPrice descending, limit 10", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY TotalPrice DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related WorkOrderLineItem with WorkOrderId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM WorkOrderLineItem WHERE WorkOrderId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Status having count > 26", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM WorkOrder GROUP BY Status HAVING COUNT(Id) > 26" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by Product2Id having count > 3", | |
| "output": "SELECT Product2Id, COUNT(Id) cnt FROM Asset GROUP BY Product2Id HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related product2 records where name contains 'demo' and annualrevenue = 4219", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Name LIKE '%Demo%') FROM Account WHERE AnnualRevenue = 4219" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Document__c with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Document__c WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 5712", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 5712'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contact records where accountid contains 'demo' and amount = 5200", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contact WHERE AccountId LIKE '%Demo%') FROM Opportunity WHERE Amount = 5200" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per OpportunityId for Quote where total TotalPrice > 4562", | |
| "output": "SELECT OpportunityId, SUM(TotalPrice) total FROM Quote GROUP BY OpportunityId HAVING SUM(TotalPrice) > 4562" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 5210", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 5210'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where Id is in (801, 6754, 1011)", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (801, 6754, 1011)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 8297", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 8297'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related contact records where id contains 'demo' and stagename = 6202", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contact WHERE Id LIKE '%Demo%') FROM Opportunity WHERE StageName = 6202" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Status equals Sample Status 9862", | |
| "output": "SELECT Id, Name FROM Case WHERE Status = 'Sample Status 9862'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where EndDate is in (3759, 3416, 5518)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate IN (3759, 3416, 5518)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 3365", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 3365'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where AccountId equals Sample AccountId 284", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId = 'Sample AccountId 284'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 876", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 876'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (8922, 2593, 8584)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (8922, 2593, 8584)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 8025", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 8025'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Contract with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Contract WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Id equals Sample Id 4875", | |
| "output": "SELECT Id, Name FROM Contact WHERE Id = 'Sample Id 4875'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where StartDate is in (3071, 9627, 6280)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate IN (3071, 9627, 6280)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by Priority having count > 22", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM WorkOrder GROUP BY Priority HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is true", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related product2 records where id contains 'demo' and username = 7970", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Id LIKE '%Demo%') FROM User WHERE Username = 7970" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 8821", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 8821" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related case records where priority contains 'demo' and subject = 8518", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Case WHERE Priority LIKE '%Demo%') FROM Case WHERE Subject = 8518" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related asset records where installdate contains 'demo' and email = 4865", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE InstallDate LIKE '%Demo%') FROM User WHERE Email = 4865" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 8764", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 8764'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Id equals Sample Id 4910", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id = 'Sample Id 4910'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Phone having count > 22", | |
| "output": "SELECT Phone, COUNT(Id) cnt FROM Contact GROUP BY Phone HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Industry is in (3032, 7944, 3848)", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry IN (3032, 7944, 3848)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by AccountId having count > 22", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM ServiceContract GROUP BY AccountId HAVING COUNT(Id) > 22" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Invoice with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Invoice WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where AccountId is in (1125, 1957, 4654)", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId IN (1125, 1957, 4654)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2020-03-14", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2020-03-14T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Opportunity with StageName containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Opportunity WHERE StageName LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Email having count > 43", | |
| "output": "SELECT Email, COUNT(Id) cnt FROM Lead GROUP BY Email HAVING COUNT(Id) > 43" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where CreatedDate is in (9952, 3884, 5930)", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate IN (9952, 3884, 5930)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contacts grouped by AccountId", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Contact GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where OpportunityId is in (112, 5072, 9941)", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId IN (112, 5072, 9941)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 6951", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 6951'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 5693", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 5693'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 4932", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 4932'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Id equals Sample Id 9105", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id = 'Sample Id 9105'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where OwnerId equals Sample OwnerId 762", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE OwnerId = 'Sample OwnerId 762'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where AccountId is in (1610, 1666, 6933)", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId IN (1610, 1666, 6933)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 5039", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 5039'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 8373", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 8373'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where CreatedDate is in (3585, 4566, 9323)", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate IN (3585, 4566, 9323)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related WorkOrder with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Id is in (9477, 4834, 7029)", | |
| "output": "SELECT Id, Name FROM Order WHERE Id IN (9477, 4834, 7029)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where StageName is in (8584, 7019, 6895)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName IN (8584, 7019, 6895)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2023-11-19", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2023-11-19T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName equals Sample StageName 2955", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName = 'Sample StageName 2955'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2025-01-04", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2025-01-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Test'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2018-09-16", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2018-09-16T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 2460", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 2460'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Account with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Account WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related CreditMemoLine with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM CreditMemoLine WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 2782", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 2782'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Id is in (4086, 8691, 3324)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Id IN (4086, 8691, 3324)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by OwnerId descending, limit 10", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY OwnerId DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by InstallDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY InstallDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related product2 records where isactive contains 'demo' and profileid = 7592", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE IsActive LIKE '%Demo%') FROM User WHERE ProfileId = 7592" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where AccountId equals Sample AccountId 1601", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE AccountId = 'Sample AccountId 1601'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by StartDate having count > 21", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM WorkOrder GROUP BY StartDate HAVING COUNT(Id) > 21" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 5354", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 5354" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 8801", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 8801'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode equals Sample ProductCode 1512", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode = 'Sample ProductCode 1512'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Event with EndDateTime containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Event WHERE EndDateTime LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Id equals Sample Id 4296", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id = 'Sample Id 4296'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Name having count > 37", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Lead GROUP BY Name HAVING COUNT(Id) > 37" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related InvoiceLine with ChargeAmount > 596", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE ChargeAmount > 596)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where AccountId is in (3991, 4629, 5791)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId IN (3991, 4629, 5791)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode equals Sample ProductCode 4360", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode = 'Sample ProductCode 4360'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Name having count > 30", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Product2 GROUP BY Name HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name equals Sample Name 830", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name = 'Sample Name 830'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2022-01-01", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2022-01-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2020-09-29", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2020-09-29T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2022-09-12", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2022-09-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where SerialNumber is in (7035, 8093, 9992)", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber IN (7035, 8093, 9992)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Opportunities grouped by AccountId having count greater than 3", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Opportunity GROUP BY AccountId HAVING COUNT(Id) > 3" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Id is in (4573, 7598, 861)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id IN (4573, 7598, 861)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2022-01-20", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2022-01-20T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Id is in (5807, 6766, 2429)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id IN (5807, 6766, 2429)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by IsActive descending, limit 5", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY IsActive DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by OwnerId having count > 24", | |
| "output": "SELECT OwnerId, COUNT(Id) cnt FROM Contract GROUP BY OwnerId HAVING COUNT(Id) > 24" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by ProductCode having count > 50", | |
| "output": "SELECT ProductCode, COUNT(Id) cnt FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Pricebook2Id per Product2Id for PricebookEntry where total Pricebook2Id > 4576", | |
| "output": "SELECT Product2Id, SUM(Pricebook2Id) total FROM PricebookEntry GROUP BY Product2Id HAVING SUM(Pricebook2Id) > 4576" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where EndDate is in (8327, 5719, 3454)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate IN (8327, 5719, 3454)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Email having count > 32", | |
| "output": "SELECT Email, COUNT(Id) cnt FROM Contact GROUP BY Email HAVING COUNT(Id) > 32" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related OrderItem with OrderId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM OrderItem WHERE OrderId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Pricebook2Id per UnitPrice for PricebookEntry where total Pricebook2Id > 24413", | |
| "output": "SELECT UnitPrice, SUM(Pricebook2Id) total FROM PricebookEntry GROUP BY UnitPrice HAVING SUM(Pricebook2Id) > 24413" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where FirstName is in (7923, 5086, 4425)", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName IN (7923, 5086, 4425)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2025-05-26", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2025-05-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by Status descending, limit 1", | |
| "output": "SELECT Id, Name FROM Order ORDER BY Status DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 6436", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 6436" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2022-01-31", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2022-01-31T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 8609", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 8609'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by CreatedDate having count > 21", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Lead GROUP BY CreatedDate HAVING COUNT(Id) > 21" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Name is in (6516, 5931, 6206)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name IN (6516, 5931, 6206)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by CreatedDate having count > 29", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Product2 GROUP BY CreatedDate HAVING COUNT(Id) > 29" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by AccountId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Case ORDER BY AccountId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by OwnerId having count > 4", | |
| "output": "SELECT OwnerId, COUNT(Id) cnt FROM Contract GROUP BY OwnerId HAVING COUNT(Id) > 4" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is true", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 28", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 28" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2019-08-04", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2019-08-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by EndDate having count > 36", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM WorkOrder GROUP BY EndDate HAVING COUNT(Id) > 36" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 830", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 830'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total UnitPrice per IsActive for PricebookEntry where total UnitPrice > 29482", | |
| "output": "SELECT IsActive, SUM(UnitPrice) total FROM PricebookEntry GROUP BY IsActive HAVING SUM(UnitPrice) > 29482" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by Product2Id having count > 4", | |
| "output": "SELECT Product2Id, COUNT(Id) cnt FROM Asset GROUP BY Product2Id HAVING COUNT(Id) > 4" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2021-06-24", | |
| "output": "SELECT Id, Name FROM Lead WHERE CreatedDate > '2021-06-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Event with Location containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Event WHERE Location LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Order with EffectiveDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Order WHERE EffectiveDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by AccountId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Case ORDER BY AccountId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than 63.579612", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 63.579612" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Pricebook2Id per CreatedDate for PricebookEntry where total Pricebook2Id > 46856", | |
| "output": "SELECT CreatedDate, SUM(Pricebook2Id) total FROM PricebookEntry GROUP BY CreatedDate HAVING SUM(Pricebook2Id) > 46856" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Industry equals Sample Industry 4636", | |
| "output": "SELECT Id, Name FROM Lead WHERE Industry = 'Sample Industry 4636'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Product2Id is in (4424, 101, 7939)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id IN (4424, 101, 7939)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related FeedComment with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM FeedComment WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by EndDate descending, limit 100", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY EndDate DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 35", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 35" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Name having count > 15", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Lead GROUP BY Name HAVING COUNT(Id) > 15" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 2802", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 2802'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where EffectiveDate is in (4611, 1638, 1591)", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate IN (4611, 1638, 1591)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (3512, 5865, 5526)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (3512, 5865, 5526)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is true", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Products grouped by Family", | |
| "output": "SELECT Family, COUNT(Id) cnt FROM Product2 GROUP BY Family" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 2323", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 2323'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 7812", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 7812'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by LastActivityDate having count > 9", | |
| "output": "SELECT LastActivityDate, COUNT(Id) cnt FROM Contact GROUP BY LastActivityDate HAVING COUNT(Id) > 9" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by StartDate having count > 5", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM ServiceContract GROUP BY StartDate HAVING COUNT(Id) > 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account with AnnualRevenue greater than 9927", | |
| "output": "SELECT Id, Name FROM Account WHERE AnnualRevenue > 9927" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Product2 with Family containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Product2 WHERE Family LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 8456", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 8456'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 877", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 877'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Cases grouped by AccountId having count greater than 5", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Case GROUP BY AccountId HAVING COUNT(Id) > 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 449", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 449'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2025-06-08", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2025-06-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by AccountId descending, limit 1", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY AccountId DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Email having count > 13", | |
| "output": "SELECT Email, COUNT(Id) cnt FROM Lead GROUP BY Email HAVING COUNT(Id) > 13" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2018-10-22", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2018-10-22T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-07-09", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2025-07-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Opportunity with Amount > 92", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Opportunity WHERE Amount > 92)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get sum of TotalPrice per Status for Quote", | |
| "output": "SELECT Status, SUM(TotalPrice) total FROM Quote GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (2252, 2818, 4967)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (2252, 2818, 4967)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by AccountId descending, limit 1", | |
| "output": "SELECT Id, Name FROM Order ORDER BY AccountId DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by Product2Id having count > 6", | |
| "output": "SELECT Product2Id, COUNT(Id) cnt FROM Asset GROUP BY Product2Id HAVING COUNT(Id) > 6" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by CreatedDate having count > 48", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Case GROUP BY CreatedDate HAVING COUNT(Id) > 48" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 4108", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 4108'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where IsActive is false", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2025-05-24", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2025-05-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Name having count > 37", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Contact GROUP BY Name HAVING COUNT(Id) > 37" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 8072", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 8072'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by EndDate having count > 20", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM WorkOrder GROUP BY EndDate HAVING COUNT(Id) > 20" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 3183", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 3183'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 6374", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 6374'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where Status is in (6448, 2261, 1322)", | |
| "output": "SELECT Id, Name FROM Case WHERE Status IN (6448, 2261, 1322)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Product2 with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Product2 WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Quote with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Quote WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 181", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 181'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by OwnerId descending, limit 100", | |
| "output": "SELECT Id, Name FROM Order ORDER BY OwnerId DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per AccountId for Order where total TotalAmount > 16252", | |
| "output": "SELECT AccountId, SUM(TotalAmount) total FROM Order GROUP BY AccountId HAVING SUM(TotalAmount) > 16252" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2025-10-10", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2025-10-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote with TotalPrice greater than 1750", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice > 1750" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Priority equals Sample Priority 2170", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority = 'Sample Priority 2170'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 7048", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 7048'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per OwnerId for Order where total TotalAmount > 27199", | |
| "output": "SELECT OwnerId, SUM(TotalAmount) total FROM Order GROUP BY OwnerId HAVING SUM(TotalAmount) > 27199" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Name is in (4448, 7784, 2312)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name IN (4448, 7784, 2312)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2018-04-26", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastActivityDate > '2018-04-26T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by IsActive descending, limit 10", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY IsActive DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related InvoiceLine with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLongitude less than 48.012839", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude < 48.012839" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Id having count > 47", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Contact GROUP BY Id HAVING COUNT(Id) > 47" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 2379", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 2379'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2025-12-02", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2025-12-02T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2021-09-01", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2021-09-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related ServiceResource with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where UnitPrice is in (9589, 5741, 3144)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice IN (9589, 5741, 3144)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Order with TotalAmount > 465", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Order WHERE TotalAmount > 465)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where Status is in (9665, 9312, 1715)", | |
| "output": "SELECT Id, Name FROM Case WHERE Status IN (9665, 9312, 1715)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related contract records where ownerid contains 'demo' and billingpostalcode = 6591", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Contract WHERE OwnerId LIKE '%Demo%') FROM Account WHERE BillingPostalCode = 6591" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2020-11-06", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE StartDate > '2020-11-06T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Products where IsActive is true", | |
| "output": "SELECT COUNT(Id) total FROM Product2 WHERE IsActive = true" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 8906", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 8906'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 5598", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 5598'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by Id descending, limit 10", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY Id DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Lead created after 2024-11-07", | |
| "output": "SELECT Id, Name FROM Lead WHERE CreatedDate > '2024-11-07T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Id equals Sample Id 9740", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id = 'Sample Id 9740'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Id for Account where total AnnualRevenue > 18216", | |
| "output": "SELECT Id, SUM(AnnualRevenue) total FROM Account GROUP BY Id HAVING SUM(AnnualRevenue) > 18216" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where UnitPrice is in (4066, 7013, 2605)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice IN (4066, 7013, 2605)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2020-02-03", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2020-02-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Id equals Sample Id 8381", | |
| "output": "SELECT Id, Name FROM Case WHERE Id = 'Sample Id 8381'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by EndDate having count > 43", | |
| "output": "SELECT EndDate, COUNT(Id) cnt FROM ServiceContract GROUP BY EndDate HAVING COUNT(Id) > 43" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Name descending, limit 5", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Name DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Industry equals Sample Industry 2380", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry = 'Sample Industry 2380'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Id equals Sample Id 2952", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id = 'Sample Id 2952'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-07-02", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2025-07-02T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where NumberOfEmployees equals Sample NumberOfEmployees 5291", | |
| "output": "SELECT Id, Name FROM Account WHERE NumberOfEmployees = 'Sample NumberOfEmployees 5291'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2020-01-03", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2020-01-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related EmailMessage with ToAddress containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE ToAddress LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 4511", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 4511'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Order with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Order WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where AccountId equals Sample AccountId 7571", | |
| "output": "SELECT Id, Name FROM Contact WHERE AccountId = 'Sample AccountId 7571'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related InvoiceLine with TaxRate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE TaxRate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by IsActive having count > 15", | |
| "output": "SELECT IsActive, COUNT(Id) cnt FROM Product2 GROUP BY IsActive HAVING COUNT(Id) > 15" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ServiceContract with ShippingLatitude containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ServiceContract WHERE ShippingLatitude LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related EmailMessage with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where IsActive is in (7269, 1147, 1204)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive IN (7269, 1147, 1204)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (5787, 6954, 2087)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (5787, 6954, 2087)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Task with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Task WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 8548", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 8548'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 6026", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 6026'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by CreatedDate descending, limit 5", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY CreatedDate DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where OpportunityId is in (8749, 1873, 7804)", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId IN (8749, 1873, 7804)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where AccountId is in (3481, 9647, 8341)", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId IN (3481, 9647, 8341)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrders grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM WorkOrder GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per AnnualRevenue for Account where total AnnualRevenue > 39198", | |
| "output": "SELECT AnnualRevenue, SUM(AnnualRevenue) total FROM Account GROUP BY AnnualRevenue HAVING SUM(AnnualRevenue) > 39198" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Id equals Sample Id 4392", | |
| "output": "SELECT Id, Name FROM Case WHERE Id = 'Sample Id 4392'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by InstallDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY InstallDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 9629", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 9629'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 3240", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 3240'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by SerialNumber descending, limit 1", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY SerialNumber DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by OpportunityId descending, limit 1", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY OpportunityId DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2018-02-28", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2018-02-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than 28.587656", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 28.587656" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related Invoice with TotalAmount > 545", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM Invoice WHERE TotalAmount > 545)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Contract with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Contract WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 5470", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 5470'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where IsActive is false", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 6", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 6" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related opportunity records where name contains 'demo' and username = 3126", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Demo%') FROM User WHERE Username = 3126" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 4285", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 4285'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 3998", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 3998'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2021-08-24", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2021-08-24T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where ShippingLongitude is in (1625, 446, 5673)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude IN (1625, 446, 5673)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Family is in (7462, 8182, 9537)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family IN (7462, 8182, 9537)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Status is in (8894, 8632, 5663)", | |
| "output": "SELECT Id, Name FROM Order WHERE Status IN (8894, 8632, 5663)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Cases grouped by Type", | |
| "output": "SELECT Type, COUNT(Id) cnt FROM Case GROUP BY Type" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2025-04-22", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2025-04-22T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 1220", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 1220'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where StartDate is in (4701, 6699, 2708)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate IN (4701, 6699, 2708)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2018-06-23", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2018-06-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2021-05-29", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastActivityDate > '2021-05-29T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by IsActive descending, limit 5", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY IsActive DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where EndDate is in (3909, 149, 3379)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate IN (3909, 149, 3379)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where OwnerId is in (7190, 793, 4286)", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId IN (7190, 793, 4286)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Company is in (790, 1599, 5833)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company IN (790, 1599, 5833)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where AccountId is in (8137, 6139, 852)", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId IN (8137, 6139, 852)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 6323", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 6323'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name equals Sample Name 2143", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name = 'Sample Name 2143'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Quote with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Quote WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related product2 records where id contains 'demo' and createddate = 1279", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Product2 WHERE Id LIKE '%Demo%') FROM Opportunity WHERE CreatedDate = 1279" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by Id descending, limit 5", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY Id DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by StartDate having count > 33", | |
| "output": "SELECT StartDate, COUNT(Id) cnt FROM Contract GROUP BY StartDate HAVING COUNT(Id) > 33" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Asset with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Asset WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 3716", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 3716'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related ServiceResource with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related FeedComment with CreatedById containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM FeedComment WHERE CreatedById LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2019-10-23", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2019-10-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 5114", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 5114'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related ProductRequest with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM ProductRequest WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Status for Quote where total TotalPrice > 15830", | |
| "output": "SELECT Status, SUM(TotalPrice) total FROM Quote GROUP BY Status HAVING SUM(TotalPrice) > 15830" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-01-22", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2025-01-22T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where TotalAmount equals Sample TotalAmount 3350", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount = 'Sample TotalAmount 3350'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Name is in (2922, 231, 2030)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name IN (2922, 231, 2030)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related pricebookentry records where id contains 'demo' and username = 2820", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE Id LIKE '%Demo%') FROM User WHERE Username = 2820" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by AccountId having count > 26", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM WorkOrder GROUP BY AccountId HAVING COUNT(Id) > 26" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Priority equals Sample Priority 5233", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority = 'Sample Priority 5233'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2025-12-06", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2025-12-06T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 7085", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 7085'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related pricebookentry records where id contains 'demo' and lastlogindate = 6199", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE Id LIKE '%Demo%') FROM User WHERE LastLoginDate = 6199" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by Id descending, limit 5", | |
| "output": "SELECT Id, Name FROM Account ORDER BY Id DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 682", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 682'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact records where Email is user9021@example.com", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email = 'user9021@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Phone having count > 17", | |
| "output": "SELECT Phone, COUNT(Id) cnt FROM Contact GROUP BY Phone HAVING COUNT(Id) > 17" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 5092", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 5092'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by InstallDate having count > 44", | |
| "output": "SELECT InstallDate, COUNT(Id) cnt FROM Asset GROUP BY InstallDate HAVING COUNT(Id) > 44" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Id for Account where total AnnualRevenue > 2411", | |
| "output": "SELECT Id, SUM(AnnualRevenue) total FROM Account GROUP BY Id HAVING SUM(AnnualRevenue) > 2411" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 5681", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 5681'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where TotalAmount equals Sample TotalAmount 7214", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount = 'Sample TotalAmount 7214'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 2027", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 2027'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2019-08-12", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2019-08-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by Industry descending, limit 100", | |
| "output": "SELECT Id, Name FROM Account ORDER BY Industry DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related InvoiceLine with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name equals Sample Name 8654", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name = 'Sample Name 8654'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 3325", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 3325'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by Id descending, limit 5", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY Id DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total UnitPrice per Product2Id for PricebookEntry where total UnitPrice > 35156", | |
| "output": "SELECT Product2Id, SUM(UnitPrice) total FROM PricebookEntry GROUP BY Product2Id HAVING SUM(UnitPrice) > 35156" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Name is in (6025, 1651, 840)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name IN (6025, 1651, 840)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where StartDate is in (7701, 3736, 3475)", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate IN (7701, 3736, 3475)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Status having count > 46", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Lead GROUP BY Status HAVING COUNT(Id) > 46" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLongitude less than 60.569121", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLongitude < 60.569121" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Id is in (2937, 9258, 2772)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id IN (2937, 9258, 2772)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by CreatedDate having count > 30", | |
| "output": "SELECT CreatedDate, COUNT(Id) cnt FROM Lead GROUP BY CreatedDate HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by Id descending, limit 50", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY Id DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 5910", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 5910'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Id is in (6755, 2492, 745)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (6755, 2492, 745)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where StartDate is in (6070, 7194, 2154)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate IN (6070, 7194, 2154)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Order created after 2020-11-12", | |
| "output": "SELECT Id, Name FROM Order WHERE EffectiveDate > '2020-11-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 4704", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 4704'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 7400", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 7400'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by Id descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY Id DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get average Amount per StageName for Opportunity", | |
| "output": "SELECT StageName, AVG(Amount) avgAmount FROM Opportunity GROUP BY StageName" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where EndDate is in (660, 3807, 1963)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate IN (660, 3807, 1963)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where Status is in (4671, 3242, 3571)", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status IN (4671, 3242, 3571)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by UnitPrice descending, limit 5", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY UnitPrice DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get average AnnualRevenue per Industry for Account", | |
| "output": "SELECT Industry, AVG(AnnualRevenue) avgRevenue FROM Account GROUP BY Industry" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ContractCondition with ConditionType containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ContractCondition WHERE ConditionType LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related account records where type contains 'demo' and probability = 299", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Account WHERE Type LIKE '%Demo%') FROM Opportunity WHERE Probability = 299" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Event with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Event WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ConsumptionRate with Price > 958", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ConsumptionRate WHERE Price > 958)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Product2 created after 2020-04-14", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate > '2020-04-14T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 6257", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 6257'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related WorkOrder with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 5566", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 5566'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company equals Sample Company 8644", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company = 'Sample Company 8644'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode equals Sample ProductCode 5229", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode = 'Sample ProductCode 5229'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by LastActivityDate having count > 12", | |
| "output": "SELECT LastActivityDate, COUNT(Id) cnt FROM Contact GROUP BY LastActivityDate HAVING COUNT(Id) > 12" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2021-01-09", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2021-01-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where AccountId is in (4045, 3668, 7272)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE AccountId IN (4045, 3668, 7272)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Name descending, limit 10", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Name DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Subject is in (5429, 9114, 7009)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject IN (5429, 9114, 7009)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (6960, 9817, 2364)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (6960, 9817, 2364)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where AccountId equals Sample AccountId 9087", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId = 'Sample AccountId 9087'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 2768", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 2768'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Name is in (858, 8945, 2651)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name IN (858, 8945, 2651)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 6322", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 6322'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related opportunity records where closedate contains 'demo' and name = 6627", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE CloseDate LIKE '%Demo%') FROM Account WHERE Name = 6627" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 4912", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 4912'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by OwnerId descending, limit 1", | |
| "output": "SELECT Id, Name FROM Account ORDER BY OwnerId DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 773", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 773'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Quote with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Quote WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name equals Sample Name 8597", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name = 'Sample Name 8597'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 7742", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 7742'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per AccountId for Quote where total TotalPrice > 39729", | |
| "output": "SELECT AccountId, SUM(TotalPrice) total FROM Quote GROUP BY AccountId HAVING SUM(TotalPrice) > 39729" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where CreatedDate is in (6733, 517, 7798)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate IN (6733, 517, 7798)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Contract with EndDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Contract WHERE EndDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Type equals Sample Type 267", | |
| "output": "SELECT Id, Name FROM Account WHERE Type = 'Sample Type 267'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2021-01-31", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2021-01-31T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 1458", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 1458'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 311", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 311'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per CloseDate for Opportunity where total Amount > 45115", | |
| "output": "SELECT CloseDate, SUM(Amount) total FROM Opportunity GROUP BY CloseDate HAVING SUM(Amount) > 45115" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 2094", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 2094'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by AccountId having count > 45", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM ServiceContract GROUP BY AccountId HAVING COUNT(Id) > 45" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related EmailMessage with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Lead with Industry containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Lead WHERE Industry LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count total Leads", | |
| "output": "SELECT COUNT(Id) total FROM Lead" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related OrderItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM OrderItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Name for Account where total AnnualRevenue > 5571", | |
| "output": "SELECT Name, SUM(AnnualRevenue) total FROM Account GROUP BY Name HAVING SUM(AnnualRevenue) > 5571" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Family having count > 30", | |
| "output": "SELECT Family, COUNT(Id) cnt FROM Product2 GROUP BY Family HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Status equals Sample Status 2333", | |
| "output": "SELECT Id, Name FROM Case WHERE Status = 'Sample Status 2333'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-06-23", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2025-06-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact records where Email is user6873@example.com", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email = 'user6873@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related opportunity records where stagename contains 'demo' and profileid = 1605", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%') FROM User WHERE ProfileId = 1605" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Id for Quote where total TotalPrice > 33227", | |
| "output": "SELECT Id, SUM(TotalPrice) total FROM Quote GROUP BY Id HAVING SUM(TotalPrice) > 33227" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 3887", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 3887'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Status equals Sample Status 7659", | |
| "output": "SELECT Id, Name FROM Order WHERE Status = 'Sample Status 7659'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 4306", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 4306'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ServiceResource with Name containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE Name LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where AccountId equals Sample AccountId 912", | |
| "output": "SELECT Id, Name FROM Contract WHERE AccountId = 'Sample AccountId 912'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 408", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 408'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 1352", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 1352'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where StartDate is in (6951, 4349, 9016)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate IN (6951, 4349, 9016)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Id is in (7827, 6109, 4549)", | |
| "output": "SELECT Id, Name FROM Order WHERE Id IN (7827, 6109, 4549)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 3333", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 3333'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by AccountId having count > 24", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Asset GROUP BY AccountId HAVING COUNT(Id) > 24" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get sum of TotalAmount per Status for Order", | |
| "output": "SELECT Status, SUM(TotalAmount) total FROM Order GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per NumberOfEmployees for Account where total AnnualRevenue > 20228", | |
| "output": "SELECT NumberOfEmployees, SUM(AnnualRevenue) total FROM Account GROUP BY NumberOfEmployees HAVING SUM(AnnualRevenue) > 20228" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Id having count > 1", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Lead GROUP BY Id HAVING COUNT(Id) > 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related KnowledgeArticleVersion with Title containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM KnowledgeArticleVersion WHERE Title LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 8123", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 8123'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Id descending, limit 1", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Id DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Status having count > 25", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Case GROUP BY Status HAVING COUNT(Id) > 25" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 33", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 33" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where Product2Id is in (4980, 7148, 5272)", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id IN (4980, 7148, 5272)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2018-07-23", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2018-07-23T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by Amount descending, limit 10", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY Amount DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Lead with Industry containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Lead WHERE Industry LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Id equals Sample Id 2747", | |
| "output": "SELECT Id, Name FROM Case WHERE Id = 'Sample Id 2747'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2019-06-01", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate > '2019-06-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contact ordered by Name descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contact ORDER BY Name DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Status equals Sample Status 6020", | |
| "output": "SELECT Id, Name FROM Quote WHERE Status = 'Sample Status 6020'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related workorder records where accountid contains 'demo' and stagename = 2754", | |
| "output": "SELECT Name, (SELECT Id, Name FROM WorkOrder WHERE AccountId LIKE '%Demo%') FROM Opportunity WHERE StageName = 2754" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where SerialNumber is in (8231, 4591, 7510)", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber IN (8231, 4591, 7510)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per EffectiveDate for Order where total TotalAmount > 24191", | |
| "output": "SELECT EffectiveDate, SUM(TotalAmount) total FROM Order GROUP BY EffectiveDate HAVING SUM(TotalAmount) > 24191" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (3077, 1621, 2246)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (3077, 1621, 2246)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 7553", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 7553'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related KnowledgeArticleVersion with CreatedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM KnowledgeArticleVersion WHERE CreatedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by ContactId descending, limit 1", | |
| "output": "SELECT Id, Name FROM Case ORDER BY ContactId DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Account with NumberOfEmployees containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Account WHERE NumberOfEmployees LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contracts grouped by Status", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM Contract GROUP BY Status" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by EndDate descending, limit 1", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY EndDate DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2022-06-15", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastActivityDate > '2022-06-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related InvoiceLine with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2025-11-28", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2025-11-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 4554", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 4554'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by FirstName having count > 37", | |
| "output": "SELECT FirstName, COUNT(Id) cnt FROM Contact GROUP BY FirstName HAVING COUNT(Id) > 37" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Id is in (4346, 9288, 3862)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id IN (4346, 9288, 3862)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by ConvertedDate descending, limit 1", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY ConvertedDate DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where IsActive is in (1231, 7064, 6790)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE IsActive IN (1231, 7064, 6790)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related EmailMessage with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by UnitPrice descending, limit 50", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY UnitPrice DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Industry equals Sample Industry 3754", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry = 'Sample Industry 3754'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where NumberOfEmployees is in (568, 543, 7887)", | |
| "output": "SELECT Id, Name FROM Account WHERE NumberOfEmployees IN (568, 543, 7887)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 7170", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 7170'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Phone equals Sample Phone 864", | |
| "output": "SELECT Id, Name FROM Contact WHERE Phone = 'Sample Phone 864'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName equals Sample FirstName 2197", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName = 'Sample FirstName 2197'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrder records grouped by AccountId having count > 31", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM WorkOrder GROUP BY AccountId HAVING COUNT(Id) > 31" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Id equals Sample Id 2161", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id = 'Sample Id 2161'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 6146", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 6146'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Id equals Sample Id 7824", | |
| "output": "SELECT Id, Name FROM Asset WHERE Id = 'Sample Id 7824'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 2364", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 2364'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Probability is in (9571, 1399, 1227)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Probability IN (9571, 1399, 1227)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Subject descending, limit 100", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Subject DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 7190", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 7190'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (3030, 6765, 7167)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (3030, 6765, 7167)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by Status descending, limit 100", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY Status DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related lead records where id contains 'demo' and id = 3740", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Lead WHERE Id LIKE '%Demo%') FROM Case WHERE Id = 3740" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by ShippingLatitude descending, limit 10", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY ShippingLatitude DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Family having count > 46", | |
| "output": "SELECT Family, COUNT(Id) cnt FROM Product2 GROUP BY Family HAVING COUNT(Id) > 46" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by AccountId descending, limit 10", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY AccountId DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Phone having count > 16", | |
| "output": "SELECT Phone, COUNT(Id) cnt FROM Contact GROUP BY Phone HAVING COUNT(Id) > 16" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related opportunity records where ownerid contains 'demo' and probability = 3925", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE OwnerId LIKE '%Demo%') FROM Opportunity WHERE Probability = 3925" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total UnitPrice per Id for PricebookEntry where total UnitPrice > 6657", | |
| "output": "SELECT Id, SUM(UnitPrice) total FROM PricebookEntry GROUP BY Id HAVING SUM(UnitPrice) > 6657" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Amount per Id for Opportunity where total Amount > 10358", | |
| "output": "SELECT Id, SUM(Amount) total FROM Opportunity GROUP BY Id HAVING SUM(Amount) > 10358" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Email is in (1502, 2854, 6349)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email IN (1502, 2854, 6349)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per AccountId for Order where total TotalAmount > 9415", | |
| "output": "SELECT AccountId, SUM(TotalAmount) total FROM Order GROUP BY AccountId HAVING SUM(TotalAmount) > 9415" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by Id descending, limit 1", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY Id DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count WorkOrders grouped by Priority", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM WorkOrder GROUP BY Priority" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where SerialNumber is in (4983, 8374, 743)", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber IN (4983, 8374, 743)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get maximum Amount per Type for Opportunity", | |
| "output": "SELECT Type, MAX(Amount) maxAmount FROM Opportunity GROUP BY Type" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Phone equals Sample Phone 6536", | |
| "output": "SELECT Id, Name FROM Contact WHERE Phone = 'Sample Phone 6536'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 2442", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 2442'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Id equals Sample Id 1262", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Id = 'Sample Id 1262'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where IsActive is in (1307, 8644, 3362)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive IN (1307, 8644, 3362)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2024-08-15", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2024-08-15T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Contract with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Contract WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Name is in (6182, 7796, 2634)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name IN (6182, 7796, 2634)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Id is in (7744, 2909, 7148)", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (7744, 2909, 7148)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Demo'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where AccountId is in (5094, 3596, 7502)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE AccountId IN (5094, 3596, 7502)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where CreatedDate is in (5055, 8941, 3947)", | |
| "output": "SELECT Id, Name FROM Contact WHERE CreatedDate IN (5055, 8941, 3947)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where OpportunityId is in (8938, 8645, 9371)", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId IN (8938, 8645, 9371)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Status is in (8397, 2022, 8369)", | |
| "output": "SELECT Id, Name FROM Order WHERE Status IN (8397, 2022, 8369)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where AccountId equals Sample AccountId 8322", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE AccountId = 'Sample AccountId 8322'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where StageName is in (6729, 3975, 1605)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName IN (6729, 3975, 1605)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 4344", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 4344'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2020-11-12", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastActivityDate > '2020-11-12T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 5638", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 5638'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related OrderItem with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM OrderItem WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per AccountId for Quote where total TotalPrice > 39517", | |
| "output": "SELECT AccountId, SUM(TotalPrice) total FROM Quote GROUP BY AccountId HAVING SUM(TotalPrice) > 39517" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show ServiceContract created after 2023-06-19", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE EndDate > '2023-06-19T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where AccountId equals Sample AccountId 6325", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE AccountId = 'Sample AccountId 6325'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related account records where ownerid contains 'demo' and createddate = 2498", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Account WHERE OwnerId LIKE '%Demo%') FROM Case WHERE CreatedDate = 2498" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related servicecontract records where enddate contains 'demo' and lastmodifieddate = 4515", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE EndDate LIKE '%Demo%') FROM Account WHERE LastModifiedDate = 4515" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related EmailMessage with Subject containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE Subject LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ConsumptionRate with Price > 383", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ConsumptionRate WHERE Price > 383)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show PricebookEntry created after 2022-04-10", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE CreatedDate > '2022-04-10T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where TotalAmount is in (4055, 3818, 6247)", | |
| "output": "SELECT Id, Name FROM Order WHERE TotalAmount IN (4055, 3818, 6247)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Priority equals Sample Priority 978", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority = 'Sample Priority 978'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead records where Email is user3196@example.com", | |
| "output": "SELECT Id, Name FROM Lead WHERE Email = 'user3196@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Acme'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Quote ordered by TotalPrice descending, limit 50", | |
| "output": "SELECT Id, Name FROM Quote ORDER BY TotalPrice DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Id for Account where total AnnualRevenue > 30962", | |
| "output": "SELECT Id, SUM(AnnualRevenue) total FROM Account GROUP BY Id HAVING SUM(AnnualRevenue) > 30962" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Status equals Sample Status 7048", | |
| "output": "SELECT Id, Name FROM Case WHERE Status = 'Sample Status 7048'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Event with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Event WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where FirstName contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Contact WHERE FirstName LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related asset records where accountid contains 'demo' and id = 7722", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE AccountId LIKE '%Demo%') FROM Case WHERE Id = 7722" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name equals Sample Name 7352", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name = 'Sample Name 7352'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where Email is in (4821, 2521, 8964)", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email IN (4821, 2521, 8964)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Order ordered by OwnerId descending, limit 10", | |
| "output": "SELECT Id, Name FROM Order ORDER BY OwnerId DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (6125, 3622, 3469)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (6125, 3622, 3469)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per OpportunityId for Quote where total TotalPrice > 36134", | |
| "output": "SELECT OpportunityId, SUM(TotalPrice) total FROM Quote GROUP BY OpportunityId HAVING SUM(TotalPrice) > 36134" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Name having count > 8", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Lead GROUP BY Name HAVING COUNT(Id) > 8" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Account created after 2018-06-16", | |
| "output": "SELECT Id, Name FROM Account WHERE CreatedDate > '2018-06-16T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by ConvertedDate having count > 25", | |
| "output": "SELECT ConvertedDate, COUNT(Id) cnt FROM Lead GROUP BY ConvertedDate HAVING COUNT(Id) > 25" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2020-10-09", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2020-10-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 5778", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 5778'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related Case with ClosedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM Case WHERE ClosedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Entitlement with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Entitlement WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related asset records where product2id contains 'demo' and priority = 9536", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Asset WHERE Product2Id LIKE '%Demo%') FROM Case WHERE Priority = 9536" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name equals Sample Name 7161", | |
| "output": "SELECT Id, Name FROM Account WHERE Name = 'Sample Name 7161'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Probability equals Sample Probability 5188", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Probability = 'Sample Probability 5188'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 1432", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 1432'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 2482", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 2482'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Opportunity with StageName containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Opportunity WHERE StageName LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contact where LastName is in (4578, 6255, 4672)", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName IN (4578, 6255, 4672)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 5366", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 5366'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 5206", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 5206'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total Pricebook2Id per UnitPrice for PricebookEntry where total Pricebook2Id > 14126", | |
| "output": "SELECT UnitPrice, SUM(Pricebook2Id) total FROM PricebookEntry GROUP BY UnitPrice HAVING SUM(Pricebook2Id) > 14126" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 8898", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 8898'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related servicecontract records where enddate contains 'demo' and closeddate = 6122", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE EndDate LIKE '%Demo%') FROM Case WHERE ClosedDate = 6122" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where AccountId is in (2659, 4119, 5093)", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId IN (2659, 4119, 5093)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Name for Quote where total TotalPrice > 6210", | |
| "output": "SELECT Name, SUM(TotalPrice) total FROM Quote GROUP BY Name HAVING SUM(TotalPrice) > 6210" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where Product2Id equals Sample Product2Id 268", | |
| "output": "SELECT Id, Name FROM Asset WHERE Product2Id = 'Sample Product2Id 268'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Asset ordered by InstallDate descending, limit 5", | |
| "output": "SELECT Id, Name FROM Asset ORDER BY InstallDate DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Family equals Sample Family 4824", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Family = 'Sample Family 4824'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where StartDate is in (3463, 5070, 2695)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate IN (3463, 5070, 2695)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2023-07-04", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2023-07-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Status is in (6899, 7235, 6078)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Status IN (6899, 7235, 6078)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Pricebook2Id is in (764, 1220, 9472)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id IN (764, 1220, 9472)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count ServiceContract records grouped by Status having count > 41", | |
| "output": "SELECT Status, COUNT(Id) cnt FROM ServiceContract GROUP BY Status HAVING COUNT(Id) > 41" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Name descending, limit 100", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Name DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2024-05-28", | |
| "output": "SELECT Id, Name FROM Contract WHERE EndDate > '2024-05-28T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Case records grouped by Id having count > 36", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Case GROUP BY Id HAVING COUNT(Id) > 36" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list PricebookEntry ordered by IsActive descending, limit 1", | |
| "output": "SELECT Id, Name FROM PricebookEntry ORDER BY IsActive DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Product2 records grouped by Id having count > 36", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Product2 GROUP BY Id HAVING COUNT(Id) > 36" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Status for Order where total TotalAmount > 44519", | |
| "output": "SELECT Status, SUM(TotalAmount) total FROM Order GROUP BY Status HAVING SUM(TotalAmount) > 44519" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where CreatedDate is in (1875, 375, 535)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE CreatedDate IN (1875, 375, 535)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2025-08-08", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2025-08-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where ProductCode contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where Id equals Sample Id 1985", | |
| "output": "SELECT Id, Name FROM Order WHERE Id = 'Sample Id 1985'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contact records grouped by Name having count > 30", | |
| "output": "SELECT Name, COUNT(Id) cnt FROM Contact GROUP BY Name HAVING COUNT(Id) > 30" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2018-10-03", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2018-10-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Status is in (2323, 6713, 9317)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status IN (2323, 6713, 9317)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 6504", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 6504'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related WorkOrderLineItem with Quantity > 790", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM WorkOrderLineItem WHERE Quantity > 790)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per Id for Order where total TotalAmount > 10434", | |
| "output": "SELECT Id, SUM(TotalAmount) total FROM Order GROUP BY Id HAVING SUM(TotalAmount) > 10434" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Industry equals Sample Industry 3698", | |
| "output": "SELECT Id, Name FROM Account WHERE Industry = 'Sample Industry 3698'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related EmailMessage with FromAddress containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM EmailMessage WHERE FromAddress LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Email descending, limit 5", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Email DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related InvoiceLine with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM InvoiceLine WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by Status descending, limit 100", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY Status DESC LIMIT 100" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Email descending, limit 50", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Email DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where ContactId equals Sample ContactId 4241", | |
| "output": "SELECT Id, Name FROM Case WHERE ContactId = 'Sample ContactId 4241'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where LastModifiedDate is in (3674, 9231, 2528)", | |
| "output": "SELECT Id, Name FROM Account WHERE LastModifiedDate IN (3674, 9231, 2528)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 5862", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 5862'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2022-11-08", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2022-11-08T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Id equals Sample Id 9340", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id = 'Sample Id 9340'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Case ordered by CreatedDate descending, limit 5", | |
| "output": "SELECT Id, Name FROM Case ORDER BY CreatedDate DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Id is in (3425, 9241, 9810)", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (3425, 9241, 9810)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Asset where AccountId is in (3371, 1276, 3113)", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId IN (3371, 1276, 3113)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2021-08-03", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2021-08-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contact created after 2020-06-29", | |
| "output": "SELECT Id, Name FROM Contact WHERE CreatedDate > '2020-06-29T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account with AnnualRevenue greater than 1412", | |
| "output": "SELECT Id, Name FROM Account WHERE AnnualRevenue > 1412" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Event with EndDateTime containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Event WHERE EndDateTime LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact records where Email is user40@example.com", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email = 'user40@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related OpportunityLineItem with TotalPrice > 242", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE TotalPrice > 242)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Pricebook2Id equals Sample Pricebook2Id 8586", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id = 'Sample Pricebook2Id 8586'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Name contains 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related ProductRequest with RequestedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM ProductRequest WHERE RequestedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where AccountId equals Sample AccountId 489", | |
| "output": "SELECT Id, Name FROM Asset WHERE AccountId = 'Sample AccountId 489'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 1295", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 1295'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Id equals Sample Id 5520", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id = 'Sample Id 5520'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related opportunity records where stagename contains 'demo' and id = 6892", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%') FROM Account WHERE Id = 6892" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2020-03-01", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE StartDate > '2020-03-01T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Type equals Sample Type 9263", | |
| "output": "SELECT Id, Name FROM Account WHERE Type = 'Sample Type 9263'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 821", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 821'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2021-04-04", | |
| "output": "SELECT Id, Name FROM Case WHERE CreatedDate > '2021-04-04T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2020-06-30", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2020-06-30T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Industry having count > 12", | |
| "output": "SELECT Industry, COUNT(Id) cnt FROM Lead GROUP BY Industry HAVING COUNT(Id) > 12" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalPrice per Id for Quote where total TotalPrice > 34883", | |
| "output": "SELECT Id, SUM(TotalPrice) total FROM Quote GROUP BY Id HAVING SUM(TotalPrice) > 34883" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related OpportunityLineItem with Product2Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM OpportunityLineItem WHERE Product2Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than 48.548038", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 48.548038" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 where Id equals Sample Id 8699", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id = 'Sample Id 8699'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Contract records grouped by OwnerId having count > 46", | |
| "output": "SELECT OwnerId, COUNT(Id) cnt FROM Contract GROUP BY OwnerId HAVING COUNT(Id) > 46" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity which have related WorkOrder with StartDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (SELECT AccountId FROM WorkOrder WHERE StartDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Type equals Sample Type 1598", | |
| "output": "SELECT Id, Name FROM Account WHERE Type = 'Sample Type 1598'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Asset with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Asset WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where LastName contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Contact WHERE LastName LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related servicecontract records where accountid contains 'demo' and status = 2569", | |
| "output": "SELECT Name, (SELECT Id, Name FROM ServiceContract WHERE AccountId LIKE '%Demo%') FROM Case WHERE Status = 2569" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where AccountId equals Sample AccountId 6338", | |
| "output": "SELECT Id, Name FROM Quote WHERE AccountId = 'Sample AccountId 6338'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Assets grouped by AccountId", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Asset GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Status is in (8423, 6186, 7635)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status IN (8423, 6186, 7635)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Opportunity created after 2023-12-22", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE CloseDate > '2023-12-22T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list ServiceContract ordered by EndDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM ServiceContract ORDER BY EndDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 5944", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 5944'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from case, show name and the related pricebookentry records where unitprice contains 'demo' and accountid = 268", | |
| "output": "SELECT Name, (SELECT Id, Name FROM PricebookEntry WHERE UnitPrice LIKE '%Demo%') FROM Case WHERE AccountId = 268" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Id equals Sample Id 994", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id = 'Sample Id 994'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where OpportunityId equals Sample OpportunityId 38", | |
| "output": "SELECT Id, Name FROM Quote WHERE OpportunityId = 'Sample OpportunityId 38'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Asset with InstallDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Asset WHERE InstallDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract with ShippingLatitude less than 67.875563", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude < 67.875563" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Status equals Sample Status 45", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status = 'Sample Status 45'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per OwnerId for Account where total AnnualRevenue > 10270", | |
| "output": "SELECT OwnerId, SUM(AnnualRevenue) total FROM Account GROUP BY OwnerId HAVING SUM(AnnualRevenue) > 10270" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where Name equals Sample Name 9983", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Name = 'Sample Name 9983'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where Name contains 'Corp'", | |
| "output": "SELECT Id, Name FROM Contact WHERE Name LIKE '%Corp%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber equals Sample SerialNumber 8729", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber = 'Sample SerialNumber 8729'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related ProductRequest with RequestedDate containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM ProductRequest WHERE RequestedDate LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Priority is in (4380, 9038, 8924)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority IN (4380, 9038, 8924)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 2399", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 2399'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Cases grouped by Priority", | |
| "output": "SELECT Priority, COUNT(Id) cnt FROM Case GROUP BY Priority" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Id is in (5978, 7727, 3526)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (5978, 7727, 3526)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Product2Id is in (9506, 7089, 5981)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id IN (9506, 7089, 5981)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name equals Sample Name 1717", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name = 'Sample Name 1717'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related ServiceResource with LastKnownLongitude containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM ServiceResource WHERE LastKnownLongitude LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Lead records grouped by Id having count > 7", | |
| "output": "SELECT Id, COUNT(Id) cnt FROM Lead GROUP BY Id HAVING COUNT(Id) > 7" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 9776", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 9776'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Status is in (6684, 6378, 5514)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Status IN (6684, 6378, 5514)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Type for Account where total AnnualRevenue > 29863", | |
| "output": "SELECT Type, SUM(AnnualRevenue) total FROM Account GROUP BY Type HAVING SUM(AnnualRevenue) > 29863" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where OwnerId equals Sample OwnerId 8437", | |
| "output": "SELECT Id, Name FROM Order WHERE OwnerId = 'Sample OwnerId 8437'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show WorkOrder created after 2019-09-14", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE EndDate > '2019-09-14T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get sum of Amount per StageName for Opportunity", | |
| "output": "SELECT StageName, SUM(Amount) total FROM Opportunity GROUP BY StageName" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 6314", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 6314" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where AccountId equals Sample AccountId 7384", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE AccountId = 'Sample AccountId 7384'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (1854, 8179, 2179)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (1854, 8179, 2179)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by BillingPostalCode descending, limit 5", | |
| "output": "SELECT Id, Name FROM Account ORDER BY BillingPostalCode DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (1091, 9461, 9914)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (1091, 9461, 9914)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related quote records where name contains 'demo' and profileid = 3480", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%') FROM User WHERE ProfileId = 3480" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity with Amount greater than 7384", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Amount > 7384" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Quote with Status containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Quote WHERE Status LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where TotalPrice is in (8202, 5399, 6010)", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice IN (8202, 5399, 6010)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where ProductCode is in (5649, 6398, 2451)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE ProductCode IN (5649, 6398, 2451)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by OwnerId descending, limit 10", | |
| "output": "SELECT Id, Name FROM Account ORDER BY OwnerId DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Status descending, limit 1", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Status DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related ConsumptionRate with Price > 288", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM ConsumptionRate WHERE Price > 288)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where ShippingLatitude is in (4947, 2245, 2190)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE ShippingLatitude IN (4947, 2245, 2190)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Document__c with Count_Of_DCR__c containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Document__c WHERE Count_Of_DCR__c LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by EndDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY EndDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where Id is in (6053, 9021, 584)", | |
| "output": "SELECT Id, Name FROM Quote WHERE Id IN (6053, 9021, 584)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract which have related Event with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Contract WHERE Id IN (SELECT AccountId FROM Event WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Account ordered by OwnerId descending, limit 50", | |
| "output": "SELECT Id, Name FROM Account ORDER BY OwnerId DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get ServiceContract where Id is in (4349, 2668, 4419)", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Id IN (4349, 2668, 4419)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact where AccountId equals Sample AccountId 6661", | |
| "output": "SELECT Id, Name FROM Contact WHERE AccountId = 'Sample AccountId 6661'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get PricebookEntry where Pricebook2Id is in (8483, 4042, 5232)", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Pricebook2Id IN (8483, 4042, 5232)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Status equals Sample Status 6192", | |
| "output": "SELECT Id, Name FROM Lead WHERE Status = 'Sample Status 6192'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Lead where Id is in (545, 5360, 332)", | |
| "output": "SELECT Id, Name FROM Lead WHERE Id IN (545, 5360, 332)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Account where Type is in (5338, 9996, 6895)", | |
| "output": "SELECT Id, Name FROM Account WHERE Type IN (5338, 9996, 6895)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where OwnerId equals Sample OwnerId 9261", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId = 'Sample OwnerId 9261'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where IsActive is false", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE IsActive = false" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject equals Sample Subject 59", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject = 'Sample Subject 59'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 2332", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 2332'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Test'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Test%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Product2 ordered by Id descending, limit 1", | |
| "output": "SELECT Id, Name FROM Product2 ORDER BY Id DESC LIMIT 1" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related account records where industry contains 'demo' and billingpostalcode = 9956", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Account WHERE Industry LIKE '%Demo%') FROM Account WHERE BillingPostalCode = 9956" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2020-10-09", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2020-10-09T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Asset where SerialNumber contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Asset WHERE SerialNumber LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contract where Status equals Sample Status 1089", | |
| "output": "SELECT Id, Name FROM Contract WHERE Status = 'Sample Status 1089'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related FeedComment with FeedItemId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM FeedComment WHERE FeedItemId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry with UnitPrice greater than 1945", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE UnitPrice > 1945" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Order where Id is in (6286, 113, 7820)", | |
| "output": "SELECT Id, Name FROM Order WHERE Id IN (6286, 113, 7820)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Id is in (3509, 5763, 4300)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Id IN (3509, 5763, 4300)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Subject contains 'Acme'", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject LIKE '%Acme%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Case created after 2019-04-05", | |
| "output": "SELECT Id, Name FROM Case WHERE ClosedDate > '2019-04-05T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Asset created after 2024-03-20", | |
| "output": "SELECT Id, Name FROM Asset WHERE InstallDate > '2024-03-20T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Contract where OwnerId is in (7706, 4792, 5491)", | |
| "output": "SELECT Id, Name FROM Contract WHERE OwnerId IN (7706, 4792, 5491)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Order where AccountId equals Sample AccountId 3650", | |
| "output": "SELECT Id, Name FROM Order WHERE AccountId = 'Sample AccountId 3650'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Product2 which have related Task with OwnerId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Id IN (SELECT AccountId FROM Task WHERE OwnerId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Asset records grouped by AccountId having count > 4", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Asset GROUP BY AccountId HAVING COUNT(Id) > 4" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from user, show name and the related quote records where totalprice contains 'demo' and username = 5051", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE TotalPrice LIKE '%Demo%') FROM User WHERE Username = 5051" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 8839", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 8839'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get WorkOrder where Subject is in (1916, 5946, 3970)", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Subject IN (1916, 5946, 3970)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 6321", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 6321'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find WorkOrder where Priority equals Sample Priority 1391", | |
| "output": "SELECT Id, Name FROM WorkOrder WHERE Priority = 'Sample Priority 1391'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Case where Priority is in (5253, 8188, 4985)", | |
| "output": "SELECT Id, Name FROM Case WHERE Priority IN (5253, 8188, 4985)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 3008", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 3008'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Lead where Company contains 'Inc'", | |
| "output": "SELECT Id, Name FROM Lead WHERE Company LIKE '%Inc%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Id equals Sample Id 2928", | |
| "output": "SELECT Id, Name FROM Account WHERE Id = 'Sample Id 2928'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total TotalAmount per TotalAmount for Order where total TotalAmount > 12809", | |
| "output": "SELECT TotalAmount, SUM(TotalAmount) total FROM Order GROUP BY TotalAmount HAVING SUM(TotalAmount) > 12809" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Contract ordered by StartDate descending, limit 10", | |
| "output": "SELECT Id, Name FROM Contract ORDER BY StartDate DESC LIMIT 10" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where OwnerId equals Sample OwnerId 1892", | |
| "output": "SELECT Id, Name FROM Account WHERE OwnerId = 'Sample OwnerId 1892'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Cloud'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Cloud%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case which have related Contract with AccountId containing 'Test'", | |
| "output": "SELECT Id, Name FROM Case WHERE Id IN (SELECT AccountId FROM Contract WHERE AccountId LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Quote where TotalPrice is in (7970, 4505, 4014)", | |
| "output": "SELECT Id, Name FROM Quote WHERE TotalPrice IN (7970, 4505, 4014)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where AccountId is in (5109, 4319, 2014)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE AccountId IN (5109, 4319, 2014)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from account, show name and the related quote records where opportunityid contains 'demo' and type = 5450", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Quote WHERE OpportunityId LIKE '%Demo%') FROM Account WHERE Type = 5450" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Product2Id equals Sample Product2Id 6094", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Product2Id = 'Sample Product2Id 6094'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Lead ordered by Status descending, limit 5", | |
| "output": "SELECT Id, Name FROM Lead ORDER BY Status DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where BillingPostalCode equals Sample BillingPostalCode 1203", | |
| "output": "SELECT Id, Name FROM Account WHERE BillingPostalCode = 'Sample BillingPostalCode 1203'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to from opportunity, show name and the related account records where type contains 'demo' and accountid = 8169", | |
| "output": "SELECT Name, (SELECT Id, Name FROM Account WHERE Type LIKE '%Demo%') FROM Opportunity WHERE AccountId = 8169" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where AccountId equals Sample AccountId 1991", | |
| "output": "SELECT Id, Name FROM Case WHERE AccountId = 'Sample AccountId 1991'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account which have related User with Id containing 'Test'", | |
| "output": "SELECT Id, Name FROM Account WHERE Id IN (SELECT AccountId FROM User WHERE Id LIKE '%Test%')" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Account where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Account WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list Opportunity ordered by CloseDate descending, limit 50", | |
| "output": "SELECT Id, Name FROM Opportunity ORDER BY CloseDate DESC LIMIT 50" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find PricebookEntry where Id equals Sample Id 5102", | |
| "output": "SELECT Id, Name FROM PricebookEntry WHERE Id = 'Sample Id 5102'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to list WorkOrder ordered by Id descending, limit 5", | |
| "output": "SELECT Id, Name FROM WorkOrder ORDER BY Id DESC LIMIT 5" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Quote where Name contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Quote WHERE Name LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find ServiceContract where Status equals Sample Status 5157", | |
| "output": "SELECT Id, Name FROM ServiceContract WHERE Status = 'Sample Status 5157'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total UnitPrice per IsActive for PricebookEntry where total UnitPrice > 25375", | |
| "output": "SELECT IsActive, SUM(UnitPrice) total FROM PricebookEntry GROUP BY IsActive HAVING SUM(UnitPrice) > 25375" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Contact records where Email is user5959@example.com", | |
| "output": "SELECT Id, Name FROM Contact WHERE Email = 'user5959@example.com'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to count Orders grouped by AccountId", | |
| "output": "SELECT AccountId, COUNT(Id) cnt FROM Order GROUP BY AccountId" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Opportunity where StageName contains 'Demo'", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE StageName LIKE '%Demo%'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to show Contract created after 2021-03-03", | |
| "output": "SELECT Id, Name FROM Contract WHERE StartDate > '2021-03-03T00:00:00Z'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Opportunity where Amount is in (2480, 4052, 7539)", | |
| "output": "SELECT Id, Name FROM Opportunity WHERE Amount IN (2480, 4052, 7539)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get Product2 where Name is in (8710, 5219, 6286)", | |
| "output": "SELECT Id, Name FROM Product2 WHERE Name IN (8710, 5219, 6286)" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to find Case where Subject equals Sample Subject 604", | |
| "output": "SELECT Id, Name FROM Case WHERE Subject = 'Sample Subject 604'" | |
| }, | |
| { | |
| "instruction": "Generate a SOQL query to get total AnnualRevenue per Type for Account where total AnnualRevenue > 11779", | |
| "output": "SELECT Type, SUM(AnnualRevenue) total FROM Account GROUP BY Type HAVING SUM(AnnualRevenue) > 11779" | |
| } | |
| ] |