Question: How many visual artworks are a part of Rambo (including Rambo: First Blood Part II)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <has_part> ?e . ?e_1 <pred:name> "Rambo" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "Rambo: First Blood Part II" .   }
Program:
function: Find
inputs: Rambo: First Blood Part II
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: Rambo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: has part
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: Count
dependencies: 5