Question: What is the connection between Randy Jackson (the one that was born in Baton Rouge) and Jackson (the one that is the family name of La Toya Jackson)?
Choices:
student of
family
office held by head of the organisation
appointed by
approved by
editor
general manager
natural product of taxon
opposite of
family name
Answer: family name
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Randy Jackson" . ?e_1 <place_of_birth> ?e_3 . ?e_3 <pred:name> "Baton Rouge" . ?e_2 <pred:name> "Jackson" . ?e_4 <family_name> ?e_2 . ?e_4 <pred:name> "La Toya Jackson" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Baton Rouge
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Randy Jackson
function: And
dependencies: 1
2
function: Find
inputs: La Toya Jackson
function: Relate
dependencies: 4
inputs: family name
forward
function: Find
inputs: Jackson
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7