Question: How many subscribers are there for the Twitter username linkinpark belonging to the rock band that has a member named Phoenix (whose profession is musician) starting on the date 2001-01-01?
Choices:
18303
6479343
4685541
1045
10226
14220
561140
200
2306626
2728
Answer: 6479343
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "rock band" . ?e_1 <member_of> ?e . ?e_1 <pred:name> "Phoenix" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "musician" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <member_of> ; <pred:fact_t> ?e ] <start_time> ?qpv_1 . ?qpv_1 <pred:date> "2001-01-01"^^xsd:date . ?e <Twitter_username> ?pv . ?pv <pred:value> "linkinpark" . [ <pred:fact_h> ?e ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv .  }
Program:
function: Find
inputs: musician
function: Relate
dependencies: 0
inputs: occupation
backward
function: Find
inputs: Phoenix
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: member of
forward
function: QFilterDate
dependencies: 4
inputs: start time
2001-01-01
=
function: FilterConcept
dependencies: 5
inputs: rock band
function: QueryAttrQualifier
dependencies: 6
inputs: Twitter username
linkinpark
number of subscribers