closes #246:  add check for version number and set query template accordingly
closes #246:  add check for version number and set query template accordingly

asir6/FusionLab,asir6/FusionLab,asir6/FusionLab,asir6/FusionLab