Question: How many movie characters come from the fictional universe of Hulk (the one who is the citizen of the US) ?
Choices:
1
2
3
4
5
6
7
8
9
10
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "film character" . ?e <from_fictional_universe> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "fictional universe" . ?e_2 <from_fictional_universe> ?e_1 . ?e_2 <pred:name> "Hulk" . ?e_2 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" .   }
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Hulk
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: from fictional universe
forward
function: FilterConcept
dependencies: 4
inputs: fictional universe
function: Relate
dependencies: 5
inputs: from fictional universe
backward
function: FilterConcept
dependencies: 6
inputs: film character
function: Count
dependencies: 7