CREATE TABLE tryout (cName VARCHAR, pPos VARCHAR)

How many schools have some students playing in goalie and mid positions.
SELECT COUNT(*) FROM (SELECT cName FROM tryout WHERE pPos = 'goalie' INTERSECT SELECT cName FROM tryout WHERE pPos = 'mid')
WITH "cte" AS (SELECT "cName" FROM "tryout" WHERE "pPos" = 'goalie' INTERSECT SELECT "cName" FROM "tryout" WHERE "pPos" = 'mid') SELECT COUNT(*) FROM "cte" AS "cte"