advnace search list and primary,secondary status query