parallel induced subgraph query