Question: Which has the most area among the Canada provinces that border Montana that contains the administrative division Flathead County?
Choices:
Saskatchewan
British Columbia
Nova Scotia
Prince Edward Island
Ontario
Alberta
Newfoundland and Labrador
Manitoba
Quebec
New Brunswick
Answer: British Columbia
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "province of Canada" . ?e_1 <shares_border_with> ?e . ?e_1 <pred:name> "Montana" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Flathead County" .  ?e <area> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Flathead County
function: Relate
dependencies: 0
inputs: contains administrative territorial entity
backward
function: Find
inputs: Montana
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: shares border with
forward
function: FilterConcept
dependencies: 4
inputs: province of Canada
function: SelectAmong
dependencies: 5
inputs: area
largest