Question: Which person is in the cast of Rogue (the one whose number of seasons is 4)?
Choices:
Richard Gere
Thandie Newton
David Byrne
William Henry Harrison
Robert Palmer
Sylvester Stallone
Graham Greene
George Miller
Max Fleischer
Ray McKinnon
Program:
function: Find
inputs: Rogue
function: FilterNum
dependencies: 0
inputs: number of seasons
4
=
function: Relate
dependencies: 1
inputs: cast member
forward
function: FilterConcept
dependencies: 2
inputs: human
function: What
dependencies: 3
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Rogue" . ?e_1 <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "4"^^xsd:double .   }
Answer: Thandie Newton