Question: What person was born in the sovereign state containing the Saskatchewan administrative division (that shares a border with Alberta)?
Choices:
Tim Armstrong
Ken Ralston
Charles Boyer
James Stewart
Danny McBride
Tony Scott
Mark Kirkland
Dave Chappelle
Scott Lobdell
Aaron Shure
Program:
function: Find
inputs: Alberta
function: Relate
dependencies: 0
inputs: shares border with
forward
function: Find
inputs: Saskatchewan
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: contains administrative territorial entity
backward
function: FilterConcept
dependencies: 4
inputs: sovereign state
function: Relate
dependencies: 5
inputs: place of birth
backward
function: FilterConcept
dependencies: 6
inputs: human
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "sovereign state" . ?e_1 <contains_administrative_territorial_entity> ?e_2 . ?e_2 <pred:name> "Saskatchewan" . ?e_3 <shares_border_with> ?e_2 . ?e_3 <pred:name> "Alberta" .   }
Answer: James Stewart