Patent Document ID: 9495354
Application ID: 14983272

Base Claim:
1. A method comprising: receiving, from a client device of a first user of an online social network, a structured query comprising references to one or more selected objects associated with the online social network; parsing the structured query to identify a first query constraint and one or more second query constraints; identifying an inverse constraint associated with the first query constraint, wherein the first query constraint has been previously flagged as identifying greater than a threshold number of objects; and generating a query command based on the structured query, wherein the query command comprises the inverse constraint and the one or more second query constraints.

---

Claim 18:
18. The method of claim 1 , further comprising: flagging one or more query constraints, wherein each flagged query constraint has been identified as identifying greater than a threshold number of objects when executed; determining whether the first query constraint is one of the flagged query constraints; and generating a querying command comprising the inverse constraint if the first query constraint is a flagged query constraint.