Task: Text to Code
Input (English): SQL: SELECT DISTINCT address_type_code FROM Ref_Address_Types
Feedback: I want the type code of detention from detention table.
Output (English): SELECT DISTINCT detention_type_code FROM Detention