(root@nebula) [nba]> with [1,2,3] as a, [3,4,2] as b with size([i in a where i in b | i])>0 as has_intersection return has_intersection
+------------------+
| has_intersection |
+------------------+
| true |
+------------------+
Got 1 rows (time spent 1476/1793 us)
Tue, 14 Feb 2023 16:39:31 CST
(root@nebula) [nba]> with [1,22,33] as a, [3,4,2] as b with size([i in a where i in b | i])>0 as has_intersection return has_intersection
+------------------+
| has_intersection |
+------------------+
| false |
+------------------+
Got 1 rows (time spent 1451/1751 us)
go from "Tim Duncan" over * where "player" in tags($$) yield id($^) as src1, id($$) as dst1, edge as e1
| go from $-.dst1 over like where like.likeness>30 or $$.team.name is not null yield $-.dst1 as src2, id($$) as dst2, edge as e2, $-.e1 as e1, $-.src1 as src1