Question: What is the relationship between Prague (the one that mainly depicts The Holocaust) and World War II?
Choices:
religious order
patron saint
territory claimed by
medical condition
has contributing factor
head of government
model item
main subject
military casualty classification
place of publication
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Prague" . ?e_1 <main_subject> ?e_3 . ?e_3 <pred:name> "The Holocaust" . ?e_2 <pred:name> "World War II" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: The Holocaust
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: Prague
function: And
dependencies: 1
2
function: Find
inputs: World War II
function: QueryRelation
dependencies: 3
4