Task: Text to Code
Input (English): SQL: SELECT T1.Rank FROM captain AS T1 WHERE T1.Class = "Cutter" INTERSECT SELECT T1.Rank FROM captain AS T1 JOIN Ship AS T2 ON T1.Ship_ID = T2.Ship_ID WHERE T2.Type = "Armed schooner"
Feedback: Should replace type with captain's class in step 3.
Output (English): SELECT rank FROM captain WHERE CLASS  =  'Cutter' INTERSECT SELECT rank FROM captain WHERE CLASS  =  'Armed schooner'