you can use case to determine whether the value of the column or null should be returned
select
A
, B
, C
, CASE A WHEN 773 THEN D ELSE NULL END AS D
, CASE A WHEN 808 THEN E ELSE NULL END AS E
, CASE A WHEN 809 THEN F ELSE NULL END AS F
from table_name
;