Question: Does Quebec (that shares a border with New Hampshire) or Ontario (that has Elizabeth II as head of state) have the lower percent of water area?
Choices:
British Columbia
New Brunswick
Quebec
Ontario
Newfoundland and Labrador
Manitoba
Nova Scotia
Alberta
Prince Edward Island
Saskatchewan
Answer: Quebec
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quebec" . ?e <shares_border_with> ?e_1 . ?e_1 <pred:name> "New Hampshire" .   } UNION { ?e <pred:name> "Ontario" . ?e <head_of_state> ?e_2 . ?e_2 <pred:name> "Elizabeth II" .  } ?e <water_as_percent_of_area> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: New Hampshire
function: Relate
dependencies: 0
inputs: shares border with
backward
function: Find
inputs: Quebec
function: And
dependencies: 1
2
function: Find
inputs: Elizabeth II
function: Relate
dependencies: 4
inputs: head of state
backward
function: Find
inputs: Ontario
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: water as percent of area
less