PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?lib ?libLabel ( GROUP_CONCAT( DISTINCT ?branch ; separator = "|" ) AS ?branchIRIs ) ( GROUP_CONCAT( DISTINCT ?branchLabel ; separator = " | " ) AS ?branchLabels ) WHERE {
  VALUES ?gpls {
    wd:Q30268112
  }
  {
    ?lib wdt:P361 ?gpls .
  } UNION {
    ?lib wdt:P749 ?gpls .
  } UNION {
    ?lib wdt:P137 ?gpls .
  }
  ?lib wdt:P31 ?libType .
  ?libType wdt:P279 * ?superType .
  VALUES ?superType {
    wd:Q7075 wd:Q28564 wd:Q26271642
  }
  OPTIONAL {
    ?lib wdt:P527 ?branch .
    OPTIONAL {
      ?branch rdfs:label ?branchLabel .
      FILTER ( LANG( ?branchLabel ) = "en" )
    }
  }
  OPTIONAL {
    ?lib rdfs:label ?libLabel .
    FILTER ( LANG( ?libLabel ) = "en" )
  }
}
GROUP BY ?lib ?libLabel
ORDER BY ?libLabel

Using entities:
- library network (wd:Q26271642), also known as centralized library system, library system: is subclass of library association / is subclass of alliance / is subclass of Alliance / council department or outsourced organisation that manages ... or between different centers, buildings or libraries branches / organization that manages and coordinates operations and ... or between different centers, buildings or libraries branches
- public library (wd:Q28564), also known as public libraries: is instance of type of library / is subclass of facility / is subclass of library / organized collection of books and information resources made accessible for the public / publicly funded building containing an organised collection of books and information resources made accessible for the public
- Georgia Public Library Service (wd:Q30268112), also known as GPLS: is instance of state agency of the United States / is instance of library network / is instance of library service / is instance of cultural institution / state-level public library service for Georgia, United States
- library (wd:Q7075), also known as libraries, library organization: is subclass of cultural facility / is subclass of GLAM / is subclass of public institution / institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films / institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films

Using properties:
- operator (wd:P137 as wdt), also known as administrator, controlled by, facility operator, in use by, item operator, etc.: is subproperty of used by / organization that operates the service, facility, ship, aircraft, missile / person, profession, organization or entity that operates the equipment, facility, or service / person, profession, or organization that operates the equipment, facility, or service; use country for diplomatic missions
- subclass of (wd:P279 as wdt), also known as all members of this class also belong to, category of, form of, has superclass, is a class of, etc.: this item is a subclass (subset) of that item; ALL instances ... of volcanic landform); Everest is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain
- instance of (wd:P31 as wdt), also known as example of, has type, is a, is an, is of type, etc.: that class of which this subject is a particular example and ... a subclass of mountain (and an instance of volcanic landform) / type to which this subject corresponds/belongs. Different ... and the volcano is a type (instance) of volcanic landform
- part of (wd:P361 as wdt), also known as assembly of, branch of, chain, collateral branch of, component of, etc.: object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670))
- has part(s) (wd:P527 as wdt), also known as amalgamation of, assembled from, assembled out of, composed of, comprised of, etc.: part of this subject, also valuable subclass or exemplar. Inverse property of "part of". / part of this subject; inverse property of "part of" (P361). See also "has parts of the class" (P2670). / part of this subject; inverse property of "part of" (P361). See also "has parts of the class" (P2670).
- parent organization (wd:P749 as wdt), also known as chapter of, has organizational parent, holding, holding company, owned by (company or organisation), etc.: is subproperty of owned by / is subproperty of part of / parent organization of an organization, opposite of subsidiaries (P355)

Got 62 rows and 4 columns, showing the first 5 and last 5 rows below:
| lib                                                          | libLabel                                                | branchIRIs | branchLabels                                                                                |
| ------------------------------------------------------------ | ------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Athens Regional Library System (wd:Q29094268)                | Athens Regional Library System (lang:en)                |            | East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library (lang:en)    |
| Augusta-Richmond County Public Library System (wd:Q30267984) | Augusta-Richmond County Public Library System (lang:en) |            | Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library (lang:en)             |
| Azalea Regional Library System (wd:Q29094224)                | Azalea Regional Library System (lang:en)                |            | Walnut Grove Library | Greene County Library | Morgan County ... Monroe-Walton County Library | Eatonton-Putnam County Library (lang:en) |
| Bartow County Library System (wd:Q29093930)                  | Bartow County Library System (lang:en)                  |            | Cartersville Public Library | Adairsville Public Library | Emmie Nelson Public Library (lang:en)                                         |
| Bartram Trail Regional Library System (wd:Q30621824)         | Bartram Trail Regional Library System (lang:en)         |            | Bartram Trail Regional Library System Bookmobile | Mary ... | Thomson-McDuffie County Library | Taliaferro County Library (lang:en)      |
| ...                                                          | ...                                                     | ...        | ...                                                                                |
| Three Rivers Regional Library System (wd:Q30634137)          | Three Rivers Regional Library System (lang:en)          |            | Charlton Public Library | Long County Library | Hog Hammock ... Library | Brantley County Library | Wayne County Library (lang:en)       |
| Troup-Harris Regional Library System (wd:Q30633895)          | Troup-Harris Regional Library System (lang:en)          |            | LaGrange Memorial Library | Hogansville Public Library | Harris County Public Library (lang:en)                                          |
| Twin Lakes Library System (wd:Q7858217)                      | Twin Lakes Library System (lang:en)                     |            | Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library (lang:en)                                                  |
| West Georgia Regional Library System (wd:Q17035737)          | West Georgia Regional Library System (lang:en)          |            | Betty C. Hagler/Lithia Springs Public Library | ... Maude P. Ragsdale Public Library | New Georgia Public Library (lang:en)              |
| Worth County Library System (wd:Q69471300)                   | Worth County Library System (lang:en)                   |            | Margaret Jones Public Library (lang:en)                                                                                |

