Question: What is the role of TOID  7000000000020777 in a city located in Gwynedd ?
Choices: state
municipality of the Czech Republic
community
town
Thonburi Kingdom
screenwriter
historian
human settlement
front man
librarian
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <located_in_the_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "Gwynedd" .  ?e <TOID> ?pv . ?pv <pred:value> "7000000000020777" . [ <pred:fact_h> ?e ; <pred:fact_r> <TOID> ; <pred:fact_t> ?pv ] <subject_has_role> ?qpv .  }
Program:
function: Find
inputs: Gwynedd
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: city
function: QueryAttrQualifier
dependencies: 2
inputs: TOID
7000000000020777
subject has role
Answer: community