Question: Which border does Vermont have in common with Massachusetts, a location of the Appalachian Mountains?
Choices:
Germany–Monaco relations
Lithuania–Romania relations
France–South Korea relations
Austria–Lithuania relations
Philippines–Turkey relations
France–Japan relations
Mali–Mauritania relations
Algeria–United States relations
Bulgaria–Sudan relations
Massachusetts–Vermont border
Answer: Massachusetts–Vermont border
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Vermont" . ?e_2 <pred:name> "Massachusetts" . ?e_3 <located_in_the_administrative_territorial_entity> ?e_2 . ?e_3 <pred:name> "Appalachian Mountains" . ?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: Vermont
function: Find
inputs: Appalachian Mountains
function: Relate
dependencies: 1
inputs: located in the administrative territorial entity
forward
function: Find
inputs: Massachusetts
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
statement is subject of