select * from dir_priority_members where partner_type='inst' and expiry_date>='2019-05-26' group by partner_id