Original query:

SELECT "ci_pipelines".* FROM "ci_pipelines" WHERE "ci_pipelines"."ref" = 'master-2' AND "ci_pipelines"."project_id" = 19 AND "ci_pipelines"."tag" = FALSE