Question: What is the connection between St. Johnstone F.C. to Perth (the one whose OS grid reference is NO115235)?
Choices:
has dialect (DEPRECATED)
designated as terrorist by
hair color
destination point
headquarters location
medical treatment
religious order
collection
languages spoken, written or signed
geography of topic
Answer: headquarters location
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "St. Johnstone F.C." . ?e_2 <pred:name> "Perth" . ?e_2 <OS_grid_reference> ?pv . ?pv <pred:value> "NO115235" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: St. Johnstone F.C.
function: Find
inputs: Perth
function: FilterStr
dependencies: 1
inputs: OS grid reference
NO115235
function: QueryRelation
dependencies: 0
2