Question: How many feature movies were written by Edgar Rice Burroughs or named after Prince of Persia: The Sands of Time (the one that is released for Microsoft Windows) ?
Choices:
1
2
3
4
5
6
7
8
9
10
Program:
function: Find
inputs: Edgar Rice Burroughs
function: Relate
dependencies: 0
inputs: after a work by
backward
function: FilterConcept
dependencies: 1
inputs: feature film
function: Find
inputs: Microsoft Windows
function: Relate
dependencies: 3
inputs: platform
backward
function: Find
inputs: Prince of Persia: The Sands of Time
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: named after
backward
function: FilterConcept
dependencies: 7
inputs: feature film
function: Or
dependencies: 2
8
function: Count
dependencies: 9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "feature film" .  { ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Edgar Rice Burroughs" .  } UNION { ?e <named_after> ?e_1 . ?e_1 <pred:name> "Prince of Persia: The Sands of Time" . ?e_1 <platform> ?e_2 . ?e_2 <pred:name> "Microsoft Windows" .  } }
Answer: 2