ANSI_NULLS is a user option in sql server , which is like a env variable when a user establishes a connection to sqlserver
ANSI_NULLS specifies the behavior of nulls when using equality and inequality comparision against null
as ANSI_NULLS is turned on , any query having comparing nulls will result in unknown result
Once we turn it off we will be able to query