title: how to get a sql statement from a table into an active query
body: <p>I´d like to know if there´s a way to get sql queries I stored in a table into an active sql query.
  Something like this:</p>
  
  <pre><code>SELECT *
  FROM &lt;SELECT query FROM table n WHERE id = 1&gt;
  </code></pre>
  
  <p>This returns a table with a single col and row with the desired query written inside the table, but I am not able to execute that query inside the first SELECT statement.</p>
  
  <p>Any input apreciated.</p>