add dual breadth-first query