SQL generator for Veritas