Question: How many visual artworks contain Catwoman who was created by Bob Kane?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Catwoman" . ?e_1 <creator> ?e_2 . ?e_2 <pred:name> "Bob Kane" .   }
Program:
function: Find
inputs: Bob Kane
function: Relate
dependencies: 0
inputs: creator
backward
function: Find
inputs: Catwoman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
forward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: Count
dependencies: 5