Say in plain words what you need from the database — the scenario writes the query, runs it in a safe test environment and fixes it itself if it fails.