Datasets:

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