Question: What is the connection between Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series to John Ritter (the one that is a cast member of The Mary Tyler Moore Show)?
Choices: military casualty classification
movement
notable people with this condition
present in work
drafted by
academic degree
director of photography
winner
spouse
family name
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series" . ?e_2 <pred:name> "John Ritter" . ?e_3 <cast_member> ?e_2 . ?e_3 <pred:name> "The Mary Tyler Moore Show" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Primetime Emmy Award for Outstanding Lead Actor in a Comedy Series
function: Find
inputs: The Mary Tyler Moore Show
function: Relate
dependencies: 1
inputs: cast member
forward
function: Find
inputs: John Ritter
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
Answer: winner