Graph exists? query