updated stems summary query