         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

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


DROP FUNCTION IF EXISTS ijpp_runs_by_config(exp_id UUID, config_name VARCHAR);
CREATE OR REPLACE FUNCTION ijpp_runs_by_config(exp_id UUID, config_name VARCHAR)
RETURNS TABLE (
    id INTEGER,
    project_name VARCHAR,
    project_group VARCHAR,
    config VARCHAR
)
AS $BODY$ BEGIN
RETURN QUERY
    SELECT
    	run_1.id,
   		run_1.project_name,
        run_1.project_group,
        run_1.config
    FROM ijpp_valid_run(exp_id) as run_1
    WHERE
      run_1.config = config_name;
END $BODY$ language plpgsql;

DROP FUNCTION IF EXISTS ijpp_project_region_time(region_name VARCHAR, exp_id UUID, config_name VARCHAR);
