Question: How many kids does a person, who did voice acting for The Lion King (the one whose release region is Ukraine) (the character role of this statement is Ed), have ?
Choices:
7
2 daughter
5
4
12
11
0
6
10
3
Answer: 4
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <voice_actor> ?e . ?e_1 <pred:name> "The Lion King" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Ukraine" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <voice_actor> ; <pred:fact_t> ?e ] <character_role> ?qpv . ?qpv <pred:value> "Ed" . ?e <number_of_children> ?pv .  }
Program:
function: Find
inputs: Ukraine
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: The Lion King
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: voice actor
forward
function: QFilterStr
dependencies: 4
inputs: character role
Ed
function: FilterConcept
dependencies: 5
inputs: human
function: QueryAttr
dependencies: 6
inputs: number of children