Question: What is the series ordinal for Pocahontas (the one whose genre is comedy-drama) that includes im Allen (the one that is a crew member of The Princess and the Frog) in its cast ?
Choices: 11
20
45
175
2
14
49
22
73
24
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Pocahontas" . ?e_1 <genre> ?e_3 . ?e_3 <pred:name> "comedy-drama" . ?e_2 <pred:name> "Tim Allen" . ?e_4 <film_crew_member> ?e_2 . ?e_4 <pred:name> "The Princess and the Frog" . ?e_1 <film_crew_member> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <film_crew_member> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: comedy-drama
function: Relate
dependencies: 0
inputs: genre
backward
function: Find
inputs: Pocahontas
function: And
dependencies: 1
2
function: Find
inputs: The Princess and the Frog
function: Relate
dependencies: 4
inputs: film crew member
forward
function: Find
inputs: Tim Allen
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: film crew member
series ordinal
Answer: 49