Question: In terms of the film Iron Man—which had a Canada release region—and the cast member who played Guard in the film and has the Twitter username of tmorello, how many subscribers are there to his account?
Choices:
3884
540918
29470
17782
143332
584
1539395
201160
1112616
14792
Answer: 540918
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Iron Man" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Canada" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e ] <character_role> ?qpv_1 . ?qpv_1 <pred:value> "Guard" . ?e <Twitter_username> ?pv . ?pv <pred:value> "tmorello" . [ <pred:fact_h> ?e ; <pred:fact_r> <Twitter_username> ; <pred:fact_t> ?pv ] <number_of_subscribers> ?qpv .  }
Program:
function: Find
inputs: Canada
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: Iron Man
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: cast member
forward
function: QFilterStr
dependencies: 4
inputs: character role
Guard
function: FilterConcept
dependencies: 5
inputs: human
function: QueryAttrQualifier
dependencies: 6
inputs: Twitter username
tmorello
number of subscribers