select  * from groups where WGroupTypeId = 2000 and (WParentGroup2ID = 0 or WParentGroup2ID is null)