Fixed condition extracting predicates that use table names.
Added query offset.
Handling a complex query with automatic joining.