defined utilities functions to build the queries, added a query to check github organization membership