Preference query analysis and optimization. (2017)