Question: Tell me the number of airlines that has New York City has a headquarter location or that has the legal form limited company.
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> "airline" .  { ?e <headquarters_location> ?e_1 . ?e_1 <pred:name> "New York City" .  } UNION { ?e <legal_form> ?e_1 . ?e_1 <pred:name> "limited company" .  } }
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: FilterConcept
dependencies: 1
inputs: airline
function: Find
inputs: limited company
function: Relate
dependencies: 3
inputs: legal form
backward
function: FilterConcept
dependencies: 4
inputs: airline
function: Or
dependencies: 2
5
function: Count
dependencies: 6