Question: What is cast member B. J. Novak's character role in The Office (whose number of seasons is 9)?
Choices:
Chip 'n' Dale
Leo McGarry
Meredith Vickers
Lightning McQueen
Liet-Kynes
Jack Shephard
Huy
Ryan Howard
Andy Bernard
Orson Hodge
Program:
function: Find
inputs: The Office
function: FilterNum
dependencies: 0
inputs: number of seasons
9
=
function: Find
inputs: B. J. Novak
function: QueryRelationQualifier
dependencies: 1
2
inputs: cast member
character role
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "The Office" . ?e_1 <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "9"^^xsd:double . ?e_2 <pred:name> "B. J. Novak" . ?e_1 <cast_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <cast_member> ; <pred:fact_t> ?e_2 ] <character_role> ?qpv .  }
Answer: Ryan Howard