2. The method of claim 1 , wherein generating, from the intermediate representation, the resolved query of the database, comprises generating an SQL query, and wherein the database is a relational database.
2. The method of claim 1 , wherein generating, from the intermediate representation, the resolved query of the database, comprises generating an SQL query, and wherein the database is a relational database. 3. The method of claim 2 , further comprising: detecting, prior to executing the resolved query against the relational database, whether the resolved query would produce a Cartesian product in the first set of query results; and, if detected, presenting a user with an indication that the resolved query will produce a Cartesian product if issued against the relational database.