I understand that using an image is a problem but I was not able to type in everything and was not able to add excel sheet f. I appreciate everyone helping out. though I was able to resolve the issue,
create view test3 as
( SELECT
*
FROM CROSSTAB (
'SELECT
entryid
, submissionid
, questionid
, questiontext
, questiontype
, answer
FROM test2
ORDER BY 1;'
, $$ VALUES ('CSAT'::TEXT), ('FACILITIES'::TEXT), ('NPS'::TEXT), ('SERVICES'::TEXT), ('FOOD_BEVERAGES'::TEXT) $$
) AS "ct" (
"entryid" TEXT
, "submissionid" TEXT
, "questionid" TEXT
, "questiontext" TEXT
, "CSAT" TEXT
, "FACILITIES" TEXT
, "NPS" TEXT
, "SERVICES" TEXT
, "FOOD_BEVERAGES" TEXT
)
);