Question: What is the character role of Malcolm McDowell as a cast member of Halloween whose box office is 80253908 United States dollars?
Choices:
Warren Worthington III
Hermes Conrad
Carl Gustav Jung
Robert Clayton Dean
Lex Luthor
Samuel Loomis
Calhoun
William Hudson
Bert
Carnage
Program:
function: Find
inputs: Halloween
function: FilterNum
dependencies: 0
inputs: box office
80253908 United States dollar
=
function: Find
inputs: Malcolm McDowell
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Halloween" . ?e_1 <box_office> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> "80253908"^^xsd:double . ?e_2 <pred:name> "Malcolm McDowell" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Samuel Loomis