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. 14. The non-transitory machine-readable medium of claim 12 , wherein the assigning comprises determining the difference between the first number and the second number, the determining comprising subtracting the first number from the second number or subtracting the second number from the first number.