expression rule t return particular site

Hi All ,

I have a query regarding Expression rule .I have DB where isCompleted and IsMandatory fields are there with repect to particular requestID


here I want to return only those sites which have isCompleted=1 for all the isManatory=1 

in the above example , i must get only requestid =2 

  Discussion posts and replies are publicly visible