first attempt at role transit query generation