Question: What is the subject of the statement that Romania (that has a diplomatic relationship with Ukraine) shares a border with Moldova?
Choices:
India–Rwanda relations
Moldova–Romania border
Spain–Taiwan relations
Greece–Russia relations
Serbia–Slovenia relations
Kosovo–Turkey relations
Brazil–Cuba relations
Iraq–Serbia relations
Greece–Peru relations
Australia–Qatar relations
Answer: Moldova–Romania border
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Romania" . ?e_1 <diplomatic_relation> ?e_3 . ?e_3 <pred:name> "Ukraine" . ?e_2 <pred:name> "Moldova" . ?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: Ukraine
function: Relate
dependencies: 0
inputs: diplomatic relation
backward
function: Find
inputs: Romania
function: And
dependencies: 1
2
function: Find
inputs: Moldova
function: QueryRelationQualifier
dependencies: 3
4
inputs: shares border with
statement is subject of