instruction stringlengths 34 110 | input stringclasses 1
value | output stringlengths 46 236 |
|---|---|---|
Get every field for Accounts where AnnualRevenue is greater than 100000 | SELECT FIELDS(ALL) FROM Account WHERE AnnualRevenue > 100000 | |
Show me all fields for Contacts that have an email at example.com | SELECT FIELDS(ALL) FROM Contact WHERE Email LIKE '%@example.com' | |
Fetch every field from Opportunities that are Closed Won | SELECT FIELDS(ALL) FROM Opportunity WHERE StageName = 'Closed Won' | |
Return all fields for Leads created in the last 30 days | SELECT FIELDS(ALL) FROM Lead WHERE CreatedDate = LAST_N_DAYS:30 | |
Get all fields for Cases with Priority set to High ordered by CreatedDate desc limit 50 | SELECT FIELDS(ALL) FROM Case WHERE Priority = 'High' ORDER BY CreatedDate DESC LIMIT 50 | |
Select every field for Product records whose ProductCode contains 'PROD' | SELECT FIELDS(ALL) FROM Product2 WHERE ProductCode LIKE '%PROD%' | |
Return all fields for PricebookEntry records that are active | SELECT FIELDS(ALL) FROM PricebookEntry WHERE IsActive = true | |
Get all fields for Orders for Account 001ABC000000xyz (example id format) | SELECT FIELDS(ALL) FROM Order WHERE AccountId = '001ABC000000xyz' | |
Show every field for Assets installed after 2021-01-01 | SELECT FIELDS(ALL) FROM Asset WHERE InstallDate > 2021-01-01T00:00:00Z | |
Fetch all fields for Contracts that are Active and end this year | SELECT FIELDS(ALL) FROM Contract WHERE Status = 'Active' AND EndDate < 2025-12-31T00:00:00Z | |
Get all fields for Service Contracts where ShippingLatitude is less than 25 | SELECT FIELDS(ALL) FROM ServiceContract WHERE ShippingLatitude < 25 | |
Select every field for Users who have not logged in since 2023-01-01 | SELECT FIELDS(ALL) FROM User WHERE LastLoginDate < 2023-01-01T00:00:00Z | |
Return all fields for Events owned by the current user limited to 100 | SELECT FIELDS(ALL) FROM Event WHERE OwnerId = :UserInfo.getUserId() LIMIT 100 | |
Fetch every field for Tasks with Subject containing 'follow' and not completed | SELECT FIELDS(ALL) FROM Task WHERE Subject LIKE '%follow%' AND Status != 'Completed' | |
Show every field for Quotes linked to a given Opportunity id (example id) | SELECT FIELDS(ALL) FROM Quote WHERE OpportunityId = '006ABC000000xyz' | |
Get every field for Invoice custom object records where TotalAmount is greater than 5000 | SELECT FIELDS(ALL) FROM Invoice__c WHERE TotalAmount__c > 5000 | |
Select all fields from InvoiceLine custom object where TaxRate is above 15 | SELECT FIELDS(ALL) FROM InvoiceLine__c WHERE TaxRate__c > 15 | |
Return all fields for CreditMemoLine records with ChargeAmount less than 100 | SELECT FIELDS(ALL) FROM CreditMemoLine__c WHERE ChargeAmount__c < 100 | |
Fetch every field for ApptBundleAggrDurDnscale custom records where PercentageOfReduction is greater than 6302 | SELECT FIELDS(ALL) FROM ApptBundleAggrDurDnscale__c WHERE PercentageOfReduction__c > 6302 | |
Select all fields from Document custom object where Count Of DCR is under 1000 and include soft-deleted rows | SELECT FIELDS(ALL) FROM Document__c WHERE Count_Of_DCR__c < 1000 USING SCOPE ALL ROWS |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.