Verify that the projected variables (select head) respect the grouping of the query:
no select * in a grouped query (GROUP BY, or a built-in aggregate in HAVING or ORDER BY)
if grouped, selected variables need to be collected by the group-by,
or bound by the trailing VALUES clause, which is joined after grouping (18.2.4.3).
Section 11.4 only mentions the group-by variables, but the algebra of 18.2.4.3 binds the VALUES variables
before the projection, as do the tests of https://github.com/w3c/rdf-tests/pull/383.
Verify that the projected variables (select head) respect the grouping of the query: