Revisiting Prompt Engineering via Declarative Crowdsourcing