Question: The composer of Footloose, featuring cast member Sarah Jessica Parker, is the parent to how many kids?
Choices:
8
12
1
2
3
5
10
7
0
6
Answer: 5
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "human" . ?e_1 <composer> ?e . ?e_1 <pred:name> "Footloose" . ?e_1 <cast_member> ?e_2 . ?e_2 <pred:name> "Sarah Jessica Parker" .  ?e <number_of_children> ?pv .  }
Program:
function: Find
inputs: Sarah Jessica Parker
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Footloose
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: composer
forward
function: FilterConcept
dependencies: 4
inputs: human
function: QueryAttr
dependencies: 5
inputs: number of children