# Predicate query

**URL:** <https://discuss.aerospike.com/t/predicate-query/7355>\
**Category:** Query & Indexing\
**Tags:** query\
**Created:** [April 19, 2020, 7:43pm UTC](https://discuss.aerospike.com/t/predicate-query/7355 "2020-04-19T19:43:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manav\_Jain](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/manav_jain/32/1384_2.png) [@Manav\_Jain](https://discuss.aerospike.com/u/Manav_Jain)\
**Post date:** [April 19, 2020, 7:43pm UTC](https://discuss.aerospike.com/t/predicate-query/7355/1 "2020-04-19T19:43:05Z")

</div>

My set looks like the following

```
               <uidx, card1, card2, card3 ....> 

```

The card bins has values of the following structure

```
        {endtime:1662772, data: "xyz "}

```

So each card bin has a datatype of map

Now i want to query a record which has a uidx = “123” , and enTime in all of the card bins is greater then current time

Is it possible with predicate query ?

---

<div class="post-metadata">

**Author:** ![pgupta](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/pgupta/32/2351_2.png) [@pgupta](https://discuss.aerospike.com/u/pgupta)\
**Post date:** [April 27, 2020, 4:26pm UTC](https://discuss.aerospike.com/t/predicate-query/7355/2 "2020-04-27T16:26:06Z")

</div>

Are the total card bin names fixed and common for all the records?

---

<div class="post-metadata">

**Author:** ![Manav\_Jain](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/manav_jain/32/1384_2.png) [@Manav\_Jain](https://discuss.aerospike.com/u/Manav_Jain)\
**Post date:** [April 28, 2020, 7:06am UTC](https://discuss.aerospike.com/t/predicate-query/7355/3 "2020-04-28T07:06:47Z")

</div>

Yes … Like there can be 50 cards and a record can have bins for any of the 50 cards

---

<div class="post-metadata">

**Author:** ![kporter](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.aerospike.com/kporter/32/515_2.png) [@kporter](https://discuss.aerospike.com/u/kporter)\
**Post date:** [July 1, 2020, 5:37pm UTC](https://discuss.aerospike.com/t/predicate-query/7355/4 "2020-07-01T17:37:34Z")

</div>

Presently, as of Aerospike 5.0, I do not believe this query is possible. There are efforts currently in progress that will expand predicate expressions. I believe this will be possible with new upcoming predexp changes.
