Question: What is the relationship between Little Nicky, which had Kevin Nealon in the cast, and Happy Madison Productions?
Choices:
conflict
head of state
lyrics by
make-up artist
sponsor
follows
month of the year
source of income
production company
godparent
Answer: production company
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Little Nicky" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Kevin Nealon" . ?e_2 <pred:name> "Happy Madison Productions" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Kevin Nealon
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Little Nicky
function: And
dependencies: 1
2
function: Find
inputs: Happy Madison Productions
function: QueryRelation
dependencies: 3
4