1. A method comprising: collecting query data, the query data indicating a query term and tracked user behavior associated with past queries involving the query term; calculating an aspect demand ratio for each category of a category tree based on the collected query data; determining, using at least one processor, one or more lowest categories of the category tree that satisfies a category threshold; and appending the one or more lowest categories to the query term in a database.