SELECT knows count person AS popularity person rdf type foaf Person fo

1
2
3
4
5
6
7
8
SELECT ?knows, count(?person) AS ?popularity
{
?person rdf:type foaf:Person;
foaf:knows ?knows.
}
GROUP BY ?knows
ORDER BY DESC (?popularity)