Answer:
I ran the query above. Summary of the results:

- The query returns 62 distinct overarching library items (library systems/public-library entities) that are linked to the Georgia Public Library Service (wd:Q30268112) via part-of (P361), parent organization (P749), or operator (P137).
- For each such overarching library the query returns any P527 (has part) values (the individual branches) as pipe-separated IRIs and English labels. Many library systems in Wikidata have their branches recorded via P527, while some do not have P527 statements recorded.

Examples (overarching library — QID — selected branch labels):
- Athens Regional Library System (wd:Q29094268) — branches include: East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library
- Augusta-Richmond County Public Library System (wd:Q30267984) — branches include: Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library
- Forsyth County Public Library System (wd:Q29094048) — branches include: Cumming Library | Sharon Forks Library | Hampton Park Library | Post Road Library
- Twin Lakes Library System (wd:Q7858217) — branches include: Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library
- West Georgia Regional Library System (wd:Q17035737) — branches include: Betty C. Hagler/Lithia Springs Public Library | Maude P. Ragsdale Public Library | New Georgia Public Library

If you would like the full enumerated results (all 62 overarching libraries each with their branch IRIs and English branch labels), I can paste the complete table here, provide it as CSV, or filter it further (for example, only systems that have P527 parts recorded). Which would you prefer?

I ran the query above. Summary of the results:

- The query returns 62 distinct overarching library items (library systems/public-library entities) that are linked to the Georgia Public Library Service (wd:Q30268112) via part-of (P361), parent organization (P749), or operator (P137).
- For each such overarching library the query returns any P527 (has part) values (the individual branches) as pipe-separated IRIs and English labels. Many library systems in Wikidata have their branches recorded via P527, while some do not have P527 statements recorded.

Examples (overarching library — QID — selected branch labels):
- Athens Regional Library System (wd:Q29094268) — branches include: East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library
- Augusta-Richmond County Public Library System (wd:Q30267984) — branches include: Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library
- Forsyth County Public Library System (wd:Q29094048) — branches include: Cumming Library | Sharon Forks Library | Hampton Park Library | Post Road Library
- Twin Lakes Library System (wd:Q7858217) — branches include: Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library
- West Georgia Regional Library System (wd:Q17035737) — branches include: Betty C. Hagler/Lithia Springs Public Library | Maude P. Ragsdale Public Library | New Georgia Public Library

If you would like the full enumerated results (all 62 overarching libraries each with their branch IRIs and English branch labels), I can paste the complete table here, provide it as CSV, or filter it further (for example, only systems that have P527 parts recorded). Which would you prefer?

SPARQL query over wikidata:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT DISTINCT ?lib ?libLabel ( GROUP_CONCAT( DISTINCT ?branch ; separator = "|" ) AS ?branchIRIs ) ( GROUP_CONCAT( DISTINCT ?branchLabel ; separator = " | " ) AS ?branchLabels ) WHERE {
  VALUES ?gpls {
    wd:Q30268112
  }
  {
    ?lib wdt:P361 ?gpls .
  } UNION {
    ?lib wdt:P749 ?gpls .
  } UNION {
    ?lib wdt:P137 ?gpls .
  }
  ?lib wdt:P31 ?libType .
  ?libType wdt:P279 * ?superType .
  VALUES ?superType {
    wd:Q7075 wd:Q28564 wd:Q26271642
  }
  OPTIONAL {
    ?lib wdt:P527 ?branch .
    OPTIONAL {
      ?branch rdfs:label ?branchLabel .
      FILTER ( LANG( ?branchLabel ) = "en" )
    }
  }
  OPTIONAL {
    ?lib rdfs:label ?libLabel .
    FILTER ( LANG( ?libLabel ) = "en" )
  }
}
GROUP BY ?lib ?libLabel
ORDER BY ?libLabel

Using entities:
- library network (wd:Q26271642), also known as centralized library system, library system: is subclass of library association / is subclass of alliance / is subclass of Alliance / council department or outsourced organisation that manages ... or between different centers, buildings or libraries branches / organization that manages and coordinates operations and ... or between different centers, buildings or libraries branches
- public library (wd:Q28564), also known as public libraries: is instance of type of library / is subclass of facility / is subclass of library / organized collection of books and information resources made accessible for the public / publicly funded building containing an organised collection of books and information resources made accessible for the public
- Georgia Public Library Service (wd:Q30268112), also known as GPLS: is instance of state agency of the United States / is instance of library network / is instance of library service / is instance of cultural institution / state-level public library service for Georgia, United States
- library (wd:Q7075), also known as libraries, library organization: is subclass of cultural facility / is subclass of GLAM / is subclass of public institution / institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films / institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films

