variable 'x' in projection not present in GROUP BY
问题 I want to count municipalities and what I have in parentheses work. However, I want to get another variable too, but when I am adding it to SELECT, I am getting: org.openrdf.query.MalformedQueryException: variable 'region_name' in projection not present in GROUP BY. In my query I have: "SELECT ?region_name (COUNT(?municipality) AS ?count) " + What am I missing? Notice that I do not have anything like GROUP anywhere in my project, I think it is happening internally of Sesame. I just saw that