Question: How many programming languages are Python (the one whose file extension is py) programming language or the application/x-httpd-php media type?
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> "programming language" .  { ?e <programming_language> ?e_1 . ?e_1 <pred:name> "Python" . ?e_1 <file_extension> ?pv . ?pv <pred:value> "py" .  } UNION { ?e <media_type> ?pv . ?pv <pred:value> "application/x-httpd-php" .  } }
Program:
function: Find
inputs: Python
function: FilterStr
dependencies: 0
inputs: file extension
py
function: Relate
dependencies: 1
inputs: programming language
backward
function: FilterConcept
dependencies: 2
inputs: programming language
function: FindAll
function: FilterStr
dependencies: 4
inputs: media type
application/x-httpd-php
function: FilterConcept
dependencies: 5
inputs: programming language
function: Or
dependencies: 3
6
function: Count
dependencies: 7