I used to work for a company that paid loads of money to an Oracle consultancy group to do things like optimize queries. Sometimes they'd even do a better job than the Oracle query optimizer :-)
Surprising that outperforming the Oracle query optimizer wasn't a regular occurrence