This software is written in C++, and implements a version of the Volcano query optimization algorithm. It also includes multi-query optimization features, but functions as a stand alone optimizer also. Beware that it only supports a very limited subset of SQL; you are free to contribute by extending is SQL support.