Question: What is the relation between To Kill a Mockingbird (whose Dewey Decimal Classification is 813.54) and To Kill a Mockingbird (in which Gregory Peck is a cast member)?
Choices:
place of birth
located in the administrative territorial entity
film release region
color
season starts
director of photography
archives at
part of
studied by
derivative work
Answer: derivative work
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "To Kill a Mockingbird" . ?e_1 <Dewey_Decimal_Classification> ?pv . ?pv <pred:value> "813.54" . ?e_2 <pred:name> "To Kill a Mockingbird" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Gregory Peck" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: To Kill a Mockingbird
function: FilterStr
dependencies: 0
inputs: Dewey Decimal Classification
813.54
function: Find
inputs: Gregory Peck
function: Relate
dependencies: 2
inputs: cast member
backward
function: Find
inputs: To Kill a Mockingbird
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5