Dataset Viewer
Auto-converted to Parquet Duplicate
query_id
stringlengths
13
18
environment
stringclasses
5 values
environment_name
stringclasses
5 values
command
stringlengths
44
423
phrasing
stringclasses
2 values
plan
stringlengths
11
146
num_sub_queries
int64
1
3
operator_classes
listlengths
1
7
ground_truth
stringlengths
76
888
ground_truth_sql
listlengths
1
3
search_grounds
listlengths
0
2
reference_results
stringlengths
24
47.8k
public-transit-000
public-transit
Public Transit
I’d like to see the ridership reports that recorded 560 or more passenger boardings.
conversational
numeric filter
1
[ "numeric filter" ]
[{"collection_name": "RidershipReports", "numeric_property_filters": [{"property_name": "boardings", "operator": ">=", "value": 560}]}]
[ "SELECT * FROM RidershipReports WHERE boardings >= 560" ]
[]
[["001db920-3eab-5a60-ae36-7245bc906d80", "0039fcd2-134c-5a6c-8cc7-b72995eb9bf5", "005f8b73-068a-5e8b-992d-da8419a1b0c6", "00c0e523-523b-57dd-95de-6fec800d9847", "00f31e7f-ea89-571d-8e9b-7c4034908fda", "010359fc-6711-5744-899e-e1b83c2c6823", "01097b44-4277-5025-9600-8f0e45d8bd1c", "012b634f-9c12-5898-bb5b-fa30beb59fe6"...
public-transit-001
public-transit
Public Transit
Show me the ridership reports with 1250 or fewer passenger boardings.
explicit
numeric filter
1
[ "numeric filter" ]
[{"collection_name": "RidershipReports", "numeric_property_filters": [{"property_name": "boardings", "operator": "<=", "value": 1250}]}]
[ "SELECT * FROM RidershipReports WHERE boardings <= 1250" ]
[]
[["0039fcd2-134c-5a6c-8cc7-b72995eb9bf5", "0076cf59-5c0c-58ac-b355-51a32eed1a71", "00ad8314-6f6a-56b5-b629-48a198294782", "0231936e-12c3-59a5-adf0-ad99804d1428", "0285faf8-256a-57e8-bd90-c7c7f1f38955", "0299bc6e-9725-5a5c-b5a8-3610f40fc360", "033ec476-81dc-5cb0-a0e8-a74e7d6c2a2e", "03659423-353d-5d5c-8c5f-bbe36b9d1dd6"...
public-transit-002
public-transit
Public Transit
I'm putting together an operations review for the agency. Show me the routes that include stop 13, and tell me the latest service date among ridership reports with at least one failed vehicle accessibility check.
conversational
numeric_array filter ; boolean_array filter + date aggregation
2
[ "boolean_array filter", "date aggregation", "numeric_array filter", "multi-query" ]
[{"collection_name": "TransitRoutes", "numeric_array_property_filters": [{"property_name": "stopSequenceNumbers", "operator": "CONTAINS_ANY", "values": [13]}]}, {"collection_name": "RidershipReports", "boolean_array_property_filters": [{"property_name": "vehicleAccessibilityChecks", "operator": "CONTAINS_ANY", "values"...
[ "SELECT * FROM TransitRoutes WHERE stopSequenceNumbers CONTAINS_ANY (13)", "SELECT LATEST(serviceDate) FROM RidershipReports WHERE vehicleAccessibilityChecks CONTAINS_ANY (FALSE)" ]
[]
[["00131256-9329-59de-b9b6-f4dfa21949b6", "00648f49-9c28-598a-b014-5c481d7206e4", "026dbc05-7389-54e2-931c-cd3ddffabcef", "0301b787-b9dd-5df4-9ce8-785a70a320e4", "048d74c0-27bc-5ffb-a37c-0b1dc2337b39", "04cd4e76-b72c-52b8-a294-537b522069b0", "04fcc8f4-45bf-50da-ba38-57b3fd350bee", "07be26ef-e362-53e2-b24d-f6077f9d4593"...
public-transit-003
public-transit
Public Transit
I’m reviewing accessibility issues on routes whose names start with Nerith, so show me the ridership reports where at least one vehicle accessibility check failed. Overall, across all ridership reports, what’s the earliest service date?
conversational
text filter + boolean_array filter ; date aggregation
2
[ "boolean_array filter", "date aggregation", "text filter", "multi-query" ]
[{"collection_name": "RidershipReports", "text_property_filters": [{"property_name": "routeName", "operator": "LIKE", "value": "Nerith%"}], "boolean_array_property_filters": [{"property_name": "vehicleAccessibilityChecks", "operator": "CONTAINS_ANY", "values": [false]}]}, {"collection_name": "RidershipReports", "date_p...
[ "SELECT * FROM RidershipReports WHERE routeName LIKE 'Nerith%' AND vehicleAccessibilityChecks CONTAINS_ANY (FALSE)", "SELECT EARLIEST(serviceDate) FROM RidershipReports" ]
[]
[["04c37aca-a34e-50f3-8b02-1ef57d3ed46c", "0abd9a73-7d25-5cad-8aa0-64df6a5f3b15", "1675fdb4-11cc-532b-88af-a1aaec0e83d7", "190ab79c-7a97-589e-bb41-0b1e11ba25d3", "1fd89565-6fd1-5674-acf2-4a743728fbb7", "24e8a2e8-fa8e-5c90-8ec4-21a386304aff", "2d6c33fa-d410-5cde-8b00-58c963175aba", "42f152d6-2657-5b95-8054-43370428c6b0"...
public-transit-004
public-transit
Public Transit
For the ridership reports, what is the latest service date?
explicit
date aggregation
1
[ "date aggregation" ]
[{"collection_name": "RidershipReports", "date_property_aggregations": [{"property_name": "serviceDate", "metric": "LATEST"}]}]
[ "SELECT LATEST(serviceDate) FROM RidershipReports" ]
[]
[{"LATEST(serviceDate)": "2026-09-18"}]
public-transit-005
public-transit
Public Transit
For ridership reports with a service date after April 10, 2025, which 3 route names come up most often?
explicit
date filter + text aggregation
1
[ "date filter", "text aggregation" ]
[{"collection_name": "RidershipReports", "date_property_filters": [{"property_name": "serviceDate", "operator": ">", "value": "2025-04-10"}], "text_property_aggregations": [{"property_name": "routeName", "metric": "TOP_OCCURRENCES", "top_occurrences_limit": 3}]}]
[ "SELECT TOP_OCCURRENCES(routeName, 3) FROM RidershipReports WHERE serviceDate > '2025-04-10'" ]
[]
[{"TOP_OCCURRENCES(routeName)": [["Alderwick Mill Run", 64], ["Ravenlock Bellows Commons", 30], ["Nettleford Chalk Rise", 27]]}]
public-transit-006
public-transit
Public Transit
I’m reviewing ridership reports from before April 10, 2025; please pull up those reports.
conversational
date filter
1
[ "date filter" ]
[{"collection_name": "RidershipReports", "date_property_filters": [{"property_name": "serviceDate", "operator": "<", "value": "2025-04-10"}]}]
[ "SELECT * FROM RidershipReports WHERE serviceDate < '2025-04-10'" ]
[]
[["00c0e523-523b-57dd-95de-6fec800d9847", "016788d2-a020-5c93-a341-37a457a5a45b", "033ec476-81dc-5cb0-a0e8-a74e7d6c2a2e", "0403c42b-cf2d-5551-b658-6e40969f55d6", "0678e88e-e5f2-5533-b846-da10a5a4809d", "075f4a1d-5040-5e02-9e5c-c0059f0abf6b", "07b58054-c10b-5b6a-a259-9b3556c20076", "08bc6c46-57e6-5707-9dbf-36a212a28b79"...
public-transit-007
public-transit
Public Transit
For the ridership reports, give me the reports with fewer than 560 passenger boardings.
explicit
numeric filter
1
[ "numeric filter" ]
[{"collection_name": "RidershipReports", "numeric_property_filters": [{"property_name": "boardings", "operator": "<", "value": 560}]}]
[ "SELECT * FROM RidershipReports WHERE boardings < 560" ]
[]
[["0076cf59-5c0c-58ac-b355-51a32eed1a71", "00ad8314-6f6a-56b5-b629-48a198294782", "0285faf8-256a-57e8-bd90-c7c7f1f38955", "03659423-353d-5d5c-8c5f-bbe36b9d1dd6", "0678e88e-e5f2-5533-b846-da10a5a4809d", "07d9d6fe-36a2-5d61-b03a-2396e750cd1b", "082288c7-ccf0-5714-a987-8570575d850e", "0bcd1a12-32a0-5134-8310-ef9a31ff5c4d"...
public-transit-008
public-transit
Public Transit
I’m checking our ridership records for a service review. Pull the reports compared against "Sablemere Bellwater Shore Road". Looking across every report dated 2026-02-03 or earlier, which 3 routes show up most often?
conversational
text filter ; date filter + text aggregation
2
[ "date filter", "text aggregation", "text filter", "multi-query" ]
[{"collection_name": "RidershipReports", "text_property_filters": [{"property_name": "comparisonRouteName", "operator": "=", "value": "Sablemere Bellwater Shore Road"}]}, {"collection_name": "RidershipReports", "date_property_filters": [{"property_name": "serviceDate", "operator": "<=", "value": "2026-02-03"}], "text_p...
[ "SELECT * FROM RidershipReports WHERE comparisonRouteName = 'Sablemere Bellwater Shore Road'", "SELECT TOP_OCCURRENCES(routeName, 3) FROM RidershipReports WHERE serviceDate <= '2026-02-03'" ]
[]
[["2f0b8bc9-13c8-5285-a59c-ac960bb78804"], {"TOP_OCCURRENCES(routeName)": [["Alderwick Mill Run", 48], ["Nettleford Chalk Rise", 18], ["Ravenlock Bellows Commons", 16]]}]
public-transit-009
public-transit
Public Transit
Among the ridership reports, what is the smallest boardings figure?
explicit
numeric aggregation
1
[ "numeric aggregation" ]
[{"collection_name": "RidershipReports", "numeric_property_aggregations": [{"property_name": "boardings", "metric": "MIN"}]}]
[ "SELECT MIN(boardings) FROM RidershipReports" ]
[]
[{"MIN(boardings)": 47}]
public-transit-010
public-transit
Public Transit
Looking at ridership reports from 2026-02-03 onward where at least one departure met the punctuality standard, what was the most boardings recorded on any report?
conversational
date filter + boolean_array filter + numeric aggregation
1
[ "boolean_array filter", "date filter", "numeric aggregation" ]
[{"collection_name": "RidershipReports", "date_property_filters": [{"property_name": "serviceDate", "operator": ">=", "value": "2026-02-03"}], "boolean_array_property_filters": [{"property_name": "departurePunctualityChecks", "operator": "CONTAINS_ANY", "values": [true]}], "numeric_property_aggregations": [{"property_n...
[ "SELECT MAX(boardings) FROM RidershipReports WHERE serviceDate >= '2026-02-03' AND departurePunctualityChecks CONTAINS_ANY (TRUE)" ]
[]
[{"MAX(boardings)": 3099}]
public-transit-011
public-transit
Public Transit
Among the daily transit reports with at least one departure meeting the punctuality standard, what was the most boardings recorded?
conversational
boolean_array filter + numeric aggregation
1
[ "boolean_array filter", "numeric aggregation" ]
[{"collection_name": "RidershipReports", "boolean_array_property_filters": [{"property_name": "departurePunctualityChecks", "operator": "CONTAINS_ANY", "values": [true]}], "numeric_property_aggregations": [{"property_name": "boardings", "metric": "MAX"}]}]
[ "SELECT MAX(boardings) FROM RidershipReports WHERE departurePunctualityChecks CONTAINS_ANY (TRUE)" ]
[]
[{"MAX(boardings)": 3099}]
public-transit-012
public-transit
Public Transit
Looking across these ridership reports, how many different routes were used for comparison?
conversational
text aggregation
1
[ "text aggregation" ]
[{"collection_name": "RidershipReports", "text_property_aggregations": [{"property_name": "comparisonRouteName", "metric": "COUNT_DISTINCT"}]}]
[ "SELECT COUNT_DISTINCT(comparisonRouteName) FROM RidershipReports" ]
[]
[{"COUNT_DISTINCT(comparisonRouteName)": 424}]
public-transit-013
public-transit
Public Transit
Find transit routes about observatory and weather-station access, with stop sequence numbers containing both 1 and 8.
explicit
search query + numeric_array filter
1
[ "numeric_array filter", "search query" ]
[{"collection_name": "TransitRoutes", "search_query": "observatory and weather access", "numeric_array_property_filters": [{"property_name": "stopSequenceNumbers", "operator": "CONTAINS_ALL", "values": [1, 8]}]}]
[ "SELECT * FROM TransitRoutes SEARCH 'observatory and weather access' WHERE stopSequenceNumbers CONTAINS_ALL (1, 8)" ]
[ { "sub_query": 0, "property": "routeDescription", "topic": "Observatory and weather station access", "description": "Covers routes connecting residential communities with observatories, weather stations, or other instrument campuses.", "candidate_ids": [ "6fe273bc-e4bd-5376-bec6-85d19e4429...
[["36a37d22-607e-51a6-9387-ec79b14e0c48", "4bffcde9-cab1-5431-9964-3496f786273b", "7478e533-9fca-5f5b-bb72-1b9913770876", "7a14f755-29eb-568d-a4db-f6e072827189", "9a13bff1-6976-5a2b-9061-ad218e96cef9", "9fb24d0e-8e52-539d-981d-e0ac492652cf", "bc20265f-d194-599b-a0bf-3855c1cb5065", "f0b74b88-284b-5624-8e3f-0ecd5453590c"...
public-transit-014
public-transit
Public Transit
Find transit routes about late-night waterfront service that have a stop at sequence number 13.
explicit
search query + numeric_array filter
1
[ "numeric_array filter", "search query" ]
[{"collection_name": "TransitRoutes", "search_query": "late-night waterfront service", "numeric_array_property_filters": [{"property_name": "stopSequenceNumbers", "operator": "CONTAINS_ANY", "values": [13]}]}]
[ "SELECT * FROM TransitRoutes SEARCH 'late-night waterfront service' WHERE stopSequenceNumbers CONTAINS_ANY (13)" ]
[ { "sub_query": 0, "property": "routeDescription", "topic": "Late-night waterfront service", "description": "Covers routes providing late evening transportation for workers or residents traveling between waterfront districts, landings, quays, or harbor communities.", "candidate_ids": [ "6fe...
[["026dbc05-7389-54e2-931c-cd3ddffabcef", "04cd4e76-b72c-52b8-a294-537b522069b0", "04fcc8f4-45bf-50da-ba38-57b3fd350bee", "0819cb54-d7ae-57c5-9c65-bc6ea4c07252", "0ce3b34f-da86-5f38-9da0-3ea3bd1256a1", "10cdd3da-ec58-5eaa-827e-0960baef1820", "11eeae8e-e041-544f-89fb-e400f0cf0743", "11fa2e1e-af7c-546a-bc4f-01e6a047e60e"...
public-transit-015
public-transit
Public Transit
Which of our transit routes serve ferry terminals, harbor communities, or working waterfront areas?
conversational
search query
1
[ "search query" ]
[{"collection_name": "TransitRoutes", "search_query": "ferry and harbor access"}]
[ "SELECT * FROM TransitRoutes SEARCH 'ferry and harbor access'" ]
[ { "sub_query": 0, "property": "routeDescription", "topic": "Ferry and harbor access", "description": "Routes linking passengers with ferry houses, harbor settlements, customs facilities, or working waterfront operations.", "candidate_ids": [ "6fe273bc-e4bd-5376-bec6-85d19e442966", "c...
[["043dd495-25e9-5c2b-9579-7fc23017eced", "048d74c0-27bc-5ffb-a37c-0b1dc2337b39", "0f054e9a-8141-592a-9d6b-3a6dec2f6df3", "106f5024-52d9-5a8a-992e-690ec09339a2", "11af63e3-a3c4-577d-ba6a-2f13c7b98336", "11eeae8e-e041-544f-89fb-e400f0cf0743", "12f71682-3016-5ce9-91a8-d205a81f54d6", "146dcc57-0167-55f1-931c-813a48205c10"...
public-transit-016
public-transit
Public Transit
Show me the daily ridership reports being compared against "Dunbarrow Chalkmere Passage".
conversational
text filter
1
[ "text filter" ]
[{"collection_name": "RidershipReports", "text_property_filters": [{"property_name": "comparisonRouteName", "operator": "=", "value": "Dunbarrow Chalkmere Passage"}]}]
[ "SELECT * FROM RidershipReports WHERE comparisonRouteName = 'Dunbarrow Chalkmere Passage'" ]
[]
[["3b09a5cf-814c-5958-b333-63c2739591e8", "60529129-92e2-5c9d-ae48-7c4b445e29ce", "7201b317-68be-5dcc-b883-f54dd147fa30", "e74ae9d0-3f85-5b16-b0f7-8549097f2e3a"]]
End of preview. Expand in Data Studio

Query Agent Gym

Query Agent Gym is a set of procedurally generated database environments and natural-language queries with exactly known ground-truth queries.

This release holds five held-out test environments containing 15 collections with 1,000 objects each (15,000 objects, 18,000 searchable documents) and 250 queries, 50 per environment. Every entity, name, and document is synthetic.

Environment Collections (kind) Objects Queries
Public Transit TransitRoutes (knowledge_base), RidershipReports (transactional) 2,000 50
Tattoo Studios TattooArtists, TattooDesigns (knowledge_base) 2,000 50
Nonprofits Charities, Campaigns, GivingPrograms (knowledge_base), Donations (transactional) 4,000 50
Surf Schools SurfBeaches, SurfInstructors, LessonPrograms, SurfEquipment (knowledge_base) 4,000 50
Childcare DaycareCenters, ChildcareStaff (knowledge_base), ChildEnrollments (transactional) 3,000 50

Quick start

from datasets import load_dataset
import json

queries = load_dataset("weaviate/QueryAgentGym", "queries", split="test")
surf = queries.filter(lambda r: r["environment"] == "surf-schools")
q = queries[0]
print(q["command"])                     # the natural-language request
print(q["ground_truth_sql"])            # readable ground truth, one entry per sub-query
plan = json.loads(q["ground_truth"])    # exact ground truth (query_database arguments)

routes = load_dataset("weaviate/QueryAgentGym", "public-transit_TransitRoutes", split="test")

Layout

Each environment has its own folder.

environments.parquet                   one row per environment
<environment>/schema.json              the schema exactly as generated
<environment>/queries.parquet          the environment's 50 queries
<environment>/objects/<Collection>.parquet   1,000 objects per collection
Config Rows Contents
queries (default) 250 All five environments' queries, with an environment column
environments 5 One row per environment
<environment>_<Collection> 1,000 each The objects of one collection, one typed column per property

To work with one environment, filter the queries config on environment, or read <environment>/queries.parquet directly.

queries

Field Type Description
query_id string e.g. public-transit-013
environment string Environment id, e.g. public-transit
environment_name string e.g. Public Transit
command string The natural-language request given to the agent
phrasing string explicit (names properties and values plainly) or conversational (a scenario, with values still verbatim)
plan string The operators of the plan, sub-queries separated by ;
num_sub_queries int 1 to 3. Sub-queries are independent, never multi-hop
operator_classes list of strings Operator classes the plan features (search, each filter kind, each aggregation kind, group-by, multi-query)
ground_truth string (JSON) List of query_database argument objects, one per sub-query (format below)
ground_truth_sql list of strings A SQL-like rendering of each sub-query, for reading only
search_grounds list of structs For each sub-query with a search, its relevance-labeled result set (below)
reference_results string (JSON) Each sub-query's ground truth executed on the objects (below)

Objects

Each <environment>_<Collection> config has a uuid column followed by one column per property, in schema order. The uuid is the object's id and is what search_grounds and reference_results refer to. Property types map to columns and to Weaviate data types as follows.

Property type Column type Weaviate data type
searchable_text string text (the prose a search should match)
filterable_text string text (identifiers, references, categories)
int / number int64 / float64 int / number
boolean bool boolean
date string, YYYY-MM-DD date (send as RFC 3339, e.g. 2025-11-16T00:00:00Z)
text_array, int_array, number_array, boolean_array, date_array list text[], int[], number[], boolean[], date[]

Each collection has exactly one identifier property (is_identifier in schema.json): an invented, unique name in a knowledge_base collection, a code in a transactional one. A transactional collection's reference properties (references in schema.json) hold the identifier of a knowledge_base record, stored directly in the row, so no query needs a join. No value is null.

Ground truth format

A ground truth is a list of sub-queries, each a query_database function-call argument object.

[{"collection_name": "TransitRoutes",
  "search_query": "observatory and weather access",
  "numeric_array_property_filters": [
    {"property_name": "stopSequenceNumbers", "operator": "CONTAINS_ALL", "values": [1, 8]}]}]
Argument Items Operators or metrics
collection_name The target collection
search_query string A relevance search over the collection's searchable text
text_property_filters property_name, operator, value =, LIKE (pattern uses %, e.g. Nerith%)
numeric_property_filters property_name, operator, value =, <, >, <=, >=
date_property_filters property_name, operator, value (ISO date) =, <, >, <=, >=
boolean_property_filters property_name, operator, value =, !=
array_property_filters (text arrays), numeric_array_property_filters, boolean_array_property_filters, date_array_property_filters property_name, operator, values CONTAINS_ANY, CONTAINS_ALL
numeric_property_aggregations property_name, metric COUNT, MIN, MAX, MEAN, MEDIAN, MODE, SUM
text_property_aggregations property_name, metric, top_occurrences_limit COUNT, COUNT_DISTINCT, TOP_OCCURRENCES
boolean_property_aggregations property_name, metric COUNT, TOTAL_TRUE, TOTAL_FALSE, PERCENTAGE_TRUE, PERCENTAGE_FALSE
date_property_aggregations property_name, metric COUNT, EARLIEST, LATEST
groupby_property string Groups every aggregation of the sub-query

All filters in a sub-query are combined with AND. A sub-query without aggregations retrieves records, and one with aggregations returns only the statistics.

Searches. The words of search_query are one valid phrasing and are not the target. A search sub-query's correct result is its labeled set: search_grounds[i].candidate_ids are the records the sub-query's filters select (R), and relevant_ids are the records a language model labeled relevant to the topic after reading every document in R (S). The topic and description fields say what the search is about.

Reference results. reference_results[i] is sub-query i executed on the objects, with a search resolving to its relevant_ids. A retrieval is a sorted list of uuids, an aggregation is {"METRIC(property)": value}, and a group-by maps each group value (as a string) to its aggregations. Percentages are on a 0 to 100 scale, and TOP_OCCURRENCES is a list of [value, count] pairs. Ties in MODE and TOP_OCCURRENCES are broken deterministically, which a database may break differently.

Evaluation

Placeholder, see github.com/weaviate/query-agent-benchmarking.

How the data was made

Each environment is a position in a seeded order over 200 domain briefs (seed 380, positions 5 to 9). Its structure is sampled procedurally: the number and kind of collections, property types, references, and each query's operator plan. Language models write the surface: the schema design (GPT-6 Sol), record names and documents (GPT-6 Luna), search topics and their relevance labels, and the natural-language commands (GPT-5.6 Luna). Ground truths are grounded in the saved objects and every command passes mechanical checks and a faithfulness verifier, so the plan can be recovered from the words. Each set of 50 queries is selected from a pool of 200 sampled plans so that every operator class appears at least 3 times, which makes the sets balanced across operators rather than distributed like natural traffic. A seeded coin chose each command's phrasing, giving 113 explicit and 137 conversational commands.

Limitations

  • All data is synthetic and English only. Entities are invented, so an agent cannot answer from world knowledge, and documents are written as a real system of record would write them.
  • Values are drawn independently, so a record can combine values that would rarely co-occur in reality (a fin set tagged for zipper care). Documents are written to stay consistent with each record's values.
  • Public Transit has no group-by queries. Its only groupable properties are references with over 400 distinct values, which yield degenerate groups.
  • Relevance labels for searches come from a language model reading each candidate document, not from human annotation.
Downloads last month
56