Task: Text to Code
Input (English): Step 1: For each row in bank table, find the corresponding rows in loan table.
Step 2: find the summation of amount in the results of step 1 whose city equals New York
Output (English): SELECT Sum ( T2.amount ) FROM bank AS T1 JOIN loan AS T2 ON T1.branch_ID = T2.branch_ID WHERE T1.city = "New York"