Add as_query to edges_instance