def search_query(retweets):
    """
    Builds the search query by checking if we want to include retweets.
    """
    if not retweets:
        search_query = "-filter:retweets"
    else:
        search_query = ""
    return search_query