Question: What is the connection between Hampstead (the one that is the birthplace of Slash) to United Kingdom?
Choices:
contains administrative territorial entity
performer
basic form of government
capital
grants
signatory
country
professorship
airline alliance
Wikidata property
Program:
function: Find
inputs: Slash
function: Relate
dependencies: 0
inputs: place of birth
forward
function: Find
inputs: Hampstead
function: And
dependencies: 1
2
function: Find
inputs: United Kingdom
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hampstead" . ?e_3 <place_of_birth> ?e_1 . ?e_3 <pred:name> "Slash" . ?e_2 <pred:name> "United Kingdom" . ?e_1 ?p ?e_2 .  }
Answer: country