With SLQ table like that:
N | B 1 | z 1 | w 1 | y 2 | x 2 | k
how has to be the query that returns something like that:
N | C