Question: What does David Kaye (a cast member of Happy Gilmore) have to do with United States of America?
Choices:
allegiance
quotes work
follows
headquarters location
sexual orientation
source of material
country of citizenship
owned by
field of work
material used
Program:
function: Find
inputs: Happy Gilmore
function: Relate
dependencies: 0
inputs: cast member
forward
function: Find
inputs: David Kaye
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "David Kaye" . ?e_3 <cast_member> ?e_1 . ?e_3 <pred:name> "Happy Gilmore" . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Answer: country of citizenship