Question: How many people have the same sexual orientation as Amanda Seyfried ?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <sexual_orientation> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "activity" . ?e_2 <sexual_orientation> ?e_1 . ?e_2 <pred:name> "Amanda Seyfried" .   }
Program:
function: Find
inputs: Amanda Seyfried
function: Relate
dependencies: 0
inputs: sexual orientation
forward
function: FilterConcept
dependencies: 1
inputs: activity
function: Relate
dependencies: 2
inputs: sexual orientation
backward
function: FilterConcept
dependencies: 3
inputs: human
function: Count
dependencies: 4
Answer: 6