Task: Text to Code
Input (English): SQL: SELECT Avg ( amount_paid ) FROM Payments
Feedback: Use amount due instead of amount paid .
Output (English): SELECT avg(amount_due) FROM payments