def METHOD_NAME(kg_client, output_file):
    """
    Extracts all property locations from the KG and writes them to a csv file
    """
    # Retrieve query
    query_file = os.path.join(Path(__file__).parent, 'resources', 'property_location.sparql')
    with open(query_file, 'r') as f:
        query = f.read()
    # Execute query and retrieve results
    results = kg_client.performQuery(query)
    df = pd.DataFrame(results)
    # TODO encountered below warning when running this script as main
    # FutureWarning: In a future version of pandas all arguments of StringMethods.split except for the argument 'pat' will be keyword-only.
    df[['latitude', 'longitude']] = df['location'].str.split('#', 1, expand=True)
    # Write results to csv file
    df.drop(columns=['location']).to_csv(output_file, index=False)