Magic SQL of DOOM