Add details query template