Question: How is Birmingham connected to mayor?
Choices:
part of the series
organizer
academic degree
developer
office held by head of government
relative
licensed to broadcast to
doctoral student
father
feast day
Program:
function: Find
inputs: mayor
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Birmingham
function: And
dependencies: 1
2
function: Find
inputs: mayor
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Birmingham" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "mayor" . ?e_2 <pred:name> "mayor" . ?e_1 ?p ?e_2 .  }
Answer: office held by head of government