Question: What is the connection between Greater Manchester to Oldham (the one that is located in Greater Manchester)?
Choices:
Wikidata property
office held by head of state
military branch
student of
main food source
winner
contains administrative territorial entity
partner
owner of
medical treatment
Program:
function: Find
inputs: Greater Manchester
function: Find
inputs: Greater Manchester
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
backward
function: Find
inputs: Oldham
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Greater Manchester" . ?e_2 <pred:name> "Oldham" . ?e_2 <located_in_the_administrative_territorial_entity> ?e_3 . ?e_3 <pred:name> "Greater Manchester" . ?e_1 ?p ?e_2 .  }
Answer: contains administrative territorial entity