- From: Olivier Austina <olivier.austina@gmail.com>
- Date: Wed, 3 Jul 2013 16:37:13 +0200
- To: public-sparql-dev@w3.org
Received on Wednesday, 3 July 2013 14:38:27 UTC
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