Question: What musical was the visual artwork known as The King and I based on?
Choices:
Jesus Christ Superstar
The Sound of Music
Chicago
Beauty and the Beast
West Side Story
Aladdin
The King and I
Oklahoma!
Sweeney Todd: The Demon Barber of Fleet Street
Sunset Boulevard
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: title
The King and I
function: FilterConcept
dependencies: 1
inputs: visual artwork
function: Relate
dependencies: 2
inputs: based on
forward
function: FilterConcept
dependencies: 3
inputs: musical
function: What
dependencies: 4
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musical" . ?e_1 <based_on> ?e . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "visual artwork" . ?e_1 <title> ?pv . ?pv <pred:value> "The King and I" .   }
Answer: The King and I