Question: How many metropolitan areas are served by the Los Angeles International Airport or are the headquarters of the New York Giants?
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "metropolitan area" .  { ?e_1 <place_served_by_transport_hub> ?e . ?e_1 <pred:name> "Los Angeles International Airport" .  } UNION { ?e_1 <headquarters_location> ?e . ?e_1 <pred:name> "New York Giants" .  } }
Program:
function: Find
inputs: Los Angeles International Airport
function: Relate
dependencies: 0
inputs: place served by transport hub
forward
function: FilterConcept
dependencies: 1
inputs: metropolitan area
function: Find
inputs: New York Giants
function: Relate
dependencies: 3
inputs: headquarters location
forward
function: FilterConcept
dependencies: 4
inputs: metropolitan area
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2