Question: How many facilities have a member named Batman (whose date of birth is in 1970) or the official website http://www.nationalgallery.org.uk?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "facility" .  { ?e_1 <member_of> ?e . ?e_1 <pred:name> "Batman" . ?e_1 <date_of_birth> ?pv . ?pv <pred:year> 1970 .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.nationalgallery.org.uk/" .  } }
Program:
function: Find
inputs: Batman
function: FilterYear
dependencies: 0
inputs: date of birth
1970
=
function: Relate
dependencies: 1
inputs: member of
forward
function: FilterConcept
dependencies: 2
inputs: facility
function: FindAll
function: FilterStr
dependencies: 4
inputs: official website
http://www.nationalgallery.org.uk/
function: FilterConcept
dependencies: 5
inputs: facility
function: Or
dependencies: 3
6
function: Count
dependencies: 7
Answer: 1