45VUKIB2U2QRDN44SCXQJIR6IKZ7VVVKWA5333ISGPNOPWBOQGHAC
def word_sentence(word) do
res =
Bolt.Sips.query!(
Bolt.Sips.conn(),
"""
MATCH (w:Word {word: $word})-[:OF_SENTENCE]-(s:Sentence)
WITH collect(s) as sentences
WITH apoc.coll.randomItem(sentences) as sentence
return sentence.text as text
""",
%{word: word}
)
[text] = res["text"]
text
end