Question: How many children did Theodore Roosevelt's male first cousin have?
Choices:
3 son
0
9
6
20
2 daughter
5
7
12
4
Program:
function: Find
inputs: Theodore Roosevelt
function: Relate
dependencies: 0
inputs: relative
backward
function: QFilterStr
dependencies: 1
inputs: type of kinship
male first cousin
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttr
dependencies: 3
inputs: number of children
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <relative> ?e_1 . ?e_1 <pred:name> "Theodore Roosevelt" .  [ <pred:fact_h> ?e ; <pred:fact_r> <relative> ; <pred:fact_t> ?e_1 ] <type_of_kinship> ?qpv . ?qpv <pred:value> "male first cousin" . ?e <number_of_children> ?pv .  }
Answer: 6