Question: The Three Musketeers, featuring Lon Chaney Jr. as a cast member, has what connection to the genre literature-based film?
Choices:
director of photography
dedicated to
edition or translation of
source of material
narrative role
basic form of government
genre
operating area
languages spoken, written or signed
subsidiary
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Three Musketeers" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Lon Chaney Jr." . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Lon Chaney Jr.
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Three Musketeers
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4