Implement Druid Query.