Question: What is the number of airlines that are established in Fort Worth (whose postal codes are 76180–76182) or have the Westfield Group hub airport?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "airline" .  { ?e <location_of_formation> ?e_1 . ?e_1 <pred:name> "Fort Worth" . ?e_1 <postal_code> ?pv . ?pv <pred:value> "76180–76182" .  } UNION { ?e <airline_hub> ?e_1 . ?e_1 <pred:name> "Westfield Group" .  } }
Program:
function: Find
inputs: Fort Worth
function: FilterStr
dependencies: 0
inputs: postal code
76180–76182
function: Relate
dependencies: 1
inputs: location of formation
backward
function: FilterConcept
dependencies: 2
inputs: airline
function: Find
inputs: Westfield Group
function: Relate
dependencies: 4
inputs: airline hub
backward
function: FilterConcept
dependencies: 5
inputs: airline
function: Or
dependencies: 3
6
function: Count
dependencies: 7