Question: Which border does South Dakota have in common with Minnesota, where Saint Paul is the capital?
Choices:
Minnesota–South Dakota border
Denmark–Nicaragua relations
Laos–Malaysia relations
30th Tony Awards
Australia–Malaysia relations
Denmark–Italy relations
Slovakia–United States relations
China–Iraq relations
Liechtenstein–Switzerland relations
Australia–Netherlands relations
Answer: Minnesota–South Dakota border
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Minnesota" . ?e_1 <capital> ?e_3 . ?e_3 <pred:name> "Saint Paul" . ?e_2 <pred:name> "South Dakota" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <statement_is_subject_of> ?qpv .  }
Program:
function: Find
inputs: Saint Paul
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Minnesota
function: And
dependencies: 1
2
function: Find
inputs: South Dakota
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
statement is subject of