Question: What is the connection between Omar Sharif to Alexandria (the one that is the twinned administrative body of Saint Petersburg)?
Choices:
hair color
child astronomical body
official language
member of sports team
health specialty
ethnic group
basic form of government
production company
place of birth
narrative role
Program:
function: Find
inputs: Omar Sharif
function: Find
inputs: Saint Petersburg
function: Relate
dependencies: 1
inputs: twinned administrative body
forward
function: Find
inputs: Alexandria
function: And
dependencies: 2
3
function: QueryRelation
dependencies: 0
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Omar Sharif" . ?e_2 <pred:name> "Alexandria" . ?e_3 <twinned_administrative_body> ?e_2 . ?e_3 <pred:name> "Saint Petersburg" . ?e_1 ?p ?e_2 .  }
Answer: place of birth