Question: What continent of the world has Baja California peninsula and also has WEPG in one of its cities?
SPARQL query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Baja_California_Peninsula> onto:location ?uri. <http://dbpedia.org/resource/WEPG> prop:city ?uri . ?uri rdf:type onto:Continent}