SELECT ?predicate ?count WHERE {
{ SELECT ?predicate (COUNT(?predicate) AS ?count)
WHERE { ?x ql:has-predicate ?predicate }
GROUP BY ?predicate }
?entity ?tmp ?predicate .
FILTER REGEX(?predicate, "^<http://www\\.wikidata\\.org/prop/direct")
# This comment makes sure that there is an error which shows the problem.
}
GROUP BY ?predicate ?count
ORDER BY ASC(?predicate)
LIMIT 10
leads to an error. In the error UI, what follows 'Your query was' isn't actually the above query. Instead, there is a ParseException happening:
The query
leads to an error. In the error UI, what follows 'Your query was' isn't actually the above query. Instead, there is a ParseException happening: