1. A method comprising: receiving, from a client system of a first user, a query comprising one or more n-grams; parsing the one or more n-grams of the query to generate a query command, wherein the query command comprises an inner query constraint and an outer query constraint; identifying from a plurality of objects based on the query command: a first set of objects matching the inner query constraint and at least in part matching the outer query constraint; and a second set of objects matching the outer query constraint; and generating one or more search results based on the first and second sets of objects, wherein each search result corresponds to an object of the plurality of objects.
1. A method comprising: receiving, from a client system of a first user, a query comprising one or more n-grams; parsing the one or more n-grams of the query to generate a query command, wherein the query command comprises an inner query constraint and an outer query constraint; identifying from a plurality of objects based on the query command: a first set of objects matching the inner query constraint and at least in part matching the outer query constraint; and a second set of objects matching the outer query constraint; and generating one or more search results based on the first and second sets of objects, wherein each search result corresponds to an object of the plurality of objects. 13. The method of claim 1 , wherein the one or more search results correspond to one or more objects of the second set of objects matching the outer query constraint, each search result corresponding to a second object that is related by a constraint of the query command to at least one object of the first set of objects matching the inner query constraint.