Question: What is the connection between Fayette County (the one whose area is 739 square kilometre) to Lexington (the one that is headed by mayor)?
Choices:
student
Wikidata property
genre
owned by
works in collection
location of formation
capital
material used
official religion
location
Answer: capital
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Fayette County" . ?e_1 <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> "739"^^xsd:double . ?e_2 <pred:name> "Lexington" . ?e_2 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "mayor" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Fayette County
function: FilterNum
dependencies: 0
inputs: area
739 square kilometre
=
function: Find
inputs: mayor
function: Relate
dependencies: 2
inputs: office held by head of government
backward
function: Find
inputs: Lexington
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5