Question: How many kids does Harry Gregson-Williams, the composer of Mulan, have got ?
Choices:
1 son
8
5
2 daughter
20
10
2
3 son
9
4
Program:
function: Find
inputs: Harry Gregson-Williams
function: Relate
dependencies: 0
inputs: composer
backward
function: Find
inputs: Mulan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: QueryAttr
dependencies: 5
inputs: number of children
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <composer> ?e . ?e_1 <pred:name> "Mulan" . ?e_1 <composer> ?e_2 . ?e_2 <pred:name> "Harry Gregson-Williams" .  ?e <number_of_children> ?pv .  }
Answer: 5