Question: What is the connection between Wilson (the one that has Vincent Price as a cast member) to World War I?
Choices:
programming paradigm
penalty
appears in the form of
doctoral advisor
exported to
main subject
use
original film format
father
separated from
Answer: main subject
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Wilson" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Vincent Price" . ?e_2 <pred:name> "World War I" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Vincent Price
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Wilson
function: And
dependencies: 1
2
function: Find
inputs: World War I
function: QueryRelation
dependencies: 3
4