Query Builder helps you explore legislation.gov.uk data, to find words and phrases in close proximity, within specific structural elements of legislation documents, and during specific date ranges or at a point in time, by carrying out simple word and phrase searches. You can explore results further by grouping them, for example by year or legislation type, and counting elements such as the total number of documents, paragraphs, tables, footnotes or annotations.
Query Builder is currently an experimental "beta" service
We have made Query Builder available in its early stages to allow you to explore the tool. As we are still developing Query Builder you might experience a few issues. The data is only updated every 24 hours and the service will be unavailable for a few hours overnight while the database updates. Also, complex queries may currently take a while to return results. Please get in touch if you have any questions or suggestions for the service. You can find out more about how to share feedback during our beta phase here.