supporting the wildcard pattern (*)  for “not null” queries