added query graph