Question: Which human is in the ethnic group of Scottish Americans and is a cast member of The Flintstones (which was nominated for a Golden Raspberry Award for Worst Supporting Actress)?
Choices:
James K. Polk
Gregory Peck
Kyle MacLachlan
David Carradine
Ben Affleck
Halle Berry
James Monroe
Jack Black
John Goodman
Elizabeth Taylor
Program:
function: Find
inputs: Scottish American
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Golden Raspberry Award for Worst Supporting Actress
function: Relate
dependencies: 3
inputs: nominated for
backward
function: Find
inputs: The Flintstones
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: cast member
forward
function: FilterConcept
dependencies: 7
inputs: human
function: And
dependencies: 2
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "Scottish American" .  ?e_2 <cast_member> ?e . ?e_2 <pred:name> "The Flintstones" . ?e_2 <nominated_for> ?e_3 . ?e_3 <pred:name> "Golden Raspberry Award for Worst Supporting Actress" .  }
Answer: Kyle MacLachlan