Question: Which mountain range is partially contained by Alabama (which partially contains the Appalachian Mountains) and has a length greater than 200 miles?
Choices:
Adirondack Mountains
Appalachian Mountains
Blue Ridge Mountains
Pennine Alps
Alps
Sierra Nevada
Calendar Girls
Pyrenees
Cascade Range
Himalayas
Program:
function: Find
inputs: Appalachian Mountains
function: Relate
dependencies: 0
inputs: partially contains
backward
function: Find
inputs: Alabama
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: partially contains
forward
function: FilterConcept
dependencies: 4
inputs: mountain range
function: FindAll
function: FilterNum
dependencies: 6
inputs: length
200 mile
>
function: FilterConcept
dependencies: 7
inputs: mountain range
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mountain range" . ?e_1 <partially_contains> ?e . ?e_1 <pred:name> "Alabama" . ?e_1 <partially_contains> ?e_2 . ?e_2 <pred:name> "Appalachian Mountains" .  ?e <length> ?pv . ?pv <pred:unit> "mile" . ?pv <pred:value> ?v . FILTER ( ?v > "200"^^xsd:double ) .  }
Answer: Appalachian Mountains