SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/property/capital> <http://dbpedia.org/resource/Oslo> . ?uri <http://dbpedia.org/ontology/country> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/University>}
How many universities are there whose country's capital is Oslo?
SELECT DISTINCT COUNT ( ?l ) WHERE { ?l property:country ?z . ?z property:capital resource:Oslo . ?l rdf:type ontology:University }
58
There are [58] universities in the country where the capital is Oslo.
The country has [58] universities, of which Oslo is the capital.