Create a database query to list the top ten customers based on sales amount
```
SELECT CustomerName, SUM(TotalSales) AS TotalSales
FROM SalesTable
GROUP BY CustomerName
ORDER BY TotalSales DESC
LIMIT 10;
```
Complete the following task based on the instruction and optional input provided.### Instruction:
Create a database query to list the top ten customers based on sales amount

### Output:
```
SELECT CustomerName, SUM(TotalSales) AS TotalSales
FROM SalesTable
GROUP BY CustomerName
ORDER BY TotalSales DESC
LIMIT 10;
```