Question: What is the OCLC control number for the literary work that derives Harry Potter and the Order of the Phoenix (which has David Thewlis as a cast member)?
Choices: 222573574
27417158
3800257333232
220005468
470895587
43419454
249338870
5735281
255604073
226995723
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Harry Potter and the Order of the Phoenix" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "David Thewlis" .  ?e <OCLC_control_number> ?pv .  }
Program:
function: Find
inputs: David Thewlis
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Order of the Phoenix
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: literary work
function: QueryAttr
dependencies: 5
inputs: OCLC control number
Answer: 249338870