combining sqlbind/2 with table_pred/2 - always table the predicate after binding the predicate to SQL. this has the effect of cacheing SQL calls in-memory