Question: How many sciences study volcanos or study artificial intelligence?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "science" .  { ?e_1 <studied_by> ?e . ?e_1 <pred:name> "volcano" .  } UNION { ?e <studies> ?e_1 . ?e_1 <pred:name> "artificial intelligence" .  } }
Program:
function: Find
inputs: volcano
function: Relate
dependencies: 0
inputs: studied by
forward
function: FilterConcept
dependencies: 1
inputs: science
function: Find
inputs: artificial intelligence
function: Relate
dependencies: 3
inputs: studies
backward
function: FilterConcept
dependencies: 4
inputs: science
function: Or
dependencies: 2
5
function: Count
dependencies: 6