Question: For John Goodman (the one that wins Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture), what is his character role as a cast member in the work The Flintstones (the one that mainly depicts dinosaur)?
Choices:
Kitty Kiernan
Prince Barin
Severus Snape
William Wallace
Fred Flintstone
Meriadoc Brandybuck
Sam Seaborn
Domino Vitali
Zed
Julie Mayer
Answer: Fred Flintstone
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Flintstones" . ?e_1 <main_subject> ?e_3 . ?e_3 <pred:name> "dinosaur" . ?e_2 <pred:name> "John Goodman" . ?e_4 <winner> ?e_2 . ?e_4 <pred:name> "Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture" . ?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: dinosaur
function: Relate
dependencies: 0
inputs: main subject
backward
function: Find
inputs: The Flintstones
function: And
dependencies: 1
2
function: Find
inputs: Screen Actors Guild Award for Outstanding Performance by a Cast in a Motion Picture
function: Relate
dependencies: 4
inputs: winner
forward
function: Find
inputs: John Goodman
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: cast member
character role