Question: What is the connection between Roman Holiday (the one that has Ed Begley, Jr. as a cast member) to United States of America?
Choices:
taxon rank
drug used for treatment
penalty
child astronomical body
league
designed to carry
legislative body
country of origin
risk factor
military branch
Answer: country of origin
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Roman Holiday" . ?e_1 <cast_member> ?e_3 . ?e_3 <pred:name> "Ed Begley, Jr." . ?e_2 <pred:name> "United States of America" . ?e_1 ?p ?e_2 .  }
Program:
function: Find
inputs: Ed Begley, Jr.
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: Roman Holiday
function: And
dependencies: 1
2
function: Find
inputs: United States of America
function: QueryRelation
dependencies: 3
4