Datasets:

instruction
stringlengths
48
114
answer
stringlengths
1
28
Graph: A->B, F->G, D->E, B->C, E->F, C->D, F->G; Query: Path from D to B
No path exists
Graph: D->E, B->C, A->B, E->F, D->B, C->D, G->H, F->G; Query: Path from B to C
B->C
Graph: A->B, C->D, B->C, C->B, D->C; Query: Path from A to D
A->B->C->D
Graph: A->B, B->A, B->C; Query: Path from B to C
B->C
Graph: A->B, B->C, B->A, C->A, C->D; Query: Path from A to D
A->B->C->D
Graph: E->H, D->E, C->F, C->D, A->B, E->F, F->C, F->G, G->H, B->C; Query: Path from A to G
A->B->C->D->E->F->G
Graph: A->B, A->B, B->C, A->B, C->D; Query: Path from A to B
A->B
Graph: D->E, F->G, A->B, C->F, G->D, E->F, C->D, B->C; Query: Path from A to G
A->B->C->D->E->F->G
Graph: B->C, A->E, D->E, D->A, A->B, C->D; Query: Path from A to B
A->B
Graph: A->B, B->C, C->A; Query: Path from C to C
C
Graph: A->B, D->E, B->C, B->A, C->D, G->E, E->F, F->G; Query: Path from F to A
No path exists
Graph: A->B, A->C, E->F, F->A, B->C, D->E, F->G, C->G, C->D; Query: Path from C to D
C->D
Graph: F->G, C->D, G->C, A->B, E->F, D->E, B->C; Query: Path from E to F
E->F
Graph: D->E, D->B, B->C, C->D, A->B, C->E; Query: Path from C to A
No path exists
Graph: E->F, C->D, A->B, D->G, D->E, A->D, F->G, B->C; Query: Path from D to G
D->E->F->G
Graph: D->E, E->C, E->F, G->H, C->G, A->B, B->C, F->G, C->D, A->B; Query: Path from B to D
B->C->D
Graph: G->C, A->B, E->F, D->E, G->H, C->D, F->G, B->C, H->I; Query: Path from D to D
D
Graph: B->C, E->F, A->B, F->C, F->A, D->E, C->D; Query: Path from C to F
C->D->E->F
Graph: E->F, E->B, A->B, C->D, D->E, B->C, A->I, F->G, H->I, F->D, G->H; Query: Path from A to G
A->B->C->D->E->F->G
Graph: A->B, G->D, E->C, E->I, A->E, B->C, C->D, H->I, G->H, F->G, I->J, E->F, D->E; Query: Path from B to F
B->C->D->E->F
Graph: A->C, A->B, A->D, E->H, E->F, D->E, F->G, B->G, B->C, C->D, G->H; Query: Path from H to C
No path exists
Graph: E->F, B->C, A->B, G->B, D->E, C->D, F->G; Query: Path from F to G
F->G
Graph: H->I, F->G, I->J, C->D, B->C, G->H, A->B, E->F, D->E, I->H, A->B, I->A; Query: Path from B to A
B->C->D->E->F->G->H->I->A
Graph: A->F, F->G, A->B, B->C, B->C, D->E, G->H, C->D, E->F; Query: Path from H to D
No path exists
Graph: D->B, F->G, E->F, E->H, G->H, C->D, B->C, D->E, H->A, A->B; Query: Path from A to D
A->B->C->D
Graph: I->J, D->J, F->G, E->J, D->E, E->B, G->B, H->I, B->C, G->H, A->B, C->D, E->F; Query: Path from F to D
F->G->B->C->D
Graph: B->C, D->C, D->E, A->B, C->D, C->E; Query: Path from A to B
A->B
Graph: G->H, H->I, D->E, I->J, B->C, F->E, C->D, E->F, A->B, B->C, F->G; Query: Path from B to H
B->C->D->E->F->G->H
Graph: B->C, C->D, B->A, A->B, D->A; Query: Path from A to C
A->B->C
Graph: E->F, F->G, B->C, C->H, C->E, D->E, A->B, G->H, H->I, C->D; Query: Path from B to H
B->C->D->E->F->G->H
Graph: A->B, B->C, B->C; Query: Path from C to A
No path exists
Graph: B->C, E->F, D->E, F->B, A->B, C->D; Query: Path from F to E
F->B->C->D->E
Graph: B->C, C->A, A->B, D->E, H->I, I->J, A->G, C->F, E->F, F->G, D->F, G->H, C->D, C->H; Query: Path from E to G
E->F->G
Graph: E->F, H->I, C->D, D->E, I->J, G->A, B->C, A->B, F->G, G->H; Query: Path from G to A
G->A
Graph: D->E, A->B, B->C, C->D, A->E, D->E; Query: Path from C to A
No path exists
Graph: D->E, G->H, F->G, A->B, B->C, C->D, G->F, E->F, C->E; Query: Path from C to E
C->E
Graph: B->F, B->C, D->E, E->F, A->B, A->B, C->D; Query: Path from A to D
A->B->C->D
Graph: A->B, C->D, C->D, B->C; Query: Path from D to B
No path exists
Graph: B->A, B->C, D->E, C->D, A->B, F->C, E->F; Query: Path from C to A
No path exists
Graph: A->B, C->A, C->D, B->C; Query: Path from D to B
No path exists
Graph: E->F, D->E, A->B, B->C, C->D, C->D; Query: Path from E to F
E->F
Graph: B->C, B->C, A->B, C->D, C->D; Query: Path from D to D
D
Graph: E->F, F->G, B->C, D->E, C->D, E->D, A->B; Query: Path from C to C
C
Graph: D->E, B->C, A->B, E->F, B->C, C->D, F->G, C->G; Query: Path from A to E
A->B->C->D->E
Graph: D->E, B->C, G->H, H->I, D->A, A->B, F->G, B->C, G->H, D->C, E->F, C->D; Query: Path from F to F
F
Graph: F->G, E->H, D->E, A->B, B->C, G->H, C->D, H->I, E->F; Query: Path from I to H
No path exists
Graph: G->E, B->C, A->B, A->B, C->D, G->H, I->J, D->E, E->A, H->I, F->G, E->F; Query: Path from F to H
F->G->H
Graph: B->C, D->E, C->D, E->D, A->B; Query: Path from D to D
D
Graph: B->C, C->B, A->B; Query: Path from A to A
A
Graph: D->A, C->D, D->E, G->H, J->B, F->G, E->F, I->J, H->F, B->C, H->I, A->B; Query: Path from H to G
H->I->J->B->C->D->E->F->G
Graph: E->D, B->C, D->E, C->D, E->D, A->B; Query: Path from E to D
E->D
Graph: A->B, B->C, I->A, E->F, C->D, D->E, G->H, H->I, G->E, G->E, F->G; Query: Path from D to C
D->E->F->G->H->I->A->B->C
Graph: A->B, I->J, G->B, F->G, E->F, B->C, H->I, C->D, D->E, G->H; Query: Path from B to D
B->C->D
Graph: C->D, B->C, D->B, D->B, A->B; Query: Path from A to B
A->B
Graph: C->D, B->C, A->B, C->D; Query: Path from D to B
No path exists
Graph: F->B, F->G, E->F, C->H, E->C, D->E, A->B, C->D, B->C, G->H; Query: Path from E to E
E
Graph: C->D, B->C, A->B, D->E, A->C; Query: Path from B to D
B->C->D
Graph: C->D, B->C, E->F, D->B, D->E, F->G, B->E, A->B, A->D; Query: Path from B to B
B
Graph: D->F, C->D, E->C, A->B, A->C, G->H, D->E, F->G, B->G, B->C, E->F; Query: Path from B to G
B->C->D->E->F->G
Graph: F->C, B->C, B->C, C->D, A->B, D->E, E->F, C->F, F->G; Query: Path from D to G
D->E->F->G
Graph: A->B, C->D, B->C, E->F, D->E, C->D; Query: Path from B to C
B->C
Graph: F->B, E->F, A->B, C->B, E->F, C->D, F->G, D->E, B->C; Query: Path from A to G
A->B->C->D->E->F->G
Graph: B->C, D->E, C->D, E->F, B->C, A->B; Query: Path from A to F
A->B->C->D->E->F
Graph: F->I, D->E, H->I, G->H, B->C, E->F, A->J, C->D, A->B, J->E, F->G, I->J, A->G; Query: Path from I to H
I->J->E->F->G->H
Graph: B->A, A->B, B->C, C->D, C->D; Query: Path from B to B
B
Graph: C->B, A->B, B->C, C->D; Query: Path from C to A
No path exists
Graph: B->A, D->E, B->C, A->B, B->E, E->F, C->D, C->D; Query: Path from D to C
No path exists
Graph: D->E, F->G, B->C, E->F, C->D, B->A, A->B; Query: Path from C to G
C->D->E->F->G
Graph: G->H, B->C, F->G, C->D, A->B, G->E, F->G, E->F, D->E, E->H, E->B; Query: Path from C to E
C->D->E
Graph: D->E, G->H, H->B, A->B, B->C, C->D, F->G, E->F; Query: Path from C to D
C->D
Graph: E->F, B->C, F->G, F->D, F->B, A->B, G->H, D->E, C->D; Query: Path from D to C
D->E->F->B->C
Graph: D->E, A->E, B->C, A->B, C->D; Query: Path from C to D
C->D
Graph: B->C, A->B, A->D, C->D, C->D; Query: Path from A to C
A->B->C
Graph: E->F, G->H, B->C, A->B, D->H, C->D, D->E, D->H, F->G, H->G; Query: Path from C to A
No path exists
Graph: B->C, A->B, B->C; Query: Path from C to C
C
Graph: H->I, C->D, G->E, D->E, J->C, F->G, G->H, E->B, A->B, G->H, E->F, I->J, B->C; Query: Path from D to H
D->E->F->G->H
Graph: C->D, D->E, E->F, A->B, F->C, B->C; Query: Path from A to C
A->B->C
Graph: A->B, A->B, B->C, C->A, C->D; Query: Path from D to D
D
Graph: G->C, D->C, E->F, D->E, C->D, A->B, F->E, F->G, B->C; Query: Path from C to B
No path exists
Graph: A->B, D->E, C->D, B->C, D->E, D->E; Query: Path from D to B
No path exists
Graph: C->D, H->I, F->G, G->H, I->J, D->E, A->B, B->C, D->A, E->F; Query: Path from C to H
C->D->E->F->G->H
Graph: E->F, B->C, E->A, A->B, F->G, A->F, B->G, C->D, D->E; Query: Path from E to B
E->A->B
Graph: B->C, D->E, B->A, C->D, B->C, A->B; Query: Path from C to C
C
Graph: H->G, A->B, E->F, F->G, A->G, B->C, D->E, G->H, B->G, C->D, A->C; Query: Path from H to F
No path exists
Graph: B->C, B->A, A->B; Query: Path from A to A
A
Graph: B->C, A->B, A->C, C->D, D->C; Query: Path from C to D
C->D
Graph: H->A, D->E, E->F, G->D, G->H, A->B, C->D, H->I, C->E, B->C, F->G; Query: Path from I to A
No path exists
Graph: B->C, E->F, C->D, F->G, J->H, F->D, H->I, D->E, G->D, A->B, G->H, B->G, I->J; Query: Path from F to A
No path exists
Graph: D->C, D->E, C->D, A->B, B->C, D->C; Query: Path from E to D
No path exists
Graph: A->B, B->C, C->D, D->E, F->G, E->F, H->I, I->J, G->H, A->H, H->J, F->H; Query: Path from C to I
C->D->E->F->H->I
Graph: G->H, C->D, G->B, F->B, F->G, D->G, A->B, E->F, E->F, D->E, B->C; Query: Path from D to A
No path exists
Graph: D->E, F->G, I->J, H->C, B->C, C->D, G->H, A->B, E->F, C->B, H->I, H->A, H->D; Query: Path from B to J
B->C->D->E->F->G->H->I->J
Graph: C->D, B->C, A->B, B->D; Query: Path from B to A
No path exists
Graph: C->D, D->E, A->C, E->F, A->B, B->E, B->C, D->E; Query: Path from F to E
No path exists
Graph: B->C, C->D, D->E, F->G, A->B, G->H, H->I, H->I, E->F; Query: Path from C to C
C
Graph: B->C, A->B, C->B, C->D; Query: Path from A to A
A
Graph: B->C, A->C, A->B; Query: Path from C to C
C
Graph: I->J, E->F, G->H, B->C, H->I, F->G, A->B, G->I, H->D, D->E, C->D, A->B, E->B; Query: Path from I to D
No path exists
Graph: B->A, A->B, B->C; Query: Path from C to C
C
Graph: D->E, A->B, F->G, C->D, G->F, E->F, B->C; Query: Path from E to C
No path exists