Solve the business requirement using SOQL.
Return the matching records or aggregate groups required by the prompt.
Use the specified SOQL features and preserve the required ordering.
3 row(s), order checked
| # | accts | deals | avgAmt | LeadSource |
|---|---|---|---|---|
| 1 | 10 | 20 | 3100000 | Partner |
| 2 | 10 | 19 | 3050000 | Web |
| 3 | 10 | 20 | 3000000 | Referral |