Question: Fresno, from the USA, has what connection to California, which includes part of Sierra Nevada?
Choices:
ancestral home
home port
narrative location
captain
interests
sibling
voice type
appears in the form of
airline hub
country of origin
Program:
function: Find
inputs: United States of America
function: Relate
dependencies: 0
inputs: country of origin
backward
function: Find
inputs: Fresno
function: And
dependencies: 1
2
function: Find
inputs: Sierra Nevada
function: Relate
dependencies: 4
inputs: partially contains
backward
function: Find
inputs: California
function: And
dependencies: 5
6
function: QueryRelation
dependencies: 3
7
SPARQL: SELECT DISTINCT ?p WHERE { ?e_1 <pred:name> "Fresno" . ?e_1 <country_of_origin> ?e_3 . ?e_3 <pred:name> "United States of America" . ?e_2 <pred:name> "California" . ?e_2 <partially_contains> ?e_4 . ?e_4 <pred:name> "Sierra Nevada" . ?e_1 ?p ?e_2 .  }
Answer: narrative location