See https://www.reddit.com/r/ESECFSE/comments/jizgby/detecting_optimization_bugs_in_database_engines/.