Allow tables to accept sub-queries