Group results variables into a named tuple