Question: How many metropolitan borough don't have 3 billion people living there or do not match with Rotherham (headquarter location of Rotherham United F.C.) ?
Choices:
7
8
9
10
11
12
13
14
15
16
Answer: 16
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" .  { ?e <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "3000000000"^^xsd:double ) .  } UNION { ?e_1 <different_from> ?e . ?e_1 <pred:name> "Rotherham" . ?e_2 <headquarters_location> ?e_1 . ?e_2 <pred:name> "Rotherham United F.C." .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: population
3000000000
!=
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: Find
inputs: Rotherham United F.C.
function: Relate
dependencies: 3
inputs: headquarters location
forward
function: Find
inputs: Rotherham
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: different from
forward
function: FilterConcept
dependencies: 7
inputs: metropolitan borough
function: Or
dependencies: 2
8
function: Count
dependencies: 9