Question: What is the role of the subject for the TOID 4000000074578838 of the market town whose 2011 GSS code is E04012710?
Choices:
municipality of the Czech Republic
singer
Ukrainian Soviet Socialist Republic
historian
human settlement
Sukhothai Kingdom
civil parish
touring band member
lead guitarist
front man
Answer: human settlement
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "market town" . ?e <GSS_code_(2011)> ?pv_1 . ?pv_1 <pred:value> "E04012710" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074578838" . [ <pred:fact_h> ?e ; <pred:fact_r> <TOID> ; <pred:fact_t> ?pv ] <subject_has_role> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: GSS code (2011)
E04012710
function: FilterConcept
dependencies: 1
inputs: market town
function: QueryAttrQualifier
dependencies: 2
inputs: TOID
4000000074578838
subject has role