Question: How many superheroes are named after Michelangelo from Italy?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "superhero" . ?e <named_after> ?e_1 . ?e_1 <pred:name> "Michelangelo" . ?e_1 <country_of_citizenship> ?e_2 . ?e_2 <pred:name> "Italy" .   }
Program:
function: Find
inputs: Italy
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Michelangelo
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: named after
backward
function: FilterConcept
dependencies: 4
inputs: superhero
function: Count
dependencies: 5
Answer: 1