Question: How many guitars are associated with the star Prince, whose career began in 1978?
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> "guitar" . ?e <famous_people> ?e_1 . ?e_1 <pred:name> "Prince" . ?e_1 <work_period_(start)> ?pv . ?pv <pred:year> 1978 .   }
Program:
function: Find
inputs: Prince
function: FilterYear
dependencies: 0
inputs: work period (start)
1978
=
function: Relate
dependencies: 1
inputs: famous people
backward
function: FilterConcept
dependencies: 2
inputs: guitar
function: Count
dependencies: 3