select tst, count(*) howmany from (
select contentid, text, case when patindex('%<START%link:reference%', text) > charindex('\u8209?', text) then 'TRUE' else 'FALSE' end  tst
from contents 
where text like '%link:reference%' and text like '%\u8209?%') t1 --where tst = 'TRUE'
group by tst

select * from items where itemid in (66766, 66770)

select dbo.ve_getshortpathfromcontentid(contentid) location, text, patindex('%<START%link:reference%', text),  charindex('\u8209?', text)
from contents 
where patindex('%<START%link:reference%', text) > charindex('\u8209?', text) and charindex('\u8209?', text) > 0