This code gives the descendants of Genghis Kahn up to a certain depth (as a graph which can be changed to a table) :
PREFIX bd: