code: def check_query(query):
      
      q = query.lower()
      if "select " not in q:
          raise InvalidQuery("SELECT word not found in the query: {0}".format(query))
      if " from " not in q:
          raise InvalidQuery("FROM word not found in the query: {0}".format(query))
docs: Check query sanity
  
      Args:
          query: query string
  
      Returns:
          None