Question: The ethnicity of Clint Eastwood, director of Gran Torino, includes how many ethnic groups?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "ethnic group" . ?e_1 <ethnic_group> ?e . ?e_1 <pred:name> "Clint Eastwood" . ?e_2 <director> ?e_1 . ?e_2 <pred:name> "Gran Torino" .   }
Program:
function: Find
inputs: Gran Torino
function: Relate
dependencies: 0
inputs: director
forward
function: Find
inputs: Clint Eastwood
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: ethnic group
forward
function: FilterConcept
dependencies: 4
inputs: ethnic group
function: Count
dependencies: 5
Answer: 2