Question: What number of films were received by Max Weber (who was born in Zurich) or inspire Logan (which was set in El Paso)?
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> "film" .  { ?e_1 <award_received> ?e . ?e_1 <pred:name> "Max Weber" . ?e_1 <place_of_birth> ?e_2 . ?e_2 <pred:name> "Zürich" .  } UNION { ?e_1 <inspired_by> ?e . ?e_1 <pred:name> "Logan" . ?e_1 <narrative_location> ?e_2 . ?e_2 <pred:name> "El Paso" .  } }
Program:
function: Find
inputs: Zürich
function: Relate
dependencies: 0
inputs: place of birth
backward
function: Find
inputs: Max Weber
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: film
function: Find
inputs: El Paso
function: Relate
dependencies: 6
inputs: narrative location
backward
function: Find
inputs: Logan
function: And
dependencies: 7
8
function: Relate
dependencies: 9
inputs: inspired by
forward
function: FilterConcept
dependencies: 10
inputs: film
function: Or
dependencies: 5
11
function: Count
dependencies: 12
Answer: 3