Question: How many researchers either practice dentistry or are the main subject of A Christmas Carol (the one that is originally aired on CBS)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "researcher" .  { ?e_1 <practiced_by> ?e . ?e_1 <pred:name> "dentistry" .  } UNION { ?e_1 <main_subject> ?e . ?e_1 <pred:name> "A Christmas Carol" . ?e_1 <original_network> ?e_2 . ?e_2 <pred:name> "CBS" .  } }
Program:
function: Find
inputs: dentistry
function: Relate
dependencies: 0
inputs: practiced by
forward
function: FilterConcept
dependencies: 1
inputs: researcher
function: Find
inputs: CBS
function: Relate
dependencies: 3
inputs: original network
backward
function: Find
inputs: A Christmas Carol
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: main subject
forward
function: FilterConcept
dependencies: 7
inputs: researcher
function: Or
dependencies: 2
8
function: Count
dependencies: 9