some nested queries, but current t/app rule is too limiting