Datasets:

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