Question: What is the connection between Craig Thomas (the one that is the citizen of Wales) to Cardiff?
Choices:
collection
practiced by
place of birth
connects with
sibling
instrument
country for sport
fabrication method
main food source
office contested
Program:
function: Find
inputs: Wales
function: Relate
dependencies: 0
inputs: country of citizenship
backward
function: Find
inputs: Craig Thomas
function: And
dependencies: 1
2
function: Find
inputs: Cardiff
function: QueryRelation
dependencies: 3
4
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Craig Thomas" . ?e_1 <country_of_citizenship> ?e_3 . ?e_3 <pred:name> "Wales" . ?e_2 <pred:name> "Cardiff" . ?e_1 ?p ?e_2 .  }
Answer: place of birth