1. A method of optimizing execution of a query that accesses data stored on a data store connected to a computer, comprising: using statistics on one or more expressions of one or more pre-defined queries to determine an optimal query execution plan for the query.