auto expand queries.