What, in words, criteria do you want to apply?
As it is it looks like it's this, return records where either,
pt_tbl.SS_Status =False AND PendingObsolescenceDate<>#31/12/9999#
is true, or,
D20_EFF_IN_Y=servicereleasedate
is true.
Is that what you want?