Question: How many seaons does Peyton Place (the one that has Mia Farrow as a cast member) have?
Choices:
53
20
31
35
21
32
41
7
4
5
Answer: 5
SPARQL: SELECT DISTINCT ?pv WHERE { ?e <pred:name> "Peyton Place" . ?e <cast_member> ?e_1 . ?e_1 <pred:name> "Mia Farrow" .  ?e <number_of_seasons> ?pv .  }
Program:
function: Find
inputs: Mia Farrow
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Peyton Place
function: And
dependencies: 1
2
function: QueryAttr
dependencies: 3
inputs: number of seasons