Question: What is the role of the market town whose GSS code (2011) is W04000494 and its TOID is 7000000000023837?
Choices: community
Intelectual author
civil parish
lead vocalist
Kingdom of Portugal
front man
director
songwriter
soundtrack
London borough
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> "W04000494" . ?e <TOID> ?pv . ?pv <pred:value> "7000000000023837" . [ <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)
W04000494
function: FilterConcept
dependencies: 1
inputs: market town
function: QueryAttrQualifier
dependencies: 2
inputs: TOID
7000000000023837
subject has role
Answer: community