Question: What administrative territorial entity has the administrative division City of London, and is different from Greater London?
Choices:
Lee County
Cass County
United States Virgin Islands
San Juan County
African Union
Orange County
London
Washoe County
Kent County
Greene County
Program:
function: Find
inputs: City of London
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 1
inputs: administrative territorial entity
function: Find
inputs: Greater London
function: Relate
dependencies: 3
inputs: different from
forward
function: FilterConcept
dependencies: 4
inputs: administrative territorial entity
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "administrative territorial entity" . ?e <contains_administrative_territorial_entity> ?e_1 . ?e_1 <pred:name> "City of London" .  ?e_2 <different_from> ?e . ?e_2 <pred:name> "Greater London" .  }
Answer: London