Question: What is the connection between Lexington (the one that contains Transylvania University) to mayor?
Choices:
father
office held by head of government
given name
presenter
diplomatic relation
use
platform
military branch
creator
place of origin (Switzerland)
Program:
function: Find
inputs: Transylvania University
function: Relate
dependencies: 0
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Lexington
function: And
dependencies: 1
2
function: Find
inputs: mayor
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Lexington" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_1 . ?e_3 <pred:name> "Transylvania University" . ?e_2 <pred:name> "mayor" . ?e_1 ?p ?e_2 .  }
Answer: office held by head of government