Added automatic detection of available query methods to test case 19_query.sh