Added NEQ function to queries