Question: How many television programs whose official website is http://challenge.mtv.com/ or whose episode count is less than 8100?
Choices:
9
10
11
12
13
14
15
16
17
18
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television program" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://challenge.mtv.com/" .  } UNION { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "8100"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://challenge.mtv.com/
function: FilterConcept
dependencies: 1
inputs: television program
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of episodes
8100
<
function: FilterConcept
dependencies: 4
inputs: television program
function: Or
dependencies: 2
5
function: Count
dependencies: 6