Last query is added