EXAMPLE N° 3

SPARQL QUERY:
				
PREFIX : <https://dbpedia.org/resource/>
PREFIX dbp: <https://dbpedia.org/ontology/>
PREFIX rdf: <https://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX dbpprop: <https://dbpedia.org/property/>

SELECT ?town ?province ?population ?area ?mayor
WHERE {
?town dbp:country :Italy;
      dbp:region :Tuscany;
      dbp:province ?province;
      dbp:populationTotal ?population;
      dbp:areaTotal ?area;
      dbpprop:mayor ?mayor.
}
				
			

RESULTS: