Question: How is Dallas with Jim Beaver as a cast member related to Dallas with Jesse Metcalfe as a cast member?
Choices:
mascot
official symbol
patron saint
head of government
published in
diaspora
followed by
parent astronomical body
participant
located in time zone
Answer: followed by
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Dallas" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Jim Beaver" . ?e_2 <pred:name> "Dallas" . ?e_2 <cast_member> ?e_4 . ?e_4 <pred:name> "Jesse Metcalfe" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Jim Beaver
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Dallas
function: And
dependencies: 1
2
function: Find
inputs: Jesse Metcalfe
function: Relate
dependencies: 4
inputs: cast member
backward
function: Find
inputs: Dallas
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7