Task: Text to Code
Input (English): What is the average quantities ordered with payment method code "MasterCard" on invoices?
Output (English): SELECT avg(Order_Quantity) FROM Invoices WHERE payment_method_code  =  "MasterCard"