Update example to cast_query