Task: Text to Code
Input (English): find the average amount_paid in Payments table
Output (English): SELECT Avg ( amount_paid ) FROM Payments