Querying spatial databases in the topological data model using region-based languages