Development questions

Write a SOQL query to retrieve the top 5 Accounts based on AnnualRevenue excluding null values (NULLS LAST).

Order descending with NULLS LAST (or filter nulls) and limit to 5.

soql
SELECT Id, Name, AnnualRevenue FROM Account
WHERE AnnualRevenue != null
ORDER BY AnnualRevenue DESC NULLS LAST
LIMIT 5
soqlscenarioorder-by