Add QueryTextStore interface used to return query text when include
reference query