SQUALL to SPARQL Translator

Your SQUALL sentence:

If a book B has at least 2 author-s then B is a CollaborativeWork.

The SPARQL translation:

INSERT {
?x1 a :CollaborativeWork .
} WHERE {
?x1 a :book .
{
SELECT DISTINCT ?x1 (COUNT(DISTINCT ?x3) AS ?x2) WHERE { ?x1 :author ?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: