Add function mia-query to check if mia-query is available locally