Question: How is Thomas Aquinas related to Paul (the one whose date of birth is 5)?
Choices:
candidacy in election
statistical leader
influenced by
country
industry
license
narrative role
office contested
contains settlement
heritage designation
Answer: influenced by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Thomas Aquinas" . ?e_2 <pred:name> "Paul" . ?e_2 <date_of_birth> ?pv . ?pv <pred:year> 5 . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Thomas Aquinas
function: Find
inputs: Paul
function: FilterYear
dependencies: 1
inputs: date of birth
5
=
function: QueryRelation
dependencies: 0
2