Question: What is the number of television channels whose beginning date is before 1997 or official website is http://www.mtv.com/mtv2?
Choices:
4
5
6
7
8
9
10
11
12
13
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television channel" .  { ?e <inception> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1997 ) .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.mtv.com/mtv2" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: inception
1997
<
function: FilterConcept
dependencies: 1
inputs: television channel
function: FindAll
function: FilterStr
dependencies: 3
inputs: official website
http://www.mtv.com/mtv2
function: FilterConcept
dependencies: 4
inputs: television channel
function: Or
dependencies: 2
5
function: Count
dependencies: 6