Question: Of Tasmania that's headed by a premier which shares a border with the Victoria that's subreddit is vic, which location is it relative to?
Choices:
south-southwest
north-northwest
consolidated city-county
west
north
southwest
south
south-southeast
northwest
east
Answer: north
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tasmania" . ?e_1 <office_held_by_head_of_government> ?e_3 . ?e_3 <pred:name> "premier" . ?e_2 <pred:name> "Victoria" . ?e_2 <subreddit> ?pv . ?pv <pred:value> "vic" . ?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: premier
function: Relate
dependencies: 0
inputs: office held by head of government
backward
function: Find
inputs: Tasmania
function: And
dependencies: 1
2
function: Find
inputs: Victoria
function: FilterStr
dependencies: 4
inputs: subreddit
vic
function: QueryRelationQualifier
dependencies: 3
5
inputs: shares border with
direction relative to location