SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/education> <http://dbpedia.org/resource/Poland> . ?x <http://dbpedia.org/property/nationality> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Engineer>}
Which nation's engineers have graduated in Poland?
SELECT DISTINCT ?j WHERE { ?o property:nationality ?j . ?o property:education resource:Poland . ?o rdf:type ontology:Engineer }
Ukraine, Canada
The nationalities of the engineers graduated from Poland are [Ukraine, Canada].
Nationalities of Polish-trained engineers [Ukraine, Canada].