Did you know ... Search Documentation:
Representing SQL data in Prolog