Question: Alan Alda or All in the Family earned how many Primetime Emmys?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "Primetime Emmy Award" .  { ?e <winner> ?e_1 . ?e_1 <pred:name> "Alan Alda" .  } UNION { ?e_1 <award_received> ?e . ?e_1 <pred:name> "All in the Family" .  } }
Program:
function: Find
inputs: Alan Alda
function: Relate
dependencies: 0
inputs: winner
backward
function: FilterConcept
dependencies: 1
inputs: Primetime Emmy Award
function: Find
inputs: All in the Family
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: Primetime Emmy Award
function: Or
dependencies: 2
5
function: Count
dependencies: 6