Question: What written work is based on On the Road released in Sweden and written by Jack Kerouac?
Choices:
A Single Man
Contact
Along Came a Spider
The Painted Veil
listed building in the United Kingdom
Live and Let Die
Starship Troopers
On the Road
The Maltese Falcon
Interview with the Vampire
Program:
function: Find
inputs: Sweden
function: Relate
dependencies: 0
inputs: film release region
backward
function: Find
inputs: On the Road
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: based on
forward
function: QFilterStr
dependencies: 4
inputs: author
Jack Kerouac
function: FilterConcept
dependencies: 5
inputs: written work
function: What
dependencies: 6
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "written work" . ?e_1 <based_on> ?e . ?e_1 <pred:name> "On the Road" . ?e_1 <film_release_region> ?e_2 . ?e_2 <pred:name> "Sweden" .  [ <pred:fact_h> ?e_1 ; <pred:fact_r> <based_on> ; <pred:fact_t> ?e ] <author> ?qpv . ?qpv <pred:value> "Jack Kerouac" .  }
Answer: On the Road