Question: The Kevin McCarthy born on 1971-06-29 has what connection to the role of politician?
Choices:
properties for this type
country of citizenship
film crew member
occupation
use
worshipped by
head of government
official residence
terminus
producer
Answer: occupation
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Kevin McCarthy" . ?e_1 <date_of_birth> ?pv . ?pv <pred:date> "1971-06-29"^^xsd:date . ?e_2 <pred:name> "politician" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Kevin McCarthy
function: FilterDate
dependencies: 0
inputs: date of birth
1971-06-29
=
function: Find
inputs: politician
function: QueryRelation
dependencies: 1
2