code: def prepare_query(self, symbol,  start_date, end_date):
          
          query = \
              'select * from yahoo.finance.historicaldata where symbol = "%s" and startDate = "%s" and endDate = "%s"' \
              % (symbol, start_date, end_date)
  
          return query
docs: Method returns prepared request query for Yahoo YQL API.