Question: Which writer is the occupation of Barbra Streisand and Paul Weller (who is famous for acoustic music)?
Choices:
samurai
playwright
environmentalist
record producer
Gulzar
poet
lead vocalist
all-rounder
small forward
singer-songwriter
Program:
function: Find
inputs: Barbra Streisand
function: Relate
dependencies: 0
inputs: occupation
forward
function: FilterConcept
dependencies: 1
inputs: writer
function: Find
inputs: acoustic music
function: Relate
dependencies: 3
inputs: famous people
forward
function: Find
inputs: Paul Weller
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: occupation
forward
function: FilterConcept
dependencies: 7
inputs: writer
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "writer" . ?e_1 <occupation> ?e . ?e_1 <pred:name> "Barbra Streisand" .  ?e_2 <occupation> ?e . ?e_2 <pred:name> "Paul Weller" . ?e_3 <famous_people> ?e_2 . ?e_3 <pred:name> "acoustic music" .  }
Answer: singer-songwriter