add pre_in_query