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