1. A computer-implemented method, comprising: configuring one or more computer processors to perform an operation for generating a Structured Query Language (SQL) query from an online analytical processing (OLAP) query against a cube, comprising: receiving the OLAP query against the cube, the cube having a plurality of dimensions, each dimension including a hierarchy of members; identifying, based on the received OLAP query and a definition for a dimension hierarchy for the cube, a level of the hierarchy of a dimension of the cube from which the OLAP query accesses a plurality of members exceeding a predefined threshold count of members; and generating, by operation of the one or more computer processors, from the received OLAP query, from the definition for the dimension hierarchy for the cube, and from the accessed plurality of members from the identified level, a SQL query that includes a predicate for at least one member from at least one level above the identified level in the hierarchy.