def render_query(dataset, tables, select=None, conditions=None,
                 groupings=None, having=None, order_by=None):

    if None in (dataset, tables):
        return None

    query = "%s %s %s %s %s %s" % (
        _render_select(select),
        _render_sources(dataset, tables),
        _render_conditions(conditions),
        _render_groupings(groupings),
        _render_having(having),
        _render_order(order_by)
    )

    return query
Render a query that will run over the given tables using the specified
dataset/ETHPy150Open tylertreat/BigQuery-Python/bigquery/query_builder.py/render_query