Add query as list functions