Testing aggregate value

Hi,
I vwant to write a query to find countries that langues more the Italy and
Germany together. I try this query:

PREFIX res: <http://dbpedia.org/resource/>
SELECT  ?o
WHERE{
?o    rdf:type <http://dbpedia.org/ontology/Country>;
   dbpedia-owl:language  ?l1.
  res:Germany    rdf:type <http://dbpedia.org/ontology/Country>;
   dbpedia-owl:language  ?l2.
res:Italy    rdf:type <http://dbpedia.org/ontology/Country>;
   dbpedia-owl:language  ?l3.
}
GROUP BY ?o
HAVING(count(?l1)> count(?l2)+count(?l3))

But it doesn't work.Any suggestion is welcome. Thanks.

Regards
Olivier

Received on Wednesday, 3 July 2013 14:38:27 UTC