Yes, now i see why it is wrong, also it could be 8 or 9 generations. I was just trying things. I will probably not use that query, it is to big and slow. I also moved the AVK and Inbreeding to the Bird Table. Sometimes i do things to make it easy for me even if it is the wrong way of doing it.