For the default badge queries, the badge SQL edit form is displayed, but disabled, when enable_badge_sql is set to true.
If you have been browsing your Admin / Badges page, and then click the ‘New’ button to create a new badge, the badge SQL edit form will be disabled until you refresh the page. Possibly this is a minor bug, but the issue can be solved with a full refresh of the page.