         }
         
         // (Root relation || empty selection) && no included relation => no need for any adapter
-        if (startIndex == 0 || selectionWidth == 0) && scopes.isEmpty {
+        if (startIndex == 0 || sourceSelectionWidth == 0) && scopes.isEmpty {
             return nil
         }
         

    /// Removes all selections from joins
    func selectOnly(_ selection: [SQLSelectable]) -> SQLQualifiedRelation {
        var relation = self
        relation.ownSelection = selection.map { $0.qualifiedSelectable(with: alias) }
        relation.joins = relation.joins.mapValues { $0.selectOnly([]) }
        return relation
    }

        //          row.scopes["author"] // [id:12, name:"Herman Melville"]
        //          let author: Author = row["author"]
        //      }
        let rangeAdapter = RangeRowAdapter(startIndex ..< (startIndex + sourceSelectionWidth))
        let adapter = rangeAdapter.addingScopes(scopes)
        
        return (adapter: adapter, endIndex: endIndex)
