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 ?item ?itemLabel ?instanceOf ?instanceOfLabel WHERE {
  ?item wdt:P830 ?eol .
  FILTER NOT EXISTS {
    ?item wdt:P31 wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P279 * wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P31 ?inst .
    ?inst wdt:P279 * wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P31 ?inst2 .
    ?inst2 wdt:P31 wd:Q16521 .
  }
  OPTIONAL {
    ?item wdt:P31 ?instanceOf .
    ?instanceOf rdfs:label ?instanceOfLabel
    FILTER ( LANG( ?instanceOfLabel ) = "en" )
  }
  ?item rdfs:label ?itemLabel FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ?itemLabel

Using entities:
- taxon (wd:Q16521), also known as taxa, taxonomic unit: is instance of second-order class / is subclass of group or class of organisms / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit

Using properties:
- 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
- Encyclopedia of Life ID (wd:P830 as wdt), also known as eol, EoL ID, P830: eol.org item reference number / eol.org item reference number

Got 127 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                   | itemLabel                          | instanceOf                                             | instanceOfLabel                                   |
| -------------------------------------- | ---------------------------------- | ------------------------------------------------------ | ------------------------------------------------- |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | Actinoloba ? (wd:Q23198212)                            | Actinoloba ? (lang:en)                            |
| Armurocrangonyx (wd:Q18587070)         | Armurocrangonyx (lang:en)          | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| 'Calendillo tillierorum' (wd:Q2125771) | 'Calendillo tillierorum' (lang:en) | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| Ceroxys philadelphica (wd:Q14666257)   | Ceroxys philadelphica (lang:en)    | database artefact (wd:Q45157076)                       | database artefact (lang:en)                       |
| ...                                    | ...                                | ...                                                    | ...                                               |
| Unda microplata (wd:Q3356411)          | Unda microplata (lang:en)          | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vipera altaica (wd:Q3560524)           | Vipera altaica (lang:en)           | hybrid (wd:Q42621)                                     | hybrid (lang:en)                                  |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | Vitalisia Pic (1924) non Bolívar (1914) (wd:Q15889187) | Vitalisia Pic (1924) non Bolívar (1914) (lang:en) |
| waterfowl (wd:Q82592)                  | waterfowl (lang:en)                |                                                        |                                                   |

Answer:
Result summary:
- I found 127 distinct items that have an Encyclopedia of Life ID (P830) and are neither taxon items nor subclasses of taxon (wd:Q16521), nor instances of classes that are taxon items or subclasses of taxon.
- The query returns each item IRI (?item), the item's English label (?itemLabel), and the English label of any instance-of values (?instanceOfLabel).

A few example rows from the results (item IRI — item label — instance-of label):
- wd:Q13228265 — Actinoloba radiata — unavailable combination / Actinoloba ?
- wd:Q18587070 — Armurocrangonyx — orthographical variant
- wd:Q2125771 — 'Calendillo tillierorum' — orthographical variant
- wd:Q14666257 — Ceroxys philadelphica — database artefact
- wd:Q82592 — waterfowl — (no instance-of label present)

If you want, I can return the full list of all 127 items (complete IRIs and labels) in a CSV or other format.

Result summary:
- I found 127 distinct items that have an Encyclopedia of Life ID (P830) and are neither taxon items nor subclasses of taxon (wd:Q16521), nor instances of classes that are taxon items or subclasses of taxon.
- The query returns each item IRI (?item), the item's English label (?itemLabel), and the English label of any instance-of values (?instanceOfLabel).

A few example rows from the results (item IRI — item label — instance-of label):
- wd:Q13228265 — Actinoloba radiata — unavailable combination / Actinoloba ?
- wd:Q18587070 — Armurocrangonyx — orthographical variant
- wd:Q2125771 — 'Calendillo tillierorum' — orthographical variant
- wd:Q14666257 — Ceroxys philadelphica — database artefact
- wd:Q82592 — waterfowl — (no instance-of label present)

If you want, I can return the full list of all 127 items (complete IRIs and labels) in a CSV or other format.

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 ?item ?itemLabel ?instanceOf ?instanceOfLabel WHERE {
  ?item wdt:P830 ?eol .
  FILTER NOT EXISTS {
    ?item wdt:P31 wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P279 * wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P31 ?inst .
    ?inst wdt:P279 * wd:Q16521 .
  }
  FILTER NOT EXISTS {
    ?item wdt:P31 ?inst2 .
    ?inst2 wdt:P31 wd:Q16521 .
  }
  OPTIONAL {
    ?item wdt:P31 ?instanceOf .
    ?instanceOf rdfs:label ?instanceOfLabel
    FILTER ( LANG( ?instanceOfLabel ) = "en" )
  }
  ?item rdfs:label ?itemLabel FILTER ( LANG( ?itemLabel ) = "en" )
}
ORDER BY ?itemLabel

Using entities:
- taxon (wd:Q16521), also known as taxa, taxonomic unit: is instance of second-order class / is subclass of group or class of organisms / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit

Using properties:
- 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
- Encyclopedia of Life ID (wd:P830 as wdt), also known as eol, EoL ID, P830: eol.org item reference number / eol.org item reference number

Execution result:
Got 127 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                   | itemLabel                          | instanceOf                                             | instanceOfLabel                                   |
| -------------------------------------- | ---------------------------------- | ------------------------------------------------------ | ------------------------------------------------- |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | Actinoloba ? (wd:Q23198212)                            | Actinoloba ? (lang:en)                            |
| Armurocrangonyx (wd:Q18587070)         | Armurocrangonyx (lang:en)          | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| 'Calendillo tillierorum' (wd:Q2125771) | 'Calendillo tillierorum' (lang:en) | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| Ceroxys philadelphica (wd:Q14666257)   | Ceroxys philadelphica (lang:en)    | database artefact (wd:Q45157076)                       | database artefact (lang:en)                       |
| ...                                    | ...                                | ...                                                    | ...                                               |
| Unda microplata (wd:Q3356411)          | Unda microplata (lang:en)          | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vipera altaica (wd:Q3560524)           | Vipera altaica (lang:en)           | hybrid (wd:Q42621)                                     | hybrid (lang:en)                                  |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | Vitalisia Pic (1924) non Bolívar (1914) (wd:Q15889187) | Vitalisia Pic (1924) non Bolívar (1914) (lang:en) |
| waterfowl (wd:Q82592)                  | waterfowl (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 distinct items that have an Encyclopedia of Life ID, but are not taxons or subclasses of taxons? Include item labels and labels of what the items are instances of.

[Assistant]
Step 1: I'll search for the property corresponding to "Encyclopedia of Life ID" so I can use it in the query. I'll look up properties with that label.

Question: Encyclopedia of Life

Top 10 property alternatives:
1. Encyclopedia of Life ID (wd:P830 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as eol, EoL ID, P830: eol.org item reference number / eol.org item reference number
2. Catalogue of Life ID (wd:P10585 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as CoL ID, P10585: identifier of a taxon or synonym in the Catalogue of Life
3. ADW taxon ID (wd:P4024 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Animal Diversity Web taxon ID), also known as Animal Diversity Web taxon ID, P4024: identifier for a taxon in the Animal Diversity Web database
4. Springer Nature Subjects Taxonomy ID (wd:P10380 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Nature Subjects Taxonomy ID), also known as Nature Subjects Taxonomy ID, Nature Subjects Taxonomy identifier, SN Subjects Taxonomy ID, SN Subjects Taxonomy identifier, Springer Nature Subjects Taxonomy identifier, etc.: identifier for a subject area used by Springer Nature for the indexing of content
5. Encyclopædia Britannica contributor ID (wd:P2450 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Encyclopedia Britannica contributor identifier), also known as Britannica contributor ID, Britannica contributor identifier, Britannica ID, EB contributor, Encyclopædia Britannica contributor identifier, etc.: identifier for a contributor to the 'Encyclopædia Britannica'
6. A Dictionary of Biology ID (wd:P12774 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as Dictionary of Biology ID, P12774: identifier for an entry in online eighth edition of A Dictionary of Biology
7. Biology Online Biology Dictionary entry (wd:P9521 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as P9521: entry for a term in the Biology Online Biology Dictionary
8. Encyclopedia.com ID (wd:P11850 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as P11850: identifier of item within Encyclopedia.com
9. EncyclopediaPR ID (wd:P9288 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as Enciclopedia de Puerto Rico ID, Encyclopedia of Puerto Rico ID, Encyclopedia of Puerto Rico identifier, Encyclopedia PR ID, Encyclopedia PR identifier, etc.: identifier for an article in the EncyclopediaPR
10. Entomologists of the World ID (wd:P5370 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Biographies of the Entomologists of the World ID), also known as Biographies of the Entomologists of the World ID, P5370: identifier for an entry in the Biographies of the Entomologists of the World online database

[Assistant]
Next I'll verify the entity for "taxon" so I can exclude taxon items correctly. I will search for the entity named "taxon".

Question: taxon

Top 10 entity alternatives:
1. taxon (wd:Q16521), also known as taxa, taxonomic unit: group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / group of one or more organism(s), which a taxonomist adjudges to be a unit / is subclass of group or class of organisms / is instance of second-order class
2. Taxon (wd:Q2003024), also known as Taxon. The Journal of the International Association for Plant Taxonomy: is instance of scientific journal / is instance of academic journal / is instance of society journal / academic journal
3. TaxOn (wd:Q21386141), also known as ISSN 2079-1380: is instance of scientific journal / scientific journal
4. ¡Taxon! (wd:Q96184500): scientific article published in 1993 / scientific article published in 1993 / scientific article published in 1993 / is instance of scholarly article / is instance of academic article
5. biological classification (wd:Q11398, matched via taxonomy), also known as biological and zoological classification, classification of organisms, scientific classification, taxonomic classification, taxonomy: is subclass of specialised classification scheme / is instance of type of classification / method of scientific taxonomy / is subclass of taxonomy
6. extinction (wd:Q123509, matched via taxon extinction), also known as biological extinction, dying out, extinction of species, extinction of taxa, extinctions, etc.: termination of a taxon by the death of its last member / is instance of biological phenomenon / is subclass of biological risk / is subclass of end
7. taxonomy (wd:Q8269924), also known as biotaxonomy: science of naming, defining and classifying organisms / is instance of academic discipline / is instance of discipline / is subclass of typology
8. taxonomy (wd:Q7211), also known as taxonomic scheme: classification of things or concepts, as well as to the ... which is dealing with the classification of parts of a whole / is subclass of hierarchical classification / is subclass of classification scheme / is subclass of classification
9. clade (wd:Q713623, matched via monophyletic taxon), also known as evolutionary clade, monophyletic group, monophyletic taxon: group of a common ancestor and all descendants / is instance of taxonomic rank / is subclass of taxon
10. synonym (wd:Q1040689, matched via taxon synonym), also known as synonym (taxonomy), taxonomic synonym, taxon synonym: one of two or more names that apply to the same taxon / is instance of scientific name / is subclass of scientific name

[Assistant]
I'll run a SPARQL query that finds items with an Encyclopedia of Life ID (P830) while excluding:

- items that are instances of taxon (P31 = wd:Q16521),
- items that are subclasses of taxon (P279* = wd:Q16521),
- items that are instances of some class which is itself a subclass of taxon.

The query will return the item IRI, the item's English label, and the IRIs and English labels of the item's instance-of values (if any). I'll now execute this query to see results.

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#>

SELECT DISTINCT ?item ?itemLabel ?instanceOf ?instanceOfLabel WHERE {
  ?item wdt:P830 ?eol .

  # Exclude items that are taxons (instance of taxon)
  FILTER NOT EXISTS { ?item wdt:P31 wd:Q16521. }

  # Exclude items that are subclass (or subclass of subclass...) of taxon
  FILTER NOT EXISTS { ?item wdt:P279* wd:Q16521. }

  # Exclude items that are instance of something that is a subclass of taxon
  FILTER NOT EXISTS { ?item wdt:P31 ?inst . ?inst wdt:P279* wd:Q16521. }

  OPTIONAL {
    ?item wdt:P31 ?instanceOf .
    ?instanceOf rdfs:label ?instanceOfLabel FILTER(LANG(?instanceOfLabel) = "en")
  }

  ?item rdfs:label ?itemLabel FILTER(LANG(?itemLabel) = "en")
}
ORDER BY ?itemLabel

Got 357 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                                            | itemLabel                                                  | instanceOf                                             | instanceOfLabel                                   |
| --------------------------------------------------------------- | ---------------------------------------------------------- | ------------------------------------------------------ | ------------------------------------------------- |
| Actinoloba radiata (wd:Q13228265)                               | Actinoloba radiata (lang:en)                               | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Actinoloba radiata (wd:Q13228265)                               | Actinoloba radiata (lang:en)                               | Actinoloba ? (wd:Q23198212)                            | Actinoloba ? (lang:en)                            |
| Agassizia Behr (1870) non Valenciennes (1846) (wd:Q10730962)    | Agassizia Behr (1870) non Valenciennes (1846) (lang:en)    | later homonym (wd:Q17276484)                           | later homonym (lang:en)                           |
| Agassizia Behr (1870) non Valenciennes (1846) (wd:Q10730962)    | Agassizia Behr (1870) non Valenciennes (1846) (lang:en)    | Noctuidae (wd:Q459180)                                 | Noctuidae (lang:en)                               |
| Anuraeopsis wulferti (wd:Q4170828)                              | Anuraeopsis wulferti (lang:en)                             | Anuraeopsis (wd:Q4170667)                              | Anuraeopsis (lang:en)                             |
| ...                                                             | ...                                                        | ...                                                    | ...                                               |
| Vitalisia alternata (wd:Q2139964)                               | Vitalisia alternata (lang:en)                              | Vitalisia Pic (1924) non Bolívar (1914) (wd:Q15889187) | Vitalisia Pic (1924) non Bolívar (1914) (lang:en) |
| Vitalisia alternata (wd:Q2139964)                               | Vitalisia alternata (lang:en)                              | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| waterfowl (wd:Q82592)                                           | waterfowl (lang:en)                                        |                                                        |                                                   |
| Xanthomantis Giglio-Tos (1915) non Warren (1909) (wd:Q10720975) | Xanthomantis Giglio-Tos (1915) non Warren (1909) (lang:en) | later homonym (wd:Q17276484)                           | later homonym (lang:en)                           |
| Xanthomantis Giglio-Tos (1915) non Warren (1909) (wd:Q10720975) | Xanthomantis Giglio-Tos (1915) non Warren (1909) (lang:en) | Iridopterygidae (wd:Q1953564)                          | Iridopterygidae (lang:en)                         |

[Assistant]
Good catch — some results were instances of taxon items (for example an item with instance-of = Noctuidae). To ensure we exclude items whose instance-of values are themselves taxon items, I'll add a filter to exclude any ?item where ?item wdt:P31 ?inst and ?inst wdt:P31 wd:Q16521. I'll run the refined query now.

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 ?item ?itemLabel ?instanceOf ?instanceOfLabel WHERE {
  ?item wdt:P830 ?eol .

  # Exclude items that are taxons (instance of taxon)
  FILTER NOT EXISTS { ?item wdt:P31 wd:Q16521. }

  # Exclude items that are subclass (or subclass of subclass...) of taxon
  FILTER NOT EXISTS { ?item wdt:P279* wd:Q16521. }

  # Exclude items that are instance of something that is a subclass of taxon
  FILTER NOT EXISTS { ?item wdt:P31 ?inst . ?inst wdt:P279* wd:Q16521. }

  # Exclude items that are instance of something that is itself an instance of taxon
  FILTER NOT EXISTS { ?item wdt:P31 ?inst2 . ?inst2 wdt:P31 wd:Q16521. }

  OPTIONAL {
    ?item wdt:P31 ?instanceOf .
    ?instanceOf rdfs:label ?instanceOfLabel FILTER(LANG(?instanceOfLabel) = "en")
  }

  ?item rdfs:label ?itemLabel FILTER(LANG(?itemLabel) = "en")
}
ORDER BY ?itemLabel

Got 127 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                   | itemLabel                          | instanceOf                                             | instanceOfLabel                                   |
| -------------------------------------- | ---------------------------------- | ------------------------------------------------------ | ------------------------------------------------- |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Actinoloba radiata (wd:Q13228265)      | Actinoloba radiata (lang:en)       | Actinoloba ? (wd:Q23198212)                            | Actinoloba ? (lang:en)                            |
| Armurocrangonyx (wd:Q18587070)         | Armurocrangonyx (lang:en)          | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| 'Calendillo tillierorum' (wd:Q2125771) | 'Calendillo tillierorum' (lang:en) | wd:Q2491016                                            | orthographical variant (lang:en)                  |
| Ceroxys philadelphica (wd:Q14666257)   | Ceroxys philadelphica (lang:en)    | database artefact (wd:Q45157076)                       | database artefact (lang:en)                       |
| ...                                    | ...                                | ...                                                    | ...                                               |
| Unda microplata (wd:Q3356411)          | Unda microplata (lang:en)          | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vipera altaica (wd:Q3560524)           | Vipera altaica (lang:en)           | hybrid (wd:Q42621)                                     | hybrid (lang:en)                                  |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | unavailable combination (wd:Q17487588)                 | unavailable combination (lang:en)                 |
| Vitalisia alternata (wd:Q2139964)      | Vitalisia alternata (lang:en)      | Vitalisia Pic (1924) non Bolívar (1914) (wd:Q15889187) | Vitalisia Pic (1924) non Bolívar (1914) (lang:en) |
| waterfowl (wd:Q82592)                  | waterfowl (lang:en)                |                                                        |                                                   |

[Assistant]
I'll now provide the final SPARQL query (the same refined query I executed) and a short answer summarizing the results (including the total count and a few example rows).

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 ?item ?itemLabel ?instanceOf ?instanceOfLabel WHERE {
  ?item wdt:P830 ?eol .

  # Exclude items that are taxons (instance of taxon)
  FILTER NOT EXISTS { ?item wdt:P31 wd:Q16521. }

  # Exclude items that are subclass (or subclass of subclass...) of taxon
  FILTER NOT EXISTS { ?item wdt:P279* wd:Q16521. }

  # Exclude items that are instance of something that is a subclass of taxon
  FILTER NOT EXISTS { ?item wdt:P31 ?inst . ?inst wdt:P279* wd:Q16521. }

  # Exclude items that are instance of something that is itself an instance of taxon
  FILTER NOT EXISTS { ?item wdt:P31 ?inst2 . ?inst2 wdt:P31 wd:Q16521. }

  OPTIONAL {
    ?item wdt:P31 ?instanceOf .
    ?instanceOf rdfs:label ?instanceOfLabel FILTER(LANG(?instanceOfLabel) = "en")
  }

  ?item rdfs:label ?itemLabel FILTER(LANG(?itemLabel) = "en")
}
ORDER BY ?itemLabel

Answer:
Result summary:
- I found 127 distinct items that have an Encyclopedia of Life ID (P830) and are neither taxon items nor subclasses of taxon (wd:Q16521), nor instances of classes that are taxon items or subclasses of taxon.
- The query returns each item IRI (?item), the item's English label (?itemLabel), and the English label of any instance-of values (?instanceOfLabel).

A few example rows from the results (item IRI — item label — instance-of label):
- wd:Q13228265 — Actinoloba radiata — unavailable combination / Actinoloba ?
- wd:Q18587070 — Armurocrangonyx — orthographical variant
- wd:Q2125771 — 'Calendillo tillierorum' — orthographical variant
- wd:Q14666257 — Ceroxys philadelphica — database artefact
- wd:Q82592 — waterfowl — (no instance-of label present)

If you want, I can return the full list of all 127 items (complete IRIs and labels) in a CSV or other format.


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 ?awardType ( SAMPLE( ?awardTypeLabel0 ) AS ?awardTypeLabel ) ( COUNT( DISTINCT ?person ) AS ?personCount ) WHERE {
  ?person wdt:P9044 ?geprisId .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P166 ?award .
  ?award wdt:P31 / wdt:P279 * ?awardType .
  ?awardType rdfs:label ?awardTypeLabel0 .
  FILTER ( LANG( ?awardTypeLabel0 ) = "en" ) VALUES ?awardType {
    wd:Q618779 wd:Q11448906 wd:Q15383322 wd:Q107471279 wd:Q378427 wd:Q107494520 wd:Q1966910 wd:Q1709894
  }
}
GROUP BY ?awardType
ORDER BY DESC ( ?personCount )

Using entities:
- chemistry award (wd:Q107471279): is instance of type of award / is subclass of science award / academic award to recognize achievements in chemistry
- physics award (wd:Q107494520): is instance of type of award / is subclass of science award / type of award
- science award (wd:Q11448906), also known as award in science, award (science), science prize, scientific award, scientific prize: is instance of type of award / is instance of group of awards / is subclass of academic award / award for science
- cultural prize (wd:Q15383322), also known as cultural award, culture prize: is instance of type of award / is subclass of award / type of award in the field of culture
- journalism prize (wd:Q1709894), also known as journalism award, journalist prize: is instance of type of award / is instance of group of awards / is subclass of non-fiction literary award / type of award for journalism / type of award for journalism
- national academy (wd:Q1966910): is subclass of academy / organizational body, usually operating with state financial ... most frequently in the sciences but also the humanities
- literary award (wd:Q378427), also known as book award, book prize, literary prize, literature award, literature prize: is instance of type of award / is instance of group of awards / is instance of literary term / is subclass of award / is subclass of event / award for writers, literary associations and literary works
- human (wd:Q5), also known as human being, humans, individual Homo sapiens, individual human, modern humans, etc.: is instance of class of organisms known by one particular common name / is instance of organisms known by a particular common name / is subclass of mammal / is subclass of individual animal / is subclass of person / is subclass of omnivore / is subclass of natural person / any member of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo, from embryo to adult
- award (wd:Q618779), also known as Awards and Prizes, honor, honour, medal, prize: is instance of first-order class / is subclass of cultural artifact / is subclass of product / is subclass of artificial object / something given to a person or a group of people to recognize their merit or excellence / something given to a person or a group of people to recognize their merit or excellence / something given to a person or a group of people to recognse their excellence in a certain field

Using properties:
- award received (wd:P166 as wdt), also known as award, awarded, awards, awards received, award won, etc.: award or recognition received by a person, organisation or creative work / award or recognition received by a person, organization or creative work / award or recognition received by a person, organization or creative work / awards received by a person, organisation or creative work
- 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
- GEPRIS Historisch person ID (wd:P9044 as wdt), also known as P9044: identifier of a person in GEPRIS Historisch database of ... Forschungsgemeinschaft (DFG, German Research Foundation)

Got 8 rows and 3 columns:
| awardType                       | awardTypeLabel             | personCount    |
| ------------------------------- | -------------------------- | -------------- |
| award (wd:Q618779)              | award (lang:en)            | 1808 (xsd:int) |
| science award (wd:Q11448906)    | science award (lang:en)    | 631 (xsd:int)  |
| cultural prize (wd:Q15383322)   | cultural prize (lang:en)   | 295 (xsd:int)  |
| chemistry award (wd:Q107471279) | chemistry award (lang:en)  | 69 (xsd:int)   |
| literary award (wd:Q378427)     | literary award (lang:en)   | 26 (xsd:int)   |
| physics award (wd:Q107494520)   | physics award (lang:en)    | 22 (xsd:int)   |
| journalism prize (wd:Q1709894)  | journalism prize (lang:en) | 2 (xsd:int)    |
| national academy (wd:Q1966910)  | national academy (lang:en) | 1 (xsd:int)    |

Answer:
Results (award type IRI, English label, count of distinct GEPRIS Historisch persons who received an award of that type):

- wd:Q618779 — award (general): 1808
- wd:Q11448906 — science award: 631
- wd:Q15383322 — cultural prize: 295
- wd:Q107471279 — chemistry award: 69
- wd:Q378427 — literary award: 26
- wd:Q107494520 — physics award: 22
- wd:Q1709894 — journalism prize: 2
- wd:Q1966910 — national academy: 1

Query notes:
- Persons were selected by presence of the GEPRIS Historisch person ID (property P9044) and filtered to humans (wd:Q5).
- Awards are taken from wdt:P166 (award received). The award item’s instance-of (wdt:P31) and its superclasses (wdt:P279*) were matched against the requested award-type classes to include awards classified under those categories.
- The count is the number of distinct GEPRIS Historisch persons who have at least one award of the given award-type class.

Results (award type IRI, English label, count of distinct GEPRIS Historisch persons who received an award of that type):

- wd:Q618779 — award (general): 1808
- wd:Q11448906 — science award: 631
- wd:Q15383322 — cultural prize: 295
- wd:Q107471279 — chemistry award: 69
- wd:Q378427 — literary award: 26
- wd:Q107494520 — physics award: 22
- wd:Q1709894 — journalism prize: 2
- wd:Q1966910 — national academy: 1

Query notes:
- Persons were selected by presence of the GEPRIS Historisch person ID (property P9044) and filtered to humans (wd:Q5).
- Awards are taken from wdt:P166 (award received). The award item’s instance-of (wdt:P31) and its superclasses (wdt:P279*) were matched against the requested award-type classes to include awards classified under those categories.
- The count is the number of distinct GEPRIS Historisch persons who have at least one award of the given award-type class.

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 ?awardType ( SAMPLE( ?awardTypeLabel0 ) AS ?awardTypeLabel ) ( COUNT( DISTINCT ?person ) AS ?personCount ) WHERE {
  ?person wdt:P9044 ?geprisId .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P166 ?award .
  ?award wdt:P31 / wdt:P279 * ?awardType .
  ?awardType rdfs:label ?awardTypeLabel0 .
  FILTER ( LANG( ?awardTypeLabel0 ) = "en" ) VALUES ?awardType {
    wd:Q618779 wd:Q11448906 wd:Q15383322 wd:Q107471279 wd:Q378427 wd:Q107494520 wd:Q1966910 wd:Q1709894
  }
}
GROUP BY ?awardType
ORDER BY DESC ( ?personCount )

Using entities:
- chemistry award (wd:Q107471279): is instance of type of award / is subclass of science award / academic award to recognize achievements in chemistry
- physics award (wd:Q107494520): is instance of type of award / is subclass of science award / type of award
- science award (wd:Q11448906), also known as award in science, award (science), science prize, scientific award, scientific prize: is instance of type of award / is instance of group of awards / is subclass of academic award / award for science
- cultural prize (wd:Q15383322), also known as cultural award, culture prize: is instance of type of award / is subclass of award / type of award in the field of culture
- journalism prize (wd:Q1709894), also known as journalism award, journalist prize: is instance of type of award / is instance of group of awards / is subclass of non-fiction literary award / type of award for journalism / type of award for journalism
- national academy (wd:Q1966910): is subclass of academy / organizational body, usually operating with state financial ... most frequently in the sciences but also the humanities
- literary award (wd:Q378427), also known as book award, book prize, literary prize, literature award, literature prize: is instance of type of award / is instance of group of awards / is instance of literary term / is subclass of award / is subclass of event / award for writers, literary associations and literary works
- human (wd:Q5), also known as human being, humans, individual Homo sapiens, individual human, modern humans, etc.: is instance of class of organisms known by one particular common name / is instance of organisms known by a particular common name / is subclass of mammal / is subclass of individual animal / is subclass of person / is subclass of omnivore / is subclass of natural person / any member of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo / common name of Homo sapiens, unique extant species of the genus Homo, from embryo to adult
- award (wd:Q618779), also known as Awards and Prizes, honor, honour, medal, prize: is instance of first-order class / is subclass of cultural artifact / is subclass of product / is subclass of artificial object / something given to a person or a group of people to recognize their merit or excellence / something given to a person or a group of people to recognize their merit or excellence / something given to a person or a group of people to recognse their excellence in a certain field

Using properties:
- award received (wd:P166 as wdt), also known as award, awarded, awards, awards received, award won, etc.: award or recognition received by a person, organisation or creative work / award or recognition received by a person, organization or creative work / award or recognition received by a person, organization or creative work / awards received by a person, organisation or creative work
- 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
- GEPRIS Historisch person ID (wd:P9044 as wdt), also known as P9044: identifier of a person in GEPRIS Historisch database of ... Forschungsgemeinschaft (DFG, German Research Foundation)

Execution result:
Got 8 rows and 3 columns:
| awardType                       | awardTypeLabel             | personCount    |
| ------------------------------- | -------------------------- | -------------- |
| award (wd:Q618779)              | award (lang:en)            | 1808 (xsd:int) |
| science award (wd:Q11448906)    | science award (lang:en)    | 631 (xsd:int)  |
| cultural prize (wd:Q15383322)   | cultural prize (lang:en)   | 295 (xsd:int)  |
| chemistry award (wd:Q107471279) | chemistry award (lang:en)  | 69 (xsd:int)   |
| literary award (wd:Q378427)     | literary award (lang:en)   | 26 (xsd:int)   |
| physics award (wd:Q107494520)   | physics award (lang:en)    | 22 (xsd:int)   |
| journalism prize (wd:Q1709894)  | journalism prize (lang:en) | 2 (xsd:int)    |
| national academy (wd:Q1966910)  | national academy (lang:en) | 1 (xsd:int)    |

[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 different types of awards received by individuals listed in the GEPRIS Historisch database, along with their labels and the count of each award? The awards should be filtered to include only specific types such as general awards, science awards, cultural prizes, chemistry awards, literary awards, physics awards, national academies, and journalism prizes.

[Assistant]
Plan:
1. Search for properties/entities related to "GEPRIS" / "GEPRIS Historisch" on Wikidata to identify how persons from that database are recorded.
2. Confirm the property/item and inspect usage if needed.
3. Find award statements (wdt:P166) for humans who are linked to that GEPRIS Historisch identifier, restrict award types to the requested categories (general awards, science awards, cultural prizes, chemistry awards, literary awards, physics awards, national academies, journalism prizes) — for each award item get its rdf:type or instance-of (wdt:P31) and filter by those classes, and count occurrences per award type label.
4. Iterate queries as needed to refine class filters and ensure correct results.

I'll start by searching for properties and items related to "GEPRIS" and "GEPRIS Historisch". I'll run a property search now.

Question: GEPRIS Historisch

Top 10 property alternatives:
1. GEPRIS Historisch person ID (wd:P9044 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as P9044: identifier of a person in GEPRIS Historisch database of ... Forschungsgemeinschaft (DFG, German Research Foundation)
2. GEPRIS person ID (wd:P4872 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via GEPRIS ID), also known as GEPRIS ID, GEPRIS person identifier, P4872: identifier of a person in GEPRIS database of funded research projects / identifier of a person in GEPRIS database of funded research projects / identifier of a person in GEPRIS database of funded research projects
3. OpenHistoricalMap relation ID (wd:P8424 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via OpenHistoricalMap chronology relation), also known as chronology relation, OHM relation ID, OHM relation identifier, OpenHistoricalMap chronology relation, Open Historical Map relation ID, etc.: identifier of a relation in OpenHistoricalMap, preferably a ... P402, the corresponding property for OpenStreetMap relations
4. BioLexSOE ID (wd:P7928 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Biographisches Lexikon zur Geschichte Südosteuropas ID), also known as Biographisches Lexikon zur Geschichte Südosteuropas ID, P7928: identifier for a persona in the Biographisches Lexikon zur Geschichte Südosteuropas
5. World History Encyclopedia ID (wd:P9000 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn, matched via Ancient History Encyclopedia ID), also known as Ancient History Encyclopedia ID, P9000: alphabetical identifier for an article in the World History Encyclopedia (former Ancient History Encyclopedia)
6. Physics History Network ID (wd:P6551 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as PHN ID, P6551: identifier from the Physics History Network at the American Institute of Physics
7. Storia della civiltà europea ID (wd:P12999 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as Eco's Storia della civiltà europea ID, Umberto Eco's Storia della civiltà europea ID, P12999: identifier for an item in the Storia della civiltà europea ... Eco, on the Institute of the Italian Encyclopaedia website
8. historical region (wd:P6885 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as P6885: geographic area which at some point in time had a cultural, ... or political basis, regardless of present-day borders / is subproperty of location / is subproperty of part of
9. Geschichtsquellen des deutschen Mittelalters work ID (wd:P8074 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as GdM work ID, P8074: identifier for medieval German literary works
10. Historical Encyclopedia of Siberia ID (wd:P13029 as pr/psn/wdtn/ps/prn/p/pq/pqv/wdt/prv/psv/pqn), also known as HES ID, P13029: identifier for an entity in the Historical Encyclopedia of Siberia

[Assistant]
I'll search for candidate Wikidata classes corresponding to the award-type categories the user listed, to use them in class/type filters (wdt:P31). I'll query for items like "award", "science award", "cultural prize", "chemistry award", "literary award", "physics award", "national academy", "journalism prize". I'll look up their QIDs to use in the SPARQL query and explain each choice.

Question: award

Top 10 entity alternatives:
1. award (wd:Q618779), also known as Awards and Prizes, honor, honour, medal, prize: something given to a person or a group of people to recognse their excellence in a certain field / something given to a person or a group of people to recognize their merit or excellence / something given to a person or a group of people to recognize their merit or excellence / is instance of first-order class / is subclass of artificial object / is subclass of cultural artifact / is subclass of product
2. achievement (wd:Q2988681, matched via award), also known as achievements, award, awards, badge, badges, etc.: is instance of video game feature / is instance of video game term / is subclass of achievement / meta-goal in a video game
3. bestowing (wd:Q24301034, matched via award), also known as award, bestowal, grant, providing: act of giving something as honour or gift / is subclass of giving
4. association football trophy or award (wd:Q4493701, matched via award), also known as award, football award, football trophy, trophy: is instance of type of award / sports trophy or award / is subclass of trophy / is subclass of award
5. Association for Water and Rural Development (wd:Q132803457, matched via AWARD), also known as AWARD: nonprofit organization in AFB Hoedspruit, South Africa / is instance of non-profit organization / is instance of non-profit organisation / is instance of nonprofit organization
6. African Women in Agricultural Research and Development (wd:Q117863220, matched via AWARD), also known as AWARD: is instance of think tank / research institute
7. Award (wd:Q84275778): scientific article published on 01 February 1984 / scientific article published in February 1984 / scientific article published in February 1984 / is instance of scholarly article / is instance of academic article
8. Award (wd:Q98622114): scientific article published on 01 August 2020 / is instance of scholarly article / is instance of academic article
9. Grammy Awards (wd:Q41254, matched via Grammy Award), also known as Grammies, Grammy, Grammy Award, Grammys, Gramophone Award: is instance of annual music awards ceremony / American award for achievements in music / is instance of group of awards / is instance of music award / is subclass of music award
10. Emmy Award (wd:Q123737), also known as Emmy Awards, Emmys: American television production award / American television production award / American television production award / is instance of television award / is subclass of television award / is instance of group of awards

[Assistant]
I'll search for "science award" and the other specific award-type classes to collect their QIDs. I'll run several entity searches for the types listed.

Question: science award

Top 10 entity alternatives:
1. science award (wd:Q11448906), also known as award in science, award (science), science prize, scientific award, scientific prize: is instance of group of awards / is subclass of academic award / is instance of type of award / award for science
2. Mahathir Science Award (wd:Q106960581): Award named after Mahathir Mohamad / is instance of science award
3. Suffrage Science award (wd:Q56765711): Prize for women in science, engineering and computing / is instance of award
4. GCSE Science (wd:Q7523823, matched via Single Award Science), also known as Single Award Science: British educational qualification / is subclass of science
5. Finnish Science Award (wd:Q11895129): Finnish award, granted biannually by the Ministry of Education and Culture / is instance of science award
6. Korea Science Award (wd:Q19483802): is instance of award / South Korean award
7. Science Writing Award (wd:Q6084965): Award for excellence in writing about science / is instance of science award
8. India Science Award (wd:Q6019402): is instance of science award
9. Berlin Science Award (wd:Q821879): is instance of science award
10. State Science Award (wd:Q12630180): is instance of state decoration / is instance of science award / Croatian state award

[Assistant]
Searching for "cultural prize", "cultural award", "chemistry award", "literary award", "physics award", "national academy", "journalism prize" to get candidate class QIDs. I'll do them one by one and explain findings.

Question: cultural prize

Top 10 entity alternatives:
1. cultural prize (wd:Q15383322), also known as cultural award, culture prize: type of award in the field of culture / is instance of type of award / is subclass of award
2. Faroese Cultural Prize (wd:Q800098), also known as Faroese Cultural Award, Faroese Life Achievement Award, Faroese Prize for Young Artist, Heiðurgáva landsins, Mentanarvirðisløn Landsins: Faroese annual cultural award given by the Faroese government to Faroese writers, musicians, artists, film directors etc. / is instance of award
3. Würzburg Cultural Prize (wd:Q1320081): is instance of cultural prize / cultural award in Germany
4. Manor Cultural Prize (wd:Q1891015), also known as le Prix Culturel Manor, Prix Manor: Swiss award for visual artists / is instance of art prize
5. Hessian Cultural Prize (wd:Q1615933): The cultural prize instituted in 1981 by the state government of Hesse, Germany / is instance of cultural prize / is subclass of award
6. Vantaa cultural prize (wd:Q25454289), also known as Vantaa cultural award, Vantaa culture award, Vantaa culture prize: is instance of cultural prize / Finnish culture award
7. Tezuka Osamu Cultural Prize (wd:Q1336528): is instance of award / award
8. Mainichi Publication Culture Award (wd:Q1554156, matched via Mainchi Cultural prizes), also known as Mainchi Cultural prizes, Mainichi Publishing Culture Award, Mainichi Shuppan Bunkasho: is instance of award / Japanese award
9. Georg Dehio Cultural Prize (wd:Q17511309): is instance of cultural prize
10. The Greenlandic Cultural Prize (wd:Q66108319): is instance of cultural prize

[Assistant]
I'll search "chemistry award".

Question: chemistry award

Top 10 entity alternatives:
1. chemistry award (wd:Q107471279): academic award to recognize achievements in chemistry / is instance of type of award / is subclass of science award
2. Bioinorganic Chemistry Award (wd:Q18560138): award granted by the Royal Society of Chemistry / is instance of science award
3. Supramolecular Chemistry Award (wd:Q18560203): award granted by the Royal Society of Chemistry / is instance of science award
4. Green Chemistry Award (wd:Q18560158): award granted by the Royal Society of Chemistry / is instance of environmental award / is instance of science award
5. Dream Chemistry Award (wd:Q78938012): is instance of award / award
6. Bioorganic Chemistry Award (wd:Q18560139), also known as RSC Bioorganic Chemistry Award: award granted by the Royal Society of Chemistry / is instance of award
7. Organometallic Chemistry Award (wd:Q18560189): award granted by the Royal Society of Chemistry / is instance of award
8. Medicinal Chemistry Award (wd:Q56669328): award of the Royal Society of Chemistry (1971-2005) / is instance of science award
9. Welch Award in Chemistry (wd:Q1632244), also known as Robert A. Welch Award, Robert A. Welch Award in Chemistry, Welch Award: American chemistry prize (1972-) / is instance of chemistry award
10. Applied Inorganic Chemistry Award (wd:Q18560129): award granted by the Royal Society of Chemistry / is instance of award

[Assistant]
Continuing: search for "literary award", "physics award", "national academy", and "journalism prize". I'll run searches for each to get their QIDs. I explain results after each call.

Question: literary award

Top 10 entity alternatives:
1. literary award (wd:Q378427), also known as book award, book prize, literary prize, literature award, literature prize: award for writers, literary associations and literary works / is instance of group of awards / is instance of literary term / is instance of type of award / is subclass of event / is subclass of award
2. Lambda Literary Award (wd:Q594550), also known as Lambda Literary Awards, Lambdas, Lammies: award for published works which celebrate or explore LGBT themes / award for published works which celebrate or explore LGBT themes / is subclass of LGBT literary award / is instance of group of awards / is instance of annual event / is instance of LGBT event
3. SAARC Literary Award (wd:Q17126068): literary award given by SAARC's literary wing to the writers from SAARC countries / is instance of literary award
4. Daesan Literary Award (wd:Q11232367): is instance of award
5. Aftonbladet Literary Award (wd:Q2684629): is instance of literary award / Swedish literary award
6. Dong-in Literary Award (wd:Q623969): is instance of award / award
7. Rancage Literary Award (wd:Q7475785): Indonesian literary award / is instance of award
8. Yookwoodang Literary Award (wd:Q23718746): is instance of award / literary award
9. Midang Literary Award (wd:Q12595990): is instance of literary award
10. Adamjee Literary Award (wd:Q19582542), also known as Adamjee Award, Adam Jee Award, Adam Jee Literary Award: is instance of literary award / Pakistan's literary prize

[Assistant]
Searching for "physics award" entity to get QID for class.

Question: physics award

Top 10 entity alternatives:
1. physics award (wd:Q107494520): is instance of type of award / is subclass of science award / type of award
2. Wang Ganchang Physics Award (wd:Q48911119): is instance of science award
3. Institute of Physics Awards (wd:Q85769551): list of IOP medals and prizes / is instance of award
4. Dissertation Award in Nuclear Physics (wd:Q125210599), also known as DNP Dissertation Award: award of the American Physical Society / is instance of award
5. Excellence in Physics Education Award (wd:Q110867751): annual award of the American Physical Society / is instance of award
6. Physics award acclaims superfluid helium (wd:Q60088654): scientific article published in Nature / is instance of scholarly article / is instance of academic article
7. Physics Award for Tunnelling Research (wd:Q59052992): scientific article published in Nature / is instance of scholarly article / is instance of academic article
8. Physics award yields high return (wd:Q80900982): scientific article published on 01 April 1990 / is instance of scholarly article / is instance of academic article
9. A-level Physics/Health Physics (wd:Q20119269): is instance of Wikibook page
10. physics (wd:Q413), also known as general physics, physic, physical: study of matter and its motion, along with related concepts such as energy and force / is instance of academic discipline / is instance of branch of science / is subclass of physical sciences / is subclass of natural science / is instance of exact science / is instance of discipline

[Assistant]
I'll search for "national academy" and "academy of sciences" to find appropriate class QIDs representing national academies.

Question: national academy

Top 10 entity alternatives:
1. national academy (wd:Q1966910): organizational body, usually operating with state financial ... most frequently in the sciences but also the humanities / is subclass of academy
2. National Defence Academy (wd:Q3630909), also known as Indian National Defence Academy, NDA: Defence training institute of Indian armed forces / is instance of military academy
3. TCIFA National Academy (wd:Q1354743): is instance of sports venue / is instance of sport venue / sports venue
4. National Sports Academy (wd:Q6978640), also known as National Institute of Physical Education Vassil Levski, National Sports Academy Vasil Levski, National Sports Academy Vassil Levski, NSA Vasil Levski: is instance of academic institution / is instance of sports venue / is instance of organization / is instance of organisation / is instance of sport venue / college in Sofia, Bulgaria
5. Central Guoshu Institute (wd:Q2274126, matched via National Wushu Academy), also known as National Martial Arts Academy, National Wushu Academy: is subclass of martial art / is instance of academy / a martial arts academy
6. National Virgilian Academy (wd:Q139860), also known as Accademia Nazionale Virgiliana: is instance of Academy of Sciences / is instance of academy of sciences / academy of sciences
7. Talysh National Academy (wd:Q105080371)
8. National Academies Press (wd:Q6970107, matched via National Academy Press), also known as National Academy Press, The National Academies Press: organization in Washington D.C., United States / is instance of organisation / is instance of organization / is instance of publisher
9. Singapore NFA U-18 (wd:Q7523054, matched via National Football Academy), also known as National Football Academy: is instance of association football club / is instance of youth system / is instance of soccer club
10. National Farmers Academy (wd:Q11638023): is instance of civil college

[Assistant]
I'll search for "journalism award" / "journalism prize" to find a class QID.

Question: journalism award

Top 10 entity alternatives:
1. Journalism award (wd:Q12041121): is instance of journalism prize / award in the Czech Republic
2. journalism prize (wd:Q1709894, matched via journalism award), also known as journalism award, journalist prize: is subclass of non-fiction literary award / is instance of group of awards / is instance of type of award / type of award for journalism / type of award for journalism
3. ExxonMobil Journalism Award (wd:Q5399941), also known as Esso Award, Esso Journalism Award, Esso Reportage Award, Prêmio Esso: is instance of journalism prize / Brazilian journalism prize
4. Polish-German Journalism Award (wd:Q1201830): is instance of award
5. Arab Journalism Award (wd:Q12204024): journalism Award by Dubai Press in UAE / is instance of award
6. Irish Journalism Award (wd:Q58950842), also known as Newsbrands Journalism Awards: Annual awards for print journalism in Ireland / is instance of annual event / is instance of award
7. Dr.-Karl-Renner journalism award (wd:Q1253781), also known as Dr.-Karl-Renner-Publizistikpreis: is subclass of journalism prize / is instance of award / award
8. Goethe Journalism Award (wd:Q1534139), also known as Goethe Media Award: German journalism award for education politics / is instance of journalism prize
9. Medical journalism award (wd:Q94381494): is instance of scholarly article / is instance of academic article
10. Medical journalism award. (wd:Q94383192): scientific article published in June 1980 / scientific article published in June 1980 / scientific article published in June 1980 / is instance of scholarly article / is instance of academic article

[Assistant]
I'll run a SPARQL query to count, for persons with a GEPRIS Historisch person ID (property P9044), how many distinct persons received awards whose class (instance-of / superclass chain) is one of the requested types. I will count distinct persons per award type and return the award type IRI and its English label. Now I will execute the query.

execute

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

SELECT ?awardType (SAMPLE(?awardTypeLabel) AS ?awardTypeLabel) (COUNT(DISTINCT ?person) AS ?personCount) WHERE {
  # Persons listed in GEPRIS Historisch
  ?person wdt:P9044 ?geprisId .
  ?person wdt:P31 wd:Q5 .

  # awards received
  ?person wdt:P166 ?award .

  # follow instance-of then subclass chain to match requested award-type classes
  ?award wdt:P31/wdt:P279* ?awardType .
  ?awardType rdfs:label ?awardTypeLabel . FILTER(LANG(?awardTypeLabel) = "en")

  VALUES ?awardType {
    wd:Q618779    # award (general)
    wd:Q11448906  # science award
    wd:Q15383322  # cultural prize
    wd:Q107471279 # chemistry award
    wd:Q378427    # literary award
    wd:Q107494520 # physics award
    wd:Q1966910   # national academy
    wd:Q1709894   # journalism prize
  }
}
GROUP BY ?awardType
ORDER BY DESC(?personCount)

SPARQL execution failed:
Invalid SPARQL query: The target ?awardTypeLabel of an AS clause was already used in the query body.

[Assistant]
I'll fix the label variable name collision and re-run the query.

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

SELECT ?awardType (SAMPLE(?awardTypeLabel0) AS ?awardTypeLabel) (COUNT(DISTINCT ?person) AS ?personCount) WHERE {
  ?person wdt:P9044 ?geprisId .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P166 ?award .
  ?award wdt:P31/wdt:P279* ?awardType .
  ?awardType rdfs:label ?awardTypeLabel0 . FILTER(LANG(?awardTypeLabel0) = "en")

  VALUES ?awardType {
    wd:Q618779
    wd:Q11448906
    wd:Q15383322
    wd:Q107471279
    wd:Q378427
    wd:Q107494520
    wd:Q1966910
    wd:Q1709894
  }
}
GROUP BY ?awardType
ORDER BY DESC(?personCount)

Got 8 rows and 3 columns:
| awardType                       | awardTypeLabel             | personCount    |
| ------------------------------- | -------------------------- | -------------- |
| award (wd:Q618779)              | award (lang:en)            | 1808 (xsd:int) |
| science award (wd:Q11448906)    | science award (lang:en)    | 631 (xsd:int)  |
| cultural prize (wd:Q15383322)   | cultural prize (lang:en)   | 295 (xsd:int)  |
| chemistry award (wd:Q107471279) | chemistry award (lang:en)  | 69 (xsd:int)   |
| literary award (wd:Q378427)     | literary award (lang:en)   | 26 (xsd:int)   |
| physics award (wd:Q107494520)   | physics award (lang:en)    | 22 (xsd:int)   |
| journalism prize (wd:Q1709894)  | journalism prize (lang:en) | 2 (xsd:int)    |
| national academy (wd:Q1966910)  | national academy (lang:en) | 1 (xsd:int)    |

[Assistant]
I'll now finalize by providing the final SPARQL query and a concise answer summarizing the counts per award type obtained from the executed query.

answer

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

SELECT ?awardType (SAMPLE(?awardTypeLabel0) AS ?awardTypeLabel) (COUNT(DISTINCT ?person) AS ?personCount) WHERE {
  ?person wdt:P9044 ?geprisId .
  ?person wdt:P31 wd:Q5 .
  ?person wdt:P166 ?award .
  ?award wdt:P31/wdt:P279* ?awardType .
  ?awardType rdfs:label ?awardTypeLabel0 . FILTER(LANG(?awardTypeLabel0) = "en")

  VALUES ?awardType {
    wd:Q618779
    wd:Q11448906
    wd:Q15383322
    wd:Q107471279
    wd:Q378427
    wd:Q107494520
    wd:Q1966910
    wd:Q1709894
  }
}
GROUP BY ?awardType
ORDER BY DESC(?personCount)

Answer:
Results (award type IRI, English label, count of distinct GEPRIS Historisch persons who received an award of that type):

- wd:Q618779 — award (general): 1808
- wd:Q11448906 — science award: 631
- wd:Q15383322 — cultural prize: 295
- wd:Q107471279 — chemistry award: 69
- wd:Q378427 — literary award: 26
- wd:Q107494520 — physics award: 22
- wd:Q1709894 — journalism prize: 2
- wd:Q1966910 — national academy: 1

Query notes:
- Persons were selected by presence of the GEPRIS Historisch person ID (property P9044) and filtered to humans (wd:Q5).
- Awards are taken from wdt:P166 (award received). The award item’s instance-of (wdt:P31) and its superclasses (wdt:P279*) were matched against the requested award-type classes to include awards classified under those categories.
- The count is the number of distinct GEPRIS Historisch persons who have at least one award of the given award-type class.