Question: Which city has the official name New York and has 12707 subscribers under the subreddit newyorkcity?
Choices:
Chihuahua
Bergen
New York City
Kilkenny
Trieste
Cork
Kingston
Abidjan
Cairo
Santo Domingo
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: official name
New York
function: FilterConcept
dependencies: 1
inputs: city
function: FindAll
function: FilterStr
dependencies: 3
inputs: subreddit
newyorkcity
function: QFilterNum
dependencies: 4
inputs: number of subscribers
12707
=
function: FilterConcept
dependencies: 5
inputs: city
function: And
dependencies: 2
6
function: What
dependencies: 7
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <official_name> ?pv . ?pv <pred:value> "New York" . ?e <subreddit> ?pv_1 . ?pv_1 <pred:value> "newyorkcity" . [ <pred:fact_h> ?e ; <pred:fact_r> <subreddit> ; <pred:fact_t> ?pv_1 ] <number_of_subscribers> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "12707"^^xsd:double .  }
Answer: New York City