Question: New South Wales has which directional border in common with the Victoria led by a member of parliament?
Choices: west-northwest
south
southwest
north-northwest
northwest
consolidated city-county
south-southeast
south-southwest
west
northeast
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "New South Wales" . ?e_2 <pred:name> "Victoria" . ?e_2 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "member of parliament" . ?e_1 <shares_border_with> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <shares_border_with> ; <pred:fact_t> ?e_2 ] <direction_relative_to_location> ?qpv .  }
Program:
function: Find
inputs: New South Wales
function: Find
inputs: member of parliament
function: Relate
dependencies: 1
inputs: office held by head of government
backward
function: Find
inputs: Victoria
function: And
dependencies: 2
3
function: QueryRelationQualifier
dependencies: 0
4
inputs: shares border with
direction relative to location
Answer: south