Question: In the admin location of Manchester, what number of metropolitan boroughs differ from the location of Bernard Hill's birth?
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> "metropolitan borough" . ?e <different_from> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "city" . ?e_2 <place_of_birth> ?e_1 . ?e_2 <pred:name> "Bernard Hill" . [ <pred:fact_h> ?e_2 ; <pred:fact_r> <place_of_birth> ; <pred:fact_t> ?e_1 ] <located_in_the_administrative_territorial_entity> ?qpv . ?qpv <pred:value> "Greater Manchester" .   }
Program:
function: Find
inputs: Bernard Hill
function: Relate
dependencies: 0
inputs: place of birth
forward
function: QFilterStr
dependencies: 1
inputs: located in the administrative territorial entity
Greater Manchester
function: FilterConcept
dependencies: 2
inputs: city
function: Relate
dependencies: 3
inputs: different from
backward
function: FilterConcept
dependencies: 4
inputs: metropolitan borough
function: Count
dependencies: 5