Returns nil for smart collection query