title: My QUERY google sheet function does'nt work?
body: <p>This is the QUERY used into my google sheet:</p>
  <pre><code>=QUERY(control!A1:AF; &quot;SELECT G, SUM(I), MIN(L), MIN(K), SUM(P), SUM(P)/SUM(Y), SUM(Y), SUM(Y)/&quot;&amp;credit!$B$10&amp;&quot; WHERE A='open' GROUP BY G ORDER BY SUM(Y) DESC LABEL SUM(I) 'shares', MIN(L) 'avg_price', MIN(K) 'current_price', SUM(P) 'net_PL_open', SUM(Y) 'cost', SUM(P)/SUM(Y) 'net_PL_%', SUM(Y)/&quot;&amp;credit!$B$10&amp;&quot; 'invest_%'&quot;;1)
  </code></pre>
  <p>The QUERY above present an error:</p>
  <blockquote>
  <p>&quot;Não foi possível analisar a string de consulta para Função QUERY parâmetro 2: PARSE_ERROR: Encountered &quot; &quot;,&quot; &quot;, &quot;&quot; at line 1, column 271. Was expecting one of: &lt;STRING_LITERAL&gt; ... &quot;*&quot; ... &quot;+&quot; ... &quot;-&quot; ... &quot;/&quot; ... &quot;%&quot; ...&quot;</p>
  </blockquote>
  <p>Any idea about what is wrong?</p>