def getQuery(prompt='\nEnter query: ', error='Invalid query.'):
    """ 
	Prompt user for query
	Return a string of valid query 
	"""
    while True:
        query = input(prompt)
        if query != '':
            return query
        else:
            print(error)
