title: fusiontable query for where
body: <p>Is there any way to generate where condition based on user input dynamically.I have a select box with the option '>','&lt;','equals','starts with','ends with'.Based on this condition where clause should be generated and query should be executed.Please help me.i need examples.
  since i have around 80 columns in my table i cant use if else loop.</p>
  
  <pre><code>function querymap()
  
  
  {
  var querypass=document.getElementById('query-pass').value.replace(/'/g, "\\'");
   if(querypass=='hhSanitHouseType')
     {
       var operator=document.getElementById('operatorstring').value.replace(/'/g, "\\'");
       if(operator=='&gt;')
          { 
            var textvalue=document.getElementById("text-value").value.replace(/'/g, "\\'");
            layer.setQuery("SELECT 'geometry',hhSanitHouseType FROM " + tableid + " WHERE 'hhSanitHouseType' &gt; '" + textvalue + "'");
  
  
          }
       }
     else
     {
     alert("false");
     }
  }
  </code></pre>