Not Clear but,If you don't want to show the record with closed status,do like this,
SELECT id,status,statusid,complaintto from Table where status!='closed'
Or if you want to omit status,then just leave status from the query.
SELECT id,statusid,complaintto from Table where status!='closed'
Edit:2
You may get it from two way by using where clause.
select distinct a.id from #table1 as a inner join
(select id,count(id) as Count1 from #Table1 where status!='closed' group by id) as b
on a.id=b.id and b.Count1=3
Or simply do like this,
select id from #table1 where statusid!=16 and ID=3 and status='pending' and complaintto='xyz'