Question: Emma, with Sophie Thompson as a cast member, is related in what way to literature-based film?
Choices:
follows
officeholder
genre
author
next higher rank
facet of
league
composer
practiced by
place of burial
Program:
function: Find
inputs: Sophie Thompson
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Emma
function: And
dependencies: 1
2
function: Find
inputs: film based on literature
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Emma" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Sophie Thompson" . ?e_2 <pred:name> "film based on literature" . ?e_1 ?p ?e_2 .  }
Answer: genre