Question: Which person was born in the city that is a part of Prince Edward Island?
Choices:
Jim Brown
Sylvester Stallone
Eric Tsang
Max Fleischer
I. M. Pei
Jack Huston
Johnnie To
Albert Wolsky
Robert Guillaume
John Hughes
Program:
function: Find
inputs: Prince Edward Island
function: Relate
dependencies: 0
inputs: part of
backward
function: FilterConcept
dependencies: 1
inputs: city
function: Relate
dependencies: 2
inputs: place of birth
backward
function: FilterConcept
dependencies: 3
inputs: human
function: What
dependencies: 4
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> "city" . ?e_1 <part_of> ?e_2 . ?e_2 <pred:name> "Prince Edward Island" .   }
Answer: John Hughes