Question: How many miniseries are there that derive Battlestar Galactica or that depict AIDS?
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> "miniseries" .  { ?e_1 <based_on> ?e . ?e_1 <pred:name> "Battlestar Galactica" . ?e_1 <producer> ?e_2 . ?e_2 <pred:name> "Ronald D. Moore" .  } UNION { ?e <depicts> ?e_1 . ?e_1 <pred:name> "AIDS" .  } }
Program:
function: Find
inputs: Ronald D. Moore
function: Relate
dependencies: 0
inputs: producer
backward
function: Find
inputs: Battlestar Galactica
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: FilterConcept
dependencies: 4
inputs: miniseries
function: Find
inputs: AIDS
function: Relate
dependencies: 6
inputs: depicts
backward
function: FilterConcept
dependencies: 7
inputs: miniseries
function: Or
dependencies: 5
8
function: Count
dependencies: 9