I think this should return a map name -> query