added cmake for queries