building very very verbose queries