Task: Text to Code
Input (English): Step 1: For each row in College table, find the corresponding rows in Tryout table.
Step 2: find state of the results of step 1 whose pPos equals goalie.
Step 3: find the Tryout's cName of Tryout table for which pPos equals mid.
Step 4: show the rows that are in both the results of step 2 and the results of step 3
Output (English): SELECT T1.state FROM College AS T1 JOIN Tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = "goalie" INTERSECT SELECT T2.cName FROM Tryout AS T2 WHERE T2.pPos = "mid"