Question: Which Dunfermline native died prior to 2004?
Choices:
Burl Ives
Gordon Brown
Janis Joplin
Max Fleischer
Richard Gere
Iain Banks
William Henry Harrison
John Adams
Vincente Minnelli
Sylvester Stallone
Program:
function: Find
inputs: Dunfermline
function: Relate
dependencies: 0
inputs: place of birth
backward
function: FilterConcept
dependencies: 1
inputs: human
function: FindAll
function: FilterYear
dependencies: 3
inputs: date of death
2004
<
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <place_of_birth> ?e_1 . ?e_1 <pred:name> "Dunfermline" .  ?e <date_of_death> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2004 ) .  }
Answer: Gordon Brown