Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
27
47
graph
stringlengths
12
21
category
stringclasses
10 values
gpml_restrictor
stringclasses
4 values
gpml_selector
stringclasses
4 values
schema
stringlengths
50
297
raw_instruction
stringlengths
101
222
prompt
stringlengths
233
1.08k
canonical_solution
stringlengths
95
175
naive_foil_query
stringlengths
99
173
seed_statements
listlengths
8
13
oracle_expected_rows
listlengths
1
12
ordered
bool
1 class
oracle_expected_rows_json
stringlengths
5
186
gpml_01_acyclic_interbank_wire_kg
interbank_wire_kg
acyclic_reachability
ACYCLIC
ALL
(:BankNode {code})-[:WIRE_HOP]->(:BankNode {code})
Find all loop-free BankNode code targets reachable in 1 to 3 WIRE_HOP hops from ZUR-01 without revisiting any node, ordered by code.
// Graph: interbank-wire-kg // Schema: (:BankNode {code})-[:WIRE_HOP]->(:BankNode {code}) // Question: Find all loop-free BankNode code targets reachable in 1 to 3 WIRE_HOP hops from ZUR-01 without revisiting any node, ordered by code. MATCH
ACYCLIC (a:BankNode)-[:WIRE_HOP*1..3]->(b:BankNode) WHERE a.code = "ZUR-01" RETURN b.code AS code ORDER BY code;
MATCH (a:BankNode)-[:WIRE_HOP*1..3]->(b:BankNode) WHERE a.code = "ZUR-01" RETURN b.code AS code ORDER BY code;
[ "CREATE (:BankNode {code: \"ZUR-01\"})", "CREATE (:BankNode {code: \"FRA-02\"})", "CREATE (:BankNode {code: \"LON-03\"})", "CREATE (:BankNode {code: \"NYC-04\"})", "CREATE (:BankNode {code: \"SGP-05\"})", "MATCH (a:BankNode {code: \"ZUR-01\"}), (b:BankNode {code: \"FRA-02\"}) CREATE (a)-[:WIRE_HOP]->(b)",...
[ [ "FRA-02" ], [ "FRA-02" ], [ "LON-03" ], [ "LON-03" ], [ "NYC-04" ], [ "NYC-04" ] ]
true
[["FRA-02"], ["FRA-02"], ["LON-03"], ["LON-03"], ["NYC-04"], ["NYC-04"]]
gpml_02_acyclic_substation_feeder_kg
substation_feeder_kg
acyclic_reachability
ACYCLIC
ALL
(:GridBus {bus_id})-[:FEEDER_LINE]->(:GridBus {bus_id})
Count how many strictly acyclic loopless FEEDER_LINE paths of 1 to 4 hops start at GridBus BUS-A1 without ever revisiting a node.
// Graph: substation-feeder-kg // Schema: (:GridBus {bus_id})-[:FEEDER_LINE]->(:GridBus {bus_id}) // Question: Count how many strictly acyclic loopless FEEDER_LINE paths of 1 to 4 hops start at GridBus BUS-A1 without ever revisiting a node. MATCH
ACYCLIC (a:GridBus)-[:FEEDER_LINE*1..4]->(b:GridBus) WHERE a.bus_id = "BUS-A1" RETURN count(b) AS acyclic_paths;
MATCH (a:GridBus)-[:FEEDER_LINE*1..4]->(b:GridBus) WHERE a.bus_id = "BUS-A1" RETURN count(b) AS acyclic_paths;
[ "CREATE (:GridBus {bus_id: \"BUS-A1\"})", "CREATE (:GridBus {bus_id: \"BUS-B2\"})", "CREATE (:GridBus {bus_id: \"BUS-C3\"})", "CREATE (:GridBus {bus_id: \"BUS-D4\"})", "CREATE (:GridBus {bus_id: \"BUS-E5\"})", "MATCH (a:GridBus {bus_id: \"BUS-A1\"}), (b:GridBus {bus_id: \"BUS-B2\"}) CREATE (a)-[:FEEDER_LI...
[ [ "4" ] ]
true
[[4]]
gpml_03_acyclic_metabolic_flux_kg
metabolic_flux_kg
acyclic_reachability
ACYCLIC
ALL
(:Metabolite {compound})-[:CONVERTS_TO]->(:Metabolite {compound})
Find all loop-free Metabolite compound targets reachable in 1 to 3 CONVERTS_TO hops from Pyruvate without revisiting any node, ordered by compound.
// Graph: metabolic-flux-kg // Schema: (:Metabolite {compound})-[:CONVERTS_TO]->(:Metabolite {compound}) // Question: Find all loop-free Metabolite compound targets reachable in 1 to 3 CONVERTS_TO hops from Pyruvate without revisiting any node, ordered by compound. MATCH
ACYCLIC (a:Metabolite)-[:CONVERTS_TO*1..3]->(b:Metabolite) WHERE a.compound = "Pyruvate" RETURN b.compound AS compound ORDER BY compound;
MATCH (a:Metabolite)-[:CONVERTS_TO*1..3]->(b:Metabolite) WHERE a.compound = "Pyruvate" RETURN b.compound AS compound ORDER BY compound;
[ "CREATE (:Metabolite {compound: \"Pyruvate\"})", "CREATE (:Metabolite {compound: \"Citrate\"})", "CREATE (:Metabolite {compound: \"Malate\"})", "CREATE (:Metabolite {compound: \"Succinate\"})", "CREATE (:Metabolite {compound: \"Lactate\"})", "MATCH (a:Metabolite {compound: \"Pyruvate\"}), (b:Metabolite {c...
[ [ "Citrate" ], [ "Citrate" ], [ "Malate" ], [ "Malate" ], [ "Succinate" ], [ "Succinate" ] ]
true
[["Citrate"], ["Citrate"], ["Malate"], ["Malate"], ["Succinate"], ["Succinate"]]
gpml_04_acyclic_bgp_peering_kg
bgp_peering_kg
acyclic_reachability
ACYCLIC
ALL
(:AutonomousSystem {asn})-[:PEERS_WITH]->(:AutonomousSystem {asn})
Count how many strictly acyclic loopless PEERS_WITH paths of 1 to 4 hops start at AutonomousSystem AS64501 without ever revisiting a node.
// Graph: bgp-peering-kg // Schema: (:AutonomousSystem {asn})-[:PEERS_WITH]->(:AutonomousSystem {asn}) // Question: Count how many strictly acyclic loopless PEERS_WITH paths of 1 to 4 hops start at AutonomousSystem AS64501 without ever revisiting a node. MATCH
ACYCLIC (a:AutonomousSystem)-[:PEERS_WITH*1..4]->(b:AutonomousSystem) WHERE a.asn = "AS64501" RETURN count(b) AS acyclic_paths;
MATCH (a:AutonomousSystem)-[:PEERS_WITH*1..4]->(b:AutonomousSystem) WHERE a.asn = "AS64501" RETURN count(b) AS acyclic_paths;
[ "CREATE (:AutonomousSystem {asn: \"AS64501\"})", "CREATE (:AutonomousSystem {asn: \"AS64502\"})", "CREATE (:AutonomousSystem {asn: \"AS64503\"})", "CREATE (:AutonomousSystem {asn: \"AS64504\"})", "CREATE (:AutonomousSystem {asn: \"AS64505\"})", "MATCH (a:AutonomousSystem {asn: \"AS64501\"}), (b:Autonomous...
[ [ "4" ] ]
true
[[4]]
gpml_05_acyclic_clinical_referral_kg
clinical_referral_kg
acyclic_reachability
ACYCLIC
ALL
(:CareUnit {unit_code})-[:REFERS_TO]->(:CareUnit {unit_code})
Find all loop-free CareUnit unit_code targets reachable in 1 to 3 REFERS_TO hops from ICU-North without revisiting any node, ordered by unit_code.
// Graph: clinical-referral-kg // Schema: (:CareUnit {unit_code})-[:REFERS_TO]->(:CareUnit {unit_code}) // Question: Find all loop-free CareUnit unit_code targets reachable in 1 to 3 REFERS_TO hops from ICU-North without revisiting any node, ordered by unit_code. MATCH
ACYCLIC (a:CareUnit)-[:REFERS_TO*1..3]->(b:CareUnit) WHERE a.unit_code = "ICU-North" RETURN b.unit_code AS unit_code ORDER BY unit_code;
MATCH (a:CareUnit)-[:REFERS_TO*1..3]->(b:CareUnit) WHERE a.unit_code = "ICU-North" RETURN b.unit_code AS unit_code ORDER BY unit_code;
[ "CREATE (:CareUnit {unit_code: \"ICU-North\"})", "CREATE (:CareUnit {unit_code: \"Cardio-East\"})", "CREATE (:CareUnit {unit_code: \"Trauma-West\"})", "CREATE (:CareUnit {unit_code: \"Neuro-South\"})", "CREATE (:CareUnit {unit_code: \"Rehab-Central\"})", "MATCH (a:CareUnit {unit_code: \"ICU-North\"}), (b:...
[ [ "Cardio-East" ], [ "Cardio-East" ], [ "Neuro-South" ], [ "Neuro-South" ], [ "Trauma-West" ], [ "Trauma-West" ] ]
true
[["Cardio-East"], ["Cardio-East"], ["Neuro-South"], ["Neuro-South"], ["Trauma-West"], ["Trauma-West"]]
gpml_06_acyclic_supply_bom_kg
supply_bom_kg
acyclic_reachability
ACYCLIC
ALL
(:AssemblyPart {sku})-[:SUPPLIES_PART]->(:AssemblyPart {sku})
Count how many strictly acyclic loopless SUPPLIES_PART paths of 1 to 4 hops start at AssemblyPart SKU-Wafer without ever revisiting a node.
// Graph: supply-bom-kg // Schema: (:AssemblyPart {sku})-[:SUPPLIES_PART]->(:AssemblyPart {sku}) // Question: Count how many strictly acyclic loopless SUPPLIES_PART paths of 1 to 4 hops start at AssemblyPart SKU-Wafer without ever revisiting a node. MATCH
ACYCLIC (a:AssemblyPart)-[:SUPPLIES_PART*1..4]->(b:AssemblyPart) WHERE a.sku = "SKU-Wafer" RETURN count(b) AS acyclic_paths;
MATCH (a:AssemblyPart)-[:SUPPLIES_PART*1..4]->(b:AssemblyPart) WHERE a.sku = "SKU-Wafer" RETURN count(b) AS acyclic_paths;
[ "CREATE (:AssemblyPart {sku: \"SKU-Wafer\"})", "CREATE (:AssemblyPart {sku: \"SKU-Die\"})", "CREATE (:AssemblyPart {sku: \"SKU-Package\"})", "CREATE (:AssemblyPart {sku: \"SKU-Board\"})", "CREATE (:AssemblyPart {sku: \"SKU-Rack\"})", "MATCH (a:AssemblyPart {sku: \"SKU-Wafer\"}), (b:AssemblyPart {sku: \"SK...
[ [ "4" ] ]
true
[[4]]
gpml_07_acyclic_rail_corridor_kg
rail_corridor_kg
acyclic_reachability
ACYCLIC
ALL
(:RailJunction {station})-[:TRACK_LINK]->(:RailJunction {station})
Find all loop-free RailJunction station targets reachable in 1 to 3 TRACK_LINK hops from Itarsi without revisiting any node, ordered by station.
// Graph: rail-corridor-kg // Schema: (:RailJunction {station})-[:TRACK_LINK]->(:RailJunction {station}) // Question: Find all loop-free RailJunction station targets reachable in 1 to 3 TRACK_LINK hops from Itarsi without revisiting any node, ordered by station. MATCH
ACYCLIC (a:RailJunction)-[:TRACK_LINK*1..3]->(b:RailJunction) WHERE a.station = "Itarsi" RETURN b.station AS station ORDER BY station;
MATCH (a:RailJunction)-[:TRACK_LINK*1..3]->(b:RailJunction) WHERE a.station = "Itarsi" RETURN b.station AS station ORDER BY station;
[ "CREATE (:RailJunction {station: \"Itarsi\"})", "CREATE (:RailJunction {station: \"Nagpur\"})", "CREATE (:RailJunction {station: \"Vijayawada\"})", "CREATE (:RailJunction {station: \"Bhopal\"})", "CREATE (:RailJunction {station: \"Kazipet\"})", "MATCH (a:RailJunction {station: \"Itarsi\"}), (b:RailJunctio...
[ [ "Bhopal" ], [ "Bhopal" ], [ "Nagpur" ], [ "Nagpur" ], [ "Vijayawada" ], [ "Vijayawada" ] ]
true
[["Bhopal"], ["Bhopal"], ["Nagpur"], ["Nagpur"], ["Vijayawada"], ["Vijayawada"]]
gpml_08_acyclic_microservice_mesh_kg
microservice_mesh_kg
acyclic_reachability
ACYCLIC
ALL
(:MeshService {svc})-[:RPC_CALLS]->(:MeshService {svc})
Count how many strictly acyclic loopless RPC_CALLS paths of 1 to 4 hops start at MeshService edge-gw without ever revisiting a node.
// Graph: microservice-mesh-kg // Schema: (:MeshService {svc})-[:RPC_CALLS]->(:MeshService {svc}) // Question: Count how many strictly acyclic loopless RPC_CALLS paths of 1 to 4 hops start at MeshService edge-gw without ever revisiting a node. MATCH
ACYCLIC (a:MeshService)-[:RPC_CALLS*1..4]->(b:MeshService) WHERE a.svc = "edge-gw" RETURN count(b) AS acyclic_paths;
MATCH (a:MeshService)-[:RPC_CALLS*1..4]->(b:MeshService) WHERE a.svc = "edge-gw" RETURN count(b) AS acyclic_paths;
[ "CREATE (:MeshService {svc: \"edge-gw\"})", "CREATE (:MeshService {svc: \"authn-svc\"})", "CREATE (:MeshService {svc: \"ledger-svc\"})", "CREATE (:MeshService {svc: \"audit-svc\"})", "CREATE (:MeshService {svc: \"notify-svc\"})", "MATCH (a:MeshService {svc: \"edge-gw\"}), (b:MeshService {svc: \"authn-svc\...
[ [ "4" ] ]
true
[[4]]
gpml_09_acyclic_cyber_lateral_kg
cyber_lateral_kg
acyclic_reachability
ACYCLIC
ALL
(:HostAsset {hostname})-[:PIVOTS_TO]->(:HostAsset {hostname})
Find all loop-free HostAsset hostname targets reachable in 1 to 3 PIVOTS_TO hops from bastion-01 without revisiting any node, ordered by hostname.
// Graph: cyber-lateral-kg // Schema: (:HostAsset {hostname})-[:PIVOTS_TO]->(:HostAsset {hostname}) // Question: Find all loop-free HostAsset hostname targets reachable in 1 to 3 PIVOTS_TO hops from bastion-01 without revisiting any node, ordered by hostname. MATCH
ACYCLIC (a:HostAsset)-[:PIVOTS_TO*1..3]->(b:HostAsset) WHERE a.hostname = "bastion-01" RETURN b.hostname AS hostname ORDER BY hostname;
MATCH (a:HostAsset)-[:PIVOTS_TO*1..3]->(b:HostAsset) WHERE a.hostname = "bastion-01" RETURN b.hostname AS hostname ORDER BY hostname;
[ "CREATE (:HostAsset {hostname: \"bastion-01\"})", "CREATE (:HostAsset {hostname: \"app-srv-02\"})", "CREATE (:HostAsset {hostname: \"db-pri-03\"})", "CREATE (:HostAsset {hostname: \"vault-04\"})", "CREATE (:HostAsset {hostname: \"ci-runner-05\"})", "MATCH (a:HostAsset {hostname: \"bastion-01\"}), (b:HostA...
[ [ "app-srv-02" ], [ "app-srv-02" ], [ "db-pri-03" ], [ "db-pri-03" ], [ "vault-04" ], [ "vault-04" ] ]
true
[["app-srv-02"], ["app-srv-02"], ["db-pri-03"], ["db-pri-03"], ["vault-04"], ["vault-04"]]
gpml_10_acyclic_payment_clearing_kg
payment_clearing_kg
acyclic_reachability
ACYCLIC
ALL
(:ClearingWallet {acct})-[:SETTLES_WITH]->(:ClearingWallet {acct})
Count how many strictly acyclic loopless SETTLES_WITH paths of 1 to 4 hops start at ClearingWallet WLT-Alpha without ever revisiting a node.
// Graph: payment-clearing-kg // Schema: (:ClearingWallet {acct})-[:SETTLES_WITH]->(:ClearingWallet {acct}) // Question: Count how many strictly acyclic loopless SETTLES_WITH paths of 1 to 4 hops start at ClearingWallet WLT-Alpha without ever revisiting a node. MATCH
ACYCLIC (a:ClearingWallet)-[:SETTLES_WITH*1..4]->(b:ClearingWallet) WHERE a.acct = "WLT-Alpha" RETURN count(b) AS acyclic_paths;
MATCH (a:ClearingWallet)-[:SETTLES_WITH*1..4]->(b:ClearingWallet) WHERE a.acct = "WLT-Alpha" RETURN count(b) AS acyclic_paths;
[ "CREATE (:ClearingWallet {acct: \"WLT-Alpha\"})", "CREATE (:ClearingWallet {acct: \"WLT-Bravo\"})", "CREATE (:ClearingWallet {acct: \"WLT-Charlie\"})", "CREATE (:ClearingWallet {acct: \"WLT-Delta\"})", "CREATE (:ClearingWallet {acct: \"WLT-Echo\"})", "MATCH (a:ClearingWallet {acct: \"WLT-Alpha\"}), (b:Cle...
[ [ "4" ] ]
true
[[4]]
gpml_11_simple_telecom_ring_kg
telecom_ring_kg
simple_cycles_and_paths
SIMPLE
ALL
(:OpticalOadm {node_tag})-[:FIBER_SPAN]->(:OpticalOadm {node_tag})
Count how many simple closed FIBER_SPAN cycles of 2 to 5 hops start and end at OpticalOadm OADM-11 without repeating any interior node.
// Graph: telecom-ring-kg // Schema: (:OpticalOadm {node_tag})-[:FIBER_SPAN]->(:OpticalOadm {node_tag}) // Question: Count how many simple closed FIBER_SPAN cycles of 2 to 5 hops start and end at OpticalOadm OADM-11 without repeating any interior node. MATCH
SIMPLE (a:OpticalOadm {node_tag: "OADM-11"})-[:FIBER_SPAN*2..5]->(a) RETURN count(a) AS simple_cycles;
MATCH TRAIL (a:OpticalOadm {node_tag: "OADM-11"})-[:FIBER_SPAN*2..5]->(a) RETURN count(a) AS simple_cycles;
[ "CREATE (:OpticalOadm {node_tag: \"OADM-11\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-22\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-33\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-44\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-55\"})", "MATCH (a:OpticalOadm {node_tag: \"OADM-11\"}), (b:OpticalOad...
[ [ "2" ] ]
true
[[2]]
gpml_12_simple_water_canal_kg
water_canal_kg
simple_cycles_and_paths
SIMPLE
ALL
(:Reservoir {basin_id})-[:CANAL_FLOW]->(:Reservoir {basin_id})
List all Reservoir basin_id endpoints reached from Basin-Cauvery in 1 to 4 CANAL_FLOW hops under ISO SIMPLE path semantics ordered by basin_id.
// Graph: water-canal-kg // Schema: (:Reservoir {basin_id})-[:CANAL_FLOW]->(:Reservoir {basin_id}) // Question: List all Reservoir basin_id endpoints reached from Basin-Cauvery in 1 to 4 CANAL_FLOW hops under ISO SIMPLE path semantics ordered by basin_id. MATCH
SIMPLE (a:Reservoir)-[:CANAL_FLOW*1..4]->(b:Reservoir) WHERE a.basin_id = "Basin-Cauvery" RETURN b.basin_id AS basin_id ORDER BY basin_id;
MATCH TRAIL (a:Reservoir)-[:CANAL_FLOW*1..4]->(b:Reservoir) WHERE a.basin_id = "Basin-Cauvery" RETURN b.basin_id AS basin_id ORDER BY basin_id;
[ "CREATE (:Reservoir {basin_id: \"Basin-Cauvery\"})", "CREATE (:Reservoir {basin_id: \"Basin-Kabini\"})", "CREATE (:Reservoir {basin_id: \"Basin-Hemavati\"})", "CREATE (:Reservoir {basin_id: \"Basin-Arkavathy\"})", "CREATE (:Reservoir {basin_id: \"Basin-Shimsha\"})", "MATCH (a:Reservoir {basin_id: \"Basin-...
[ [ "Basin-Arkavathy" ], [ "Basin-Cauvery" ], [ "Basin-Cauvery" ], [ "Basin-Hemavati" ], [ "Basin-Hemavati" ], [ "Basin-Kabini" ], [ "Basin-Shimsha" ] ]
true
[["Basin-Arkavathy"], ["Basin-Cauvery"], ["Basin-Cauvery"], ["Basin-Hemavati"], ["Basin-Hemavati"], ["Basin-Kabini"], ["Basin-Shimsha"]]
gpml_13_simple_cargo_maritime_kg
cargo_maritime_kg
simple_cycles_and_paths
SIMPLE
ALL
(:Seaport {unlocode})-[:SAILS_TO]->(:Seaport {unlocode})
Count how many simple closed SAILS_TO cycles of 2 to 5 hops start and end at Seaport INNSA without repeating any interior node.
// Graph: cargo-maritime-kg // Schema: (:Seaport {unlocode})-[:SAILS_TO]->(:Seaport {unlocode}) // Question: Count how many simple closed SAILS_TO cycles of 2 to 5 hops start and end at Seaport INNSA without repeating any interior node. MATCH
SIMPLE (a:Seaport {unlocode: "INNSA"})-[:SAILS_TO*2..5]->(a) RETURN count(a) AS simple_cycles;
MATCH TRAIL (a:Seaport {unlocode: "INNSA"})-[:SAILS_TO*2..5]->(a) RETURN count(a) AS simple_cycles;
[ "CREATE (:Seaport {unlocode: \"INNSA\"})", "CREATE (:Seaport {unlocode: \"SGSIN\"})", "CREATE (:Seaport {unlocode: \"AEJEA\"})", "CREATE (:Seaport {unlocode: \"NLRTM\"})", "CREATE (:Seaport {unlocode: \"LKCMB\"})", "MATCH (a:Seaport {unlocode: \"INNSA\"}), (b:Seaport {unlocode: \"SGSIN\"}) CREATE (a)-[:SA...
[ [ "2" ] ]
true
[[2]]
gpml_14_simple_gene_regulatory_kg
gene_regulatory_kg
simple_cycles_and_paths
SIMPLE
ALL
(:RegFactor {gene_sym})-[:UPREGULATES]->(:RegFactor {gene_sym})
List all RegFactor gene_sym endpoints reached from SOX2 in 1 to 4 UPREGULATES hops under ISO SIMPLE path semantics ordered by gene_sym.
// Graph: gene-regulatory-kg // Schema: (:RegFactor {gene_sym})-[:UPREGULATES]->(:RegFactor {gene_sym}) // Question: List all RegFactor gene_sym endpoints reached from SOX2 in 1 to 4 UPREGULATES hops under ISO SIMPLE path semantics ordered by gene_sym. MATCH
SIMPLE (a:RegFactor)-[:UPREGULATES*1..4]->(b:RegFactor) WHERE a.gene_sym = "SOX2" RETURN b.gene_sym AS gene_sym ORDER BY gene_sym;
MATCH TRAIL (a:RegFactor)-[:UPREGULATES*1..4]->(b:RegFactor) WHERE a.gene_sym = "SOX2" RETURN b.gene_sym AS gene_sym ORDER BY gene_sym;
[ "CREATE (:RegFactor {gene_sym: \"SOX2\"})", "CREATE (:RegFactor {gene_sym: \"OCT4\"})", "CREATE (:RegFactor {gene_sym: \"NANOG\"})", "CREATE (:RegFactor {gene_sym: \"KLF4\"})", "CREATE (:RegFactor {gene_sym: \"MYC\"})", "MATCH (a:RegFactor {gene_sym: \"SOX2\"}), (b:RegFactor {gene_sym: \"OCT4\"}) CREATE (...
[ [ "KLF4" ], [ "MYC" ], [ "NANOG" ], [ "NANOG" ], [ "OCT4" ], [ "SOX2" ], [ "SOX2" ] ]
true
[["KLF4"], ["MYC"], ["NANOG"], ["NANOG"], ["OCT4"], ["SOX2"], ["SOX2"]]
gpml_15_simple_chip_interconnect_kg
chip_interconnect_kg
simple_cycles_and_paths
SIMPLE
ALL
(:NoCTile {tile_id})-[:NOC_LINK]->(:NoCTile {tile_id})
Count how many simple closed NOC_LINK cycles of 2 to 5 hops start and end at NoCTile TILE-00 without repeating any interior node.
// Graph: chip-interconnect-kg // Schema: (:NoCTile {tile_id})-[:NOC_LINK]->(:NoCTile {tile_id}) // Question: Count how many simple closed NOC_LINK cycles of 2 to 5 hops start and end at NoCTile TILE-00 without repeating any interior node. MATCH
SIMPLE (a:NoCTile {tile_id: "TILE-00"})-[:NOC_LINK*2..5]->(a) RETURN count(a) AS simple_cycles;
MATCH TRAIL (a:NoCTile {tile_id: "TILE-00"})-[:NOC_LINK*2..5]->(a) RETURN count(a) AS simple_cycles;
[ "CREATE (:NoCTile {tile_id: \"TILE-00\"})", "CREATE (:NoCTile {tile_id: \"TILE-01\"})", "CREATE (:NoCTile {tile_id: \"TILE-11\"})", "CREATE (:NoCTile {tile_id: \"TILE-10\"})", "CREATE (:NoCTile {tile_id: \"TILE-22\"})", "MATCH (a:NoCTile {tile_id: \"TILE-00\"}), (b:NoCTile {tile_id: \"TILE-01\"}) CREATE (...
[ [ "2" ] ]
true
[[2]]
gpml_16_simple_air_cargo_kg
air_cargo_kg
simple_cycles_and_paths
SIMPLE
ALL
(:CargoHub {iata})-[:FREIGHT_LEG]->(:CargoHub {iata})
List all CargoHub iata endpoints reached from BLR in 1 to 4 FREIGHT_LEG hops under ISO SIMPLE path semantics ordered by iata.
// Graph: air-cargo-kg // Schema: (:CargoHub {iata})-[:FREIGHT_LEG]->(:CargoHub {iata}) // Question: List all CargoHub iata endpoints reached from BLR in 1 to 4 FREIGHT_LEG hops under ISO SIMPLE path semantics ordered by iata. MATCH
SIMPLE (a:CargoHub)-[:FREIGHT_LEG*1..4]->(b:CargoHub) WHERE a.iata = "BLR" RETURN b.iata AS iata ORDER BY iata;
MATCH TRAIL (a:CargoHub)-[:FREIGHT_LEG*1..4]->(b:CargoHub) WHERE a.iata = "BLR" RETURN b.iata AS iata ORDER BY iata;
[ "CREATE (:CargoHub {iata: \"BLR\"})", "CREATE (:CargoHub {iata: \"FRA\"})", "CREATE (:CargoHub {iata: \"ANC\"})", "CREATE (:CargoHub {iata: \"MEM\"})", "CREATE (:CargoHub {iata: \"DOH\"})", "MATCH (a:CargoHub {iata: \"BLR\"}), (b:CargoHub {iata: \"FRA\"}) CREATE (a)-[:FREIGHT_LEG]->(b)", "MATCH (a:Cargo...
[ [ "ANC" ], [ "ANC" ], [ "BLR" ], [ "BLR" ], [ "DOH" ], [ "FRA" ], [ "MEM" ] ]
true
[["ANC"], ["ANC"], ["BLR"], ["BLR"], ["DOH"], ["FRA"], ["MEM"]]
gpml_17_simple_cloud_vpc_kg
cloud_vpc_kg
simple_cycles_and_paths
SIMPLE
ALL
(:VpcSubnet {cidr_name})-[:ROUTES_TO]->(:VpcSubnet {cidr_name})
Count how many simple closed ROUTES_TO cycles of 2 to 5 hops start and end at VpcSubnet vpc-ingress without repeating any interior node.
// Graph: cloud-vpc-kg // Schema: (:VpcSubnet {cidr_name})-[:ROUTES_TO]->(:VpcSubnet {cidr_name}) // Question: Count how many simple closed ROUTES_TO cycles of 2 to 5 hops start and end at VpcSubnet vpc-ingress without repeating any interior node. MATCH
SIMPLE (a:VpcSubnet {cidr_name: "vpc-ingress"})-[:ROUTES_TO*2..5]->(a) RETURN count(a) AS simple_cycles;
MATCH TRAIL (a:VpcSubnet {cidr_name: "vpc-ingress"})-[:ROUTES_TO*2..5]->(a) RETURN count(a) AS simple_cycles;
[ "CREATE (:VpcSubnet {cidr_name: \"vpc-ingress\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-worker\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-storage\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-nat\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-kms\"})", "MATCH (a:VpcSubnet {cidr_name: \"vpc-ingress\"}), (b:V...
[ [ "2" ] ]
true
[[2]]
gpml_18_simple_pharma_coldchain_kg
pharma_coldchain_kg
simple_cycles_and_paths
SIMPLE
ALL
(:ColdDepot {depot_code})-[:SHIPS_VIAL]->(:ColdDepot {depot_code})
List all ColdDepot depot_code endpoints reached from DEP-Basel in 1 to 4 SHIPS_VIAL hops under ISO SIMPLE path semantics ordered by depot_code.
// Graph: pharma-coldchain-kg // Schema: (:ColdDepot {depot_code})-[:SHIPS_VIAL]->(:ColdDepot {depot_code}) // Question: List all ColdDepot depot_code endpoints reached from DEP-Basel in 1 to 4 SHIPS_VIAL hops under ISO SIMPLE path semantics ordered by depot_code. MATCH
SIMPLE (a:ColdDepot)-[:SHIPS_VIAL*1..4]->(b:ColdDepot) WHERE a.depot_code = "DEP-Basel" RETURN b.depot_code AS depot_code ORDER BY depot_code;
MATCH TRAIL (a:ColdDepot)-[:SHIPS_VIAL*1..4]->(b:ColdDepot) WHERE a.depot_code = "DEP-Basel" RETURN b.depot_code AS depot_code ORDER BY depot_code;
[ "CREATE (:ColdDepot {depot_code: \"DEP-Basel\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Mumbai\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Osaka\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Boston\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Dublin\"})", "MATCH (a:ColdDepot {depot_code: \"DEP-Basel\"})...
[ [ "DEP-Basel" ], [ "DEP-Basel" ], [ "DEP-Boston" ], [ "DEP-Dublin" ], [ "DEP-Mumbai" ], [ "DEP-Osaka" ], [ "DEP-Osaka" ] ]
true
[["DEP-Basel"], ["DEP-Basel"], ["DEP-Boston"], ["DEP-Dublin"], ["DEP-Mumbai"], ["DEP-Osaka"], ["DEP-Osaka"]]
gpml_19_simple_patent_citation_kg
patent_citation_kg
simple_cycles_and_paths
SIMPLE
ALL
(:PatentDoc {pub_no})-[:CITES_PRIOR]->(:PatentDoc {pub_no})
Count how many simple closed CITES_PRIOR cycles of 2 to 5 hops start and end at PatentDoc EP-1001 without repeating any interior node.
// Graph: patent-citation-kg // Schema: (:PatentDoc {pub_no})-[:CITES_PRIOR]->(:PatentDoc {pub_no}) // Question: Count how many simple closed CITES_PRIOR cycles of 2 to 5 hops start and end at PatentDoc EP-1001 without repeating any interior node. MATCH
SIMPLE (a:PatentDoc {pub_no: "EP-1001"})-[:CITES_PRIOR*2..5]->(a) RETURN count(a) AS simple_cycles;
MATCH TRAIL (a:PatentDoc {pub_no: "EP-1001"})-[:CITES_PRIOR*2..5]->(a) RETURN count(a) AS simple_cycles;
[ "CREATE (:PatentDoc {pub_no: \"EP-1001\"})", "CREATE (:PatentDoc {pub_no: \"EP-2002\"})", "CREATE (:PatentDoc {pub_no: \"EP-3003\"})", "CREATE (:PatentDoc {pub_no: \"EP-4004\"})", "CREATE (:PatentDoc {pub_no: \"EP-5005\"})", "MATCH (a:PatentDoc {pub_no: \"EP-1001\"}), (b:PatentDoc {pub_no: \"EP-2002\"}) C...
[ [ "2" ] ]
true
[[2]]
gpml_20_simple_grid_microgrid_kg
grid_microgrid_kg
simple_cycles_and_paths
SIMPLE
ALL
(:InverterNode {inv_id})-[:DC_TIE]->(:InverterNode {inv_id})
List all InverterNode inv_id endpoints reached from INV-Solar1 in 1 to 4 DC_TIE hops under ISO SIMPLE path semantics ordered by inv_id.
// Graph: grid-microgrid-kg // Schema: (:InverterNode {inv_id})-[:DC_TIE]->(:InverterNode {inv_id}) // Question: List all InverterNode inv_id endpoints reached from INV-Solar1 in 1 to 4 DC_TIE hops under ISO SIMPLE path semantics ordered by inv_id. MATCH
SIMPLE (a:InverterNode)-[:DC_TIE*1..4]->(b:InverterNode) WHERE a.inv_id = "INV-Solar1" RETURN b.inv_id AS inv_id ORDER BY inv_id;
MATCH TRAIL (a:InverterNode)-[:DC_TIE*1..4]->(b:InverterNode) WHERE a.inv_id = "INV-Solar1" RETURN b.inv_id AS inv_id ORDER BY inv_id;
[ "CREATE (:InverterNode {inv_id: \"INV-Solar1\"})", "CREATE (:InverterNode {inv_id: \"INV-Batt2\"})", "CREATE (:InverterNode {inv_id: \"INV-Load3\"})", "CREATE (:InverterNode {inv_id: \"INV-Wind4\"})", "CREATE (:InverterNode {inv_id: \"INV-Sync5\"})", "MATCH (a:InverterNode {inv_id: \"INV-Solar1\"}), (b:In...
[ [ "INV-Batt2" ], [ "INV-Load3" ], [ "INV-Load3" ], [ "INV-Solar1" ], [ "INV-Solar1" ], [ "INV-Sync5" ], [ "INV-Wind4" ] ]
true
[["INV-Batt2"], ["INV-Load3"], ["INV-Load3"], ["INV-Solar1"], ["INV-Solar1"], ["INV-Sync5"], ["INV-Wind4"]]
gpml_21_shortest_fraud_mule_kg
fraud_mule_kg
shortest_partition_selectors
WALK
ALL SHORTEST
(:MuleAccount {iban_tag})-[:REMITS_TO]->(:MuleAccount {iban_tag})
Find all shortest REMITS_TO paths of 1 to 4 hops from MuleAccount IBAN-71 to IBAN-74 and return destination iban_tag for every tied shortest route.
// Graph: fraud-mule-kg // Schema: (:MuleAccount {iban_tag})-[:REMITS_TO]->(:MuleAccount {iban_tag}) // Question: Find all shortest REMITS_TO paths of 1 to 4 hops from MuleAccount IBAN-71 to IBAN-74 and return destination iban_tag for every tied shortest route. MATCH
ALL SHORTEST (a:MuleAccount)-[:REMITS_TO*1..4]->(b:MuleAccount) WHERE a.iban_tag = "IBAN-71" AND b.iban_tag = "IBAN-74" RETURN b.iban_tag AS iban_tag;
MATCH (a:MuleAccount)-[:REMITS_TO*1..4]->(b:MuleAccount) WHERE a.iban_tag = "IBAN-71" AND b.iban_tag = "IBAN-74" RETURN b.iban_tag AS iban_tag;
[ "CREATE (:MuleAccount {iban_tag: \"IBAN-71\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-72\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-73\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-74\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-75\"})", "MATCH (a:MuleAccount {iban_tag: \"IBAN-71\"}), (b:MuleAccoun...
[ [ "IBAN-74" ], [ "IBAN-74" ], [ "IBAN-74" ] ]
true
[["IBAN-74"], ["IBAN-74"], ["IBAN-74"]]
gpml_22_shortest_hospital_transfer_kg
hospital_transfer_kg
shortest_partition_selectors
WALK
ALL SHORTEST
(:RegionalClinic {clinic_id})-[:TRANSFERS_PATIENT]->(:RegionalClinic {clinic_id})
Find all shortest TRANSFERS_PATIENT paths of 1 to 4 hops from RegionalClinic CLN-Mysuru to CLN-Kodagu and return destination clinic_id for every tied shortest route.
// Graph: hospital-transfer-kg // Schema: (:RegionalClinic {clinic_id})-[:TRANSFERS_PATIENT]->(:RegionalClinic {clinic_id}) // Question: Find all shortest TRANSFERS_PATIENT paths of 1 to 4 hops from RegionalClinic CLN-Mysuru to CLN-Kodagu and return destination clinic_id for every tied shortest route. MATCH
ALL SHORTEST (a:RegionalClinic)-[:TRANSFERS_PATIENT*1..4]->(b:RegionalClinic) WHERE a.clinic_id = "CLN-Mysuru" AND b.clinic_id = "CLN-Kodagu" RETURN b.clinic_id AS clinic_id;
MATCH (a:RegionalClinic)-[:TRANSFERS_PATIENT*1..4]->(b:RegionalClinic) WHERE a.clinic_id = "CLN-Mysuru" AND b.clinic_id = "CLN-Kodagu" RETURN b.clinic_id AS clinic_id;
[ "CREATE (:RegionalClinic {clinic_id: \"CLN-Mysuru\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Mandya\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Hassan\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Kodagu\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Tumkur\"})", "MATCH (a:RegionalClinic {...
[ [ "CLN-Kodagu" ], [ "CLN-Kodagu" ], [ "CLN-Kodagu" ] ]
true
[["CLN-Kodagu"], ["CLN-Kodagu"], ["CLN-Kodagu"]]
gpml_23_shortest_mfg_assembly_kg
mfg_assembly_kg
shortest_partition_selectors
WALK
ALL SHORTEST
(:WorkCell {cell_code})-[:FEEDS_CELL]->(:WorkCell {cell_code})
Find all shortest FEEDS_CELL paths of 1 to 4 hops from WorkCell CELL-Weld to CELL-Trim and return destination cell_code for every tied shortest route.
// Graph: mfg-assembly-kg // Schema: (:WorkCell {cell_code})-[:FEEDS_CELL]->(:WorkCell {cell_code}) // Question: Find all shortest FEEDS_CELL paths of 1 to 4 hops from WorkCell CELL-Weld to CELL-Trim and return destination cell_code for every tied shortest route. MATCH
ALL SHORTEST (a:WorkCell)-[:FEEDS_CELL*1..4]->(b:WorkCell) WHERE a.cell_code = "CELL-Weld" AND b.cell_code = "CELL-Trim" RETURN b.cell_code AS cell_code;
MATCH (a:WorkCell)-[:FEEDS_CELL*1..4]->(b:WorkCell) WHERE a.cell_code = "CELL-Weld" AND b.cell_code = "CELL-Trim" RETURN b.cell_code AS cell_code;
[ "CREATE (:WorkCell {cell_code: \"CELL-Weld\"})", "CREATE (:WorkCell {cell_code: \"CELL-Paint\"})", "CREATE (:WorkCell {cell_code: \"CELL-Cure\"})", "CREATE (:WorkCell {cell_code: \"CELL-Trim\"})", "CREATE (:WorkCell {cell_code: \"CELL-Pack\"})", "MATCH (a:WorkCell {cell_code: \"CELL-Weld\"}), (b:WorkCell ...
[ [ "CELL-Trim" ], [ "CELL-Trim" ], [ "CELL-Trim" ] ]
true
[["CELL-Trim"], ["CELL-Trim"], ["CELL-Trim"]]
gpml_24_shortest_satellite_relay_kg
satellite_relay_kg
shortest_partition_selectors
WALK
ALL SHORTEST
(:OrbitalSat {sat_id})-[:LASER_CROSSLINK]->(:OrbitalSat {sat_id})
Find all shortest LASER_CROSSLINK paths of 1 to 4 hops from OrbitalSat SAT-Leo1 to SAT-Meo4 and return destination sat_id for every tied shortest route.
// Graph: satellite-relay-kg // Schema: (:OrbitalSat {sat_id})-[:LASER_CROSSLINK]->(:OrbitalSat {sat_id}) // Question: Find all shortest LASER_CROSSLINK paths of 1 to 4 hops from OrbitalSat SAT-Leo1 to SAT-Meo4 and return destination sat_id for every tied shortest route. MATCH
ALL SHORTEST (a:OrbitalSat)-[:LASER_CROSSLINK*1..4]->(b:OrbitalSat) WHERE a.sat_id = "SAT-Leo1" AND b.sat_id = "SAT-Meo4" RETURN b.sat_id AS sat_id;
MATCH (a:OrbitalSat)-[:LASER_CROSSLINK*1..4]->(b:OrbitalSat) WHERE a.sat_id = "SAT-Leo1" AND b.sat_id = "SAT-Meo4" RETURN b.sat_id AS sat_id;
[ "CREATE (:OrbitalSat {sat_id: \"SAT-Leo1\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Leo2\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Leo3\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Meo4\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Geo5\"})", "MATCH (a:OrbitalSat {sat_id: \"SAT-Leo1\"}), (b:OrbitalSat {sat_id: \"...
[ [ "SAT-Meo4" ], [ "SAT-Meo4" ], [ "SAT-Meo4" ] ]
true
[["SAT-Meo4"], ["SAT-Meo4"], ["SAT-Meo4"]]
gpml_25_shortest_court_precedent_kg
court_precedent_kg
shortest_partition_selectors
WALK
ALL SHORTEST
(:BenchRuling {case_ref})-[:FOLLOWS_HOLDING]->(:BenchRuling {case_ref})
Find all shortest FOLLOWS_HOLDING paths of 1 to 4 hops from BenchRuling SC-1994-1 to SC-2018-2 and return destination case_ref for every tied shortest route.
// Graph: court-precedent-kg // Schema: (:BenchRuling {case_ref})-[:FOLLOWS_HOLDING]->(:BenchRuling {case_ref}) // Question: Find all shortest FOLLOWS_HOLDING paths of 1 to 4 hops from BenchRuling SC-1994-1 to SC-2018-2 and return destination case_ref for every tied shortest route. MATCH
ALL SHORTEST (a:BenchRuling)-[:FOLLOWS_HOLDING*1..4]->(b:BenchRuling) WHERE a.case_ref = "SC-1994-1" AND b.case_ref = "SC-2018-2" RETURN b.case_ref AS case_ref;
MATCH (a:BenchRuling)-[:FOLLOWS_HOLDING*1..4]->(b:BenchRuling) WHERE a.case_ref = "SC-1994-1" AND b.case_ref = "SC-2018-2" RETURN b.case_ref AS case_ref;
[ "CREATE (:BenchRuling {case_ref: \"SC-1994-1\"})", "CREATE (:BenchRuling {case_ref: \"SC-2001-4\"})", "CREATE (:BenchRuling {case_ref: \"SC-2010-8\"})", "CREATE (:BenchRuling {case_ref: \"SC-2018-2\"})", "CREATE (:BenchRuling {case_ref: \"SC-2024-9\"})", "MATCH (a:BenchRuling {case_ref: \"SC-1994-1\"}), (...
[ [ "SC-2018-2" ], [ "SC-2018-2" ], [ "SC-2018-2" ] ]
true
[["SC-2018-2"], ["SC-2018-2"], ["SC-2018-2"]]
gpml_26_shortest_interbank_wire_kg
interbank_wire_kg
shortest_partition_selectors
WALK
ANY SHORTEST
(:BankNode {code})-[:WIRE_HOP]->(:BankNode {code})
Select one shortest WIRE_HOP path per reachable BankNode within 1 to 4 hops from ZUR-01 and return target code ordered by code.
// Graph: interbank-wire-kg // Schema: (:BankNode {code})-[:WIRE_HOP]->(:BankNode {code}) // Question: Select one shortest WIRE_HOP path per reachable BankNode within 1 to 4 hops from ZUR-01 and return target code ordered by code. MATCH
ANY SHORTEST (a:BankNode)-[:WIRE_HOP*1..4]->(b:BankNode) WHERE a.code = "ZUR-01" RETURN b.code AS code ORDER BY code;
MATCH ALL SHORTEST (a:BankNode)-[:WIRE_HOP*1..4]->(b:BankNode) WHERE a.code = "ZUR-01" RETURN b.code AS code ORDER BY code;
[ "CREATE (:BankNode {code: \"ZUR-01\"})", "CREATE (:BankNode {code: \"FRA-02\"})", "CREATE (:BankNode {code: \"LON-03\"})", "CREATE (:BankNode {code: \"NYC-04\"})", "CREATE (:BankNode {code: \"SGP-05\"})", "MATCH (a:BankNode {code: \"ZUR-01\"}), (b:BankNode {code: \"FRA-02\"}) CREATE (a)-[:WIRE_HOP]->(b)",...
[ [ "FRA-02" ], [ "LON-03" ], [ "NYC-04" ], [ "SGP-05" ] ]
true
[["FRA-02"], ["LON-03"], ["NYC-04"], ["SGP-05"]]
gpml_27_shortest_substation_feeder_kg
substation_feeder_kg
shortest_partition_selectors
WALK
ANY SHORTEST
(:GridBus {bus_id})-[:FEEDER_LINE]->(:GridBus {bus_id})
Select one shortest FEEDER_LINE path per reachable GridBus within 1 to 4 hops from BUS-A1 and return target bus_id ordered by bus_id.
// Graph: substation-feeder-kg // Schema: (:GridBus {bus_id})-[:FEEDER_LINE]->(:GridBus {bus_id}) // Question: Select one shortest FEEDER_LINE path per reachable GridBus within 1 to 4 hops from BUS-A1 and return target bus_id ordered by bus_id. MATCH
ANY SHORTEST (a:GridBus)-[:FEEDER_LINE*1..4]->(b:GridBus) WHERE a.bus_id = "BUS-A1" RETURN b.bus_id AS bus_id ORDER BY bus_id;
MATCH ALL SHORTEST (a:GridBus)-[:FEEDER_LINE*1..4]->(b:GridBus) WHERE a.bus_id = "BUS-A1" RETURN b.bus_id AS bus_id ORDER BY bus_id;
[ "CREATE (:GridBus {bus_id: \"BUS-A1\"})", "CREATE (:GridBus {bus_id: \"BUS-B2\"})", "CREATE (:GridBus {bus_id: \"BUS-C3\"})", "CREATE (:GridBus {bus_id: \"BUS-D4\"})", "CREATE (:GridBus {bus_id: \"BUS-E5\"})", "MATCH (a:GridBus {bus_id: \"BUS-A1\"}), (b:GridBus {bus_id: \"BUS-B2\"}) CREATE (a)-[:FEEDER_LI...
[ [ "BUS-B2" ], [ "BUS-C3" ], [ "BUS-D4" ], [ "BUS-E5" ] ]
true
[["BUS-B2"], ["BUS-C3"], ["BUS-D4"], ["BUS-E5"]]
gpml_28_shortest_metabolic_flux_kg
metabolic_flux_kg
shortest_partition_selectors
WALK
ANY SHORTEST
(:Metabolite {compound})-[:CONVERTS_TO]->(:Metabolite {compound})
Select one shortest CONVERTS_TO path per reachable Metabolite within 1 to 4 hops from Pyruvate and return target compound ordered by compound.
// Graph: metabolic-flux-kg // Schema: (:Metabolite {compound})-[:CONVERTS_TO]->(:Metabolite {compound}) // Question: Select one shortest CONVERTS_TO path per reachable Metabolite within 1 to 4 hops from Pyruvate and return target compound ordered by compound. MATCH
ANY SHORTEST (a:Metabolite)-[:CONVERTS_TO*1..4]->(b:Metabolite) WHERE a.compound = "Pyruvate" RETURN b.compound AS compound ORDER BY compound;
MATCH ALL SHORTEST (a:Metabolite)-[:CONVERTS_TO*1..4]->(b:Metabolite) WHERE a.compound = "Pyruvate" RETURN b.compound AS compound ORDER BY compound;
[ "CREATE (:Metabolite {compound: \"Pyruvate\"})", "CREATE (:Metabolite {compound: \"Citrate\"})", "CREATE (:Metabolite {compound: \"Malate\"})", "CREATE (:Metabolite {compound: \"Succinate\"})", "CREATE (:Metabolite {compound: \"Lactate\"})", "MATCH (a:Metabolite {compound: \"Pyruvate\"}), (b:Metabolite {c...
[ [ "Citrate" ], [ "Lactate" ], [ "Malate" ], [ "Succinate" ] ]
true
[["Citrate"], ["Lactate"], ["Malate"], ["Succinate"]]
gpml_29_shortest_bgp_peering_kg
bgp_peering_kg
shortest_partition_selectors
WALK
ANY SHORTEST
(:AutonomousSystem {asn})-[:PEERS_WITH]->(:AutonomousSystem {asn})
Select one shortest PEERS_WITH path per reachable AutonomousSystem within 1 to 4 hops from AS64501 and return target asn ordered by asn.
// Graph: bgp-peering-kg // Schema: (:AutonomousSystem {asn})-[:PEERS_WITH]->(:AutonomousSystem {asn}) // Question: Select one shortest PEERS_WITH path per reachable AutonomousSystem within 1 to 4 hops from AS64501 and return target asn ordered by asn. MATCH
ANY SHORTEST (a:AutonomousSystem)-[:PEERS_WITH*1..4]->(b:AutonomousSystem) WHERE a.asn = "AS64501" RETURN b.asn AS asn ORDER BY asn;
MATCH ALL SHORTEST (a:AutonomousSystem)-[:PEERS_WITH*1..4]->(b:AutonomousSystem) WHERE a.asn = "AS64501" RETURN b.asn AS asn ORDER BY asn;
[ "CREATE (:AutonomousSystem {asn: \"AS64501\"})", "CREATE (:AutonomousSystem {asn: \"AS64502\"})", "CREATE (:AutonomousSystem {asn: \"AS64503\"})", "CREATE (:AutonomousSystem {asn: \"AS64504\"})", "CREATE (:AutonomousSystem {asn: \"AS64505\"})", "MATCH (a:AutonomousSystem {asn: \"AS64501\"}), (b:Autonomous...
[ [ "AS64502" ], [ "AS64503" ], [ "AS64504" ], [ "AS64505" ] ]
true
[["AS64502"], ["AS64503"], ["AS64504"], ["AS64505"]]
gpml_30_shortest_clinical_referral_kg
clinical_referral_kg
shortest_partition_selectors
WALK
ANY SHORTEST
(:CareUnit {unit_code})-[:REFERS_TO]->(:CareUnit {unit_code})
Select one shortest REFERS_TO path per reachable CareUnit within 1 to 4 hops from ICU-North and return target unit_code ordered by unit_code.
// Graph: clinical-referral-kg // Schema: (:CareUnit {unit_code})-[:REFERS_TO]->(:CareUnit {unit_code}) // Question: Select one shortest REFERS_TO path per reachable CareUnit within 1 to 4 hops from ICU-North and return target unit_code ordered by unit_code. MATCH
ANY SHORTEST (a:CareUnit)-[:REFERS_TO*1..4]->(b:CareUnit) WHERE a.unit_code = "ICU-North" RETURN b.unit_code AS unit_code ORDER BY unit_code;
MATCH ALL SHORTEST (a:CareUnit)-[:REFERS_TO*1..4]->(b:CareUnit) WHERE a.unit_code = "ICU-North" RETURN b.unit_code AS unit_code ORDER BY unit_code;
[ "CREATE (:CareUnit {unit_code: \"ICU-North\"})", "CREATE (:CareUnit {unit_code: \"Cardio-East\"})", "CREATE (:CareUnit {unit_code: \"Trauma-West\"})", "CREATE (:CareUnit {unit_code: \"Neuro-South\"})", "CREATE (:CareUnit {unit_code: \"Rehab-Central\"})", "MATCH (a:CareUnit {unit_code: \"ICU-North\"}), (b:...
[ [ "Cardio-East" ], [ "Neuro-South" ], [ "Rehab-Central" ], [ "Trauma-West" ] ]
true
[["Cardio-East"], ["Neuro-South"], ["Rehab-Central"], ["Trauma-West"]]
gpml_31_walk_any_supply_bom_kg
supply_bom_kg
trail_vs_bounded_walk_and_any
WALK
ALL
(:AssemblyPart {sku})-[:SUPPLIES_PART]->(:AssemblyPart {sku})
Under unrestricted WALK semantics allowing repeated edges, return target sku for all SUPPLIES_PART walks of 1 to 4 hops starting at AssemblyPart SKU-Wafer ordered by sku.
// Graph: supply-bom-kg // Schema: (:AssemblyPart {sku})-[:SUPPLIES_PART]->(:AssemblyPart {sku}) // Question: Under unrestricted WALK semantics allowing repeated edges, return target sku for all SUPPLIES_PART walks of 1 to 4 hops starting at AssemblyPart SKU-Wafer ordered by sku. MATCH
WALK (a:AssemblyPart)-[:SUPPLIES_PART*1..4]->(b:AssemblyPart) WHERE a.sku = "SKU-Wafer" RETURN b.sku AS sku ORDER BY sku;
MATCH TRAIL (a:AssemblyPart)-[:SUPPLIES_PART*1..4]->(b:AssemblyPart) WHERE a.sku = "SKU-Wafer" RETURN b.sku AS sku ORDER BY sku;
[ "CREATE (:AssemblyPart {sku: \"SKU-Wafer\"})", "CREATE (:AssemblyPart {sku: \"SKU-Die\"})", "CREATE (:AssemblyPart {sku: \"SKU-Package\"})", "CREATE (:AssemblyPart {sku: \"SKU-Board\"})", "CREATE (:AssemblyPart {sku: \"SKU-Rack\"})", "MATCH (a:AssemblyPart {sku: \"SKU-Wafer\"}), (b:AssemblyPart {sku: \"SK...
[ [ "SKU-Die" ], [ "SKU-Die" ], [ "SKU-Die" ], [ "SKU-Die" ], [ "SKU-Die" ], [ "SKU-Die" ], [ "SKU-Package" ], [ "SKU-Package" ], [ "SKU-Wafer" ], [ "SKU-Wafer" ] ]
true
[["SKU-Die"], ["SKU-Die"], ["SKU-Die"], ["SKU-Die"], ["SKU-Die"], ["SKU-Die"], ["SKU-Package"], ["SKU-Package"], ["SKU-Wafer"], ["SKU-Wafer"]]
gpml_32_walk_any_rail_corridor_kg
rail_corridor_kg
trail_vs_bounded_walk_and_any
WALK
ALL
(:RailJunction {station})-[:TRACK_LINK]->(:RailJunction {station})
Under unrestricted WALK semantics allowing repeated edges, return target station for all TRACK_LINK walks of 1 to 5 hops starting at RailJunction Itarsi ordered by station.
// Graph: rail-corridor-kg // Schema: (:RailJunction {station})-[:TRACK_LINK]->(:RailJunction {station}) // Question: Under unrestricted WALK semantics allowing repeated edges, return target station for all TRACK_LINK walks of 1 to 5 hops starting at RailJunction Itarsi ordered by station. MATCH
WALK (a:RailJunction)-[:TRACK_LINK*1..5]->(b:RailJunction) WHERE a.station = "Itarsi" RETURN b.station AS station ORDER BY station;
MATCH TRAIL (a:RailJunction)-[:TRACK_LINK*1..5]->(b:RailJunction) WHERE a.station = "Itarsi" RETURN b.station AS station ORDER BY station;
[ "CREATE (:RailJunction {station: \"Itarsi\"})", "CREATE (:RailJunction {station: \"Nagpur\"})", "CREATE (:RailJunction {station: \"Vijayawada\"})", "CREATE (:RailJunction {station: \"Bhopal\"})", "CREATE (:RailJunction {station: \"Kazipet\"})", "MATCH (a:RailJunction {station: \"Itarsi\"}), (b:RailJunctio...
[ [ "Bhopal" ], [ "Bhopal" ], [ "Itarsi" ], [ "Itarsi" ], [ "Nagpur" ], [ "Nagpur" ], [ "Nagpur" ], [ "Nagpur" ], [ "Nagpur" ], [ "Nagpur" ], [ "Vijayawada" ], [ "Vijayawada" ] ]
true
[["Bhopal"], ["Bhopal"], ["Itarsi"], ["Itarsi"], ["Nagpur"], ["Nagpur"], ["Nagpur"], ["Nagpur"], ["Nagpur"], ["Nagpur"], ["Vijayawada"], ["Vijayawada"]]
gpml_33_walk_any_microservice_mesh_kg
microservice_mesh_kg
trail_vs_bounded_walk_and_any
WALK
ALL
(:MeshService {svc})-[:RPC_CALLS]->(:MeshService {svc})
Under unrestricted WALK semantics allowing repeated edges, return target svc for all RPC_CALLS walks of 1 to 4 hops starting at MeshService edge-gw ordered by svc.
// Graph: microservice-mesh-kg // Schema: (:MeshService {svc})-[:RPC_CALLS]->(:MeshService {svc}) // Question: Under unrestricted WALK semantics allowing repeated edges, return target svc for all RPC_CALLS walks of 1 to 4 hops starting at MeshService edge-gw ordered by svc. MATCH
WALK (a:MeshService)-[:RPC_CALLS*1..4]->(b:MeshService) WHERE a.svc = "edge-gw" RETURN b.svc AS svc ORDER BY svc;
MATCH TRAIL (a:MeshService)-[:RPC_CALLS*1..4]->(b:MeshService) WHERE a.svc = "edge-gw" RETURN b.svc AS svc ORDER BY svc;
[ "CREATE (:MeshService {svc: \"edge-gw\"})", "CREATE (:MeshService {svc: \"authn-svc\"})", "CREATE (:MeshService {svc: \"ledger-svc\"})", "CREATE (:MeshService {svc: \"audit-svc\"})", "CREATE (:MeshService {svc: \"notify-svc\"})", "MATCH (a:MeshService {svc: \"edge-gw\"}), (b:MeshService {svc: \"authn-svc\...
[ [ "authn-svc" ], [ "authn-svc" ], [ "authn-svc" ], [ "authn-svc" ], [ "authn-svc" ], [ "authn-svc" ], [ "edge-gw" ], [ "edge-gw" ], [ "ledger-svc" ], [ "ledger-svc" ] ]
true
[["authn-svc"], ["authn-svc"], ["authn-svc"], ["authn-svc"], ["authn-svc"], ["authn-svc"], ["edge-gw"], ["edge-gw"], ["ledger-svc"], ["ledger-svc"]]
gpml_34_walk_any_cyber_lateral_kg
cyber_lateral_kg
trail_vs_bounded_walk_and_any
WALK
ALL
(:HostAsset {hostname})-[:PIVOTS_TO]->(:HostAsset {hostname})
Under unrestricted WALK semantics allowing repeated edges, return target hostname for all PIVOTS_TO walks of 1 to 5 hops starting at HostAsset bastion-01 ordered by hostname.
// Graph: cyber-lateral-kg // Schema: (:HostAsset {hostname})-[:PIVOTS_TO]->(:HostAsset {hostname}) // Question: Under unrestricted WALK semantics allowing repeated edges, return target hostname for all PIVOTS_TO walks of 1 to 5 hops starting at HostAsset bastion-01 ordered by hostname. MATCH
WALK (a:HostAsset)-[:PIVOTS_TO*1..5]->(b:HostAsset) WHERE a.hostname = "bastion-01" RETURN b.hostname AS hostname ORDER BY hostname;
MATCH TRAIL (a:HostAsset)-[:PIVOTS_TO*1..5]->(b:HostAsset) WHERE a.hostname = "bastion-01" RETURN b.hostname AS hostname ORDER BY hostname;
[ "CREATE (:HostAsset {hostname: \"bastion-01\"})", "CREATE (:HostAsset {hostname: \"app-srv-02\"})", "CREATE (:HostAsset {hostname: \"db-pri-03\"})", "CREATE (:HostAsset {hostname: \"vault-04\"})", "CREATE (:HostAsset {hostname: \"ci-runner-05\"})", "MATCH (a:HostAsset {hostname: \"bastion-01\"}), (b:HostA...
[ [ "app-srv-02" ], [ "app-srv-02" ], [ "app-srv-02" ], [ "app-srv-02" ], [ "app-srv-02" ], [ "app-srv-02" ], [ "bastion-01" ], [ "bastion-01" ], [ "db-pri-03" ], [ "db-pri-03" ], [ "vault-04" ], [ "vault-04" ] ]
true
[["app-srv-02"], ["app-srv-02"], ["app-srv-02"], ["app-srv-02"], ["app-srv-02"], ["app-srv-02"], ["bastion-01"], ["bastion-01"], ["db-pri-03"], ["db-pri-03"], ["vault-04"], ["vault-04"]]
gpml_35_walk_any_payment_clearing_kg
payment_clearing_kg
trail_vs_bounded_walk_and_any
WALK
ALL
(:ClearingWallet {acct})-[:SETTLES_WITH]->(:ClearingWallet {acct})
Under unrestricted WALK semantics allowing repeated edges, return target acct for all SETTLES_WITH walks of 1 to 4 hops starting at ClearingWallet WLT-Alpha ordered by acct.
// Graph: payment-clearing-kg // Schema: (:ClearingWallet {acct})-[:SETTLES_WITH]->(:ClearingWallet {acct}) // Question: Under unrestricted WALK semantics allowing repeated edges, return target acct for all SETTLES_WITH walks of 1 to 4 hops starting at ClearingWallet WLT-Alpha ordered by acct. MATCH
WALK (a:ClearingWallet)-[:SETTLES_WITH*1..4]->(b:ClearingWallet) WHERE a.acct = "WLT-Alpha" RETURN b.acct AS acct ORDER BY acct;
MATCH TRAIL (a:ClearingWallet)-[:SETTLES_WITH*1..4]->(b:ClearingWallet) WHERE a.acct = "WLT-Alpha" RETURN b.acct AS acct ORDER BY acct;
[ "CREATE (:ClearingWallet {acct: \"WLT-Alpha\"})", "CREATE (:ClearingWallet {acct: \"WLT-Bravo\"})", "CREATE (:ClearingWallet {acct: \"WLT-Charlie\"})", "CREATE (:ClearingWallet {acct: \"WLT-Delta\"})", "CREATE (:ClearingWallet {acct: \"WLT-Echo\"})", "MATCH (a:ClearingWallet {acct: \"WLT-Alpha\"}), (b:Cle...
[ [ "WLT-Alpha" ], [ "WLT-Alpha" ], [ "WLT-Bravo" ], [ "WLT-Bravo" ], [ "WLT-Bravo" ], [ "WLT-Bravo" ], [ "WLT-Bravo" ], [ "WLT-Bravo" ], [ "WLT-Charlie" ], [ "WLT-Charlie" ] ]
true
[["WLT-Alpha"], ["WLT-Alpha"], ["WLT-Bravo"], ["WLT-Bravo"], ["WLT-Bravo"], ["WLT-Bravo"], ["WLT-Bravo"], ["WLT-Bravo"], ["WLT-Charlie"], ["WLT-Charlie"]]
gpml_36_walk_any_telecom_ring_kg
telecom_ring_kg
trail_vs_bounded_walk_and_any
TRAIL
ANY
(:OpticalOadm {node_tag})-[:FIBER_SPAN]->(:OpticalOadm {node_tag})
Using the ISO ANY path selector, return one reachable OpticalOadm node_tag per endpoint pair within 1 to 3 FIBER_SPAN hops from OADM-11 ordered by node_tag.
// Graph: telecom-ring-kg // Schema: (:OpticalOadm {node_tag})-[:FIBER_SPAN]->(:OpticalOadm {node_tag}) // Question: Using the ISO ANY path selector, return one reachable OpticalOadm node_tag per endpoint pair within 1 to 3 FIBER_SPAN hops from OADM-11 ordered by node_tag. MATCH
ANY (a:OpticalOadm)-[:FIBER_SPAN*1..3]->(b:OpticalOadm) WHERE a.node_tag = "OADM-11" RETURN b.node_tag AS node_tag ORDER BY node_tag;
MATCH (a:OpticalOadm)-[:FIBER_SPAN*1..3]->(b:OpticalOadm) WHERE a.node_tag = "OADM-11" RETURN b.node_tag AS node_tag ORDER BY node_tag;
[ "CREATE (:OpticalOadm {node_tag: \"OADM-11\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-22\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-33\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-44\"})", "CREATE (:OpticalOadm {node_tag: \"OADM-55\"})", "MATCH (a:OpticalOadm {node_tag: \"OADM-11\"}), (b:OpticalOad...
[ [ "OADM-22" ], [ "OADM-33" ], [ "OADM-44" ] ]
true
[["OADM-22"], ["OADM-33"], ["OADM-44"]]
gpml_37_walk_any_water_canal_kg
water_canal_kg
trail_vs_bounded_walk_and_any
TRAIL
ANY
(:Reservoir {basin_id})-[:CANAL_FLOW]->(:Reservoir {basin_id})
Using the ISO ANY path selector, return one reachable Reservoir basin_id per endpoint pair within 1 to 3 CANAL_FLOW hops from Basin-Cauvery ordered by basin_id.
// Graph: water-canal-kg // Schema: (:Reservoir {basin_id})-[:CANAL_FLOW]->(:Reservoir {basin_id}) // Question: Using the ISO ANY path selector, return one reachable Reservoir basin_id per endpoint pair within 1 to 3 CANAL_FLOW hops from Basin-Cauvery ordered by basin_id. MATCH
ANY (a:Reservoir)-[:CANAL_FLOW*1..3]->(b:Reservoir) WHERE a.basin_id = "Basin-Cauvery" RETURN b.basin_id AS basin_id ORDER BY basin_id;
MATCH (a:Reservoir)-[:CANAL_FLOW*1..3]->(b:Reservoir) WHERE a.basin_id = "Basin-Cauvery" RETURN b.basin_id AS basin_id ORDER BY basin_id;
[ "CREATE (:Reservoir {basin_id: \"Basin-Cauvery\"})", "CREATE (:Reservoir {basin_id: \"Basin-Kabini\"})", "CREATE (:Reservoir {basin_id: \"Basin-Hemavati\"})", "CREATE (:Reservoir {basin_id: \"Basin-Arkavathy\"})", "CREATE (:Reservoir {basin_id: \"Basin-Shimsha\"})", "MATCH (a:Reservoir {basin_id: \"Basin-...
[ [ "Basin-Cauvery" ], [ "Basin-Hemavati" ], [ "Basin-Kabini" ] ]
true
[["Basin-Cauvery"], ["Basin-Hemavati"], ["Basin-Kabini"]]
gpml_38_walk_any_cargo_maritime_kg
cargo_maritime_kg
trail_vs_bounded_walk_and_any
TRAIL
ANY
(:Seaport {unlocode})-[:SAILS_TO]->(:Seaport {unlocode})
Using the ISO ANY path selector, return one reachable Seaport unlocode per endpoint pair within 1 to 3 SAILS_TO hops from INNSA ordered by unlocode.
// Graph: cargo-maritime-kg // Schema: (:Seaport {unlocode})-[:SAILS_TO]->(:Seaport {unlocode}) // Question: Using the ISO ANY path selector, return one reachable Seaport unlocode per endpoint pair within 1 to 3 SAILS_TO hops from INNSA ordered by unlocode. MATCH
ANY (a:Seaport)-[:SAILS_TO*1..3]->(b:Seaport) WHERE a.unlocode = "INNSA" RETURN b.unlocode AS unlocode ORDER BY unlocode;
MATCH (a:Seaport)-[:SAILS_TO*1..3]->(b:Seaport) WHERE a.unlocode = "INNSA" RETURN b.unlocode AS unlocode ORDER BY unlocode;
[ "CREATE (:Seaport {unlocode: \"INNSA\"})", "CREATE (:Seaport {unlocode: \"SGSIN\"})", "CREATE (:Seaport {unlocode: \"AEJEA\"})", "CREATE (:Seaport {unlocode: \"NLRTM\"})", "CREATE (:Seaport {unlocode: \"LKCMB\"})", "MATCH (a:Seaport {unlocode: \"INNSA\"}), (b:Seaport {unlocode: \"SGSIN\"}) CREATE (a)-[:SA...
[ [ "AEJEA" ], [ "NLRTM" ], [ "SGSIN" ] ]
true
[["AEJEA"], ["NLRTM"], ["SGSIN"]]
gpml_39_walk_any_gene_regulatory_kg
gene_regulatory_kg
trail_vs_bounded_walk_and_any
TRAIL
ANY
(:RegFactor {gene_sym})-[:UPREGULATES]->(:RegFactor {gene_sym})
Using the ISO ANY path selector, return one reachable RegFactor gene_sym per endpoint pair within 1 to 3 UPREGULATES hops from SOX2 ordered by gene_sym.
// Graph: gene-regulatory-kg // Schema: (:RegFactor {gene_sym})-[:UPREGULATES]->(:RegFactor {gene_sym}) // Question: Using the ISO ANY path selector, return one reachable RegFactor gene_sym per endpoint pair within 1 to 3 UPREGULATES hops from SOX2 ordered by gene_sym. MATCH
ANY (a:RegFactor)-[:UPREGULATES*1..3]->(b:RegFactor) WHERE a.gene_sym = "SOX2" RETURN b.gene_sym AS gene_sym ORDER BY gene_sym;
MATCH (a:RegFactor)-[:UPREGULATES*1..3]->(b:RegFactor) WHERE a.gene_sym = "SOX2" RETURN b.gene_sym AS gene_sym ORDER BY gene_sym;
[ "CREATE (:RegFactor {gene_sym: \"SOX2\"})", "CREATE (:RegFactor {gene_sym: \"OCT4\"})", "CREATE (:RegFactor {gene_sym: \"NANOG\"})", "CREATE (:RegFactor {gene_sym: \"KLF4\"})", "CREATE (:RegFactor {gene_sym: \"MYC\"})", "MATCH (a:RegFactor {gene_sym: \"SOX2\"}), (b:RegFactor {gene_sym: \"OCT4\"}) CREATE (...
[ [ "NANOG" ], [ "OCT4" ], [ "SOX2" ] ]
true
[["NANOG"], ["OCT4"], ["SOX2"]]
gpml_40_walk_any_chip_interconnect_kg
chip_interconnect_kg
trail_vs_bounded_walk_and_any
TRAIL
ANY
(:NoCTile {tile_id})-[:NOC_LINK]->(:NoCTile {tile_id})
Using the ISO ANY path selector, return one reachable NoCTile tile_id per endpoint pair within 1 to 3 NOC_LINK hops from TILE-00 ordered by tile_id.
// Graph: chip-interconnect-kg // Schema: (:NoCTile {tile_id})-[:NOC_LINK]->(:NoCTile {tile_id}) // Question: Using the ISO ANY path selector, return one reachable NoCTile tile_id per endpoint pair within 1 to 3 NOC_LINK hops from TILE-00 ordered by tile_id. MATCH
ANY (a:NoCTile)-[:NOC_LINK*1..3]->(b:NoCTile) WHERE a.tile_id = "TILE-00" RETURN b.tile_id AS tile_id ORDER BY tile_id;
MATCH (a:NoCTile)-[:NOC_LINK*1..3]->(b:NoCTile) WHERE a.tile_id = "TILE-00" RETURN b.tile_id AS tile_id ORDER BY tile_id;
[ "CREATE (:NoCTile {tile_id: \"TILE-00\"})", "CREATE (:NoCTile {tile_id: \"TILE-01\"})", "CREATE (:NoCTile {tile_id: \"TILE-11\"})", "CREATE (:NoCTile {tile_id: \"TILE-10\"})", "CREATE (:NoCTile {tile_id: \"TILE-22\"})", "MATCH (a:NoCTile {tile_id: \"TILE-00\"}), (b:NoCTile {tile_id: \"TILE-01\"}) CREATE (...
[ [ "TILE-01" ], [ "TILE-10" ], [ "TILE-11" ] ]
true
[["TILE-01"], ["TILE-10"], ["TILE-11"]]
gpml_41_composed_air_cargo_kg
air_cargo_kg
composed_and_multisegment_gpml
ACYCLIC
ANY
(:CargoHub {iata})-[:FREIGHT_LEG]->(:CargoHub {iata})
Compose ANY selector with ACYCLIC restrictor to return one loopless FREIGHT_LEG path target iata per reachable CargoHub in 1 to 3 hops from BLR ordered by iata.
// Graph: air-cargo-kg // Schema: (:CargoHub {iata})-[:FREIGHT_LEG]->(:CargoHub {iata}) // Question: Compose ANY selector with ACYCLIC restrictor to return one loopless FREIGHT_LEG path target iata per reachable CargoHub in 1 to 3 hops from BLR ordered by iata. MATCH
ANY ACYCLIC (a:CargoHub)-[:FREIGHT_LEG*1..3]->(b:CargoHub) WHERE a.iata = "BLR" RETURN b.iata AS iata ORDER BY iata;
MATCH ANY (a:CargoHub)-[:FREIGHT_LEG*1..3]->(b:CargoHub) WHERE a.iata = "BLR" RETURN b.iata AS iata ORDER BY iata;
[ "CREATE (:CargoHub {iata: \"BLR\"})", "CREATE (:CargoHub {iata: \"FRA\"})", "CREATE (:CargoHub {iata: \"ANC\"})", "CREATE (:CargoHub {iata: \"MEM\"})", "CREATE (:CargoHub {iata: \"DOH\"})", "MATCH (a:CargoHub {iata: \"BLR\"}), (b:CargoHub {iata: \"FRA\"}) CREATE (a)-[:FREIGHT_LEG]->(b)", "MATCH (a:Cargo...
[ [ "ANC" ], [ "FRA" ] ]
true
[["ANC"], ["FRA"]]
gpml_42_composed_cloud_vpc_kg
cloud_vpc_kg
composed_and_multisegment_gpml
ACYCLIC
ANY
(:VpcSubnet {cidr_name})-[:ROUTES_TO]->(:VpcSubnet {cidr_name})
Compose ANY selector with ACYCLIC restrictor to return one loopless ROUTES_TO path target cidr_name per reachable VpcSubnet in 1 to 3 hops from vpc-ingress ordered by cidr_name.
// Graph: cloud-vpc-kg // Schema: (:VpcSubnet {cidr_name})-[:ROUTES_TO]->(:VpcSubnet {cidr_name}) // Question: Compose ANY selector with ACYCLIC restrictor to return one loopless ROUTES_TO path target cidr_name per reachable VpcSubnet in 1 to 3 hops from vpc-ingress ordered by cidr_name. MATCH
ANY ACYCLIC (a:VpcSubnet)-[:ROUTES_TO*1..3]->(b:VpcSubnet) WHERE a.cidr_name = "vpc-ingress" RETURN b.cidr_name AS cidr_name ORDER BY cidr_name;
MATCH ANY (a:VpcSubnet)-[:ROUTES_TO*1..3]->(b:VpcSubnet) WHERE a.cidr_name = "vpc-ingress" RETURN b.cidr_name AS cidr_name ORDER BY cidr_name;
[ "CREATE (:VpcSubnet {cidr_name: \"vpc-ingress\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-worker\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-storage\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-nat\"})", "CREATE (:VpcSubnet {cidr_name: \"vpc-kms\"})", "MATCH (a:VpcSubnet {cidr_name: \"vpc-ingress\"}), (b:V...
[ [ "vpc-storage" ], [ "vpc-worker" ] ]
true
[["vpc-storage"], ["vpc-worker"]]
gpml_43_composed_pharma_coldchain_kg
pharma_coldchain_kg
composed_and_multisegment_gpml
ACYCLIC
ANY
(:ColdDepot {depot_code})-[:SHIPS_VIAL]->(:ColdDepot {depot_code})
Compose ANY selector with ACYCLIC restrictor to return one loopless SHIPS_VIAL path target depot_code per reachable ColdDepot in 1 to 3 hops from DEP-Basel ordered by depot_code.
// Graph: pharma-coldchain-kg // Schema: (:ColdDepot {depot_code})-[:SHIPS_VIAL]->(:ColdDepot {depot_code}) // Question: Compose ANY selector with ACYCLIC restrictor to return one loopless SHIPS_VIAL path target depot_code per reachable ColdDepot in 1 to 3 hops from DEP-Basel ordered by depot_code. MATCH
ANY ACYCLIC (a:ColdDepot)-[:SHIPS_VIAL*1..3]->(b:ColdDepot) WHERE a.depot_code = "DEP-Basel" RETURN b.depot_code AS depot_code ORDER BY depot_code;
MATCH ANY (a:ColdDepot)-[:SHIPS_VIAL*1..3]->(b:ColdDepot) WHERE a.depot_code = "DEP-Basel" RETURN b.depot_code AS depot_code ORDER BY depot_code;
[ "CREATE (:ColdDepot {depot_code: \"DEP-Basel\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Mumbai\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Osaka\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Boston\"})", "CREATE (:ColdDepot {depot_code: \"DEP-Dublin\"})", "MATCH (a:ColdDepot {depot_code: \"DEP-Basel\"})...
[ [ "DEP-Mumbai" ], [ "DEP-Osaka" ] ]
true
[["DEP-Mumbai"], ["DEP-Osaka"]]
gpml_44_composed_patent_citation_kg
patent_citation_kg
composed_and_multisegment_gpml
ACYCLIC
ANY
(:PatentDoc {pub_no})-[:CITES_PRIOR]->(:PatentDoc {pub_no})
Compose ANY selector with ACYCLIC restrictor to return one loopless CITES_PRIOR path target pub_no per reachable PatentDoc in 1 to 3 hops from EP-1001 ordered by pub_no.
// Graph: patent-citation-kg // Schema: (:PatentDoc {pub_no})-[:CITES_PRIOR]->(:PatentDoc {pub_no}) // Question: Compose ANY selector with ACYCLIC restrictor to return one loopless CITES_PRIOR path target pub_no per reachable PatentDoc in 1 to 3 hops from EP-1001 ordered by pub_no. MATCH
ANY ACYCLIC (a:PatentDoc)-[:CITES_PRIOR*1..3]->(b:PatentDoc) WHERE a.pub_no = "EP-1001" RETURN b.pub_no AS pub_no ORDER BY pub_no;
MATCH ANY (a:PatentDoc)-[:CITES_PRIOR*1..3]->(b:PatentDoc) WHERE a.pub_no = "EP-1001" RETURN b.pub_no AS pub_no ORDER BY pub_no;
[ "CREATE (:PatentDoc {pub_no: \"EP-1001\"})", "CREATE (:PatentDoc {pub_no: \"EP-2002\"})", "CREATE (:PatentDoc {pub_no: \"EP-3003\"})", "CREATE (:PatentDoc {pub_no: \"EP-4004\"})", "CREATE (:PatentDoc {pub_no: \"EP-5005\"})", "MATCH (a:PatentDoc {pub_no: \"EP-1001\"}), (b:PatentDoc {pub_no: \"EP-2002\"}) C...
[ [ "EP-2002" ], [ "EP-3003" ] ]
true
[["EP-2002"], ["EP-3003"]]
gpml_45_composed_grid_microgrid_kg
grid_microgrid_kg
composed_and_multisegment_gpml
ACYCLIC
ALL
(:InverterNode {inv_id})-[:DC_TIE]->(:InverterNode {inv_id})
Find upstream InverterNode inv_id sources feeding into INV-Solar1 over 1 to 3 incoming DC_TIE hops along acyclic paths without revisiting INV-Solar1, ordered by inv_id.
// Graph: grid-microgrid-kg // Schema: (:InverterNode {inv_id})-[:DC_TIE]->(:InverterNode {inv_id}) // Question: Find upstream InverterNode inv_id sources feeding into INV-Solar1 over 1 to 3 incoming DC_TIE hops along acyclic paths without revisiting INV-Solar1, ordered by inv_id. MATCH
ACYCLIC (a:InverterNode)<-[:DC_TIE*1..3]-(b:InverterNode) WHERE a.inv_id = "INV-Solar1" RETURN b.inv_id AS inv_id ORDER BY inv_id;
MATCH (a:InverterNode)<-[:DC_TIE*1..3]-(b:InverterNode) WHERE a.inv_id = "INV-Solar1" RETURN b.inv_id AS inv_id ORDER BY inv_id;
[ "CREATE (:InverterNode {inv_id: \"INV-Solar1\"})", "CREATE (:InverterNode {inv_id: \"INV-Batt2\"})", "CREATE (:InverterNode {inv_id: \"INV-Load3\"})", "CREATE (:InverterNode {inv_id: \"INV-Wind4\"})", "CREATE (:InverterNode {inv_id: \"INV-Sync5\"})", "MATCH (a:InverterNode {inv_id: \"INV-Batt2\"}), (b:Inv...
[ [ "INV-Batt2" ], [ "INV-Load3" ], [ "INV-Wind4" ] ]
true
[["INV-Batt2"], ["INV-Load3"], ["INV-Wind4"]]
gpml_46_composed_fraud_mule_kg
fraud_mule_kg
composed_and_multisegment_gpml
ACYCLIC
ALL
(:MuleAccount {iban_tag})-[:REMITS_TO]->(:MuleAccount {iban_tag})
Find upstream MuleAccount iban_tag sources feeding into IBAN-71 over 1 to 3 incoming REMITS_TO hops along acyclic paths without revisiting IBAN-71, ordered by iban_tag.
// Graph: fraud-mule-kg // Schema: (:MuleAccount {iban_tag})-[:REMITS_TO]->(:MuleAccount {iban_tag}) // Question: Find upstream MuleAccount iban_tag sources feeding into IBAN-71 over 1 to 3 incoming REMITS_TO hops along acyclic paths without revisiting IBAN-71, ordered by iban_tag. MATCH
ACYCLIC (a:MuleAccount)<-[:REMITS_TO*1..3]-(b:MuleAccount) WHERE a.iban_tag = "IBAN-71" RETURN b.iban_tag AS iban_tag ORDER BY iban_tag;
MATCH (a:MuleAccount)<-[:REMITS_TO*1..3]-(b:MuleAccount) WHERE a.iban_tag = "IBAN-71" RETURN b.iban_tag AS iban_tag ORDER BY iban_tag;
[ "CREATE (:MuleAccount {iban_tag: \"IBAN-71\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-72\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-73\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-74\"})", "CREATE (:MuleAccount {iban_tag: \"IBAN-75\"})", "MATCH (a:MuleAccount {iban_tag: \"IBAN-72\"}), (b:MuleAccoun...
[ [ "IBAN-72" ], [ "IBAN-73" ], [ "IBAN-74" ] ]
true
[["IBAN-72"], ["IBAN-73"], ["IBAN-74"]]
gpml_47_composed_hospital_transfer_kg
hospital_transfer_kg
composed_and_multisegment_gpml
ACYCLIC
ALL
(:RegionalClinic {clinic_id})-[:TRANSFERS_PATIENT]->(:RegionalClinic {clinic_id})
Find upstream RegionalClinic clinic_id sources feeding into CLN-Mysuru over 1 to 3 incoming TRANSFERS_PATIENT hops along acyclic paths without revisiting CLN-Mysuru, ordered by clinic_id.
// Graph: hospital-transfer-kg // Schema: (:RegionalClinic {clinic_id})-[:TRANSFERS_PATIENT]->(:RegionalClinic {clinic_id}) // Question: Find upstream RegionalClinic clinic_id sources feeding into CLN-Mysuru over 1 to 3 incoming TRANSFERS_PATIENT hops along acyclic paths without revisiting CLN-Mysuru, ordered by clinic...
ACYCLIC (a:RegionalClinic)<-[:TRANSFERS_PATIENT*1..3]-(b:RegionalClinic) WHERE a.clinic_id = "CLN-Mysuru" RETURN b.clinic_id AS clinic_id ORDER BY clinic_id;
MATCH (a:RegionalClinic)<-[:TRANSFERS_PATIENT*1..3]-(b:RegionalClinic) WHERE a.clinic_id = "CLN-Mysuru" RETURN b.clinic_id AS clinic_id ORDER BY clinic_id;
[ "CREATE (:RegionalClinic {clinic_id: \"CLN-Mysuru\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Mandya\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Hassan\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Kodagu\"})", "CREATE (:RegionalClinic {clinic_id: \"CLN-Tumkur\"})", "MATCH (a:RegionalClinic {...
[ [ "CLN-Hassan" ], [ "CLN-Kodagu" ], [ "CLN-Mandya" ] ]
true
[["CLN-Hassan"], ["CLN-Kodagu"], ["CLN-Mandya"]]
gpml_48_composed_mfg_assembly_kg
mfg_assembly_kg
composed_and_multisegment_gpml
TRAIL
ALL
(:WorkCell {cell_code})-[:FEEDS_CELL]->(:WorkCell {cell_code})
Include the zero-hop starting node itself and find all WorkCell cell_code nodes reachable in 0 to 2 FEEDS_CELL trail hops from CELL-Weld ordered by cell_code.
// Graph: mfg-assembly-kg // Schema: (:WorkCell {cell_code})-[:FEEDS_CELL]->(:WorkCell {cell_code}) // Question: Include the zero-hop starting node itself and find all WorkCell cell_code nodes reachable in 0 to 2 FEEDS_CELL trail hops from CELL-Weld ordered by cell_code. MATCH
TRAIL (a:WorkCell)-[:FEEDS_CELL*0..2]->(b:WorkCell) WHERE a.cell_code = "CELL-Weld" RETURN b.cell_code AS cell_code ORDER BY cell_code;
MATCH TRAIL (a:WorkCell)-[:FEEDS_CELL*1..2]->(b:WorkCell) WHERE a.cell_code = "CELL-Weld" RETURN b.cell_code AS cell_code ORDER BY cell_code;
[ "CREATE (:WorkCell {cell_code: \"CELL-Weld\"})", "CREATE (:WorkCell {cell_code: \"CELL-Paint\"})", "CREATE (:WorkCell {cell_code: \"CELL-Cure\"})", "CREATE (:WorkCell {cell_code: \"CELL-Trim\"})", "CREATE (:WorkCell {cell_code: \"CELL-Pack\"})", "MATCH (a:WorkCell {cell_code: \"CELL-Weld\"}), (b:WorkCell ...
[ [ "CELL-Cure" ], [ "CELL-Paint" ], [ "CELL-Weld" ] ]
true
[["CELL-Cure"], ["CELL-Paint"], ["CELL-Weld"]]
gpml_49_composed_satellite_relay_kg
satellite_relay_kg
composed_and_multisegment_gpml
TRAIL
ALL
(:OrbitalSat {sat_id})-[:LASER_CROSSLINK]->(:OrbitalSat {sat_id})
Include the zero-hop starting node itself and find all OrbitalSat sat_id nodes reachable in 0 to 2 LASER_CROSSLINK trail hops from SAT-Leo1 ordered by sat_id.
// Graph: satellite-relay-kg // Schema: (:OrbitalSat {sat_id})-[:LASER_CROSSLINK]->(:OrbitalSat {sat_id}) // Question: Include the zero-hop starting node itself and find all OrbitalSat sat_id nodes reachable in 0 to 2 LASER_CROSSLINK trail hops from SAT-Leo1 ordered by sat_id. MATCH
TRAIL (a:OrbitalSat)-[:LASER_CROSSLINK*0..2]->(b:OrbitalSat) WHERE a.sat_id = "SAT-Leo1" RETURN b.sat_id AS sat_id ORDER BY sat_id;
MATCH TRAIL (a:OrbitalSat)-[:LASER_CROSSLINK*1..2]->(b:OrbitalSat) WHERE a.sat_id = "SAT-Leo1" RETURN b.sat_id AS sat_id ORDER BY sat_id;
[ "CREATE (:OrbitalSat {sat_id: \"SAT-Leo1\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Leo2\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Leo3\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Meo4\"})", "CREATE (:OrbitalSat {sat_id: \"SAT-Geo5\"})", "MATCH (a:OrbitalSat {sat_id: \"SAT-Leo1\"}), (b:OrbitalSat {sat_id: \"...
[ [ "SAT-Leo1" ], [ "SAT-Leo2" ], [ "SAT-Leo3" ] ]
true
[["SAT-Leo1"], ["SAT-Leo2"], ["SAT-Leo3"]]
gpml_50_composed_court_precedent_kg
court_precedent_kg
composed_and_multisegment_gpml
TRAIL
ALL
(:BenchRuling {case_ref})-[:FOLLOWS_HOLDING]->(:BenchRuling {case_ref})
Include the zero-hop starting node itself and find all BenchRuling case_ref nodes reachable in 0 to 2 FOLLOWS_HOLDING trail hops from SC-1994-1 ordered by case_ref.
// Graph: court-precedent-kg // Schema: (:BenchRuling {case_ref})-[:FOLLOWS_HOLDING]->(:BenchRuling {case_ref}) // Question: Include the zero-hop starting node itself and find all BenchRuling case_ref nodes reachable in 0 to 2 FOLLOWS_HOLDING trail hops from SC-1994-1 ordered by case_ref. MATCH
TRAIL (a:BenchRuling)-[:FOLLOWS_HOLDING*0..2]->(b:BenchRuling) WHERE a.case_ref = "SC-1994-1" RETURN b.case_ref AS case_ref ORDER BY case_ref;
MATCH TRAIL (a:BenchRuling)-[:FOLLOWS_HOLDING*1..2]->(b:BenchRuling) WHERE a.case_ref = "SC-1994-1" RETURN b.case_ref AS case_ref ORDER BY case_ref;
[ "CREATE (:BenchRuling {case_ref: \"SC-1994-1\"})", "CREATE (:BenchRuling {case_ref: \"SC-2001-4\"})", "CREATE (:BenchRuling {case_ref: \"SC-2010-8\"})", "CREATE (:BenchRuling {case_ref: \"SC-2018-2\"})", "CREATE (:BenchRuling {case_ref: \"SC-2024-9\"})", "MATCH (a:BenchRuling {case_ref: \"SC-1994-1\"}), (...
[ [ "SC-1994-1" ], [ "SC-2001-4" ], [ "SC-2010-8" ] ]
true
[["SC-1994-1"], ["SC-2001-4"], ["SC-2010-8"]]
gpml_51_all_shortest_trail_broker_mesh_v2
broker_mesh_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Broker (4 nodes) Relationship Patterns: (Broker)-[:FORWARDS_TO]->(Broker) (7 edges) Key Properties: :Broker has properties: broker_id
Using ALL SHORTEST TRAIL over 1 to 3 FORWARDS_TO hops from Broker BRK-01, return target broker_id for every shortest edge-disjoint trail (including any 1-hop self-trail), ordered by broker_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Broker (4 nodes) Relationship Patterns: (Broker)-[:FORWARDS_TO]->(Broker) (7 edges) Key Properties: :Broker has properties: broker_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels tha...
MATCH ALL SHORTEST TRAIL (a:Broker)-[:FORWARDS_TO*1..3]->(b:Broker) WHERE a.broker_id = "BRK-01" RETURN b.broker_id AS broker_id ORDER BY broker_id
MATCH ALL SHORTEST ACYCLIC (a:Broker)-[:FORWARDS_TO*1..3]->(b:Broker) WHERE a.broker_id = "BRK-01" RETURN b.broker_id AS broker_id ORDER BY broker_id
[ "CREATE (:Broker {broker_id: \"BRK-01\"})", "CREATE (:Broker {broker_id: \"BRK-02\"})", "CREATE (:Broker {broker_id: \"BRK-03\"})", "CREATE (:Broker {broker_id: \"BRK-04\"})", "MATCH (a:Broker {broker_id: \"BRK-01\"}), (b:Broker {broker_id: \"BRK-01\"}) CREATE (a)-[:FORWARDS_TO]->(b)", "MATCH (a:Broker {b...
[ [ "BRK-01" ], [ "BRK-02" ], [ "BRK-02" ], [ "BRK-03" ], [ "BRK-04" ], [ "BRK-04" ], [ "BRK-04" ] ]
true
[["BRK-01"], ["BRK-02"], ["BRK-02"], ["BRK-03"], ["BRK-04"], ["BRK-04"], ["BRK-04"]]
gpml_52_all_shortest_trail_reactor_steam_v2
reactor_steam_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Reactor (4 nodes) Relationship Patterns: (Reactor)-[:STEAM_PIPE]->(Reactor) (7 edges) Key Properties: :Reactor has properties: reactor_id
How many tied shortest edge-disjoint STEAM_PIPE trails of 1 to 4 hops connect Reactor RX-North to RX-West?
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Reactor (4 nodes) Relationship Patterns: (Reactor)-[:STEAM_PIPE]->(Reactor) (7 edges) Key Properties: :Reactor has properties: reactor_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels...
MATCH ALL SHORTEST TRAIL (a:Reactor)-[:STEAM_PIPE*1..4]->(b:Reactor) WHERE a.reactor_id = "RX-North" AND b.reactor_id = "RX-West" RETURN count(b) AS shortest_trails
MATCH TRAIL (a:Reactor)-[:STEAM_PIPE*1..4]->(b:Reactor) WHERE a.reactor_id = "RX-North" AND b.reactor_id = "RX-West" RETURN count(b) AS shortest_trails
[ "CREATE (:Reactor {reactor_id: \"RX-North\"})", "CREATE (:Reactor {reactor_id: \"RX-East\"})", "CREATE (:Reactor {reactor_id: \"RX-South\"})", "CREATE (:Reactor {reactor_id: \"RX-West\"})", "MATCH (a:Reactor {reactor_id: \"RX-North\"}), (b:Reactor {reactor_id: \"RX-North\"}) CREATE (a)-[:STEAM_PIPE]->(b)", ...
[ [ "3" ] ]
true
[[3]]
gpml_53_all_shortest_trail_router_mpls_v2
router_mpls_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Router (4 nodes) Relationship Patterns: (Router)-[:MPLS_TUNNEL]->(Router) (7 edges) Key Properties: :Router has properties: router_id
Using ALL SHORTEST TRAIL over 1 to 3 MPLS_TUNNEL hops from Router RTR-Del, return target router_id for every shortest edge-disjoint trail (including any 1-hop self-trail), ordered by router_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Router (4 nodes) Relationship Patterns: (Router)-[:MPLS_TUNNEL]->(Router) (7 edges) Key Properties: :Router has properties: router_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels tha...
MATCH ALL SHORTEST TRAIL (a:Router)-[:MPLS_TUNNEL*1..3]->(b:Router) WHERE a.router_id = "RTR-Del" RETURN b.router_id AS router_id ORDER BY router_id
MATCH ALL SHORTEST ACYCLIC (a:Router)-[:MPLS_TUNNEL*1..3]->(b:Router) WHERE a.router_id = "RTR-Del" RETURN b.router_id AS router_id ORDER BY router_id
[ "CREATE (:Router {router_id: \"RTR-Del\"})", "CREATE (:Router {router_id: \"RTR-Bom\"})", "CREATE (:Router {router_id: \"RTR-Maa\"})", "CREATE (:Router {router_id: \"RTR-Hyd\"})", "MATCH (a:Router {router_id: \"RTR-Del\"}), (b:Router {router_id: \"RTR-Del\"}) CREATE (a)-[:MPLS_TUNNEL]->(b)", "MATCH (a:Rou...
[ [ "RTR-Bom" ], [ "RTR-Bom" ], [ "RTR-Del" ], [ "RTR-Hyd" ], [ "RTR-Hyd" ], [ "RTR-Hyd" ], [ "RTR-Maa" ] ]
true
[["RTR-Bom"], ["RTR-Bom"], ["RTR-Del"], ["RTR-Hyd"], ["RTR-Hyd"], ["RTR-Hyd"], ["RTR-Maa"]]
gpml_54_all_shortest_trail_kinase_cascade_v2
kinase_cascade_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Kinase (4 nodes) Relationship Patterns: (Kinase)-[:PHOSPHORYLATES]->(Kinase) (7 edges) Key Properties: :Kinase has properties: kinase_name
How many tied shortest edge-disjoint PHOSPHORYLATES trails of 1 to 4 hops connect Kinase MEK1 to AKT1?
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Kinase (4 nodes) Relationship Patterns: (Kinase)-[:PHOSPHORYLATES]->(Kinase) (7 edges) Key Properties: :Kinase has properties: kinase_name Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between label...
MATCH ALL SHORTEST TRAIL (a:Kinase)-[:PHOSPHORYLATES*1..4]->(b:Kinase) WHERE a.kinase_name = "MEK1" AND b.kinase_name = "AKT1" RETURN count(b) AS shortest_trails
MATCH TRAIL (a:Kinase)-[:PHOSPHORYLATES*1..4]->(b:Kinase) WHERE a.kinase_name = "MEK1" AND b.kinase_name = "AKT1" RETURN count(b) AS shortest_trails
[ "CREATE (:Kinase {kinase_name: \"MEK1\"})", "CREATE (:Kinase {kinase_name: \"ERK2\"})", "CREATE (:Kinase {kinase_name: \"RAF1\"})", "CREATE (:Kinase {kinase_name: \"AKT1\"})", "MATCH (a:Kinase {kinase_name: \"MEK1\"}), (b:Kinase {kinase_name: \"MEK1\"}) CREATE (a)-[:PHOSPHORYLATES]->(b)", "MATCH (a:Kinase...
[ [ "3" ] ]
true
[[3]]
gpml_55_all_shortest_trail_warehouse_shuttle_v2
warehouse_shuttle_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Warehouse (4 nodes) Relationship Patterns: (Warehouse)-[:SHUTTLE_LANE]->(Warehouse) (7 edges) Key Properties: :Warehouse has properties: wh_code
Using ALL SHORTEST TRAIL over 1 to 3 SHUTTLE_LANE hops from Warehouse WH-Pune, return target wh_code for every shortest edge-disjoint trail (including any 1-hop self-trail), ordered by wh_code.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Warehouse (4 nodes) Relationship Patterns: (Warehouse)-[:SHUTTLE_LANE]->(Warehouse) (7 edges) Key Properties: :Warehouse has properties: wh_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between...
MATCH ALL SHORTEST TRAIL (a:Warehouse)-[:SHUTTLE_LANE*1..3]->(b:Warehouse) WHERE a.wh_code = "WH-Pune" RETURN b.wh_code AS wh_code ORDER BY wh_code
MATCH ALL SHORTEST ACYCLIC (a:Warehouse)-[:SHUTTLE_LANE*1..3]->(b:Warehouse) WHERE a.wh_code = "WH-Pune" RETURN b.wh_code AS wh_code ORDER BY wh_code
[ "CREATE (:Warehouse {wh_code: \"WH-Pune\"})", "CREATE (:Warehouse {wh_code: \"WH-Surat\"})", "CREATE (:Warehouse {wh_code: \"WH-Indore\"})", "CREATE (:Warehouse {wh_code: \"WH-Jaipur\"})", "MATCH (a:Warehouse {wh_code: \"WH-Pune\"}), (b:Warehouse {wh_code: \"WH-Pune\"}) CREATE (a)-[:SHUTTLE_LANE]->(b)", "...
[ [ "WH-Indore" ], [ "WH-Jaipur" ], [ "WH-Jaipur" ], [ "WH-Jaipur" ], [ "WH-Pune" ], [ "WH-Surat" ], [ "WH-Surat" ] ]
true
[["WH-Indore"], ["WH-Jaipur"], ["WH-Jaipur"], ["WH-Jaipur"], ["WH-Pune"], ["WH-Surat"], ["WH-Surat"]]
gpml_56_all_shortest_trail_substation_tie_v2
substation_tie_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Substation (4 nodes) Relationship Patterns: (Substation)-[:TIE_BREAKER]->(Substation) (7 edges) Key Properties: :Substation has properties: sub_code
How many tied shortest edge-disjoint TIE_BREAKER trails of 1 to 4 hops connect Substation SUB-401 to SUB-404?
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Substation (4 nodes) Relationship Patterns: (Substation)-[:TIE_BREAKER]->(Substation) (7 edges) Key Properties: :Substation has properties: sub_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges bet...
MATCH ALL SHORTEST TRAIL (a:Substation)-[:TIE_BREAKER*1..4]->(b:Substation) WHERE a.sub_code = "SUB-401" AND b.sub_code = "SUB-404" RETURN count(b) AS shortest_trails
MATCH TRAIL (a:Substation)-[:TIE_BREAKER*1..4]->(b:Substation) WHERE a.sub_code = "SUB-401" AND b.sub_code = "SUB-404" RETURN count(b) AS shortest_trails
[ "CREATE (:Substation {sub_code: \"SUB-401\"})", "CREATE (:Substation {sub_code: \"SUB-402\"})", "CREATE (:Substation {sub_code: \"SUB-403\"})", "CREATE (:Substation {sub_code: \"SUB-404\"})", "MATCH (a:Substation {sub_code: \"SUB-401\"}), (b:Substation {sub_code: \"SUB-401\"}) CREATE (a)-[:TIE_BREAKER]->(b)...
[ [ "3" ] ]
true
[[3]]
gpml_57_all_shortest_trail_pipeline_valve_v2
pipeline_valve_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Valve (4 nodes) Relationship Patterns: (Valve)-[:PRESSURE_LINE]->(Valve) (7 edges) Key Properties: :Valve has properties: valve_tag
Using ALL SHORTEST TRAIL over 1 to 3 PRESSURE_LINE hops from Valve VLV-A1, return target valve_tag for every shortest edge-disjoint trail (including any 1-hop self-trail), ordered by valve_tag.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Valve (4 nodes) Relationship Patterns: (Valve)-[:PRESSURE_LINE]->(Valve) (7 edges) Key Properties: :Valve has properties: valve_tag Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels that ...
MATCH ALL SHORTEST TRAIL (a:Valve)-[:PRESSURE_LINE*1..3]->(b:Valve) WHERE a.valve_tag = "VLV-A1" RETURN b.valve_tag AS valve_tag ORDER BY valve_tag
MATCH ALL SHORTEST ACYCLIC (a:Valve)-[:PRESSURE_LINE*1..3]->(b:Valve) WHERE a.valve_tag = "VLV-A1" RETURN b.valve_tag AS valve_tag ORDER BY valve_tag
[ "CREATE (:Valve {valve_tag: \"VLV-A1\"})", "CREATE (:Valve {valve_tag: \"VLV-B2\"})", "CREATE (:Valve {valve_tag: \"VLV-C3\"})", "CREATE (:Valve {valve_tag: \"VLV-D4\"})", "MATCH (a:Valve {valve_tag: \"VLV-A1\"}), (b:Valve {valve_tag: \"VLV-A1\"}) CREATE (a)-[:PRESSURE_LINE]->(b)", "MATCH (a:Valve {valve_...
[ [ "VLV-A1" ], [ "VLV-B2" ], [ "VLV-B2" ], [ "VLV-C3" ], [ "VLV-D4" ], [ "VLV-D4" ], [ "VLV-D4" ] ]
true
[["VLV-A1"], ["VLV-B2"], ["VLV-B2"], ["VLV-C3"], ["VLV-D4"], ["VLV-D4"], ["VLV-D4"]]
gpml_58_all_shortest_trail_sensor_zigbee_v2
sensor_zigbee_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Sensor (4 nodes) Relationship Patterns: (Sensor)-[:MESH_LINK]->(Sensor) (7 edges) Key Properties: :Sensor has properties: sensor_uid
How many tied shortest edge-disjoint MESH_LINK trails of 1 to 4 hops connect Sensor SNS-10 to SNS-40?
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Sensor (4 nodes) Relationship Patterns: (Sensor)-[:MESH_LINK]->(Sensor) (7 edges) Key Properties: :Sensor has properties: sensor_uid Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels that...
MATCH ALL SHORTEST TRAIL (a:Sensor)-[:MESH_LINK*1..4]->(b:Sensor) WHERE a.sensor_uid = "SNS-10" AND b.sensor_uid = "SNS-40" RETURN count(b) AS shortest_trails
MATCH TRAIL (a:Sensor)-[:MESH_LINK*1..4]->(b:Sensor) WHERE a.sensor_uid = "SNS-10" AND b.sensor_uid = "SNS-40" RETURN count(b) AS shortest_trails
[ "CREATE (:Sensor {sensor_uid: \"SNS-10\"})", "CREATE (:Sensor {sensor_uid: \"SNS-20\"})", "CREATE (:Sensor {sensor_uid: \"SNS-30\"})", "CREATE (:Sensor {sensor_uid: \"SNS-40\"})", "MATCH (a:Sensor {sensor_uid: \"SNS-10\"}), (b:Sensor {sensor_uid: \"SNS-10\"}) CREATE (a)-[:MESH_LINK]->(b)", "MATCH (a:Senso...
[ [ "3" ] ]
true
[[3]]
gpml_59_all_shortest_trail_vessel_transship_v2
vessel_transship_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Terminal (4 nodes) Relationship Patterns: (Terminal)-[:FEEDER_SAIL]->(Terminal) (7 edges) Key Properties: :Terminal has properties: port_code
Using ALL SHORTEST TRAIL over 1 to 3 FEEDER_SAIL hops from Terminal INCOK, return target port_code for every shortest edge-disjoint trail (including any 1-hop self-trail), ordered by port_code.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Terminal (4 nodes) Relationship Patterns: (Terminal)-[:FEEDER_SAIL]->(Terminal) (7 edges) Key Properties: :Terminal has properties: port_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between la...
MATCH ALL SHORTEST TRAIL (a:Terminal)-[:FEEDER_SAIL*1..3]->(b:Terminal) WHERE a.port_code = "INCOK" RETURN b.port_code AS port_code ORDER BY port_code
MATCH ALL SHORTEST ACYCLIC (a:Terminal)-[:FEEDER_SAIL*1..3]->(b:Terminal) WHERE a.port_code = "INCOK" RETURN b.port_code AS port_code ORDER BY port_code
[ "CREATE (:Terminal {port_code: \"INCOK\"})", "CREATE (:Terminal {port_code: \"INMAA\"})", "CREATE (:Terminal {port_code: \"INVTZ\"})", "CREATE (:Terminal {port_code: \"INCCU\"})", "MATCH (a:Terminal {port_code: \"INCOK\"}), (b:Terminal {port_code: \"INCOK\"}) CREATE (a)-[:FEEDER_SAIL]->(b)", "MATCH (a:Ter...
[ [ "INCCU" ], [ "INCCU" ], [ "INCCU" ], [ "INCOK" ], [ "INMAA" ], [ "INMAA" ], [ "INVTZ" ] ]
true
[["INCCU"], ["INCCU"], ["INCCU"], ["INCOK"], ["INMAA"], ["INMAA"], ["INVTZ"]]
gpml_60_all_shortest_trail_custody_ledger_v2
custody_ledger_v2
all_shortest_trail
TRAIL
ALL SHORTEST
Node Labels: :Custodian (4 nodes) Relationship Patterns: (Custodian)-[:PLEDGES_TO]->(Custodian) (7 edges) Key Properties: :Custodian has properties: lei_code
How many tied shortest edge-disjoint PLEDGES_TO trails of 1 to 4 hops connect Custodian LEI-Alpha to LEI-Delta?
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Custodian (4 nodes) Relationship Patterns: (Custodian)-[:PLEDGES_TO]->(Custodian) (7 edges) Key Properties: :Custodian has properties: lei_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between ...
MATCH ALL SHORTEST TRAIL (a:Custodian)-[:PLEDGES_TO*1..4]->(b:Custodian) WHERE a.lei_code = "LEI-Alpha" AND b.lei_code = "LEI-Delta" RETURN count(b) AS shortest_trails
MATCH TRAIL (a:Custodian)-[:PLEDGES_TO*1..4]->(b:Custodian) WHERE a.lei_code = "LEI-Alpha" AND b.lei_code = "LEI-Delta" RETURN count(b) AS shortest_trails
[ "CREATE (:Custodian {lei_code: \"LEI-Alpha\"})", "CREATE (:Custodian {lei_code: \"LEI-Beta\"})", "CREATE (:Custodian {lei_code: \"LEI-Gamma\"})", "CREATE (:Custodian {lei_code: \"LEI-Delta\"})", "MATCH (a:Custodian {lei_code: \"LEI-Alpha\"}), (b:Custodian {lei_code: \"LEI-Alpha\"}) CREATE (a)-[:PLEDGES_TO]-...
[ [ "3" ] ]
true
[[3]]
gpml_61_shortest_acyclic_compiler_callgraph_v2
compiler_callgraph_v2
any_shortest_acyclic
ACYCLIC
ANY SHORTEST
Node Labels: :Function (5 nodes) Relationship Patterns: (Function)-[:INVOKES]->(Function) (8 edges) Key Properties: :Function has properties: fn_name
Select one shortest strictly acyclic INVOKES route per reachable Function within 1 to 3 hops from parse_ast (excluding any cycle back to parse_ast) and return fn_name ordered by fn_name.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Function (5 nodes) Relationship Patterns: (Function)-[:INVOKES]->(Function) (8 edges) Key Properties: :Function has properties: fn_name Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels t...
MATCH ANY SHORTEST ACYCLIC (a:Function)-[:INVOKES*1..3]->(b:Function) WHERE a.fn_name = "parse_ast" RETURN b.fn_name AS fn_name ORDER BY fn_name
MATCH ANY SHORTEST TRAIL (a:Function)-[:INVOKES*1..3]->(b:Function) WHERE a.fn_name = "parse_ast" RETURN b.fn_name AS fn_name ORDER BY fn_name
[ "CREATE (:Function {fn_name: \"parse_ast\"})", "CREATE (:Function {fn_name: \"typecheck\"})", "CREATE (:Function {fn_name: \"lower_ir\"})", "CREATE (:Function {fn_name: \"opt_loop\"})", "CREATE (:Function {fn_name: \"emit_ssa\"})", "MATCH (a:Function {fn_name: \"parse_ast\"}), (b:Function {fn_name: \"pars...
[ [ "emit_ssa" ], [ "lower_ir" ], [ "opt_loop" ], [ "typecheck" ] ]
true
[["emit_ssa"], ["lower_ir"], ["opt_loop"], ["typecheck"]]
gpml_62_shortest_acyclic_irrigation_weir_v2
irrigation_weir_v2
any_shortest_acyclic
ACYCLIC
ANY SHORTEST
Node Labels: :Weir (5 nodes) Relationship Patterns: (Weir)-[:SPILLS_TO]->(Weir) (8 edges) Key Properties: :Weir has properties: weir_id
Select one shortest strictly acyclic SPILLS_TO route per reachable Weir within 1 to 3 hops from WR-Upper (excluding any cycle back to WR-Upper) and return weir_id ordered by weir_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Weir (5 nodes) Relationship Patterns: (Weir)-[:SPILLS_TO]->(Weir) (8 edges) Key Properties: :Weir has properties: weir_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels that aren't lis...
MATCH ANY SHORTEST ACYCLIC (a:Weir)-[:SPILLS_TO*1..3]->(b:Weir) WHERE a.weir_id = "WR-Upper" RETURN b.weir_id AS weir_id ORDER BY weir_id
MATCH ANY SHORTEST TRAIL (a:Weir)-[:SPILLS_TO*1..3]->(b:Weir) WHERE a.weir_id = "WR-Upper" RETURN b.weir_id AS weir_id ORDER BY weir_id
[ "CREATE (:Weir {weir_id: \"WR-Upper\"})", "CREATE (:Weir {weir_id: \"WR-Mid\"})", "CREATE (:Weir {weir_id: \"WR-Lower\"})", "CREATE (:Weir {weir_id: \"WR-Delta\"})", "CREATE (:Weir {weir_id: \"WR-Estuary\"})", "MATCH (a:Weir {weir_id: \"WR-Upper\"}), (b:Weir {weir_id: \"WR-Upper\"}) CREATE (a)-[:SPILLS_TO...
[ [ "WR-Delta" ], [ "WR-Estuary" ], [ "WR-Lower" ], [ "WR-Mid" ] ]
true
[["WR-Delta"], ["WR-Estuary"], ["WR-Lower"], ["WR-Mid"]]
gpml_63_shortest_acyclic_clinical_ward_v2
clinical_ward_v2
any_shortest_acyclic
ACYCLIC
ANY SHORTEST
Node Labels: :Ward (5 nodes) Relationship Patterns: (Ward)-[:ESCALATES_TO]->(Ward) (8 edges) Key Properties: :Ward has properties: ward_id
Select one shortest strictly acyclic ESCALATES_TO route per reachable Ward within 1 to 3 hops from WRD-Triage (excluding any cycle back to WRD-Triage) and return ward_id ordered by ward_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Ward (5 nodes) Relationship Patterns: (Ward)-[:ESCALATES_TO]->(Ward) (8 edges) Key Properties: :Ward has properties: ward_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels that aren't ...
MATCH ANY SHORTEST ACYCLIC (a:Ward)-[:ESCALATES_TO*1..3]->(b:Ward) WHERE a.ward_id = "WRD-Triage" RETURN b.ward_id AS ward_id ORDER BY ward_id
MATCH ANY SHORTEST TRAIL (a:Ward)-[:ESCALATES_TO*1..3]->(b:Ward) WHERE a.ward_id = "WRD-Triage" RETURN b.ward_id AS ward_id ORDER BY ward_id
[ "CREATE (:Ward {ward_id: \"WRD-Triage\"})", "CREATE (:Ward {ward_id: \"WRD-StepDown\"})", "CREATE (:Ward {ward_id: \"WRD-Surgical\"})", "CREATE (:Ward {ward_id: \"WRD-CCU\"})", "CREATE (:Ward {ward_id: \"WRD-Recovery\"})", "MATCH (a:Ward {ward_id: \"WRD-Triage\"}), (b:Ward {ward_id: \"WRD-Triage\"}) CREAT...
[ [ "WRD-CCU" ], [ "WRD-Recovery" ], [ "WRD-StepDown" ], [ "WRD-Surgical" ] ]
true
[["WRD-CCU"], ["WRD-Recovery"], ["WRD-StepDown"], ["WRD-Surgical"]]
gpml_64_shortest_acyclic_fab_reticle_v2
fab_reticle_v2
any_shortest_acyclic
ACYCLIC
ANY SHORTEST
Node Labels: :LithoBay (5 nodes) Relationship Patterns: (LithoBay)-[:WAFER_TRACK]->(LithoBay) (8 edges) Key Properties: :LithoBay has properties: bay_id
Select one shortest strictly acyclic WAFER_TRACK route per reachable LithoBay within 1 to 3 hops from BAY-EUV1 (excluding any cycle back to BAY-EUV1) and return bay_id ordered by bay_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :LithoBay (5 nodes) Relationship Patterns: (LithoBay)-[:WAFER_TRACK]->(LithoBay) (8 edges) Key Properties: :LithoBay has properties: bay_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between label...
MATCH ANY SHORTEST ACYCLIC (a:LithoBay)-[:WAFER_TRACK*1..3]->(b:LithoBay) WHERE a.bay_id = "BAY-EUV1" RETURN b.bay_id AS bay_id ORDER BY bay_id
MATCH ANY SHORTEST TRAIL (a:LithoBay)-[:WAFER_TRACK*1..3]->(b:LithoBay) WHERE a.bay_id = "BAY-EUV1" RETURN b.bay_id AS bay_id ORDER BY bay_id
[ "CREATE (:LithoBay {bay_id: \"BAY-EUV1\"})", "CREATE (:LithoBay {bay_id: \"BAY-DUV2\"})", "CREATE (:LithoBay {bay_id: \"BAY-Etch3\"})", "CREATE (:LithoBay {bay_id: \"BAY-CMP4\"})", "CREATE (:LithoBay {bay_id: \"BAY-Metro5\"})", "MATCH (a:LithoBay {bay_id: \"BAY-EUV1\"}), (b:LithoBay {bay_id: \"BAY-EUV1\"}...
[ [ "BAY-CMP4" ], [ "BAY-DUV2" ], [ "BAY-Etch3" ], [ "BAY-Metro5" ] ]
true
[["BAY-CMP4"], ["BAY-DUV2"], ["BAY-Etch3"], ["BAY-Metro5"]]
gpml_65_shortest_acyclic_sat_ground_v2
sat_ground_v2
any_shortest_acyclic
ACYCLIC
ANY SHORTEST
Node Labels: :RelaySat (5 nodes) Relationship Patterns: (RelaySat)-[:CROSS_BEAM]->(RelaySat) (8 edges) Key Properties: :RelaySat has properties: norad_id
Select one shortest strictly acyclic CROSS_BEAM route per reachable RelaySat within 1 to 3 hops from NORAD-801 (excluding any cycle back to NORAD-801) and return norad_id ordered by norad_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :RelaySat (5 nodes) Relationship Patterns: (RelaySat)-[:CROSS_BEAM]->(RelaySat) (8 edges) Key Properties: :RelaySat has properties: norad_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labe...
MATCH ANY SHORTEST ACYCLIC (a:RelaySat)-[:CROSS_BEAM*1..3]->(b:RelaySat) WHERE a.norad_id = "NORAD-801" RETURN b.norad_id AS norad_id ORDER BY norad_id
MATCH ANY SHORTEST TRAIL (a:RelaySat)-[:CROSS_BEAM*1..3]->(b:RelaySat) WHERE a.norad_id = "NORAD-801" RETURN b.norad_id AS norad_id ORDER BY norad_id
[ "CREATE (:RelaySat {norad_id: \"NORAD-801\"})", "CREATE (:RelaySat {norad_id: \"NORAD-802\"})", "CREATE (:RelaySat {norad_id: \"NORAD-803\"})", "CREATE (:RelaySat {norad_id: \"NORAD-804\"})", "CREATE (:RelaySat {norad_id: \"NORAD-805\"})", "MATCH (a:RelaySat {norad_id: \"NORAD-801\"}), (b:RelaySat {norad_...
[ [ "NORAD-802" ], [ "NORAD-803" ], [ "NORAD-804" ], [ "NORAD-805" ] ]
true
[["NORAD-802"], ["NORAD-803"], ["NORAD-804"], ["NORAD-805"]]
gpml_66_shortest_acyclic_rail_interlocking_v2
rail_interlocking_v2
any_shortest_acyclic
ACYCLIC
ALL SHORTEST
Node Labels: :SignalBox (5 nodes) Relationship Patterns: (SignalBox)-[:BLOCK_SECTION]->(SignalBox) (8 edges) Key Properties: :SignalBox has properties: box_code
Find all shortest strictly acyclic BLOCK_SECTION paths of 1 to 3 hops starting at SignalBox SBX-Kalyan (excluding self-cycles) and return target box_code ordered by box_code.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :SignalBox (5 nodes) Relationship Patterns: (SignalBox)-[:BLOCK_SECTION]->(SignalBox) (8 edges) Key Properties: :SignalBox has properties: box_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges betwe...
MATCH ALL SHORTEST ACYCLIC (a:SignalBox)-[:BLOCK_SECTION*1..3]->(b:SignalBox) WHERE a.box_code = "SBX-Kalyan" RETURN b.box_code AS box_code ORDER BY box_code
MATCH ALL SHORTEST TRAIL (a:SignalBox)-[:BLOCK_SECTION*1..3]->(b:SignalBox) WHERE a.box_code = "SBX-Kalyan" RETURN b.box_code AS box_code ORDER BY box_code
[ "CREATE (:SignalBox {box_code: \"SBX-Kalyan\"})", "CREATE (:SignalBox {box_code: \"SBX-Igatpuri\"})", "CREATE (:SignalBox {box_code: \"SBX-Manmad\"})", "CREATE (:SignalBox {box_code: \"SBX-Bhusawal\"})", "CREATE (:SignalBox {box_code: \"SBX-Akola\"})", "MATCH (a:SignalBox {box_code: \"SBX-Kalyan\"}), (b:S...
[ [ "SBX-Akola" ], [ "SBX-Bhusawal" ], [ "SBX-Bhusawal" ], [ "SBX-Bhusawal" ], [ "SBX-Igatpuri" ], [ "SBX-Igatpuri" ], [ "SBX-Manmad" ], [ "SBX-Manmad" ] ]
true
[["SBX-Akola"], ["SBX-Bhusawal"], ["SBX-Bhusawal"], ["SBX-Bhusawal"], ["SBX-Igatpuri"], ["SBX-Igatpuri"], ["SBX-Manmad"], ["SBX-Manmad"]]
gpml_67_shortest_acyclic_treasury_repo_v2
treasury_repo_v2
any_shortest_acyclic
ACYCLIC
ALL SHORTEST
Node Labels: :DealerDesk (5 nodes) Relationship Patterns: (DealerDesk)-[:REHYPOTHECATES]->(DealerDesk) (8 edges) Key Properties: :DealerDesk has properties: desk_id
Find all shortest strictly acyclic REHYPOTHECATES paths of 1 to 3 hops starting at DealerDesk DSK-Gilts (excluding self-cycles) and return target desk_id ordered by desk_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :DealerDesk (5 nodes) Relationship Patterns: (DealerDesk)-[:REHYPOTHECATES]->(DealerDesk) (8 edges) Key Properties: :DealerDesk has properties: desk_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges b...
MATCH ALL SHORTEST ACYCLIC (a:DealerDesk)-[:REHYPOTHECATES*1..3]->(b:DealerDesk) WHERE a.desk_id = "DSK-Gilts" RETURN b.desk_id AS desk_id ORDER BY desk_id
MATCH ALL SHORTEST TRAIL (a:DealerDesk)-[:REHYPOTHECATES*1..3]->(b:DealerDesk) WHERE a.desk_id = "DSK-Gilts" RETURN b.desk_id AS desk_id ORDER BY desk_id
[ "CREATE (:DealerDesk {desk_id: \"DSK-Gilts\"})", "CREATE (:DealerDesk {desk_id: \"DSK-Bunds\"})", "CREATE (:DealerDesk {desk_id: \"DSK-UST\"})", "CREATE (:DealerDesk {desk_id: \"DSK-JGB\"})", "CREATE (:DealerDesk {desk_id: \"DSK-OIS\"})", "MATCH (a:DealerDesk {desk_id: \"DSK-Gilts\"}), (b:DealerDesk {desk...
[ [ "DSK-Bunds" ], [ "DSK-Bunds" ], [ "DSK-JGB" ], [ "DSK-JGB" ], [ "DSK-JGB" ], [ "DSK-OIS" ], [ "DSK-UST" ], [ "DSK-UST" ] ]
true
[["DSK-Bunds"], ["DSK-Bunds"], ["DSK-JGB"], ["DSK-JGB"], ["DSK-JGB"], ["DSK-OIS"], ["DSK-UST"], ["DSK-UST"]]
gpml_68_shortest_acyclic_cdn_cache_v2
cdn_cache_v2
any_shortest_acyclic
ACYCLIC
ALL SHORTEST
Node Labels: :EdgePop (5 nodes) Relationship Patterns: (EdgePop)-[:SHIELD_FETCH]->(EdgePop) (8 edges) Key Properties: :EdgePop has properties: pop_code
Find all shortest strictly acyclic SHIELD_FETCH paths of 1 to 3 hops starting at EdgePop POP-Mum (excluding self-cycles) and return target pop_code ordered by pop_code.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :EdgePop (5 nodes) Relationship Patterns: (EdgePop)-[:SHIELD_FETCH]->(EdgePop) (8 edges) Key Properties: :EdgePop has properties: pop_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels...
MATCH ALL SHORTEST ACYCLIC (a:EdgePop)-[:SHIELD_FETCH*1..3]->(b:EdgePop) WHERE a.pop_code = "POP-Mum" RETURN b.pop_code AS pop_code ORDER BY pop_code
MATCH ALL SHORTEST TRAIL (a:EdgePop)-[:SHIELD_FETCH*1..3]->(b:EdgePop) WHERE a.pop_code = "POP-Mum" RETURN b.pop_code AS pop_code ORDER BY pop_code
[ "CREATE (:EdgePop {pop_code: \"POP-Mum\"})", "CREATE (:EdgePop {pop_code: \"POP-Sin\"})", "CREATE (:EdgePop {pop_code: \"POP-Fra\"})", "CREATE (:EdgePop {pop_code: \"POP-Iad\"})", "CREATE (:EdgePop {pop_code: \"POP-Nrt\"})", "MATCH (a:EdgePop {pop_code: \"POP-Mum\"}), (b:EdgePop {pop_code: \"POP-Mum\"}) C...
[ [ "POP-Fra" ], [ "POP-Fra" ], [ "POP-Iad" ], [ "POP-Iad" ], [ "POP-Iad" ], [ "POP-Nrt" ], [ "POP-Sin" ], [ "POP-Sin" ] ]
true
[["POP-Fra"], ["POP-Fra"], ["POP-Iad"], ["POP-Iad"], ["POP-Iad"], ["POP-Nrt"], ["POP-Sin"], ["POP-Sin"]]
gpml_69_shortest_acyclic_district_heat_v2
district_heat_v2
any_shortest_acyclic
ACYCLIC
ALL SHORTEST
Node Labels: :BoilerLoop (5 nodes) Relationship Patterns: (BoilerLoop)-[:THERMAL_PIPE]->(BoilerLoop) (8 edges) Key Properties: :BoilerLoop has properties: loop_id
Find all shortest strictly acyclic THERMAL_PIPE paths of 1 to 3 hops starting at BoilerLoop THM-01 (excluding self-cycles) and return target loop_id ordered by loop_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :BoilerLoop (5 nodes) Relationship Patterns: (BoilerLoop)-[:THERMAL_PIPE]->(BoilerLoop) (8 edges) Key Properties: :BoilerLoop has properties: loop_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges bet...
MATCH ALL SHORTEST ACYCLIC (a:BoilerLoop)-[:THERMAL_PIPE*1..3]->(b:BoilerLoop) WHERE a.loop_id = "THM-01" RETURN b.loop_id AS loop_id ORDER BY loop_id
MATCH ALL SHORTEST TRAIL (a:BoilerLoop)-[:THERMAL_PIPE*1..3]->(b:BoilerLoop) WHERE a.loop_id = "THM-01" RETURN b.loop_id AS loop_id ORDER BY loop_id
[ "CREATE (:BoilerLoop {loop_id: \"THM-01\"})", "CREATE (:BoilerLoop {loop_id: \"THM-02\"})", "CREATE (:BoilerLoop {loop_id: \"THM-03\"})", "CREATE (:BoilerLoop {loop_id: \"THM-04\"})", "CREATE (:BoilerLoop {loop_id: \"THM-05\"})", "MATCH (a:BoilerLoop {loop_id: \"THM-01\"}), (b:BoilerLoop {loop_id: \"THM-0...
[ [ "THM-02" ], [ "THM-02" ], [ "THM-03" ], [ "THM-03" ], [ "THM-04" ], [ "THM-04" ], [ "THM-04" ], [ "THM-05" ] ]
true
[["THM-02"], ["THM-02"], ["THM-03"], ["THM-03"], ["THM-04"], ["THM-04"], ["THM-04"], ["THM-05"]]
gpml_70_shortest_acyclic_telecom_otn_v2
telecom_otn_v2
any_shortest_acyclic
ACYCLIC
ALL SHORTEST
Node Labels: :Roadm (5 nodes) Relationship Patterns: (Roadm)-[:LAMBDA_CHANNEL]->(Roadm) (8 edges) Key Properties: :Roadm has properties: roadm_id
Find all shortest strictly acyclic LAMBDA_CHANNEL paths of 1 to 3 hops starting at Roadm RDM-A (excluding self-cycles) and return target roadm_id ordered by roadm_id.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Roadm (5 nodes) Relationship Patterns: (Roadm)-[:LAMBDA_CHANNEL]->(Roadm) (8 edges) Key Properties: :Roadm has properties: roadm_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels that ...
MATCH ALL SHORTEST ACYCLIC (a:Roadm)-[:LAMBDA_CHANNEL*1..3]->(b:Roadm) WHERE a.roadm_id = "RDM-A" RETURN b.roadm_id AS roadm_id ORDER BY roadm_id
MATCH ALL SHORTEST TRAIL (a:Roadm)-[:LAMBDA_CHANNEL*1..3]->(b:Roadm) WHERE a.roadm_id = "RDM-A" RETURN b.roadm_id AS roadm_id ORDER BY roadm_id
[ "CREATE (:Roadm {roadm_id: \"RDM-A\"})", "CREATE (:Roadm {roadm_id: \"RDM-B\"})", "CREATE (:Roadm {roadm_id: \"RDM-C\"})", "CREATE (:Roadm {roadm_id: \"RDM-D\"})", "CREATE (:Roadm {roadm_id: \"RDM-E\"})", "MATCH (a:Roadm {roadm_id: \"RDM-A\"}), (b:Roadm {roadm_id: \"RDM-A\"}) CREATE (a)-[:LAMBDA_CHANNEL]-...
[ [ "RDM-B" ], [ "RDM-B" ], [ "RDM-C" ], [ "RDM-C" ], [ "RDM-D" ], [ "RDM-D" ], [ "RDM-D" ], [ "RDM-E" ] ]
true
[["RDM-B"], ["RDM-B"], ["RDM-C"], ["RDM-C"], ["RDM-D"], ["RDM-D"], ["RDM-D"], ["RDM-E"]]
gpml_71_path_length_pharma_synthesis_v2
pharma_synthesis_v2
bound_path_length_gpml
ACYCLIC
ALL
Node Labels: :Precursor (4 nodes) Relationship Patterns: (Precursor)-[:REACTS_INTO]->(Precursor) (7 edges) Key Properties: :Precursor has properties: chem_id
Bind path p for every loopless ACYCLIC REACTS_INTO route of 1 to 3 hops from Precursor CMP-101 to CMP-404 and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Precursor (4 nodes) Relationship Patterns: (Precursor)-[:REACTS_INTO]->(Precursor) (7 edges) Key Properties: :Precursor has properties: chem_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between ...
MATCH ACYCLIC p = (a:Precursor)-[:REACTS_INTO*1..3]->(b:Precursor) WHERE a.chem_id = "CMP-101" AND b.chem_id = "CMP-404" RETURN length(p) AS hops ORDER BY hops
MATCH TRAIL p = (a:Precursor)-[:REACTS_INTO*1..3]->(b:Precursor) WHERE a.chem_id = "CMP-101" AND b.chem_id = "CMP-404" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Precursor {chem_id: \"CMP-101\"})", "CREATE (:Precursor {chem_id: \"CMP-202\"})", "CREATE (:Precursor {chem_id: \"CMP-303\"})", "CREATE (:Precursor {chem_id: \"CMP-404\"})", "MATCH (a:Precursor {chem_id: \"CMP-101\"}), (b:Precursor {chem_id: \"CMP-101\"}) CREATE (a)-[:REACTS_INTO]->(b)", "MATCH ...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ] ]
true
[[2], [2], [2], [3], [3]]
gpml_72_path_length_k8s_service_v2
k8s_service_v2
bound_path_length_gpml
TRAIL
ALL
Node Labels: :Workload (4 nodes) Relationship Patterns: (Workload)-[:GRPC_HOP]->(Workload) (7 edges) Key Properties: :Workload has properties: deploy_name
Bind path p for every edge-disjoint TRAIL of 1 to 4 GRPC_HOP hops from Workload gw-proxy to tax-calc (allowing self-loop edges at most once) and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Workload (4 nodes) Relationship Patterns: (Workload)-[:GRPC_HOP]->(Workload) (7 edges) Key Properties: :Workload has properties: deploy_name Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between lab...
MATCH TRAIL p = (a:Workload)-[:GRPC_HOP*1..4]->(b:Workload) WHERE a.deploy_name = "gw-proxy" AND b.deploy_name = "tax-calc" RETURN length(p) AS hops ORDER BY hops
MATCH WALK p = (a:Workload)-[:GRPC_HOP*1..4]->(b:Workload) WHERE a.deploy_name = "gw-proxy" AND b.deploy_name = "tax-calc" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Workload {deploy_name: \"gw-proxy\"})", "CREATE (:Workload {deploy_name: \"cart-api\"})", "CREATE (:Workload {deploy_name: \"pricing-eng\"})", "CREATE (:Workload {deploy_name: \"tax-calc\"})", "MATCH (a:Workload {deploy_name: \"gw-proxy\"}), (b:Workload {deploy_name: \"gw-proxy\"}) CREATE (a)-[:GR...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "4" ], [ "4" ] ]
true
[[2], [2], [2], [3], [3], [3], [3], [3], [4], [4]]
gpml_73_path_length_aviation_rotables_v2
aviation_rotables_v2
bound_path_length_gpml
ACYCLIC
ALL
Node Labels: :Hangar (4 nodes) Relationship Patterns: (Hangar)-[:FERRY_SWAP]->(Hangar) (7 edges) Key Properties: :Hangar has properties: hangar_code
Bind path p for every loopless ACYCLIC FERRY_SWAP route of 1 to 3 hops from Hangar HGR-Del to HGR-Bom and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Hangar (4 nodes) Relationship Patterns: (Hangar)-[:FERRY_SWAP]->(Hangar) (7 edges) Key Properties: :Hangar has properties: hangar_code Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels th...
MATCH ACYCLIC p = (a:Hangar)-[:FERRY_SWAP*1..3]->(b:Hangar) WHERE a.hangar_code = "HGR-Del" AND b.hangar_code = "HGR-Bom" RETURN length(p) AS hops ORDER BY hops
MATCH TRAIL p = (a:Hangar)-[:FERRY_SWAP*1..3]->(b:Hangar) WHERE a.hangar_code = "HGR-Del" AND b.hangar_code = "HGR-Bom" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Hangar {hangar_code: \"HGR-Del\"})", "CREATE (:Hangar {hangar_code: \"HGR-Hyd\"})", "CREATE (:Hangar {hangar_code: \"HGR-Blr\"})", "CREATE (:Hangar {hangar_code: \"HGR-Bom\"})", "MATCH (a:Hangar {hangar_code: \"HGR-Del\"}), (b:Hangar {hangar_code: \"HGR-Del\"}) CREATE (a)-[:FERRY_SWAP]->(b)", "M...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ] ]
true
[[2], [2], [2], [3], [3]]
gpml_74_path_length_grid_hvdc_v2
grid_hvdc_v2
bound_path_length_gpml
TRAIL
ALL
Node Labels: :Converter (4 nodes) Relationship Patterns: (Converter)-[:BIPOLE_LINK]->(Converter) (7 edges) Key Properties: :Converter has properties: conv_id
Bind path p for every edge-disjoint TRAIL of 1 to 4 BIPOLE_LINK hops from Converter HVDC-Talcher to HVDC-Pugalur (allowing self-loop edges at most once) and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Converter (4 nodes) Relationship Patterns: (Converter)-[:BIPOLE_LINK]->(Converter) (7 edges) Key Properties: :Converter has properties: conv_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between ...
MATCH TRAIL p = (a:Converter)-[:BIPOLE_LINK*1..4]->(b:Converter) WHERE a.conv_id = "HVDC-Talcher" AND b.conv_id = "HVDC-Pugalur" RETURN length(p) AS hops ORDER BY hops
MATCH WALK p = (a:Converter)-[:BIPOLE_LINK*1..4]->(b:Converter) WHERE a.conv_id = "HVDC-Talcher" AND b.conv_id = "HVDC-Pugalur" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Converter {conv_id: \"HVDC-Talcher\"})", "CREATE (:Converter {conv_id: \"HVDC-Kolar\"})", "CREATE (:Converter {conv_id: \"HVDC-Raigarh\"})", "CREATE (:Converter {conv_id: \"HVDC-Pugalur\"})", "MATCH (a:Converter {conv_id: \"HVDC-Talcher\"}), (b:Converter {conv_id: \"HVDC-Talcher\"}) CREATE (a)-[:B...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "4" ], [ "4" ] ]
true
[[2], [2], [2], [3], [3], [3], [3], [3], [4], [4]]
gpml_75_path_length_provenance_dag_v2
provenance_dag_v2
bound_path_length_gpml
ACYCLIC
ALL
Node Labels: :Artifact (4 nodes) Relationship Patterns: (Artifact)-[:DERIVES_FROM]->(Artifact) (7 edges) Key Properties: :Artifact has properties: art_hash
Bind path p for every loopless ACYCLIC DERIVES_FROM route of 1 to 3 hops from Artifact ART-Raw to ART-Model and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Artifact (4 nodes) Relationship Patterns: (Artifact)-[:DERIVES_FROM]->(Artifact) (7 edges) Key Properties: :Artifact has properties: art_hash Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between la...
MATCH ACYCLIC p = (a:Artifact)-[:DERIVES_FROM*1..3]->(b:Artifact) WHERE a.art_hash = "ART-Raw" AND b.art_hash = "ART-Model" RETURN length(p) AS hops ORDER BY hops
MATCH TRAIL p = (a:Artifact)-[:DERIVES_FROM*1..3]->(b:Artifact) WHERE a.art_hash = "ART-Raw" AND b.art_hash = "ART-Model" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Artifact {art_hash: \"ART-Raw\"})", "CREATE (:Artifact {art_hash: \"ART-Clean\"})", "CREATE (:Artifact {art_hash: \"ART-Feat\"})", "CREATE (:Artifact {art_hash: \"ART-Model\"})", "MATCH (a:Artifact {art_hash: \"ART-Raw\"}), (b:Artifact {art_hash: \"ART-Raw\"}) CREATE (a)-[:DERIVES_FROM]->(b)", "...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ] ]
true
[[2], [2], [2], [3], [3]]
gpml_76_path_length_broker_mesh_v2
broker_mesh_v2
bound_path_length_gpml
TRAIL
ALL
Node Labels: :Broker (4 nodes) Relationship Patterns: (Broker)-[:FORWARDS_TO]->(Broker) (7 edges) Key Properties: :Broker has properties: broker_id
Bind path p for every edge-disjoint TRAIL of 1 to 4 FORWARDS_TO hops from Broker BRK-01 to BRK-04 (allowing self-loop edges at most once) and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Broker (4 nodes) Relationship Patterns: (Broker)-[:FORWARDS_TO]->(Broker) (7 edges) Key Properties: :Broker has properties: broker_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels tha...
MATCH TRAIL p = (a:Broker)-[:FORWARDS_TO*1..4]->(b:Broker) WHERE a.broker_id = "BRK-01" AND b.broker_id = "BRK-04" RETURN length(p) AS hops ORDER BY hops
MATCH WALK p = (a:Broker)-[:FORWARDS_TO*1..4]->(b:Broker) WHERE a.broker_id = "BRK-01" AND b.broker_id = "BRK-04" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Broker {broker_id: \"BRK-01\"})", "CREATE (:Broker {broker_id: \"BRK-02\"})", "CREATE (:Broker {broker_id: \"BRK-03\"})", "CREATE (:Broker {broker_id: \"BRK-04\"})", "MATCH (a:Broker {broker_id: \"BRK-01\"}), (b:Broker {broker_id: \"BRK-01\"}) CREATE (a)-[:FORWARDS_TO]->(b)", "MATCH (a:Broker {b...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "4" ], [ "4" ] ]
true
[[2], [2], [2], [3], [3], [3], [3], [3], [4], [4]]
gpml_77_path_length_reactor_steam_v2
reactor_steam_v2
bound_path_length_gpml
ACYCLIC
ALL
Node Labels: :Reactor (4 nodes) Relationship Patterns: (Reactor)-[:STEAM_PIPE]->(Reactor) (7 edges) Key Properties: :Reactor has properties: reactor_id
Bind path p for every loopless ACYCLIC STEAM_PIPE route of 1 to 3 hops from Reactor RX-North to RX-West and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Reactor (4 nodes) Relationship Patterns: (Reactor)-[:STEAM_PIPE]->(Reactor) (7 edges) Key Properties: :Reactor has properties: reactor_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels...
MATCH ACYCLIC p = (a:Reactor)-[:STEAM_PIPE*1..3]->(b:Reactor) WHERE a.reactor_id = "RX-North" AND b.reactor_id = "RX-West" RETURN length(p) AS hops ORDER BY hops
MATCH TRAIL p = (a:Reactor)-[:STEAM_PIPE*1..3]->(b:Reactor) WHERE a.reactor_id = "RX-North" AND b.reactor_id = "RX-West" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Reactor {reactor_id: \"RX-North\"})", "CREATE (:Reactor {reactor_id: \"RX-East\"})", "CREATE (:Reactor {reactor_id: \"RX-South\"})", "CREATE (:Reactor {reactor_id: \"RX-West\"})", "MATCH (a:Reactor {reactor_id: \"RX-North\"}), (b:Reactor {reactor_id: \"RX-North\"}) CREATE (a)-[:STEAM_PIPE]->(b)", ...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ] ]
true
[[2], [2], [2], [3], [3]]
gpml_78_path_length_router_mpls_v2
router_mpls_v2
bound_path_length_gpml
TRAIL
ALL
Node Labels: :Router (4 nodes) Relationship Patterns: (Router)-[:MPLS_TUNNEL]->(Router) (7 edges) Key Properties: :Router has properties: router_id
Bind path p for every edge-disjoint TRAIL of 1 to 4 MPLS_TUNNEL hops from Router RTR-Del to RTR-Hyd (allowing self-loop edges at most once) and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Router (4 nodes) Relationship Patterns: (Router)-[:MPLS_TUNNEL]->(Router) (7 edges) Key Properties: :Router has properties: router_id Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between labels tha...
MATCH TRAIL p = (a:Router)-[:MPLS_TUNNEL*1..4]->(b:Router) WHERE a.router_id = "RTR-Del" AND b.router_id = "RTR-Hyd" RETURN length(p) AS hops ORDER BY hops
MATCH WALK p = (a:Router)-[:MPLS_TUNNEL*1..4]->(b:Router) WHERE a.router_id = "RTR-Del" AND b.router_id = "RTR-Hyd" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Router {router_id: \"RTR-Del\"})", "CREATE (:Router {router_id: \"RTR-Bom\"})", "CREATE (:Router {router_id: \"RTR-Maa\"})", "CREATE (:Router {router_id: \"RTR-Hyd\"})", "MATCH (a:Router {router_id: \"RTR-Del\"}), (b:Router {router_id: \"RTR-Del\"}) CREATE (a)-[:MPLS_TUNNEL]->(b)", "MATCH (a:Rou...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "3" ], [ "4" ], [ "4" ] ]
true
[[2], [2], [2], [3], [3], [3], [3], [3], [4], [4]]
gpml_79_path_length_kinase_cascade_v2
kinase_cascade_v2
bound_path_length_gpml
ACYCLIC
ALL
Node Labels: :Kinase (4 nodes) Relationship Patterns: (Kinase)-[:PHOSPHORYLATES]->(Kinase) (7 edges) Key Properties: :Kinase has properties: kinase_name
Bind path p for every loopless ACYCLIC PHOSPHORYLATES route of 1 to 3 hops from Kinase MEK1 to AKT1 and return length(p) ordered ascending.
You are a Cypher query expert for a graph database. Given this schema: Node Labels: :Kinase (4 nodes) Relationship Patterns: (Kinase)-[:PHOSPHORYLATES]->(Kinase) (7 edges) Key Properties: :Kinase has properties: kinase_name Rules: - Follow the Relationship Patterns EXACTLY β€” do not invent edges between label...
MATCH ACYCLIC p = (a:Kinase)-[:PHOSPHORYLATES*1..3]->(b:Kinase) WHERE a.kinase_name = "MEK1" AND b.kinase_name = "AKT1" RETURN length(p) AS hops ORDER BY hops
MATCH TRAIL p = (a:Kinase)-[:PHOSPHORYLATES*1..3]->(b:Kinase) WHERE a.kinase_name = "MEK1" AND b.kinase_name = "AKT1" RETURN length(p) AS hops ORDER BY hops
[ "CREATE (:Kinase {kinase_name: \"MEK1\"})", "CREATE (:Kinase {kinase_name: \"ERK2\"})", "CREATE (:Kinase {kinase_name: \"RAF1\"})", "CREATE (:Kinase {kinase_name: \"AKT1\"})", "MATCH (a:Kinase {kinase_name: \"MEK1\"}), (b:Kinase {kinase_name: \"MEK1\"}) CREATE (a)-[:PHOSPHORYLATES]->(b)", "MATCH (a:Kinase...
[ [ "2" ], [ "2" ], [ "2" ], [ "3" ], [ "3" ] ]
true
[[2], [2], [2], [3], [3]]
End of preview. Expand in Data Studio

Samyama-GPML-Bench (v2.1 β€” 120 Witness-Separated ISO/IEC 39075 GPML Tasks)

Witness-Separated Natural-Language $\to$ ISO/IEC 39075 GPML Path-Pattern & Weighted-Cost Benchmark for samyama-graph.

Every task across both configurations (gpml_100_v2 and gpml_cost_20) is:

  1. Grounded in the formal GPML semantics of Deutsch et al., "Graph Pattern Matching in GQL and SQL/PGQ" (SIGMOD 2022) and our 84-construct $\times$ 13-engine gpml-conformance study.
  2. Dual-Oracle Co-Verified: Every canonical query and expected multiset agrees 100% between our standalone SIGMOD 2022 reference evaluators (gpml_oracle_match and gpml_weighted_oracle) and live SamyamaClient.embedded() execution.
  3. 100% Witness-Separated (0 / 120 Naive Foil Pass Rate): Each task seeds a separating multigraph (directed cycles, self-loops, parallel edges, figure-8 chords, mixed-orientation undirected rings, heterogeneous 2-segment chains, or hop-vs-cost trap edges) where omitting or mis-composing the target GPML restrictor/selector/weight expression provably returns a distinct (wrong) multiset.

Dataset Configurations (120 Total Tasks)

  1. gpml_100_v2 (default, data/test.parquet & data/test.jsonl, 100 tasks across 10 categories):
Split / Range Category GPML Construct Tested Prompt Surface Tasks
01..10 (v1) acyclic_reachability MATCH ACYCLIC vs. TRAIL on directed cycles // Schema: Completion 10
11..20 (v1) simple_cycles_and_paths MATCH SIMPLE closed cycles & non-extendable simple paths // Schema: Completion 10
21..30 (v1) shortest_partition_selectors ALL SHORTEST & ANY SHORTEST on multi-target ladders // Schema: Completion 10
31..40 (v1) trail_vs_bounded_walk_and_any Bounded WALK *1..k vs. TRAIL & ANY endpoint partitioning // Schema: Completion 10
41..50 (v1) composed_and_multisegment_gpml ANY ACYCLIC, upstream <-, reflexive TRAIL *0..2 // Schema: Completion 10
51..60 (v2) all_shortest_trail MATCH ALL SHORTEST TRAIL on self-loop + parallel multigraphs NLQPipeline::build_prompt 10
61..70 (v2) any_shortest_acyclic MATCH ANY SHORTEST ACYCLIC & ALL SHORTEST ACYCLIC NLQPipeline::build_prompt 10
71..80 (v2) bound_path_length_gpml MATCH ACYCLIC/TRAIL p = (...) RETURN length(p) NLQPipeline::build_prompt 10
81..90 (v2) undirected_gpml_reachability Undirected ACYCLIC & ANY SHORTEST ACYCLIC -[:R*lo..hi]- NLQPipeline::build_prompt 10
91..100 (v2) multisegment_heterogeneous_gpml 2-segment heterogeneous ACYCLIC & WALK chains NLQPipeline::build_prompt 10
  1. gpml_cost_20 (data/cost_test.parquet & data/cost_test.jsonl, 20 tasks across 4 weighted multigraph domains):
    • subsea_cable_cost_kg, hvdc_corridor_cost_kg, fx_settlement_cost_kg, biologics_coldchain_cost_kg
    • Tests weighted reduce(cost = 0, r IN relationships(p) | cost + r.<weight>) minimum-cost vs. hop-shortest separation, ACYCLIC vs. negative/low-cost cycle traps, TRAIL parallel-edge cost separation, and bottleneck all(r IN relationships(p) WHERE r.<cap> >= K) filtering across both // Schema: (01..10) and NLQPipeline::build_prompt (11..20) surfaces.

License

Apache-2.0 (100% clean-room authored by Samyama.ai; 0% Neo4j scrape, 0% non-commercial data).

Verified Benchmark Results (M8.1 -> M9 -> M10, v2.1 Including Samyama-GPML-Cost-Bench-20)

Model (VaidhyaMegha/Shoonya) Params GPML-100 v2 (0-FSM TTC) shoonya-nlq-server (NLQ 51..100) GPML-Cost-20 (0-FSM TTC) shoonya-nlq-server (Cost NLQ 11..20)
Shoonya-Cypher-1.3B-v2.3 (M8.1) 1,065.1M 34.00% 8.00% β€” β€”
Shoonya-Cypher-1.3B-v2.4 (M9) 1,065.1M 64.00% 80.00% β€” β€”
Shoonya-Cypher-1.3B-v2.5 (M10) 1,065.1M 62.00% (99.5% syn) 100.00% (50/50, 100% syn!) 80.00% (100% syn) 80.00% (8/10, 100% syn)
Shoonya-Cypher-350M-v1.5 (M9) 312.1M 35.00% 60.00% β€” β€”
Shoonya-Cypher-350M-v1.6 (M10) 312.1M 31.00% (92.5% syn) 72.00% (36/50, 100% syn!) 60.00% (100% syn) 100.00% (10/10, 100% syn!)
Downloads last month
97