The conversation between human and AI assistant.
[|Human|] Create a database query to list the top ten customers based on sales amount
[|AI|] ```
SELECT CustomerName, SUM(TotalSales) AS TotalSales
FROM SalesTable
GROUP BY CustomerName
ORDER BY TotalSales DESC
LIMIT 10;
```
[|Human|] 
Create a database query to list the top ten customers based on sales amount