# \#query

**URL:** https://community.temporal.io/tag/query/179.md

[Latest](https://community.temporal.io/latest.md) · [Categories](https://community.temporal.io/categories.md) · [Tags](https://community.temporal.io/tags.md)

---

## [Temporal Querying Problem](https://community.temporal.io/t/temporal-querying-problem/19508)

<div class="topic-metadata">

**Author:** [@Shubhanshu\_Sharma](https://community.temporal.io/u/Shubhanshu_Sharma)\
**Replies:** 2\
**Last updated:** [May 8, 2026, 12:21am UTC](https://community.temporal.io/t/temporal-querying-problem/19508 "2026-05-08T00:21:16Z")

</div>

In Temporal, for a single workflow ID, there can be multiple executions over time. Right now, when we query workflows, we get all executions for each workflow ID. However, the requirement is to get only the latest exec…

---

## [Can Query be used to fetch the state of workflow in near real time?](https://community.temporal.io/t/can-query-be-used-to-fetch-the-state-of-workflow-in-near-real-time/6436)

<div class="topic-metadata">

**Author:** [@divyansh](https://community.temporal.io/u/divyansh)\
**Replies:** 8\
**Last updated:** [April 10, 2025, 2:48pm UTC](https://community.temporal.io/t/can-query-be-used-to-fetch-the-state-of-workflow-in-near-real-time/6436 "2025-04-10T14:48:43Z")

</div>

Hi, I am new to temporal. Let’s say there are millions of workflows running or dormant in temporal. Each workflow has some enum X which is updated via some signals in the workflow. Can the Query method be wrapped as AP…

---

## [Best approach for compering data across multiple Temporal Workflows](https://community.temporal.io/t/best-approach-for-compering-data-across-multiple-temporal-workflows/16155)

<div class="topic-metadata">

**Author:** [@Dandy](https://community.temporal.io/u/Dandy)\
**Replies:** 1\
**Last updated:** [January 22, 2025, 2:38am UTC](https://community.temporal.io/t/best-approach-for-compering-data-across-multiple-temporal-workflows/16155 "2025-01-22T02:38:07Z")

</div>

Hi, We have long-running workflows in our system and are exploring the best way to compare data across multiple workflows for product-related purposes. Would you recommend querying Temporal directly for this comparison…

---

## [Does a workflow query function need to be deterministic?](https://community.temporal.io/t/does-a-workflow-query-function-need-to-be-deterministic/12958)

<div class="topic-metadata">

**Author:** [@semekh](https://community.temporal.io/u/semekh)\
**Replies:** 2\
**Last updated:** [July 26, 2024, 9:57pm UTC](https://community.temporal.io/t/does-a-workflow-query-function-need-to-be-deterministic/12958 "2024-07-26T21:57:29Z")

</div>

I’d like to have query function status() that returns the progress of a running workflow. The only catch is that I’d like to return the current long-running activity progress as well. I can indicate the progress of the l…

---

## [Innacurate Query Results](https://community.temporal.io/t/innacurate-query-results/10244)

<div class="topic-metadata">

**Author:** [@major.hph](https://community.temporal.io/u/major.hph)\
**Replies:** 0\
**Last updated:** [November 29, 2023, 9:51am UTC](https://community.temporal.io/t/innacurate-query-results/10244 "2023-11-29T09:51:40Z")

</div>

I have the following issue. I want to query currently running or completed workflows in the last Minute. For this I use this query "WorkflowType='SendMails' AND ((ExecutionTime \>= '" + past + "' AND ExecutionStatus='Run…

---

## [Query workflow start and end time with custom data](https://community.temporal.io/t/query-workflow-start-and-end-time-with-custom-data/8746)

<div class="topic-metadata">

**Author:** [@Praba](https://community.temporal.io/u/Praba)\
**Replies:** 1\
**Last updated:** [July 5, 2023, 3:12pm UTC](https://community.temporal.io/t/query-workflow-start-and-end-time-with-custom-data/8746 "2023-07-05T15:12:11Z")

</div>

I want to capture workflow start and end time with other user defined data, and use query method to get that data later. Use below code to implement the logic public class workflow { WorkflowData workflowData; public…

---

## [List filter wildcard query not returning expected results](https://community.temporal.io/t/list-filter-wildcard-query-not-returning-expected-results/7362)

<div class="topic-metadata">

**Author:** [@chkl](https://community.temporal.io/u/chkl)\
**Replies:** 4\
**Last updated:** [February 27, 2023, 11:42am UTC](https://community.temporal.io/t/list-filter-wildcard-query-not-returning-expected-results/7362 "2023-02-27T11:42:28Z")

</div>

Hi, we are trying to improve our queries to search for workflows by certain custom search attributes by adding also a wildcard search. We followed the documentation about the List Filter and our expectation was that we …
