Question: How many capitals have the official website of http://www.ndmc.gov.in/ or the patron saint of Marc Anthony (the one whose height is 170 centimetres)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" .  { ?e <official_website> ?pv . ?pv <pred:value> "http://www.ndmc.gov.in/" .  } UNION { ?e <patron_saint> ?e_1 . ?e_1 <pred:name> "Marc Anthony" . ?e_1 <height> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> "170"^^xsd:double .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official website
http://www.ndmc.gov.in/
function: FilterConcept
dependencies: 1
inputs: capital
function: Find
inputs: Marc Anthony
function: FilterNum
dependencies: 3
inputs: height
170 centimetre
=
function: Relate
dependencies: 4
inputs: patron saint
backward
function: FilterConcept
dependencies: 5
inputs: capital
function: Or
dependencies: 2
6
function: Count
dependencies: 7