1. A computer-implemented method for generating a database query, comprising: receiving a collection of query conditions to include in the database query, wherein each query condition specifies a database field and a comparison value; identifying one or more groups of query conditions, wherein each group includes query conditions specifying the same database field; and generating the database query by connecting the query conditions within each identified group using a logical “OR” operator, and connecting the identified groups of query conditions using a logical “AND” operator.