Question: What is the Dewey Decimal Classification for the city of New York that is the birthplace of Mark Williams (the one that was born in Elmira)?
Choices:
2--78956
975.251
2--4945424
2--762
2--431822
2--74778
2--544
46+84616
2--6438
2--59824
Answer: 2--74778
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city of New York" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Mark Williams" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Elmira" .  ?e <Dewey_Decimal_Classification> ?pv .  }
Program:
function: Find
inputs: Elmira
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Mark Williams
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city of New York
function: QueryAttr
dependencies: 5
inputs: Dewey Decimal Classification