The Offline SQL Generator