4. The method of claim 2 , wherein the query optimization data is used to select between materializing a derived table in the SQL query generated from the abstract query and optimizing the SQL query to remove the derived table from the SQL query.
2. The method of claim 1 , wherein the resolved query is an SQL query, and wherein the query optimization data is used to optimize the SQL query.