Using properties:
- operator (wd:P137 as wdt), also known as administrator, controlled by, facility operator, in use by, item operator, etc.: is subproperty of used by / organization that operates the service, facility, ship, aircraft, missile / person, profession, organization or entity that operates the equipment, facility, or service / person, profession, or organization that operates the equipment, facility, or service; use country for diplomatic missions
- subclass of (wd:P279 as wdt), also known as all members of this class also belong to, category of, form of, has superclass, is a class of, etc.: this item is a subclass (subset) of that item; ALL instances ... of volcanic landform); Everest is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain / this item is a subclass (subset) of that item; all instances ... instance of volcanic landform); K2 is an instance of mountain
- instance of (wd:P31 as wdt), also known as example of, has type, is a, is an, is of type, etc.: that class of which this subject is a particular example and ... a subclass of mountain (and an instance of volcanic landform) / type to which this subject corresponds/belongs. Different ... and the volcano is a type (instance) of volcanic landform
- part of (wd:P361 as wdt), also known as assembly of, branch of, chain, collateral branch of, component of, etc.: object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670)) / object of which the subject is a part (if this subject is ... "has part" (P527, see also "has parts of the class" (P2670))
- has part(s) (wd:P527 as wdt), also known as amalgamation of, assembled from, assembled out of, composed of, comprised of, etc.: part of this subject, also valuable subclass or exemplar. Inverse property of "part of". / part of this subject; inverse property of "part of" (P361). See also "has parts of the class" (P2670). / part of this subject; inverse property of "part of" (P361). See also "has parts of the class" (P2670).
- parent organization (wd:P749 as wdt), also known as chapter of, has organizational parent, holding, holding company, owned by (company or organisation), etc.: is subproperty of owned by / is subproperty of part of / parent organization of an organization, opposite of subsidiaries (P355)

Execution result:
Got 62 rows and 4 columns, showing the first 5 and last 5 rows below:
| lib                                                          | libLabel                                                | branchIRIs | branchLabels                                                                                |
| ------------------------------------------------------------ | ------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Athens Regional Library System (wd:Q29094268)                | Athens Regional Library System (lang:en)                |            | East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library (lang:en)    |
| Augusta-Richmond County Public Library System (wd:Q30267984) | Augusta-Richmond County Public Library System (lang:en) |            | Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library (lang:en)             |
| Azalea Regional Library System (wd:Q29094224)                | Azalea Regional Library System (lang:en)                |            | Walnut Grove Library | Greene County Library | Morgan County ... Monroe-Walton County Library | Eatonton-Putnam County Library (lang:en) |
| Bartow County Library System (wd:Q29093930)                  | Bartow County Library System (lang:en)                  |            | Cartersville Public Library | Adairsville Public Library | Emmie Nelson Public Library (lang:en)                                         |
| Bartram Trail Regional Library System (wd:Q30621824)         | Bartram Trail Regional Library System (lang:en)         |            | Bartram Trail Regional Library System Bookmobile | Mary ... | Thomson-McDuffie County Library | Taliaferro County Library (lang:en)      |
| ...                                                          | ...                                                     | ...        | ...                                                                                |
| Three Rivers Regional Library System (wd:Q30634137)          | Three Rivers Regional Library System (lang:en)          |            | Charlton Public Library | Long County Library | Hog Hammock ... Library | Brantley County Library | Wayne County Library (lang:en)       |
| Troup-Harris Regional Library System (wd:Q30633895)          | Troup-Harris Regional Library System (lang:en)          |            | LaGrange Memorial Library | Hogansville Public Library | Harris County Public Library (lang:en)                                          |
| Twin Lakes Library System (wd:Q7858217)                      | Twin Lakes Library System (lang:en)                     |            | Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library (lang:en)                                                  |
| West Georgia Regional Library System (wd:Q17035737)          | West Georgia Regional Library System (lang:en)          |            | Betty C. Hagler/Lithia Springs Public Library | ... Maude P. Ragsdale Public Library | New Georgia Public Library (lang:en)              |
| Worth County Library System (wd:Q69471300)                   | Worth County Library System (lang:en)                   |            | Margaret Jones Public Library (lang:en)                                                                                |

[System]
You are a question answering assistant. Your job is to generate a SPARQL query to answer a given user question.

You should follow a step-by-step approach to generate the SPARQL query:
1. Determine possible entities and properties implied by the user question.
2. Search for the entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Execute intermediate queries to get feedback and to verify your assumptions. You may need to refine or rethink your current plan based on the query results and go back to step 2 if needed, possibly multiple times.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Available knowledge graphs:
- wikidata at http://localhost:7001 with prefix index for entities and similarity index for properties, and notes:
  - P106 = occupation. Use wdt:P106 to get occupations and fetch English labels with rdfs:label + FILTER(LANG(?label)="en"). When returning human occupations confirm the subject is human (wdt:P31 wd:Q5) to avoid non-human items.
  - Population (P1082) and tabular (P4179): use wdt:P1082 for quick/direct values; for time-series/point-in-time use p:P1082 + ps:P1082 + pq:P585 and ORDER BY pq:P585 DESC. Inspect statement qualifiers (e.g., 'applies to part') and prov:wasDerivedFrom references (pr:P854 etc.) to detect city-proper vs metro/prefecture scopes before using values.
  - Common person properties: P31 (instance of human Q5), P106 (occupation), P569 (date of birth), P19 (place of birth), P27 (country of citizenship), P21 (sex/gender), P166 (award received). Use wdt: for direct values when possible.
  - P17 (country) can be incomplete/misleading for places (historical/overseas tags). To get modern cities in a country combine: instance-of city (P31=Q515) + wdt:P17 OR use wdt:P131* to find an admin parent whose wdt:P17 = the country. Also cross-check coordinates (P625) or admin hierarchy to spot outliers.
  - When filtering by date of birth (P569) use xsd:dateTime comparisons (e.g. >= "1900-01-01T00:00:00Z"^^xsd:dateTime). Be aware many items have year-only or imprecise dates and coverage is biased toward notable/public figures (sportspeople, politicians, artists).
  - To retrieve qualifiers (e.g., award year) use the statement/qualifier pattern: p:Pxxx / ps:Pxxx / pq:P585. Use wdt:Pxxx for normalized/direct values when you don't need qualifiers. Example: p:P166 + pq:P585 gives award year.
  - To get a person's occupations: use wdt:P106 for direct/normalized values and rdfs:label for human-readable names (FILTER(LANG(...))). Example: wd:Q... wdt:P106 ?occ . ?occ rdfs:label ?occLabel . FILTER(LANG(?occLabel)="en").
  - P166 = award received. Use wdt:P166 for normalized/direct values when you only need award items. To get award years or qualifiers use p:P166 / ps:P166 / pq:P585. Many statements lack pq:P585 — use OPTIONAL { ?stmt pq:P585 ?date } and ORDER BY DESC(?date). When listing award winners, filter ?person wdt:P31 wd:Q5 to ensure humans.
  - Population time-series pattern: wd:Q... p:P1082 ?stmt . ?stmt ps:P1082 ?pop . OPTIONAL { ?stmt pq:P585 ?date } . ORDER BY DESC(?date). pq:P585 is the point-in-time qualifier. IMPORTANT: time-series may mix scopes (city proper vs metro) — e.g., Tokyo has a 2016 entry ~38,140,000 likely metro vs smaller city figures. Inspect qualifiers/references for scope before use.
  - Use wdt:P131* to traverse the admin hierarchy and compare wdt:P17 on the place vs an admin parent to detect historical/colonial country assignments. When mismatches appear, inspect the admin parent's instance-of (P31), labels, qualifiers and references to interpret the historical scope.
  - wdt:P106 often yields multiple occupations for a person. Use GROUP_CONCAT(DISTINCT ?occLabel; separator=", ") or return multiple rows. Always fetch labels with rdfs:label + FILTER(LANG(?label)="en") to get readable occupation names.
  - When a search_entity returns multiple hits (person vs sculpture vs memorial), confirm you selected the human/statements by checking wdt:P31 (instance of) and relevant wdt: properties (e.g., wdt:P106). This avoids using a non-human QID by mistake.
  - search_autocomplete can be constrained with a SPARQL pattern containing ?search (e.g., SELECT * WHERE { ?search wdt:P31 wd:Q5 }). Use constraints to focus results (e.g., humans) and avoid ambiguous fallbacks; if it returns no results, fallback to search_entity and verify wdt:P31.
  - Use search_property_of_entity to find relevant properties for an entity (e.g., 'award' -> P166) and search_object_of_property to discover candidate objects (e.g., 'physicist' for P106). This reduces guessing P/Q ids and surfaces qualifiers.
  - Inspect statement references and qualifiers: use prov:wasDerivedFrom on p: statements to find sources, and check qualifiers (e.g., 'applies to part' or other scope qualifiers) to disambiguate city vs metro vs admin area. Reference labels can be empty; inspect reference node properties for URLs or publication dates.

Index types used for entities and properties:
- Prefix index: Retrieves items by overlap between query keywords and item words. The query keywords can match item words exactly or as prefixes.
- Similarity index: Retrieves items by cosine similarity between their embeddings and the query embedding.

General notes across knowledge graphs:
- Use rdfs:label + FILTER(LANG(?label)="en") for labels; avoid SERVICE wikibase:label. Use wdt:Pxxx for normalized/direct values when qualifiers aren't needed. Use p:Pxxx / ps:Pxxx / pq:Pxxx to access statement qualifiers (e.g., award year via pq:P585). When dates matter, prefer xsd:dateTime and watch for year-only precision.
- Practical query patterns: use rdfs:label + FILTER(LANG(...)) for labels. Use wdt:Pxxx for direct/normalized values when qualifiers aren't needed. Use p:Pxxx / ps:Pxxx / pq:Pxxx to access qualifiers (dates via pq:P585). For dates use xsd:dateTime and expect year-only precision. For places: combine P17 with P131 or coordinate (P625) filters to avoid historical/overseas mismatches.
- Use OPTIONAL for pq: qualifiers (e.g., pq:P585), sort by qualifier (ORDER BY pq:P585 DESC) to prefer recent values. Use GROUP_CONCAT to combine multiple labels/values in one row. Watch for typed literals (xsd:dateTime, xsd:decimal) when filtering or sorting.
- Before querying, use search_entity to resolve human-friendly names to wd:Q identifiers and verify instance-of (e.g., check wdt:P31 = wd:Q5 for humans) to avoid ambiguous matches. Prefer the top match but programmatically confirm P31 before using its data.
- Use search_property to confirm property identifiers (e.g., "country" -> P17) before embedding them in queries. This prevents mistakes from assuming an ID and helps pick the best property if multiple choices exist.
- search_autocomplete can fall back to an unconstrained search or error when there are too many candidates. If this happens (e.g., "more than the maximum supported number of subject candidates"), retry with narrower constraints such as instance-of (wdt:P31), additional type filters, or short prefixes to reduce the candidate set; otherwise fallback to search_entity and verify wdt:P31.
- Use list(...) to inspect all triples on an entity for exploration, but expect large results for notable items. Prefer wdt: properties or targeted p:/ps:/pq: patterns in SPARQL when you need normalized values or qualifiers, respectively.
- Before embedding property or item IDs in SPARQL, use search_property, search_property_of_entity, and search_object_of_property to discover the appropriate P/PID or object QIDs. This reduces errors from guessing IDs and surfaces better property alternatives and qualifiers.
- search_constrained and search_autocomplete can return no results for constrained queries or when the index is large. If they fail, fallback to search_entity + verify P31 (or use search_property_of_entity). Constrain with instance-of (wdt:P31) or other properties in the SPARQL to improve matches.
- When selecting awards by year, prefer xsd:dateTime range filters (e.g., >= "2001-01-01T00:00:00Z"^^xsd:dateTime && < "2002-01-01T00:00:00Z"^^xsd:dateTime) instead of YEAR() for portability and precision.
- When selecting award winners via wdt:P166, filter ?person wdt:P31 wd:Q5 to ensure humans — fictional characters or non-humans may have award claims. If you need award years use p:P166 / ps:P166 / pq:P585 and OPTIONAL { ?stmt pq:P585 ?year } to retrieve qualifier years.
- Use wdt:P625 (coordinates) together with wdt:P131* and wdt:P17 checks to validate a place's modern country or to filter by geography. When country labels mismatch historically, inspect admin parents and coordinates to resolve whether the item refers to historical/colonial scope or current boundaries.
- Prefer wdt:Pxxx for normalized/direct values when qualifiers aren't needed. Use p:Pxxx / ps:Pxxx / pq:Pxxx to access qualifiers (e.g., pq:P585 for award year). Always fetch labels with rdfs:label + FILTER(LANG(?label) = "en").
- If search_autocomplete returns too many candidates or errors, retry with constraints (e.g., SELECT * WHERE { ?search wdt:P31 wd:Q5 }) or narrower query text. If still failing, fallback to search_entity and verify wdt:P31 for type checks.
- For award-year queries use p:P166 / ps:P166 / pq:P585 to access award statements and year qualifiers. Filter by xsd:dateTime ranges (e.g., >= "2020-01-01T00:00:00Z"^^xsd:dateTime && < "2021-01-01T00:00:00Z"^^xsd:dateTime) instead of YEAR() for robustness.
- Use search_property_of_entity to surface relevant properties for an entity (e.g., 'birth' -> P569/P19). list(...) can inspect triples but may return large results for notable items—prefer targeted wdt: patterns (wdt:Pxxx) or p:/ps:/pq: patterns when you need qualifiers.

SPARQL prefixes for use in function calls:
- bd: <http://www.bigdata.com/rdf#
- cc: <http://creativecommons.org/ns#
- data: <https://www.wikidata.org/wiki/Special:EntityData/
- dc: <http://purl.org/dc/elements/1.1/
- dct: <http://purl.org/dc/terms/
- foaf: <http://xmlns.com/foaf/0.1/
- geo: <http://www.opengis.net/ont/geosparql#
- geof: <http://www.opengis.net/def/function/geosparql/
- gn: <http://www.geonames.org/ontology#
- hint: <http://www.bigdata.com/queryHints#
- imdb: <https://www.imdb.com/
- math: <http://www.w3.org/2005/xpath-functions/math#
- ontolex: <http://www.w3.org/ns/lemon/ontolex#
- owl: <http://www.w3.org/2002/07/owl#
- p: <http://www.wikidata.org/prop/
- pq: <http://www.wikidata.org/prop/qualifier/
- pqn: <http://www.wikidata.org/prop/qualifier/value-normalized/
- pqv: <http://www.wikidata.org/prop/qualifier/value/
- pr: <http://www.wikidata.org/prop/reference/
- prn: <http://www.wikidata.org/prop/reference/value-normalized/
- prov: <http://www.w3.org/ns/prov#
- prv: <http://www.wikidata.org/prop/reference/value/
- ps: <http://www.wikidata.org/prop/statement/
- psn: <http://www.wikidata.org/prop/statement/value-normalized/
- psv: <http://www.wikidata.org/prop/statement/value/
- qb: <http://purl.org/linked-data/cube#
- qfn: <http://qlever.cs.uni-freiburg.de/function#
- ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/
- qlss: <https://qlever.cs.uni-freiburg.de/spatialSearch/
- rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
- rdfs: <http://www.w3.org/2000/01/rdf-schema#
- ref: <http://www.wikidata.org/reference/
- s: <http://www.wikidata.org/entity/statement/
- schema: <http://schema.org/
- skos: <http://www.w3.org/2004/02/skos/core#
- v: <http://www.wikidata.org/value/
- void: <http://rdfs.org/ns/void#
- wd: <http://www.wikidata.org/entity/
- wdno: <http://www.wikidata.org/prop/novalue/
- wdt: <http://www.wikidata.org/prop/direct/
- wdtn: <http://www.wikidata.org/prop/direct-normalized/
- wikibase: <http://wikiba.se/ontology#
- xsd: <http://www.w3.org/2001/XMLSchema#

Additional rules to follow:
- Explain your thought process before and after each step and function call.
- Do not just use or make up entity or property identifiers without verifying their existence in the knowledge graphs first.
- Do not ask the user for clarifications without first attempting to complete the task. If the task input is incomplete or ambiguous, try to make reasonable assumptions and document them.
- Do not use "SERVICE wikibase:label { bd:serviceParam wikibase:language ..." in SPARQL queries. It is not SPARQL standard and unsupported by the used QLever SPARQL endpoints. Use rdfs:label or similar properties to get labels instead.
- Always execute your final SPARQL query before giving an answer to make sure it returns the expected results.
- The SPARQL query should always return the actual identifiers / IRIs of the items in its result. It additionally may return labels or other human-readable information, but they are optional and should be put within optional clauses unless explicitly requested by the user.
- Do not stop early if there are still obvious improvements to be made to the SPARQL query. For example, keep refining your SPARQL query if its result contains irrelevant items or is missing items you expected.
- Do not perform additional computation (e.g. filtering, sorting, calculations) on the result of the SPARQL query to determine the answer. All computation should be done solely within SPARQL.
- For questions with a "True" or "False" answer the SPARQL query should be an ASK query.

[User] What are the individual branches (P527 parts), as well as the overarching libraries, for libraries that are part of the Georgia Public Library Service?

[Assistant]
Step 1: I'll search Wikidata for the Georgia Public Library Service entity to get its QID. Then I'll search for libraries that are part of that entity (using possible properties like parent organization, part of, or operated by), and for each such library fetch its parts (P527) — the individual branches — and return both the overarching libraries and their parts. I'll start by finding the Georgia Public Library Service item.

Question: Georgia Public Library Service

Top 10 entity alternatives:
1. Georgia Public Library Service (wd:Q30268112), also known as GPLS: state-level public library service for Georgia, United States / is instance of state agency of the United States / is instance of cultural institution / is instance of library network / is instance of library service
2. Alabama Public Library Service (wd:Q30257856): archive organization in Montgomery, United States / is instance of state agency of the United States / is instance of cultural institution / is instance of library
3. Georgia Public Service Commission (wd:Q5547671), also known as PSC: statutory organ of the state government of Georgia / is instance of public utilities commission
4. Free Public Library Service (wd:Q96378506): state agecy providing library services to Vermonters
5. Public Library Service Review (wd:Q104899356): is instance of governmental review / UK governmental review
6. PUBLIC LIBRARY REFERENCE SERVICE: (wd:Q58501717): is instance of scholarly article / is instance of academic article
7. New Georgia Public Library (wd:Q69765238): public library in Dallas, Georgia, USA / is instance of library branch
8. Nunavut Public Library Services (wd:Q7069754): is instance of public library
9. Public Library Exhibition Service Exploration (wd:Q118850288): is instance of scholarly article / is instance of academic article
10. New Brunswick Public Library Service (wd:Q30268345), also known as NBPLS: archive organization in Fredericton, Canada / is instance of cultural institution

[Assistant]
I'll list triples in Wikidata where Georgia Public Library Service (wd:Q30268112) appears as object to discover which properties link libraries to it (parent organization, operator, part of, etc.).

list

Got 144 rows and 3 columns, showing the first 10 rows below:
| subject                                                        | property                       | object                                        |
| -------------------------------------------------------------- | ------------------------------ | --------------------------------------------- |
| Roddenbery Memorial Library (wd:Q30625944)                     | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| Roddenbery Memorial Library (wd:Q30625944)                     | parent organization (wdt:P749) | Georgia Public Library Service (wd:Q30268112) |
| University System of Georgia (wd:Q2495809)                     | has subsidiary (wdt:P355)      | Georgia Public Library Service (wd:Q30268112) |
| Evergreen (wd:Q613956)                                         | developer (wdt:P178)           | Georgia Public Library Service (wd:Q30268112) |
| <https://en.wikipedia.org/wiki/Georgia_Public_Library_Service> | schema:about                   | Georgia Public Library Service (wd:Q30268112) |
| Brooks County Public Library (wd:Q30623837)                    | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| Catoosa County Library (wd:Q30622211)                          | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| Northwest Georgia Regional Library System (wd:Q29093975)       | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| Forsyth County Public Library System (wd:Q29094048)            | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| Twin Lakes Library System (wd:Q7858217)                        | part of (wdt:P361)             | Georgia Public Library Service (wd:Q30268112) |
| ...                                                            | ...                            | ...                                           |

[Assistant]
I'll search for the Wikidata item for "library" so I can filter parent items to be libraries/library systems. I will also check for "library system" or "public library" items to ensure correct typing.

Question: library

Top 10 entity alternatives:
1. library (wd:Q7075), also known as libraries, library organization: institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films / institution charged with the care of a collection of ... materials, such as books, manuscripts, recordings, or films / is subclass of public institution / is subclass of cultural facility / is subclass of GLAM
2. software library (wd:Q188860, matched via library), also known as code generation library, computer library, lib, library, programming library: collection of non-volatile resources used by computer ... that can be reused by other software for a specific purpose / collection of non-volatile resources used by computer programs, often for software development / is subclass of software component / is instance of software category / is subclass of programming tool / is subclass of Programming tool / is subclass of software
3. book burning memorial at Bebelplatz (wd:Q18191705, matched via Library), also known as Bibliothek, Library, The Empty Library: memorial at the Bebelplatz in Berlin, Germany / is instance of cautionary memorial / is instance of memorial / memorial
4. DNA library (wd:Q526826, matched via Library), also known as Gene Library, Library: is subclass of genetic structure / collection of DNA fragments / collection of DNA fragments
5. library collection (wd:Q856592, matched via library), also known as library: set of documents curated by a library institution / is subclass of collection
6. Corn Exchange, Salisbury (wd:Q26550967, matched via Library), also known as Library, Market Hall: Former Corn Exchange in Salisbury, Wiltshire, England, UK / is instance of market hall / is instance of library
7. Library (wd:Q6542481), also known as Library Station: light rail station in Downtown Salt Lake City, Utah, United States / is instance of station located on surface / is instance of streetcar stop / is instance of tram stop
8. Library (wd:Q6542479), also known as Library (PAAC station), Library (PAT station), Library station, Library station (PAAC), Library station (PAT), etc.: is instance of station located on surface / is instance of streetcar stop / Pittsburgh Light Rail station / is instance of tram stop
9. The Library (wd:Q15752338, matched via Library), also known as Library, The Library: the transactions of the Bibliographical Society: is instance of academic journal / scholarly journal / scholarly journal
10. library room (wd:Q29843656, matched via library), also known as library, library hall: room to store and read books / is subclass of room / is subclass of hall

[Assistant]
I'll run a SPARQL query that finds all library items whose property P361 (part of) or P749 (parent organization) or P137 (operator) points to Georgia Public Library Service (wd:Q30268112), restrict those items to be instances/subclasses of "library" (wd:Q7075), and for each such overarching library retrieve its P527 (has part) values (the individual branches). I will also fetch English labels. Now I'll execute the query.

execute

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

SELECT ?lib ?libLabel (GROUP_CONCAT(DISTINCT ?branch; separator="|") AS ?branchIRIs) (GROUP_CONCAT(DISTINCT ?branchLabel; separator=" | ") AS ?branchLabels) WHERE {
  VALUES ?gpls { wd:Q30268112 }
  {
    ?lib wdt:P361 ?gpls .
  } UNION {
    ?lib wdt:P749 ?gpls .
  } UNION {
    ?lib wdt:P137 ?gpls .
  }
  # Ensure the item is a library or subclass of library
  ?lib wdt:P31 ?libType .
  ?libType wdt:P279* wd:Q7075 .

  OPTIONAL {
    ?lib wdt:P527 ?branch .
    OPTIONAL { ?branch rdfs:label ?branchLabel . FILTER(LANG(?branchLabel) = "en") }
  }
  OPTIONAL { ?lib rdfs:label ?libLabel . FILTER(LANG(?libLabel) = "en") }
}
GROUP BY ?lib ?libLabel
ORDER BY ?libLabel

Got 6 rows and 4 columns:
| lib                                                      | libLabel                                            | branchIRIs | branchLabels                                                                                |
| -------------------------------------------------------- | --------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------- |
| Brooks County Public Library (wd:Q30623837)              | Brooks County Public Library (lang:en)              |            |                                                                                |
| Catoosa County Library (wd:Q30622211)                    | Catoosa County Library (lang:en)                    |            |                                                                                |
| Forsyth County Public Library System (wd:Q29094048)      | Forsyth County Public Library System (lang:en)      |            | Cumming Library | Sharon Forks Library | Hampton Park Library | Post Road Library (lang:en) |
| Northwest Georgia Regional Library System (wd:Q29093975) | Northwest Georgia Regional Library System (lang:en) |            |                                                                                |
| Roddenbery Memorial Library (wd:Q30625944)               | Roddenbery Memorial Library (lang:en)               |            |                                                                                |
| Twin Lakes Library System (wd:Q7858217)                  | Twin Lakes Library System (lang:en)                 |            | Hancock Branch Library | Lake Sinclair Library | Mary Vinson Memorial Library (lang:en)     |

[Assistant]
I'll search for common library-related classes like \"public library\" and \"library system\" to expand the type filter so we include items typed as library systems or public libraries that are not direct subclasses of Q7075. I'll search for \"public library\" and \"library system\".

Question: public library

Top 10 entity alternatives:
1. public library (wd:Q28564), also known as public libraries: publicly funded building containing an organised collection of books and information resources made accessible for the public / organized collection of books and information resources made accessible for the public / is instance of type of library / is subclass of facility / is subclass of library
2. Enugu State Library Board HQ (wd:Q68652037, matched via Public library), also known as Enugun State Library, Enugu State Library, Enugu State Library Board, Central Library, Enugu State Library Board, Enugu, Public library: is instance of public library / library in Nigeria
3. Public Library (wd:Q122248372), also known as 44 Spaska Street, Mykolaiv, City Palac of Culture and Solemn Events: former library building in Mykolaiv, Ukraine, now used as a civil registry office / is instance of library building / is instance of office building
4. Public Library (wd:Q133249017): is instance of public library
5. Public Library (wd:Q25095816): album by The Burning Hell / is instance of album
6. Divisional Govt. Public Library, Chittagong (wd:Q19741676, matched via Public Library), also known as Public Library: is instance of public library / Public Library, Chittagong
7. Carterton Library (wd:Q66109978, matched via Public Library), also known as Carterton Public Library, Public Library: public library in Carterton, Wairarapa, New Zealand / is instance of historic building / is instance of public library
8. Public Library (wd:Q79303667): historic building in Thames, New Zealand / is instance of historic building / is instance of library building
9. Carnegie library, Dannevirke (wd:Q79303672, matched via Public Library), also known as Public Library, Public Library (Former): historic building in Dannevirke, New Zealand / is instance of historic building
10. Public Library (wd:Q123501702): is instance of national library / is instance of National library / is instance of library / public library, Greece

[Assistant]
I'll search for "library system" on Wikidata to find an appropriate class for library systems.

Question: library system

Top 10 entity alternatives:
1. library network (wd:Q26271642, matched via library system), also known as centralized library system, library system: council department or outsourced organisation that manages ... or between different centers, buildings or libraries branches / organization that manages and coordinates operations and ... or between different centers, buildings or libraries branches / is subclass of library association / is subclass of Alliance / is subclass of alliance
2. librarianship (wd:Q856625, matched via library system), also known as library system: the totality of all the institutions and organizations of libraries in a country / is subclass of cultural facility / is instance of economic branch / is instance of field of study / is subclass of organization / is subclass of organisation / is instance of specialism / is instance of specialty / is instance of industry
3. library system (wd:Q113533521): is subclass of bibliographic database / is subclass of information system / information system
4. library district of the United States (wd:Q16860836, matched via library system), also known as district library system, library system, public library district, regional library system: is subclass of special-purpose district of the United States / public body and territory for operating libraries / is subclass of library network / is subclass of library service
5. LIBRIS (wd:Q1798125, matched via LIBRary Information System), also known as LIBRary Information System: is instance of library catalogue / Swedish national union catalogue / is instance of library catalog
6. integrated library system (wd:Q93661), also known as ILS, library management system, LMS: software that organizes and provides access to a library collection / is subclass of automated information system / is subclass of information system / is instance of software category / is subclass of library system / is subclass of application / is subclass of software
7. Vasylkiv Centralized Library System (wd:Q30973769, matched via Vasylkiv Library System), also known as Vasylkiv City Centralized Library System, Vasylkiv libraries, Vasylkiv Library System, Vasylkiv Town Centralized Library System: library system in Vasylkiv, Ukraine / is instance of library network / is instance of library service / is instance of library
8. Gelman Library (wd:Q5530482, matched via Gelman Library System), also known as Estelle and Melvin Gelman Library, Gelman Library System, George Washington University Gelman Library, GWU Gelman Library: main academic library of George Washington University / is instance of library building / is instance of academic library
9. Jackson/Hinds Library System (wd:Q69481554): public library system in Mississippi, USA / is instance of library network / is instance of library service
10. Mid-Hudson Library System (wd:Q6840734): is instance of library network / is instance of library service

[Assistant]
I'll broaden the type filter to include items whose instance type is a library (Q7075), a public library (Q28564), or a library network (Q26271642). Then I'll re-run the query to capture more GPLS-related library systems and their P527 parts.

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?lib ?libLabel (GROUP_CONCAT(DISTINCT ?branch; separator="|") AS ?branchIRIs) (GROUP_CONCAT(DISTINCT ?branchLabel; separator=" | ") AS ?branchLabels) WHERE {
  VALUES ?gpls { wd:Q30268112 }
  {
    ?lib wdt:P361 ?gpls .
  } UNION {
    ?lib wdt:P749 ?gpls .
  } UNION {
    ?lib wdt:P137 ?gpls .
  }

  # Accept items that are libraries, public libraries, or library networks (or subclasses thereof)
  ?lib wdt:P31 ?libType .
  ?libType wdt:P279* ?superType .
  VALUES ?superType { wd:Q7075 wd:Q28564 wd:Q26271642 }

  OPTIONAL {
    ?lib wdt:P527 ?branch .
    OPTIONAL { ?branch rdfs:label ?branchLabel . FILTER(LANG(?branchLabel) = "en") }
  }
  OPTIONAL { ?lib rdfs:label ?libLabel . FILTER(LANG(?libLabel) = "en") }
}
GROUP BY ?lib ?libLabel
ORDER BY ?libLabel

Got 62 rows and 4 columns, showing the first 5 and last 5 rows below:
| lib                                                          | libLabel                                                | branchIRIs | branchLabels                                                                                |
| ------------------------------------------------------------ | ------------------------------------------------------- | ---------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| Athens Regional Library System (wd:Q29094268)                | Athens Regional Library System (lang:en)                |            | East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library (lang:en)    |
| Augusta-Richmond County Public Library System (wd:Q30267984) | Augusta-Richmond County Public Library System (lang:en) |            | Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library (lang:en)             |
| Azalea Regional Library System (wd:Q29094224)                | Azalea Regional Library System (lang:en)                |            | Walnut Grove Library | Greene County Library | Morgan County ... Monroe-Walton County Library | Eatonton-Putnam County Library (lang:en) |
| Bartow County Library System (wd:Q29093930)                  | Bartow County Library System (lang:en)                  |            | Cartersville Public Library | Adairsville Public Library | Emmie Nelson Public Library (lang:en)                                         |
| Bartram Trail Regional Library System (wd:Q30621824)         | Bartram Trail Regional Library System (lang:en)         |            | Bartram Trail Regional Library System Bookmobile | Mary ... | Thomson-McDuffie County Library | Taliaferro County Library (lang:en)      |
| ...                                                          | ...                                                     | ...        | ...                                                                                |
| Three Rivers Regional Library System (wd:Q30634137)          | Three Rivers Regional Library System (lang:en)          |            | Charlton Public Library | Long County Library | Hog Hammock ... Library | Brantley County Library | Wayne County Library (lang:en)       |
| Troup-Harris Regional Library System (wd:Q30633895)          | Troup-Harris Regional Library System (lang:en)          |            | LaGrange Memorial Library | Hogansville Public Library | Harris County Public Library (lang:en)                                          |
| Twin Lakes Library System (wd:Q7858217)                      | Twin Lakes Library System (lang:en)                     |            | Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library (lang:en)                                                  |
| West Georgia Regional Library System (wd:Q17035737)          | West Georgia Regional Library System (lang:en)          |            | Betty C. Hagler/Lithia Springs Public Library | ... Maude P. Ragsdale Public Library | New Georgia Public Library (lang:en)              |
| Worth County Library System (wd:Q69471300)                   | Worth County Library System (lang:en)                   |            | Margaret Jones Public Library (lang:en)                                                                                |

[Assistant]
I will finalize by returning the SPARQL query I ran and a concise answer summarizing the results (number of overarching libraries found, examples with their branches). If you want the full enumerated table (all 62 libraries with branch IRIs and branch labels), I can paste it in full or provide it as CSV. Now I'll send the final answer.

answer

PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?lib ?libLabel (GROUP_CONCAT(DISTINCT ?branch; separator="|") AS ?branchIRIs) (GROUP_CONCAT(DISTINCT ?branchLabel; separator=" | ") AS ?branchLabels) WHERE {
  VALUES ?gpls { wd:Q30268112 }
  {
    ?lib wdt:P361 ?gpls .
  } UNION {
    ?lib wdt:P749 ?gpls .
  } UNION {
    ?lib wdt:P137 ?gpls .
  }

  # Accept items that are libraries, public libraries, or library networks (or subclasses thereof)
  ?lib wdt:P31 ?libType .
  ?libType wdt:P279* ?superType .
  VALUES ?superType { wd:Q7075 wd:Q28564 wd:Q26271642 }

  OPTIONAL {
    ?lib wdt:P527 ?branch .
    OPTIONAL { ?branch rdfs:label ?branchLabel . FILTER(LANG(?branchLabel) = "en") }
  }
  OPTIONAL { ?lib rdfs:label ?libLabel . FILTER(LANG(?libLabel) = "en") }
}
GROUP BY ?lib ?libLabel
ORDER BY ?libLabel

Answer:
I ran the query above. Summary of the results:

- The query returns 62 distinct overarching library items (library systems/public-library entities) that are linked to the Georgia Public Library Service (wd:Q30268112) via part-of (P361), parent organization (P749), or operator (P137).
- For each such overarching library the query returns any P527 (has part) values (the individual branches) as pipe-separated IRIs and English labels. Many library systems in Wikidata have their branches recorded via P527, while some do not have P527 statements recorded.

Examples (overarching library — QID — selected branch labels):
- Athens Regional Library System (wd:Q29094268) — branches include: East Athens Resource Center | Pinewoods Library And Learning ... | Oglethorpe County Library | Athens-Clarke County Library
- Augusta-Richmond County Public Library System (wd:Q30267984) — branches include: Diamond Lakes Branch Library | Appleby Branch Library | ... | Jeff Maxwell Branch Library | Wallace Branch Library
- Forsyth County Public Library System (wd:Q29094048) — branches include: Cumming Library | Sharon Forks Library | Hampton Park Library | Post Road Library
- Twin Lakes Library System (wd:Q7858217) — branches include: Mary Vinson Memorial Library | Lake Sinclair Library | Hancock Branch Library
- West Georgia Regional Library System (wd:Q17035737) — branches include: Betty C. Hagler/Lithia Springs Public Library | Maude P. Ragsdale Public Library | New Georgia Public Library

If you would like the full enumerated results (all 62 overarching libraries each with their branch IRIs and English branch labels), I can paste the complete table here, provide it as CSV, or filter it further (for example, only systems that have P527 parts recorded). Which would you prefer?