Question: Tell me the relationship from John Adams (who was born on 1960-01-14) to politician.
Choices:
screenwriter
film regional debut venue
penalty
doctoral student
located on astronomical location
owner of
language of work or name
this taxon is source of
child astronomical body
occupation
Program:
function: Find
inputs: John Adams
function: FilterDate
dependencies: 0
inputs: date of birth
1960-01-14
=
function: Find
inputs: politician
function: QueryRelation
dependencies: 1
2
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "John Adams" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1960-01-14"^^xsd:date . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Answer: occupation