(Instead of opt-return to start a task, you can also use cmd-opt-return , which will cause the task to be run as an ephemeral task — a task that won't be marked as "last run task".) I select the first SQL statement, spawn the task, then select the next one, rerun the task, select the next one, rerun the task, select the last one, rerun the task. The queries in runnables.scm can match against any syntax nodes that are "runnable" and give them a tag The task definitions in a tasks.json file can contain tags If Zed finds a match between a node and a task definition, it puts a play button next to each node so the user can run it with the defined task.