Question: How many language families are the native language of Lucy Liu or number of speakers is not 2000?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "language family" .  { ?e_1 <native_language> ?e . ?e_1 <pred:name> "Lucy Liu" .  } UNION { ?e <number_of_speakers> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v != "2000"^^xsd:double ) .  } }
Program:
function: Find
inputs: Lucy Liu
function: Relate
dependencies: 0
inputs: native language
forward
function: FilterConcept
dependencies: 1
inputs: language family
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of speakers
2000
!=
function: FilterConcept
dependencies: 4
inputs: language family
function: Or
dependencies: 2
5
function: Count
dependencies: 6