Question: How many musicals have Julie Andrews as a cast member or have the genre of musical?
Choices:
3
4
5
6
7
8
9
10
11
12
Program:
function: Find
inputs: Julie Andrews
function: Relate
dependencies: 0
inputs: cast member
backward
function: FilterConcept
dependencies: 1
inputs: musical
function: Find
inputs: musical
function: Relate
dependencies: 3
inputs: genre
backward
function: FilterConcept
dependencies: 4
inputs: musical
function: Or
dependencies: 2
5
function: Count
dependencies: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" .  { ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Julie Andrews" .  } UNION { ?e <genre> ?e_1 . ?e_1 <pred:name> "musical" .  } }
Answer: 4