SELECT top 500 *
FROM [dbo].[table1]
WHERE ([Id] NOT IN (select [ClientTableId] from [Entities] where [column] = '2'))
SELECT TOP 500 *
FROM [table]
WHERE NOT EXISTS ( SELECT NULL
FROM [Entities]
WHERE [column] = '2'
AND [table1].[Id] = [ClientTableId] )