Question: How many fictional humans are a notable work of David Henrie or were born in Pittsburgh (which is the narrative location of Hoffa)?
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> "fictional human" .  { ?e_1 <notable_work> ?e . ?e_1 <pred:name> "David Henrie" .  } UNION { ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Pittsburgh" . ?e_2 <narrative_location> ?e_1 . ?e_2 <pred:name> "Hoffa" .  } }
Program:
function: Find
inputs: David Henrie
function: Relate
dependencies: 0
inputs: notable work
forward
function: FilterConcept
dependencies: 1
inputs: fictional human
function: Find
inputs: Hoffa
function: Relate
dependencies: 3
inputs: narrative location
forward
function: Find
inputs: Pittsburgh
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: place of birth
backward
function: FilterConcept
dependencies: 7
inputs: fictional human
function: Or
dependencies: 2
8
function: Count
dependencies: 9
Answer: 0