Question: What is the role of TOID of 4000000074550040 in relation to a county town where Thomas Hardy (the one that is buried in Westminster Abbey) was deceased?
Choices:
sovereign state
human settlement
town
librarian
Member states of the United Nations
director
singer
soundtrack
lead guitarist
honorary member
Answer: human settlement
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "county town" . ?e_1 <place_of_death> ?e . ?e_1 <pred:name> "Thomas Hardy" . ?e_1 <place_of_burial> ?e_2 . ?e_2 <pred:name> "Westminster Abbey" .  ?e <TOID> ?pv . ?pv <pred:value> "4000000074550040" . [ <pred:fact_h> ?e ; <pred:fact_r> <TOID> ; <pred:fact_t> ?pv ] <subject_has_role> ?qpv .  }
Program:
function: Find
inputs: Westminster Abbey
function: Relate
dependencies: 0
inputs: place of burial
backward
function: Find
inputs: Thomas Hardy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of death
forward
function: FilterConcept
dependencies: 4
inputs: county town
function: QueryAttrQualifier
dependencies: 5
inputs: TOID
4000000074550040
subject has role