prepare QueryGraph files