Question: What is the relationship between Land of the Lost (the one that has Will Ferrell as a cast member) to dinosaur?
Choices: sports season of league or competition
diplomatic relation
nutrient
series spin-off
producer
based on
contains settlement
place of burial
main subject
medical treatment
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Land of the Lost" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Will Ferrell" . ?e_2 <pred:name> "dinosaur" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Will Ferrell
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Land of the Lost
function: And
dependencies: 1
2
function: Find
inputs: dinosaur
function: QueryRelation
dependencies: 3
4
Answer: main subject