User Story
As a customer support representative at XYZ Corporation, I want to monitor all the Accounts that have not been modified in the last 30 days so that I can identify inactive Accounts and take appropriate action to retain the customer's business.
SOQL
List<Account> accounts = [SELECT Id, Name, LastModifiedDate FROM Account WHERE NOT LastModifiedDate >= LAST_N_DAYS:30];