Question: Avatar, scripted by Howard Gordon, is which episode number in the series The X-Files, with David Greenwalt as an executive producer?
Choices: 31
34
5
70
27
2
6
129
20
3
SPARQL: SELECT DISTINCT ?qpv WHERE { ?e_1 <pred:name> "Avatar" . ?e_1 <screenwriter> ?e_3 . ?e_3 <pred:name> "Howard Gordon" . ?e_2 <pred:name> "The X-Files" . ?e_2 <executive_producer> ?e_4 . ?e_4 <pred:name> "David Greenwalt" . ?e_1 <part_of_the_series> ?e_2 . [ <pred:fact_h> ?e_1 ; <pred:fact_r> <part_of_the_series> ; <pred:fact_t> ?e_2 ] <series_ordinal> ?qpv .  }
Program:
function: Find
inputs: Howard Gordon
function: Relate
dependencies: 0
inputs: screenwriter
backward
function: Find
inputs: Avatar
function: And
dependencies: 1
2
function: Find
inputs: David Greenwalt
function: Relate
dependencies: 4
inputs: executive producer
backward
function: Find
inputs: The X-Files
function: And
dependencies: 5
6
function: QueryRelationQualifier
dependencies: 3
7
inputs: part of the series
series ordinal
Answer: 70