LearnedWMP: Workload Memory Prediction Using Distribution of Query Templates