Question: What is the connection between Hercules (the one whose end time is 1999-03-01) to television comedy?
Choices: after a work by
mouth of the watercourse
material used
substitute/deputy/replacement of office/officeholder
officeholder
product or material produced
medical condition
genre
territory overlaps
production designer
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Hercules" . ?e_1 <end_time> ?pv . ?pv <pred:date> "1999-03-01"^^xsd:date . ?e_2 <pred:name> "television comedy" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Hercules
function: FilterDate
dependencies: 0
inputs: end time
1999-03-01
=
function: Find
inputs: television comedy
function: QueryRelation
dependencies: 1
2
Answer: genre