N-ary relation and composition of relation and questions