Question: How many television films' narrative location is Egypt (where the life expectancy is 69.444 years) or official website is http://www.labyrinth-tv.com?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television film" .  { ?e <narrative_location> ?e_1 . ?e_1 <pred:name> "Egypt" . ?e_1 <life_expectancy> ?pv . ?pv <pred:unit> "year" . ?pv <pred:value> "69.444"^^xsd:double .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.labyrinth-tv.com" .  } }
Program:
function: Find
inputs: Egypt
function: FilterNum
dependencies: 0
inputs: life expectancy
69.444 year
=
function: Relate
dependencies: 1
inputs: narrative location
backward
function: FilterConcept
dependencies: 2
inputs: television film
function: FindAll
function: FilterStr
dependencies: 4
inputs: official website
http://www.labyrinth-tv.com
function: FilterConcept
dependencies: 5
inputs: television film
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 2