General SQL query interface for hybrid data sources