go FROM hash(‘UR12345’) OVER follow BIDIRECT where follow.status == 1 YIELD $$.user.user_no as user_no,$$.user.user_name as user_name,follow.status as status | GROUP BY $-.user_no YIELD $-.user_no as user_no,COUNT(*) as count
go FROM hash(‘UR12345’) OVER follow BIDIRECT where follow.status == 1 YIELD $$.user.user_no as user_no,$$.user.user_name as user_name,follow.status as status | GROUP BY $-.user_no YIELD $-.user_no as user_no,COUNT(*) as count | YIELD $-.count as count,$-.user_no as user_no where (int)($-.count)==(int)(2)
go FROM hash(‘UR12345’) OVER follow BIDIRECT where follow.status == 1 YIELD $$.user.user_no as user_no,$$.user.user_name as user_name,$$.user.head_img_url as head_img_url | GROUP BY $-.user_no,$-.user_name,$-.head_img_url YIELD $-.user_no as user_no,$-.user_name as user_name,$-.head_img_url as head_img_url,COUNT(*) as count | YIELD $-.count as count,$-.user_no as user_no,$-.user_name as user_name,$-.head_img_url as head_img_url where (int)($-.count)==(int)(2) | limit 0,1