Question: What is the link between Beetlejuice (who is a citizen of the United States of America) and radio personality?
Choices:
capital of
properties for this type
diplomatic relation
basin country
occupation
religious order
creator
takes place in fictional universe
approved by
candidate
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Beetlejuice
function: And
dependencies: 1
2
function: Find
inputs: radio personality
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Beetlejuice" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "radio personality" . ?e_1 ?p ?e_2 .  }
Answer: occupation