Datasets:

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