Question: What is the native label of a German state that borders Gelderland?
Choices:
አዲስ አበባ
Belfast
Российская Федерация
Република Молдова
Duisburg
Gibraltar
Nordrhein-Westfalen
Encino
Jamhuuriyadda Federaalka Soomaaliya
State of Wyoming
Program:
function: Find
inputs: Gelderland
function: Relate
dependencies: 0
inputs: shares border with
forward
function: FilterConcept
dependencies: 1
inputs: state of Germany
function: QueryAttr
dependencies: 2
inputs: native label
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "state of Germany" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Gelderland" .  ?e <native_label> ?pv .  }
Answer: Nordrhein-Westfalen