Question: How many scientists belong to the main subject of Ned Kelly (the one that has Rachel Griffiths as a cast member) and also carry 2122 as their ISCO occupation code?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 0
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "scientist" . ?e_1 <main_subject> ?e . ?e_1 <pred:name> "Ned Kelly" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Rachel Griffiths" .  ?e <ISCO_occupation_code> ?pv . ?pv <pred:value> "2122" .  }
Program:
function: Find
inputs: Rachel Griffiths
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Ned Kelly
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: main subject
forward
function: FilterConcept
dependencies: 4
inputs: scientist
function: FindAll
function: FilterStr
dependencies: 6
inputs: ISCO occupation code
2122
function: FilterConcept
dependencies: 7
inputs: scientist
function: And
dependencies: 5
8
function: Count
dependencies: 9