Datasets:

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