def METHOD_NAME(jq_filter, data_filename, out_filename, jq_bin=DEFAULT_JQ_BIN):
    """Executes jq on a file and outputs the results to a file."""
    with open(out_filename, 'w') as out_file:
        check([jq_bin, jq_filter, data_filename], stdout=out_file)