Question: What is the role of TOID (4000000074574269) regarding a city whose local dialing code is 01872 ?
Choices:
distributor
librarian
founding member
human settlement
songwriter
town
front man
lead vocalist
Kingdom of Portugal
primary body
Answer: human settlement
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <local_dialing_code> ?pv_1 . ?pv_1 <pred:value> "01872" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074574269" . [ <pred:fact_h> ?e ; <pred:fact_r> <TOID> ; <pred:fact_t> ?pv ] <subject_has_role> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: local dialing code
01872
function: FilterConcept
dependencies: 1
inputs: city
function: QueryAttrQualifier
dependencies: 2
inputs: TOID
4000000074574269
subject has role