Question: What is the IAB code for the literary genre that is the work field of Terry Jones (whose name is Terence Graham Parry Jones in native language)?
Choices:
1186
59
1229
526
1115
51
515
672
321
1242
Answer: 51
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary genre" . ?e_1 <field_of_work> ?e . ?e_1 <pred:name> "Terry Jones" . ?e_1 <name_in_native_language> ?pv_1 . ?pv_1 <pred:value> "Terence Graham Parry Jones" . ?e <IAB_code> ?pv .  }
Program:
function: Find
inputs: Terry Jones
function: FilterStr
dependencies: 0
inputs: name in native language
Terence Graham Parry Jones
function: Relate
dependencies: 1
inputs: field of work
forward
function: FilterConcept
dependencies: 2
inputs: literary genre
function: QueryAttr
dependencies: 3
inputs: IAB code