Naive resolution for file names provided instead of sql text