Question: What is the number of airlines that have New York City as the headquarter location or the market capitalization not equal to 910000000000 United States dollar
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "airline" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "New York City" .  } UNION { ?e <market_capitalization> ?pv . ?pv <pred:unit> "United States dollar" . ?pv <pred:value> ?v . FILTER ( ?v != "910000000000"^^xsd:double ) .  } }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: airline
function: FindAll
function: FilterNum
dependencies: 3
inputs: market capitalization
910000000000 United States dollar
!=
function: FilterConcept
dependencies: 4
inputs: airline
function: Or
dependencies: 2
5
function: Count
dependencies: 6