Question: Which person is Italian American as an ethnic group and is a cast member of Joan of Arc (the one that has Shirley MacLaine as a cast member)?
Choices:
Joe Pantoliano
Robert Loggia
Frank Sinatra
Olympia Dukakis
Powers Boothe
Neil Patrick Harris
Giovanni Ribisi
Peter O'Toole
Jack Nicholson
Danny DeVito
Answer: Robert Loggia
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <ethnic_group> ?e_1 . ?e_1 <pred:name> "Italian American" .  ?e_2 <cast_member> ?e . ?e_2 <pred:name> "Joan of Arc" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Shirley MacLaine" .  }
Program:
function: Find
inputs: Italian American
function: Relate
dependencies: 0
inputs: ethnic group
backward
function: FilterConcept
dependencies: 1
inputs: human
function: Find
inputs: Shirley MacLaine
function: Relate
dependencies: 3
inputs: cast member
backward
function: Find
inputs: Joan of Arc
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