Question: Which part of  The Lion King (the one whose lyrics is written by Tim Rice) contains a composition by Elton John (whose Twitter username is eltonofficial) ?
Choices:
Saint-Barthélemy
Van Buren County
human
song
mayor
Staffanstorp Municipality
rest of the world
Sumner County
masculine personal
contiguous United States
Answer: song
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Lion King" . ?e_1 <lyrics_by> ?e_3 . ?e_3 <pred:name> "Tim Rice" . ?e_2 <pred:name> "Elton John" . ?e_2 <Twitter_username> ?pv . ?pv <pred:value> "eltonofficial" . ?e_1 <composer> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <composer> ; <pred:fact_t> ?e_2 ] <applies_to_part> ?qpv .  }
Program:
function: Find
inputs: Tim Rice
function: Relate
dependencies: 0
inputs: lyrics by
backward
function: Find
inputs: The Lion King
function: And
dependencies: 1
2
function: Find
inputs: Elton John
function: FilterStr
dependencies: 4
inputs: Twitter username
eltonofficial
function: QueryRelationQualifier
dependencies: 3
5
inputs: composer
applies to part