I have the SQL query which generates a table with users and their answers for the task numbers:

Which SQL query should I use to get something like this:

I have 50 question numbers and about 1500 users. Unfortunately, it seems to me that simple SELECT and GROUP BY cannot do here.
Thank you very much!