Question: How many states have a citizen named Tony Plana or are the distribution region of Inside Deep Throat?
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> "state" .  { ?e_1 <country_of_citizenship> ?e . ?e_1 <pred:name> "Tony Plana" .  } UNION { ?e_1 <film_distribute_region> ?e . ?e_1 <pred:name> "Inside Deep Throat" .  } }
Program:
function: Find
inputs: Tony Plana
function: Relate
dependencies: 0
inputs: country of citizenship
forward
function: FilterConcept
dependencies: 1
inputs: state
function: Find
inputs: Inside Deep Throat
function: Relate
dependencies: 3
inputs: film distribute region
forward
function: FilterConcept
dependencies: 4
inputs: state
function: Or
dependencies: 2
5
function: Count
dependencies: 6