def METHOD_NAME(
    self,
    cell,
    samplemethod,
    maxrows,
    samplefraction,
    session,
    output_var,
    quiet,
    coerce,
):
    sqlquery = self._sqlquery(cell, samplemethod, maxrows, samplefraction, coerce)
    df = self.spark_controller.run_sqlquery(sqlquery, session)
    if output_var is not None:
        self.shell.user_ns[output_var] = df
    if quiet:
        return None
    else:
        return df