This KB article covers how to list queries currently running and queries that were completed in the past.
The currently running queries can be listed using the view "pg_stat_activity":
SELECT * FROM pg_stat_activity;
To list queries that are running for longer than 15 minutes:
SELECT * FROM pg_stat_activity WHERE (now() - pg_stat_activity.query_start) > interval '15 minutes';
Use the Greenplum Command Center WebUI to list completed queries. See "Query History" section in the "Monitoring and Managing VMware Greenplum Queries" documentation.
It is also possible to connect to the "gpperfmon" database in the cluster with "psql -d gpperfmon" and list completed queries using the "gpmetrics.gpcc_queries_history" table:
SELECT * FROM gpmetrics.gpcc_queries_history;