schema: Stick to $ references for SQL functions