Depends on what the database is for. In general I have 2 sections for queries--main queries (action queries and queries forms/reports are based on) get one name and sub queries get prefixed with 'sub_' and other data.
In data processing databases (no forms or reports, just tables and queries to extract, transform and load data) for main queries I use number prefixes and then a query description so that they will always show in the correct processing order (005_QueryDescription, 010_QueryDescription, 015_QueryDescription, ...) and subqueries that feed into those main queries get prefixed with 'sub', the number of the main query they go to and then a letter (sub_015_A, sub_015_B, sub_025_A). I always increment the main queries by 5's because invariable I will need to add a query between steps sometime in the future.
In user systems I give main queries a descriptive name (LastUsedProducts, CurrentInventory) and then sub queries that feed those get 'sub_' the name and a letter (sub_LastUsedProducts_A, sub_CurrentInventory_A).
Lastly, I used to do ad hoc querying for project managers and invariably they came back to me days later for updates. These main queries I prefixed with the date (mmddyy) and the name of the project (072220_ParkingExpansion) and the subs got named similarly (sub_072220_ParkingExpansion_A). My deliverable was an Excel file and I always named that the name of the main query (072220_ParkingExpansion.xlsx). So, in 3 weeks when I received an email that said 'I need this file updated', it took me 2 seconds to get to the query.