SWI-Prolog Did You Know Did you know? there's a simplex library Search Documentation:
Predicate odbc_next_result_set/1