Query definitions were migrated to https://github.com/ldbc/ldbc_snb_docs. Please check that for the latest version. 

Example Implementations

For vendor-specific example implementations of these queries refer to the pages below:

 

Q1 - Friends with certain name

Q2 - Recent posts and comments by your friends

Q3 - Friends and friends of friends that have been to countries X and Y

Q4 - New topics

Q5 - New groups

Q6 - Tag co-occurrence

Q7 - Recent likes

Q8 - Recent replies

Q9 - Recent posts and comments by friends or friends of friends

Q10 - Friend recommendation

Q11 - Job referral

Q12 - Expert search

Q13 - Single shortest path

Q14 - Weighted paths

S1 - Person Profile

S2 - Person Recent Messages

S3 - Person Friends

S4 - Message Content

S5 - Message Creator

S6 - Message Forum

S7 - Message Replies

Categorization



I1I2I3.1I3.2I3.3I3.4I4I5I6I7I8I9I10I11I12
PROJECTIONnode attrx xxxxx xxxxxxx

edge attr             x 

GROUP_COUNTx              

subqueriesx    x      x  

expr     sum      sub  

count(*)     xx xx xx x

as     x      x  


               
SUBQUERIES
           xx  


               
FILTERnode attr  xxxxx  x  x  

edge attr             x 

aggr     x         
 exists  xxx x  xx x x

not      x  x  x x

and  xxxxx  x     

or          x    

comparison   xxxx     xx 

between      x        

if            x  


               
TRAVERSALk-hop3 22222 2221223

kleen star          x    


               
SETUNION  xxxx  x    x 

MINUS            x  


               
GROUP_BY
x    xx xx x  x
ORDER_BY
A    DD DDADDAD
LIMIT
x    xx xxxxxxx


               
Virtuosobif:concatx              

bif:dateadd    xx         

bif:month            x  

bif:dayofmonth            x