Question: What is the relationship between American Beauty (the one that has Mena Suvari as a cast member) to Alan Ball (the one that uses the language English)?
Choices:
occupation
mouth of the watercourse
official color
Wikidata property
part of
eye color
screenwriter
model item
quotes work
has contributing factor
Program:
function: Find
inputs: Mena Suvari
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: American Beauty
function: And
dependencies: 1
2
function: Find
inputs: English
function: Relate
dependencies: 4
inputs: languages spoken, written or signed
backward
function: Find
inputs: Alan Ball
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "American Beauty" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Mena Suvari" . ?e_2 <pred:name> "Alan Ball" . ?e_2 <languages_spoken,_written_or_signed> ?e_4 . ?e_4 <pred:name> "English" . ?e_1 ?p ?e_2 .  }
Answer: screenwriter