Question: Kelsey Grammer was cast as which character in X-Men: The Last Stand?
Choices:
Roxanne Simpson
Richie Roberts
Harry Goldfarb
Niobe
Maggie Simpson
Beast
Rick O'Connell
Robert Baratheon
Elena de la Vega
Rubeus Hagrid
Answer: Beast
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "X-Men: The Last Stand" . ?e_2 <pred:name> "Kelsey Grammer" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Program:
function: Find
inputs: X-Men: The Last Stand
function: Find
inputs: Kelsey Grammer
function: QueryRelationQualifier
dependencies: 0
1
inputs: cast member
character role