SQUALL to SPARQL Translator

Your SQUALL sentence:

Which Country has more than 2 officialLanguage-s?

The SPARQL translation:

SELECT DISTINCT ?x1 WHERE {
?x1 a :Country .
{
SELECT DISTINCT ?x1 (COUNT(DISTINCT ?x3) AS ?x2) WHERE {
?x1 :officialLanguage ?x3 .
} GROUP BY ?x1
} FILTER (?x2 > 2) .
}

Run at DBpedia SPARQL endpoint (assuming prefixes res: for resources, : and dbo: for ontology, and dbp: for properties in addition to DBpedia namespace definitions).

Load in DBpedia SPARQL Explorer (assuming the same prefixes as above).


Enter a SQUALL sentence: