List the distinct payment method codes with the number of orders made
CREATE TABLE drama_workshop_groups (
    workshop_group_id number,
    address_id number,
    currency_code text,
    marketing_region_code text,
    store_name text,
    store_phone text,
    store_email_address text,
    other_details text
)

CREATE TABLE addresses (
    address_id text,
    line_1 text,
    line_2 text,
    city_town text,
    state_county text,
    other_details text
)

CREATE TABLE services (
    service_id number,
    service_type_code text,
    workshop_group_id number,
    product_description text,
    product_name text,
    product_price number,
    other_product_service_details text
)

CREATE TABLE ref_service_types (
    service_type_code text,
    parent_service_type_code text,
    service_type_description text
)

CREATE TABLE invoice_items (
    invoice_item_id number,
    invoice_id number,
    order_id number,
    order_item_id number,
    product_id number,
    order_quantity number,
    other_item_details text
)

CREATE TABLE products (
    product_id text,
    product_name text,
    product_price number,
    product_description text,
    other_product_service_details text
)

CREATE TABLE clients (
    client_id number,
    address_id number,
    customer_email_address text,
    customer_name text,
    customer_phone text,
    other_details text
)

CREATE TABLE performers_in_bookings (
    order_id number,
    performer_id number
)

CREATE TABLE marketing_regions (
    marketing_region_code text,
    marketing_region_name text,
    marketing_region_descriptrion text,
    other_details text
)

CREATE TABLE customer_orders (
    order_id number,
    customer_id number,
    store_id number,
    order_date time,
    planned_delivery_date time,
    actual_delivery_date time,
    other_order_details text
)

CREATE TABLE customers (
    customer_id text,
    address_id number,
    customer_name text,
    customer_phone text,
    customer_email_address text,
    other_details text
)

CREATE TABLE ref_payment_methods (
    payment_method_code text,
    payment_method_description text
)

CREATE TABLE invoices (
    invoice_id number,
    order_id number,
    payment_method_code text,
    product_id number,
    order_quantity text,
    other_item_details text,
    order_item_id number
)

CREATE TABLE bookings_services (
    order_id number,
    product_id number
)

CREATE TABLE stores (
    store_id text,
    address_id number,
    marketing_region_code text,
    store_name text,
    store_phone text,
    store_email_address text,
    other_details text
)

CREATE TABLE bookings (
    booking_id number,
    customer_id number,
    workshop_group_id text,
    status_code text,
    store_id number,
    order_date time,
    planned_delivery_date time,
    actual_delivery_date time,
    other_order_details text
)

CREATE TABLE performers (
    performer_id number,
    address_id number,
    customer_name text,
    customer_phone text,
    customer_email_address text,
    other_details text
)

CREATE TABLE order_items (
    order_item_id number,
    order_id number,
    product_id number,
    order_quantity text,
    other_item_details text
)
SELECT payment_method_code, COUNT(*) FROM invoices GROUP BY payment_method_code
Below are sql tables schemas paired with instruction that describes a task. Using valid SQLite, write a response that appropriately completes the request for the provided tables. ### Instruction: List the distinct payment method codes with the number of orders made ### Input: CREATE TABLE drama_workshop_groups (
    workshop_group_id number,
    address_id number,
    currency_code text,
    marketing_region_code text,
    store_name text,
    store_phone text,
    store_email_address text,
    other_details text
)

CREATE TABLE addresses (
    address_id text,
    line_1 text,
    line_2 text,
    city_town text,
    state_county text,
    other_details text
)

CREATE TABLE services (
    service_id number,
    service_type_code text,
    workshop_group_id number,
    product_description text,
    product_name text,
    product_price number,
    other_product_service_details text
)

CREATE TABLE ref_service_types (
    service_type_code text,
    parent_service_type_code text,
    service_type_description text
)

CREATE TABLE invoice_items (
    invoice_item_id number,
    invoice_id number,
    order_id number,
    order_item_id number,
    product_id number,
    order_quantity number,
    other_item_details text
)

CREATE TABLE products (
    product_id text,
    product_name text,
    product_price number,
    product_description text,
    other_product_service_details text
)

CREATE TABLE clients (
    client_id number,
    address_id number,
    customer_email_address text,
    customer_name text,
    customer_phone text,
    other_details text
)

CREATE TABLE performers_in_bookings (
    order_id number,
    performer_id number
)

CREATE TABLE marketing_regions (
    marketing_region_code text,
    marketing_region_name text,
    marketing_region_descriptrion text,
    other_details text
)

CREATE TABLE customer_orders (
    order_id number,
    customer_id number,
    store_id number,
    order_date time,
    planned_delivery_date time,
    actual_delivery_date time,
    other_order_details text
)

CREATE TABLE customers (
    customer_id text,
    address_id number,
    customer_name text,
    customer_phone text,
    customer_email_address text,
    other_details text
)

CREATE TABLE ref_payment_methods (
    payment_method_code text,
    payment_method_description text
)

CREATE TABLE invoices (
    invoice_id number,
    order_id number,
    payment_method_code text,
    product_id number,
    order_quantity text,
    other_item_details text,
    order_item_id number
)

CREATE TABLE bookings_services (
    order_id number,
    product_id number
)

CREATE TABLE stores (
    store_id text,
    address_id number,
    marketing_region_code text,
    store_name text,
    store_phone text,
    store_email_address text,
    other_details text
)

CREATE TABLE bookings (
    booking_id number,
    customer_id number,
    workshop_group_id text,
    status_code text,
    store_id number,
    order_date time,
    planned_delivery_date time,
    actual_delivery_date time,
    other_order_details text
)

CREATE TABLE performers (
    performer_id number,
    address_id number,
    customer_name text,
    customer_phone text,
    customer_email_address text,
    other_details text
)

CREATE TABLE order_items (
    order_item_id number,
    order_id number,
    product_id number,
    order_quantity text,
    other_item_details text
) ### Response: SELECT payment_method_code, COUNT(*) FROM invoices GROUP BY payment_method_code