Question: How is the Jewish Tony Curtis linked to Hungarians?
Choices: ethnic group
operating system
inspired by
approved by
source of material
located in the administrative territorial entity
candidacy in election
has parts of the class
dedicated to
subsidiary
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Tony Curtis" . ?e_1 <ethnic_group> ?e_3 . ?e_3 <pred:name> "Jewish people" . ?e_2 <pred:name> "Hungarians" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jewish people
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: Find
inputs: Tony Curtis
function: And
dependencies: 1
2
function: Find
inputs: Hungarians
function: QueryRelation
dependencies: 3
4
Answer: ethnic group