Does anyone know how to convert this sql to BrainScript?

case when COLUMN X = INSTR(COLUMN Y, 0, 1) then 'Y' else 'N'