Question: How many nonprofit organization awards were received by someone whose Twitter username is johnmellencamp (with 78,483 subscribers) ?
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> "nonprofit organization" . ?e_1 <award_received> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <Twitter_username> ?pv . ?pv <pred:value> "johnmellencamp" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv . ?qpv <pred:unit> "1" . ?qpv <pred:value> "78483"^^xsd:double .   }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Twitter username
johnmellencamp
function: QFilterNum
dependencies: 1
inputs: number of subscribers
78483
=
function: FilterConcept
dependencies: 2
inputs: human
function: Relate
dependencies: 3
inputs: award received
forward
function: FilterConcept
dependencies: 4
inputs: nonprofit organization
function: Count
dependencies: 5