12. A non-transitory machine-readable medium storing instructions that when executed by one or more hardware processors of a machine, cause the machine to perform operations for improved information retrieval from a database via a query suggestion based on a relationship inferred between a first query and a second query, the operations comprising: relating the first query to the second query based on identifying at least one common term between the first query and the second query; identifying one or more dissimilar terms between the plurality of first terms and the plurality of second terms; identifying a first number of dissimilar terms included in the first query; identifying a second number of dissimilar terms included in the second query; assigning a weight to the relationship between the first query and the second query, the weight being based on a difference between the first number and the second number; and in response to receiving a search query from a user device, providing the query suggestion based on the weight assigned to the relationship between the first query and the second query.
12. A non-transitory machine-readable medium storing instructions that when executed by one or more hardware processors of a machine, cause the machine to perform operations for improved information retrieval from a database via a query suggestion based on a relationship inferred between a first query and a second query, the operations comprising: relating the first query to the second query based on identifying at least one common term between the first query and the second query; identifying one or more dissimilar terms between the plurality of first terms and the plurality of second terms; identifying a first number of dissimilar terms included in the first query; identifying a second number of dissimilar terms included in the second query; assigning a weight to the relationship between the first query and the second query, the weight being based on a difference between the first number and the second number; and in response to receiving a search query from a user device, providing the query suggestion based on the weight assigned to the relationship between the first query and the second query. 13. The non-transitory machine-readable medium of claim 12 , wherein the difference is further based on a direction traversed between the first query and the second query.