In the end the syntax that worked correctly and quickly was:
val field = s"paper_id=>$paperId" val q = quote{ auditDb.filter(row => sql"${row.rowData} @> ${lift(field)}::hstore".as[Boolean]) }