Question: How many provinces of Canada are the twinned administrative body of Kingston (whose area is 450.39 square kilometers) or have the official website http://www.gouv.qc.ca/?
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> "province of Canada" .  { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Kingston" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "450.39"^^xsd:double .  } UNION { ?e <official_website> ?pv . ?pv <pred:value> "http://www.gouv.qc.ca/" .  } }
Program:
function: Find
inputs: Kingston
function: FilterNum
dependencies: 0
inputs: area
450.39 square kilometre
=
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 2
inputs: province of Canada
function: FindAll
function: FilterStr
dependencies: 4
inputs: official website
http://www.gouv.qc.ca/
function: FilterConcept
dependencies: 5
inputs: province of Canada
function: Or
dependencies: 3
6
function: Count
dependencies: 7