Question: How many Screen Actors Guild Awards have been won between Helena Bonham Carter and Boston Legal?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Screen Actors Guild Award" .  { ?e_1 <nominated_for> ?e . ?e_1 <pred:name> "Boston Legal" .  } UNION { ?e <winner> ?e_1 . ?e_1 <pred:name> "Helena Bonham Carter" .  } }
Program:
function: Find
inputs: Boston Legal
function: Relate
dependencies: 0
inputs: nominated for
forward
function: FilterConcept
dependencies: 1
inputs: Screen Actors Guild Award
function: Find
inputs: Helena Bonham Carter
function: Relate
dependencies: 3
inputs: winner
backward
function: FilterConcept
dependencies: 4
inputs: Screen Actors Guild Award
function: Or
dependencies: 2
5
function: Count
dependencies: 6