title: How to get the numbers from query in presto?
body: <p>for example, the query has the value:</p>
  
  <pre><code>currentView=/review_list_renewal_page&amp;page=SDP&amp;vendorItemID=3081429363&amp;categoryID=&amp;itemID=52159373&amp;eventReferrer=/click_top_button&amp;itemProductID=&amp;pdpStyle=BRAND_SDP_FASHION&amp;content=option_picker&amp;type=brandSDPFashion&amp;q=&amp;logCategory=event&amp;logType=click&amp;productID=12257000&amp;optionStatus=normal&amp;searchId=&amp;memberID=6339421&amp;rank=&amp;request_time=1487114662328&amp;tz=+0900&amp;appVersion=4.5.2&amp;wl_mo=LG-F460S&amp;wl_ma=LGE&amp;wl_sn=Android&amp;wl_v=5.0.1&amp;wl_r=1440x2392&amp;wl_l=ko&amp;wl_c=KR
  </code></pre>
  
  <p>I used STR_TO_MAP(query, "&amp;", "=")["productId"] to get the number mapped to productId in Hive. But now in presto, the function seems invalid. So how to retrieve it from query ? 
  The query is not strict in format I think. </p>