Once Athena is up and running, what you can do is use Hasura to run a GraphQL sever to expose the data you want.
The easiest way to run a Hasura server is to use Docker. This can be done by following this guide.
Make sure you edit the following variables accordingly:
HASURA_GRAPHQL_DATABASE_URL
URL used to connect to your PostgreSQL database.HASURA_GRAPHQL_ENABLE_CONSOLE
Tells whether you want to have the admin console enabled or not.HASURA_GRAPHQL_ACCESS_KEY
Represents the secret key that is going to be used to access the admin console.HASURA_GRAPHQL_UNAUTHORIZED_ROLE
Specifies the name of the role that should be assigned to users that are not performing authorized requests.
Once everything is setup properly, you can now access the Hasura console located at http://localhost:8080. From here, what you need to do is track the data.
Once the data is tracked, you are now ready to write queries.