def create_query(languages, stars):
    """Builds the query string

    Arguments:
        languages {list} -- the list of languages
        stars {int} -- the minimum number of stars

    Returns:
        {str} -- the built query string
    """

    query = f"stars:>{stars} "

    for language in languages:
        query += f"language:{language} "

    return query