Question: What is the connection between Romeo and Juliet (the one that has Jeanne Moreau as a cast member) to Canada?
Choices:
programming language
heritage designation
country of origin
candidacy in election
office contested
production company
draft pick from school
sex or gender
writing system
edition or translation of
Program:
function: Find
inputs: Jeanne Moreau
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Romeo and Juliet
function: And
dependencies: 1
2
function: Find
inputs: Canada
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Romeo and Juliet" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jeanne Moreau" . ?e_2 <pred:name> "Canada" . ?e_1 ?p ?e_2 .  }
Answer: country of origin