Question: What part of Colorado, which is in the contiguous United States, borders Oklahoma?
Choices: Algeria–Ukraine relations
Macau–United States relations
Morocco–United Kingdom relations
Kuwait–Taiwan relations
Indonesia–South Africa relations
Colorado–Oklahoma border
Monaco–United States relations
Angola–Portugal relations
Israel–Sweden relations
Iceland–Latvia relations
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Colorado" . ?e_1 <part_of> ?e_3 . ?e_3 <pred:name> "contiguous United States" . ?e_2 <pred:name> "Oklahoma" . ?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: contiguous United States
function: Relate
dependencies: 0
inputs: part of
backward
function: Find
inputs: Colorado
function: And
dependencies: 1
2
function: Find
inputs: Oklahoma
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
statement is subject of
Answer: Colorado–Oklahoma border