Question: How many airlines operate the aircraft functional class by Pan Am whose from New York City?
Choices:
0
1
2
3
4
5
6
7
8
9
Program:
function: Find
inputs: New York City
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: Find
inputs: Pan Am
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: item operated
forward
function: FilterConcept
dependencies: 4
inputs: aircraft functional class
function: Relate
dependencies: 5
inputs: item operated
backward
function: FilterConcept
dependencies: 6
inputs: airline
function: Count
dependencies: 7
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "airline" . ?e <item_operated> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "aircraft functional class" . ?e_2 <item_operated> ?e_1 . ?e_2 <pred:name> "Pan Am" . ?e_2 <headquarters_location> ?e_3 . ?e_3 <pred:name> "New York City" .   }
Answer: 1