Question: How many ethnic groups live in Slovenia?
SPARQL:
PREFIX dbo: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT COUNT(DISTINCT ?uri)
WHERE {
        res:Slovenia dbo:ethnicGroup ?uri .
}