Question: How many metropolitan boroughs are a twinned administrative body of Lille or whose TOID is 7000000000018846?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan borough" .  { ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Lille" .  } UNION { ?e <TOID> ?pv . ?pv <pred:value> "7000000000018846" .  } }
Program:
function: Find
inputs: Lille
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 1
inputs: metropolitan borough
function: FindAll
function: FilterStr
dependencies: 3
inputs: TOID
7000000000018846
function: FilterConcept
dependencies: 4
inputs: metropolitan borough
function: Or
dependencies: 2
5
function: Count
dependencies: 6