I have a sample table as below -
with temp as ( select 1 as id, \'first\' as grade, \'mango\' as q1_which_fruit_do_you_like union all select 2 as id, \'second\'