Question: For Tasmania (the one that has the capital Hobart), to which location is it relative as it shares a border with Victoria (the one whose population is 5821300)?
Choices:
northwest
south-southeast
south
north
south-southwest
east
northeast
southwest
west-northwest
consolidated city-county
Program:
function: Find
inputs: Hobart
function: Relate
dependencies: 0
inputs: capital
backward
function: Find
inputs: Tasmania
function: And
dependencies: 1
2
function: Find
inputs: Victoria
function: FilterNum
dependencies: 4
inputs: population
5821300
=
function: QueryRelationQualifier
dependencies: 3
5
inputs: shares border with
direction relative to location
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Tasmania" . ?e_1 <capital> ?e_3 . ?e_3 <pred:name> "Hobart" . ?e_2 <pred:name> "Victoria" . ?e_2 <population> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "5821300"^^xsd:double . ?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 .  }
Answer: north