A method of tuning a database query includes selecting a database query, parsing the selected database query to determine relationships between portions of the selected database query, selecting an optimization mode from a plurality of available optimization modes, tuning the selected database query...http://www.google.ca/patents/US8019750?utm_source=gb-gplus-sharePatent US8019750 - System and method for automatically generating database queries