fixed ediatable training query