delete Table1
FROM Table2 MTab2
INNER JOIN [Table3] Mtab3
ON MTab2.CompanyId = Mtab3.CompanyID AND Is_EPA != 1
INNER JOIN [Table4]
ON [Table4].[id] = (SELECT id FROM Table4 WHERE id = Mtab3.Id AND RequiredEnt=1)
WHERE
MTab2.UpdateOn > (SELECT MAX(Updated_date) FROM TABLE4)
AND [Table1].[id] > 500