Question: How does the profession of lawyer have a relation to Henry King, born 1790-07-06?
Choices:
basin country
seed team
rector
significant event
medical treatment
is a list of
occupation
natural product of taxon
affiliation
performer
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Henry King" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1790-07-06"^^xsd:date . ?e_2 <pred:name> "lawyer" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Henry King
function: FilterDate
dependencies: 0
inputs: date of birth
1790-07-06
=
function: Find
inputs: lawyer
function: QueryRelation
dependencies: 1
2