What are the names of customers who have taken both Mortgage and Auto loans?
CREATE TABLE bank (
    branch_id number,
    bname text,
    no_of_customers number,
    city text,
    state text
)

CREATE TABLE customer (
    cust_id text,
    cust_name text,
    acc_type text,
    acc_bal number,
    no_of_loans number,
    credit_score number,
    branch_id number,
    state text
)

CREATE TABLE loan (
    loan_id text,
    loan_type text,
    cust_id text,
    branch_id text,
    amount number
)
SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'
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: What are the names of customers who have taken both Mortgage and Auto loans? ### Input: CREATE TABLE bank (
    branch_id number,
    bname text,
    no_of_customers number,
    city text,
    state text
)

CREATE TABLE customer (
    cust_id text,
    cust_name text,
    acc_type text,
    acc_bal number,
    no_of_loans number,
    credit_score number,
    branch_id number,
    state text
)

CREATE TABLE loan (
    loan_id text,
    loan_type text,
    cust_id text,
    branch_id text,
    amount number
) ### Response: SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Mortgages' INTERSECT SELECT T1.cust_name FROM customer AS T1 JOIN loan AS T2 ON T1.cust_id = T2.cust_id WHERE loan_type = 'Auto'