query to topology