What is {business division} of {LATAM Chile} that is {country} is {Peru} ?
Give me the business division of LATAM Chile that the country Peru is in.
What business division of LATAM Chile is the country Peru in?
SELECT ?t WHERE { resource:LAN_Chile property:business_division ?d . ?d property:country resource:Peru . ?d property:business_division ?t }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q649178> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P199> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P17> <http://wikidata.dbpedia.org/resource/Q419>
} 

SELECT ?obj WHERE { wd:Q649178 p:P199 ?s . ?s ps:P199 ?obj . ?s pq:P17 wd:Q419 }