Task: Text to Code
Input (English): What is the average amount due for all the payments?
Output (English): SELECT avg(amount_due) FROM payments