Question: What is the Dewey Decimal Classification for the country whose male citizen is a Welshman?
Choices:
2--74735
2--431532
2--768
2--9363
2--51
2--782
2--429
2--56948
2--4472
2--452
Answer: 2--429
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "country" . ?e <demonym> ?pv_1 . ?pv_1 <pred:value> "Welshman" . [ <pred:fact_h> ?e ; <pred:fact_r> <demonym> ; <pred:fact_t> ?pv_1 ] <applies_to_part> ?qpv . ?qpv <pred:value> "masculine" . ?e <Dewey_Decimal_Classification> ?pv .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: demonym
Welshman
function: QFilterStr
dependencies: 1
inputs: applies to part
masculine
function: FilterConcept
dependencies: 2
inputs: country
function: QueryAttr
dependencies: 3
inputs: Dewey Decimal Classification