Reconciling Skyline and Ranking Queries