Question: Which visual artwork is composed by the person who married Jada Pinkett Smith in 1997?
Choices:
Training Day
Pleasantville
The Fifth Element
Talk to Her
A Prairie Home Companion
Wild Wild West
Jersey Girl
The Towering Inferno
Prague
The Reader
Program:
function: Find
inputs: Jada Pinkett Smith
function: Relate
dependencies: 0
inputs: spouse
backward
function: QFilterYear
dependencies: 1
inputs: start time
1997
=
function: FilterConcept
dependencies: 2
inputs: human
function: Relate
dependencies: 3
inputs: composer
backward
function: FilterConcept
dependencies: 4
inputs: visual artwork
function: What
dependencies: 5
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "visual artwork" . ?e <composer> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_1 <spouse> ?e_3 . ?e_3 <pred:name> "Jada Pinkett Smith" . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <spouse> ; <pred:fact_t> ?e_3 ] <start_time> ?qpv . ?qpv <pred:year> 1997 .   }
Answer: Wild Wild West