Question: How is Love Affair starring Harold Ramis related to Garry Shandling?
Choices:
twinned administrative body
Wikidata property
has quality
illustrator
cast member
designed to carry
art director
collection
candidate
partner
Program:
function: Find
inputs: Harold Ramis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Love Affair
function: And
dependencies: 1
2
function: Find
inputs: Garry Shandling
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Love Affair" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Harold Ramis" . ?e_2 <pred:name> "Garry Shandling" . ?e_1 ?p ?e_2 .  }
Answer: cast member