allow to query DB in TopDown with a list of literals rather than a single goal