Question: What is the relationship between St. Louis Blues, with Ruby Dee in the cast, and drama film?
Choices:
political alignment
official residence
cites
military conflicts
sport
based on
lifestyle
designated as terrorist by
worshipped by
genre
Program:
function: Find
inputs: Ruby Dee
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: St. Louis Blues
function: And
dependencies: 1
2
function: Find
inputs: drama film
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "St. Louis Blues" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ruby Dee" . ?e_2 <pred:name> "drama film" . ?e_1 ?p ?e_2 .  }
Answer: genre