Question: How is Rhineland-Palatinate related to Lorraine, which borders Rhineland-Palatinate?
Choices: opposite of
native language
professional or sports partner
penalty
shares border with
territory overlaps
derivative work
chief executive officer
main food source
foundational text
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Rhineland-Palatinate" . ?e_2 <pred:name> "Lorraine" . ?e_2 <shares_border_with> ?e_3 . ?e_3 <pred:name> "Rhineland-Palatinate" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Rhineland-Palatinate
function: Find
inputs: Rhineland-Palatinate
function: Relate
dependencies: 1
inputs: shares border with
backward
function: Find
inputs: Lorraine
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: shares border with