Question: What is the relation between Hannibal (the one that has Julianne Moore as a cast member) with Dino De Laurentiis?
Choices:
shares border with
political ideology
medical condition
filming location
producer
opposite of
licensed to broadcast to
religion
occupant
native language
Answer: producer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hannibal" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Julianne Moore" . ?e_2 <pred:name> "Dino De Laurentiis" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Julianne Moore
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Hannibal
function: And
dependencies: 1
2
function: Find
inputs: Dino De Laurentiis
function: QueryRelation
dependencies: 3
4