Check out example codes for "redshift running queries". It will help you in understanding the concepts better.

Code Example 1

select user_name, db_name, pid, query
from stv_recents
where status = 'Running';

Learn ReactJs, React Native from akashmittal.com