         spec_enabled.runtime AS runtime_polly,
         spec_disabled.runtime AS runtime_polyjit
       FROM
-             ijpp_run_regions(exp_id, 'PolyJIT') as spec_enabled
+             ijpp_run_regions(exp_id, 'PolyJIT')               as spec_enabled
         JOIN ijpp_run_regions(exp_id, 'polly.inside.no-delin') as spec_disabled
         ON (spec_enabled.project_name = spec_disabled.project_name AND
             spec_enabled.project_group = spec_disabled.project_group AND

    run_1.config           AS config,
    config.value           AS cores,
    regions.name           AS region_name,
    SUM(regions.duration)  AS runtime,
    spec.value             AS specialization
  FROM
           ijpp_valid_run(exp_id)                   AS run_1
      JOIN ijpp_runs_by_config(exp_id, config_name) AS spec ON (run_1.id = spec.id)
      JOIN config                                           ON (run_1.id = config.run_id)
      JOIN regions                                          ON (run_1.id = regions.id)
  WHERE
    config.name = 'cores'
  GROUP BY
    run_1.project_name, run_1.project_group, run_1.config, regions.name, config.value, spec.value
  ORDER BY
    run_1.project_name, run_1.project_group, run_1.config, runtime, config.value;
END $BODY$ language plpgsql;

DROP FUNCTION IF EXISTS ijpp_region_wise_compare(exp_id UUID);

  config         VARCHAR,
  cores          VARCHAR,
  region_name    VARCHAR,
  runtime        NUMERIC
)
AS $BODY$ BEGIN
RETURN QUERY
