Created
April 11, 2016 14:41
-
-
Save fadur/355540149c8a6172653e9a1f2b7db412 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
match (s:Session)-[r:HAS_SEEN]->(p:Product) | |
where r.event_timestamp > (timestamp()/1000 - 60*60*24) | |
with s, p, r | |
return p.id as product, count(distinct r) as seen | |
order by seen limit 20 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment