Question: What number of metropolitan boroughs contain the capital of Rotherham, which has an official website at http://www.rotherham.gov.uk, or have an area under 7800 square miles?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" .  { ?e <area> ?pv . ?pv <pred:unit> "square mile" . ?pv <pred:value> ?v . FILTER ( ?v < "7800"^^xsd:double ) .  } UNION { ?e <capital> ?e_1 . ?e_1 <pred:name> "Rotherham" . ?e_1 <official_website> ?pv . ?pv <pred:value> "http://www.rotherham.gov.uk" .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
7800 square mile
<
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Find
inputs: Rotherham
function: FilterStr
dependencies: 3
inputs: official website
http://www.rotherham.gov.uk
function: Relate
dependencies: 4
inputs: capital
backward
function: FilterConcept
dependencies: 5
inputs: metropolitan borough
function: Or
dependencies: 2
6
function: Count
dependencies: 7