Question: How many operating systems are developed by the agent that is headquartered in Cupertino as of 2018?
Choices:
2
3
4
5
6
7
8
9
10
11
Program:
function: Find
inputs: Cupertino
function: Relate
dependencies: 0
inputs: headquarters location
backward
function: QFilterYear
dependencies: 1
inputs: start time
2018
=
function: FilterConcept
dependencies: 2
inputs: agent
function: Relate
dependencies: 3
inputs: developer
backward
function: FilterConcept
dependencies: 4
inputs: operating system
function: Count
dependencies: 5
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "operating system" . ?e <developer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "agent" . ?e_1 <headquarters_location> ?e_2 . ?e_2 <pred:name> "Cupertino" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <headquarters_location> ; <pred:fact_t> ?e_2 ] <start_time> ?qpv . ?qpv <pred:year> 2018 .   }
Answer: 2