SWQL query to fetch raw cpu and memory report

"I need a SWQL query to generate a raw report of CPU and memory utilization for devices that have surpassed the 85% threshold in the past 30 days."