Added code to support TransmediaQuery