12. The computer-implemented method of claim 1 , wherein the second rule specifies to connect the groups of query conditions using a logical “AND” operator without requiring user input explicitly specifying any logical “AND” operator to connect with.
1. A computer-implemented method for a query tool having distinct graphical user interfaces, to automatically determine groupings, Boolean operators, and operator precedence to use in generating a database query, the computer-implemented method comprising: providing the distinct graphical user interfaces, which comprise a composition interface and an approval interface, the composition interface including a first control comprising an add-condition button to add a new query condition to include in the database query, the composition interface further including a second control comprising a summary button to cause output, via the approval interface, of the proposed database query for approval, the approval interface including a third control comprising an accept button to accept the proposed database query for execution, wherein the approval interface is output only upon activation of the summary button, wherein the composition interface is output prior to activation of the summary button; receiving, via at least the add-condition button of the composition interface, input specifying a plurality of query conditions to include in the database query to be generated, wherein each query condition specifies: (i) a database field specifying a column of an underlying table of a plurality of underlying tables in a relational database; (ii) a comparison operator; and (iii) a comparison value; responsive to activation of the summary button of the composition interface, automatically grouping the plurality of query conditions into one or more groups of query conditions by the query tool even in absence of user input explicitly specifying how to group the plurality of query conditions, wherein each group includes query conditions specifying the same database field, wherein each of the plurality of query conditions is to be included in a database query to be generated by assigning a set of Boolean operators to connect the query conditions in each of the one or more groups and to connect each of one or more groups of the query conditions; defining a set of rules including: (i) a first rule specifying to automatically connect different query conditions within each group using a first specified operator; and (ii) a second rule specifying to automatically connect different groups of query conditions using a second specified operator; subsequent to automatically grouping the plurality of query conditions, generating a proposed database query by operation of one or more computer processors when executing the query tool, by automatically connecting the grouped query conditions based on the defined set of rules, including: (i) connecting different query conditions within each group using the first specified operator; and (ii) connecting different groups of query conditions using the second specified operator; thereby automatically determining Boolean operators and operator precedence for the proposed database query; outputting, by the query tool via the approval interface, the proposed database query including the first specified operator connecting different conditions within each group of query conditions and further including the second specified operator connecting different groups of query conditions; and subsequent to activation of the accept button of the approval interface, causing execution of the database query to obtain a set of query results satisfying the set of query conditions, whereafter the set of query results is output by the query tool; wherein the first specified operator comprises a logical “OR” operator, wherein the second specified operator comprises a logical “AND” operator.