Question: What is the relationship between John Davis, borns 1906-01-01, and London, where the Royal College of Music is located?
Choices: father
educated at
based on
instrument
place of birth
manner of death
follows
illustrator
production company
source of material
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Davis" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1906-01-01"^^xsd:date . ?e_2 <pred:name> "London" . ?e_3 <headquarters_location> ?e_2 . ?e_3 <pred:name> "Royal College of Music" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: John Davis
function: FilterDate
dependencies: 0
inputs: date of birth
1906-01-01
=
function: Find
inputs: Royal College of Music
function: Relate
dependencies: 2
inputs: headquarters location
forward
function: Find
inputs: London
function: And
dependencies: 3
4
function: QueryRelation
dependencies: 1
5
Answer: place of birth