Question: How many fictional professions have the eye color of blue (the color of Ashlee Simpson's eyes) or have the native language name "Rogue"?
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> "fictional profession" .  { ?e <eye_color> ?e_1 . ?e_1 <pred:name> "blue" . ?e_2 <eye_color> ?e_1 . ?e_2 <pred:name> "Ashlee Simpson" .  } UNION { ?e <name_in_native_language> ?pv . ?pv <pred:value> "Rogue" .  } }
Program:
function: Find
inputs: Ashlee Simpson
function: Relate
dependencies: 0
inputs: eye color
forward
function: Find
inputs: blue
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: eye color
backward
function: FilterConcept
dependencies: 4
inputs: fictional profession
function: FindAll
function: FilterStr
dependencies: 6
inputs: name in native language
Rogue
function: FilterConcept
dependencies: 7
inputs: fictional profession
function: Or
dependencies: 5
8
function: Count
dependencies: 9
Answer: 2