Question: Which city was the lawyer Edward Woodward born?
Choices:
London
Paramaribo
Bergen
Trieste
New York City
Ballarat
Patna
Scarborough
Kingston
Cork
Program:
function: Find
inputs: lawyer
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Edward Woodward
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: place of birth
forward
function: FilterConcept
dependencies: 4
inputs: city
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Edward Woodward" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "lawyer" .   }
Answer: Ballarat