implemented QueryGraphCompiler
finished QueryGraph