2012-11-27 115 views

回答

2

所有我的朋友誰閱讀「書作者」的書:

start me=node(1) 
match me-[:KNOWS]-friend-[:READ]-book-[:WRITTEN_BY]-author 
where author.name='Book Author' 
return friend.name 

和所有我的朋友誰閱讀「書作者」的書籍,有一個等級高於4

start me=node(1) 
match me-[:KNOWS]-friend-[:READ]-book-[:WRITTEN_BY]-author 
where author.name='Book Author' and book.rank? > 4 
return friend.name