Techniques are disclosed for programmatically determining one or more logical choices to be offered to users as conditions of a data query (e.g., for searching a content source), and enabling extensions to already-established queries to be programmatically created. A number of different aspects are described, and include programmatically determining all query conditions as well as allowing a user to specify (or request programmatic determination of) further conditions.