Question: Which part is applies for the sovereign state whose demonym is كوستاريكي, its marriageable age is 18 years old?
Choices:
adjective
Madeira
DeKalb County
Quebec
Torchwood, season 4
northeastern part
both genders
Williamson County
2nd arrondissement of Lyon
Slope County
Answer: both genders
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "sovereign state" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "كوستاريكي" . ?e <marriageable_age> ?pv . ?pv <pred:unit> "years old" . ?pv <pred:value> "18"^^xsd:double . [ <pred:fact_h> ?e ; <pred:fact_r> <marriageable_age> ; <pred:fact_t> ?pv ] <applies_to_part> ?qpv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
كوستاريكي
function: FilterConcept
dependencies: 1
inputs: sovereign state
function: QueryAttrQualifier
dependencies: 2
inputs: marriageable age
18 years old
applies to part