---
title: Query
summary: Run BQL queries against model versions from every SDK and over HTTP, count and validate them, bind parameters, and query several models at once.
order: 40
terms: [qid, version]
see-also: [reference/bql, tutorials/bql, explanation/the-query-languages]
---

# Query

BQL is the query language of BIM.works: `GET` a list of features (attributes, properties, quantities, relations, calculated values) `WHERE` a condition holds, optionally grouped, ordered and limited. A query runs against one or more model [[term:version|versions]] and answers with one record per object, or per group. The language itself is described in [[page:reference/bql]] and taught in [[page:tutorials/bql]]; the guides here are about calling it.

- [[page:how-to/query/run-a-bql-query]]: the call, the shape of the result, caching.
- [[page:how-to/query/count-results]]: the number of matching objects without fetching them.
- [[page:how-to/query/use-query-parameters]]: `$name` placeholders bound at call time.
- [[page:how-to/query/validate-a-query]]: syntax and feature checks without running.
- [[page:how-to/query/convert-2x-queries]]: BQL, BVL and BCL written for 2.x, rewritten to the 3.0 syntax in one request.
- [[page:how-to/query/query-multiple-models]]: one query over several versions, and telling the results apart by [[term:qid|qid]].
- [[page:how-to/query/text-to-action]]: a sentence turned into a BQL query or a BVL visualisation by the language model, run on the server and shown in the 3D viewer, with a live demo.
