combined and sorted references queries