io/pen/define" method="POST" target="_blank" class="codepen-form"><input type="hidden" name="data" value='{"title": "Get the results of multiple SQL queries", "js": &quot;import {AgentArray} from &apos;https://unpkg.com/agentscript@0.10.19/dist/agentscript.js&apos;\nconst sql_queries = \&quot;SELECT 1 AS x; SELECT &apos;2&apos; as y\&quot;;\rfor (const statement of db.iterateStatements(sql_queries)) {\r    const sql = statement.getSQL(); // Get the SQL source\r    const result = statement.getAsObject({}); /