Question: Which literary work derives Harry Potter and the Chamber of Secrets (which has Geraldine Somerville as a cast member) and has origins from the United Kingdom?
Choices:
Pretty Little Liars
Harry Potter and the Order of the Phoenix
The Hunchback of Notre Dame
Harry Potter and the Prisoner of Azkaban
Dune
Harry Potter and the Philosopher's Stone
Harry Potter and the Chamber of Secrets
Trainspotting
Sense and Sensibility
Oliver Twist
Program:
function: Find
inputs: Geraldine Somerville
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Harry Potter and the Chamber of Secrets
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: literary work
function: Find
inputs: United Kingdom
function: Relate
dependencies: 6
inputs: country of origin
backward
function: FilterConcept
dependencies: 7
inputs: literary work
function: And
dependencies: 5
8
function: What
dependencies: 9
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "literary work" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Harry Potter and the Chamber of Secrets" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Geraldine Somerville" .  ?e <country_of_origin> ?e_3 . ?e_3 <pred:name> "United Kingdom" .  }
Answer: Harry Potter and the Chamber of Secrets