Question: How many museums are the filming locations of Skyfall (whose release region is Thailand) or are titled Museo Nacional del Prado?
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> "museum" .  { ?e_1 <filming_location> ?e . ?e_1 <pred:name> "Skyfall" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Thailand" .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Museo Nacional del Prado" .  } }
Program:
function: Find
inputs: Thailand
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Skyfall
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: filming location
forward
function: FilterConcept
dependencies: 4
inputs: museum
function: FindAll
function: FilterStr
dependencies: 6
inputs: title
Museo Nacional del Prado
function: FilterConcept
dependencies: 7
inputs: museum
function: Or
dependencies: 5
8
function: Count
dependencies: 9