Semantic Templates for Generating Long-Form Technical Questions