autocomplete working with reduce queries for unique lists