Question: How many symptoms match a common property of opera or are associated with the notable person called Lady Gaga ?
Choices:
2
3
4
5
6
7
8
9
10
11
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "symptom" .  { ?e <notable_people_with_this_condition> ?e_1 . ?e_1 <pred:name> "Lady Gaga" .  } UNION { ?e_1 <properties_for_this_type> ?e . ?e_1 <pred:name> "opera" .  } }
Program:
function: Find
inputs: Lady Gaga
function: Relate
dependencies: 0
inputs: notable people with this condition
backward
function: FilterConcept
dependencies: 1
inputs: symptom
function: Find
inputs: opera
function: Relate
dependencies: 3
inputs: properties for this type
forward
function: FilterConcept
dependencies: 4
inputs: symptom
function: Or
dependencies: 2
5
function: Count
dependencies: 6