Question: What is the connection between The Man in the Iron Mask (the one that has Alan Hale as a cast member) to drama film?
Choices:
kit supplier
airline hub
continent
genre
stated in
collection
record label
doctoral student
talk show guest
partially contains
Answer: genre
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "The Man in the Iron Mask" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Alan Hale" . ?e_2 <pred:name> "drama film" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Alan Hale
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: The Man in the Iron Mask
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: QueryRelation
dependencies: 3
4