Question: What town, whose TOID is 4000000074552364 (a human settlement), is the birthplace of Joe Jackson (famous for the saxophone)?
Choices:
Royal Tunbridge Wells
Wigan
Macclesfield
South Shields
Blackburn
Doncaster
Wimbledon
Edmonton
Colchester
Burton upon Trent
Answer: Burton upon Trent
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "town" . ?e <TOID> ?pv . ?pv <pred:value> "4000000074552364" . [ <pred:fact_h> ?e ; <pred:fact_r> <TOID> ; <pred:fact_t> ?pv ] <subject_has_role> ?qpv . ?qpv <pred:value> "human settlement" . ?e_1 <place_of_birth> ?e . ?e_1 <pred:name> "Joe Jackson" . ?e_2 <famous_people> ?e_1 . ?e_2 <pred:name> "saxophone" .  }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: TOID
4000000074552364
function: QFilterStr
dependencies: 1
inputs: subject has role
human settlement
function: FilterConcept
dependencies: 2
inputs: town
function: Find
inputs: saxophone
function: Relate
dependencies: 4
inputs: famous people
forward
function: Find
inputs: Joe Jackson
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: place of birth
forward
function: FilterConcept
dependencies: 8
inputs: town
function: And
dependencies: 3
9
function: What
dependencies: 10