Question: Who was a cast member of Will & Grace, if we know this person has less than 5 kids?
Choices:
Debra Messing
Sean Hayes
Richard Dreyfuss
Megan Mullally
Stanley Tucci
Sylvester Stallone
Mark Harmon
Garry Marshall
Maya Rudolph
Jeff Richmond
Answer: Debra Messing
SPARQL: SELECT DISTINCT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <cast_member> ?e . ?e_1 <pred:name> "Will & Grace" .  ?e <number_of_children> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "5"^^xsd:double ) .  }
Program:
function: Find
inputs: Will & Grace
function: Relate
dependencies: 0
inputs: cast member
forward
function: FilterConcept
dependencies: 1
inputs: human
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of children
5
<
function: FilterConcept
dependencies: 4
inputs: human
function: And
dependencies: 2
5
function: What
dependencies: 6