W3C home > Mailing lists > Public > public-sparql-dev@w3.org > July to September 2013

Testing aggregate value

From: Olivier Austina <olivier.austina@gmail.com>
Date: Wed, 3 Jul 2013 16:37:13 +0200
Message-ID: <CABiPNha-WSZR+VyYAv3fqQ+U-givwCU5GCq8328RpgWNhSe=xQ@mail.gmail.com>
To: public-sparql-dev@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:15:52 UTC