Using missing and exists fliter together in single query