#396 Added query conversion test script
#396 Removed need for revisionid subquery