SQUALL to SPARQL Translator

Your SQUALL sentence:

Which rectangle has the heigth * the width equal to 100 and has 2 * (the height + the width) equal to 40 ?

The SPARQL translation:

SELECT DISTINCT ?x1 WHERE {
?x1 a :rectangle .
?x1 :heigth ?x2 .
?x1 :width ?x3 .
BIND (?x2 * ?x3 AS ?x4) .
FILTER (?x4 = 100) .
?x1 :height ?x5 .
?x1 :width ?x6 .
BIND (?x5 + ?x6 AS ?x7) .
BIND (2 * ?x7 AS ?x8) .
FILTER (?x8 = 40) .
}

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: