Question: How many programming languages are used for artificial intelligence or have the programming paradigm of structured programming?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 4
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "programming language" .  { ?e <use> ?e_1 . ?e_1 <pred:name> "artificial intelligence" .  } UNION { ?e <programming_paradigm> ?e_1 . ?e_1 <pred:name> "structured programming" .  } }
Program:
function: Find
inputs: artificial intelligence
function: Relate
dependencies: 0
inputs: use
backward
function: FilterConcept
dependencies: 1
inputs: programming language
function: Find
inputs: structured programming
function: Relate
dependencies: 3
inputs: programming paradigm
backward
function: FilterConcept
dependencies: 4
inputs: programming language
function: Or
dependencies: 2
5
function: Count
dependencies: 6