Question: How many subscribers does the human that was the spouse of Melanie Griffith (until 1996-01-01) have under the Twitter username DonJohnson?
Choices:
788180
3923649
652498
123188
4114032
587756
22507
101731
25612
10171961
Answer: 25612
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e <spouse> ?e_1 . ?e_1 <pred:name> "Melanie Griffith" . [ <pred:fact_h> ?e ; <pred:fact_r> <spouse> ; <pred:fact_t> ?e_1 ] <end_time> ?qpv_1 . ?qpv_1 <pred:date> "1996-01-01"^^xsd:date . ?e <Twitter_username> ?pv . ?pv <pred:value> "DonJohnson" . [ <pred:fact_h> ?e ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv .  }
Program:
function: Find
inputs: Melanie Griffith
function: Relate
dependencies: 0
inputs: spouse
backward
function: QFilterDate
dependencies: 1
inputs: end time
1996-01-01
=
function: FilterConcept
dependencies: 2
inputs: human
function: QueryAttrQualifier
dependencies: 3
inputs: Twitter username
DonJohnson
number of subscribers