PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?itemLabel ?instance ?instanceLabel WHERE {
  ?item wdt:P830 ?eolId .
  ?item wdt:P31 ?instance .
  ?item rdfs:label ?itemLabel .
  ?instance rdfs:label ?instanceLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  FILTER ( LANG( ?instanceLabel ) = "en" ) .
  FILTER NOT EXISTS {
    ?item wdt:P31 / wdt:P279 * wd:Q16521
  }
}

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 356 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                                    | itemLabel                                          | instance                                                | instanceLabel                                       |
| ------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------- | --------------------------------------------------- |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | Oecophoridae (wd:Q782541)                               | Oecophoridae (lang:en)                              |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | Crambidae (wd:Q132980)                                  | Crambidae (lang:en)                                 |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Catenella Bat. & Peres (1963) (wd:Q10443855)            | Catenella Bat. & Peres (1963) (lang:en)            | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| ...                                                     | ...                                                | ...                                                     | ...                                                 |
| Lilliput minutus (wd:Q5414818)                          | Lilliput minutus (lang:en)                         | Lilliput Wesołowska & Russell-Smith, 2008 (wd:Q5414606) | Lilliput Wesołowska & Russell-Smith, 2008 (lang:en) |
| Lesiandra Meyrick, 1914 (wd:Q5506942)                   | Lesiandra Meyrick, 1914 (lang:en)                  | homotypic synonym (wd:Q42310380)                        | homotypic synonym (lang:en)                         |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | designation (wd:Q18575734)                              | designation (lang:en)                               |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | Geometridae (wd:Q45559)                                 | Geometridae (lang:en)                               |
| 'Dermatetron' (wd:Q6536221)                             | 'Dermatetron' (lang:en)                            | wd:Q1984758                                             | misspelling (lang:en)                               |

Answer: There are 356 distinct items that have an Encyclopedia of Life ID (P830) but are not taxons or subclasses of taxons. These include various taxonomic-related concepts such as later homonyms, designations, unavailable combinations, homotypic synonyms, and misspellings. The query returns the item, its label, and the label of what the item is an instance of.

There are 356 distinct items that have an Encyclopedia of Life ID (P830) but are not taxons or subclasses of taxons. These include various taxonomic-related concepts such as later homonyms, designations, unavailable combinations, homotypic synonyms, and misspellings. The query returns the item, its label, and the label of what the item is an instance of.

SPARQL query over wikidata:
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT DISTINCT ?item ?itemLabel ?instance ?instanceLabel WHERE {
  ?item wdt:P830 ?eolId .
  ?item wdt:P31 ?instance .
  ?item rdfs:label ?itemLabel .
  ?instance rdfs:label ?instanceLabel .
  FILTER ( LANG( ?itemLabel ) = "en" ) .
  FILTER ( LANG( ?instanceLabel ) = "en" ) .
  FILTER NOT EXISTS {
    ?item wdt:P31 / wdt:P279 * wd:Q16521
  }
}

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 356 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                                    | itemLabel                                          | instance                                                | instanceLabel                                       |
| ------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------- | --------------------------------------------------- |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | Oecophoridae (wd:Q782541)                               | Oecophoridae (lang:en)                              |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | Crambidae (wd:Q132980)                                  | Crambidae (lang:en)                                 |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Catenella Bat. & Peres (1963) (wd:Q10443855)            | Catenella Bat. & Peres (1963) (lang:en)            | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| ...                                                     | ...                                                | ...                                                     | ...                                                 |
| Lilliput minutus (wd:Q5414818)                          | Lilliput minutus (lang:en)                         | Lilliput Wesołowska & Russell-Smith, 2008 (wd:Q5414606) | Lilliput Wesołowska & Russell-Smith, 2008 (lang:en) |
| Lesiandra Meyrick, 1914 (wd:Q5506942)                   | Lesiandra Meyrick, 1914 (lang:en)                  | homotypic synonym (wd:Q42310380)                        | homotypic synonym (lang:en)                         |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | designation (wd:Q18575734)                              | designation (lang:en)                               |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | Geometridae (wd:Q45559)                                 | Geometridae (lang:en)                               |
| 'Dermatetron' (wd:Q6536221)                             | 'Dermatetron' (lang:en)                            | wd:Q1984758                                             | misspelling (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]
To answer this question, I need to find items that have an Encyclopedia of Life (EOL) ID (property P559) but are not taxons or subclasses of taxons.

First, let me understand what taxons and subclasses of taxons are in Wikidata. Taxons are typically instances of Q16521 (taxon). Subclasses of taxons would be any class that is a subclass of Q16521 via the subclass-of relationship (P279).

So, my plan is:
1. Find items that have an EOL ID (P559)
2. Exclude items that are instances of Q16521 (taxon) or any of its subclasses
3. Return the item, its label, and the label of what it is an instance of

I'll start by searching for the property "Encyclopedia of Life ID" to confirm its ID is P559.

Question: Encyclopedia of Life ID

Top 10 property alternatives:
1. Encyclopedia of Life ID (wd:P830 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv), 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 psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv), also known as CoL ID, P10585: identifier of a taxon or synonym in the Catalogue of Life
3. eBiodiversity ID (wd:P6864 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv), also known as P6864: identifier for a taxon in the Estonian eBiodiversity portal
4. A Dictionary of Biology ID (wd:P12774 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv, matched via Dictionary of Biology ID), also known as Dictionary of Biology ID, P12774: identifier for an entry in online eighth edition of A Dictionary of Biology
5. iNaturalist place ID (wd:P7471 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv, matched via iNaturalist ID), also known as iNaturalist ID, P7471: identifier for a place in iNaturalist
6. GBIF taxon ID (wd:P846 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv, matched via Global Biodiversity Information Facility ID), also known as GBIF ID, Global Biodiversity Information Facility ID, taxonKey, P846: taxon identifier in GBIF
7. Observation.org taxon ID (wd:P6105 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv, matched via Observation.org species ID), also known as Observation.org species ID, P6105: taxon identifier on the Observation.org platform / identifier on the Observation.org websites / identifier on the Observation.org websites
8. Paleobiology Database taxon ID (wd:P10907 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv, matched via PaleoBioDB ID), also known as PaleoBioDB ID, PaleoDB ID, PBDB ID, P10907: identifier for a fossil taxon in the Paleobiology Database
9. Index to Organism Names ID (wd:P10420 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv), also known as Index to Organism Names identifier, ION ID, ION identifier, P10420: identifier of a taxon in the Index to Organism Names database
10. Open Tree of Life ID (wd:P9157 as psn/wdtn/p/prv/prn/pq/ps/psv/pr/wdt/pqn/pqv), also known as Open Tree taxonomy ID, OTT ID, OTT taxonomy ID, P9157: identifier for an entity in Open Tree of Life, a ... published phylogenetic trees along with taxonomic data

[Assistant]
I see that the Encyclopedia of Life ID is actually P830, not P559 as I initially thought. Let me verify this by checking what P830 is used for.

list

wd:Q16521

[Assistant]
Let me try to find some examples of items that have an EOL ID (P830) to understand the data better.

execute

SELECT ?item ?itemLabel ?instanceLabel WHERE { ?item wdt:P830 ?eolId . ?item wdt:P31 ?instance . SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } LIMIT 5

SPARQL execution failed:
Error while executing a SERVICE request to <http://wikiba.se:80/ontology#label>: SERVICE responded with HTTP status code: 301, Moved Permanently. First 100 bytes of the response: '
<title>301 Moved Permanently</title>

301 Moved Permanently'

[Assistant]
I need to fix the SPARQL query because I'm using the deprecated `SERVICE wikibase:label` syntax. I'll rewrite it using `rdfs:label` with language filtering instead.

SELECT ?item ?itemLabel ?instance ?instanceLabel WHERE { ?item wdt:P830 ?eolId . ?item wdt:P31 ?instance . ?item rdfs:label ?itemLabel . ?instance rdfs:label ?instanceLabel . FILTER(LANG(?itemLabel) = "en") . FILTER(LANG(?instanceLabel) = "en") } LIMIT 5

Got 5 rows and 4 columns:
| item                                  | itemLabel                        | instance                                                | instanceLabel                                      |
| ------------------------------------- | -------------------------------- | ------------------------------------------------------- | -------------------------------------------------- |
| Clonorchis sinensis (wd:Q1074210)     | Clonorchis sinensis (lang:en)    | parasite (wd:Q10253316)                                 | parasite (lang:en)                                 |
| Heterosporis (wd:Q116431666)          | Heterosporis (lang:en)           | parasite (wd:Q10253316)                                 | parasite (lang:en)                                 |
| Oculotrema hippopotami (wd:Q15837337) | Oculotrema hippopotami (lang:en) | parasite (wd:Q10253316)                                 | parasite (lang:en)                                 |
| Gorgoderidae (wd:Q5026968)            | Gorgoderidae (lang:en)           | parasite (wd:Q10253316)                                 | parasite (lang:en)                                 |
| Copriodes anassa (wd:Q13496838)       | Copriodes anassa (lang:en)       | Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) |

[Assistant]
I can see that items with EOL ID (P830) are often parasites or taxonomic entities. Now I need to identify what constitutes a taxon or subclass of a taxon. In Wikidata, taxons are typically instances of Q16521 (taxon) or subclasses of Q16521 via P279 (subclass of).

Let me check what the taxon class (Q16521) and its subclasses look like.

list

wd:Q16521

Got 689 rows and 3 columns, showing the first 10 rows below:
| subject           | property                           | object                                                                      |
| ----------------- | ---------------------------------- | --------------------------------------------------------------------------- |
| taxon (wd:Q16521) | instance of (wdt:P31)              | second-order class (wd:Q24017414)                                           |
| taxon (wd:Q16521) | Commons category (wdt:P373)        | Taxa                                                                        |
| taxon (wd:Q16521) | image (wdt:P18)                    | <http://commons.wikimedia.org/wiki/Special:FilePath/Animal%20diversity.jpg> |
| taxon (wd:Q16521) | subclass of (wdt:P279)             | group or class of organisms (wd:Q21871294)                                  |
| taxon (wd:Q16521) | Freebase ID (wdt:P646)             | /m/01cbjg                                                                   |
| taxon (wd:Q16521) | GND ID (wdtn:P227)                 | <https://d-nb.info/gnd/7755743-8>                                           |
| taxon (wd:Q16521) | topic's main category (wdt:P910)   | wd:Q15059690                                                                |
| taxon (wd:Q16521) | FactGrid item ID (wdtn:P8168)      | <https://database.factgrid.de/entity/Q103135>                               |
| taxon (wd:Q16521) | Microsoft Academic ID (wdtn:P6366) | <https://makg.org/entity/2909928471>                                        |
| taxon (wd:Q16521) | has characteristic (wdt:P1552)     | scientific name (wd:Q10753560)                                              |
| ...               | ...                                | ...                                                                         |

[Assistant]
Now I'll check what some subclasses of taxon (Q16521) are to understand the hierarchy better.

execute

SELECT ?subclass ?subclassLabel WHERE { ?subclass wdt:P279 wd:Q16521 . ?subclass rdfs:label ?subclassLabel . FILTER(LANG(?subclassLabel) = "en") } LIMIT 10

Got 10 rows and 2 columns:
| subclass                                | subclassLabel                     |
| --------------------------------------- | --------------------------------- |
| genetic variant (wd:Q104795308)         | genetic variant (lang:en)         |
| polytypic taxon (wd:Q106686983)         | polytypic taxon (lang:en)         |
| collective group (wd:Q107303655)        | collective group (lang:en)        |
| transparent organism (wd:Q108070570)    | transparent organism (lang:en)    |
| obsolete taxon (wd:Q110533142)          | obsolete taxon (lang:en)          |
| Taphotaxon (wd:Q110639909)              | Taphotaxon (lang:en)              |
| surrogate taxon (wd:Q111611096)         | surrogate taxon (lang:en)         |
| taxon found at location (wd:Q113298331) | taxon found at location (lang:en) |
| cosmopolitan taxon (wd:Q122227691)      | cosmopolitan taxon (lang:en)      |
| dark taxon (wd:Q122451883)              | dark taxon (lang:en)              |

[Assistant]
Now I have a good understanding of the data. I need to find items with EOL ID (P830) that are NOT instances of Q16521 (taxon) or any of its subclasses.

I'll construct a SPARQL query that:
1. Selects items with EOL ID (P830)
2. Gets their labels and instance labels
3. Excludes items that are instances of Q16521 or any of its subclasses (using P279* for transitive closure)

Let me write the query:

SELECT DISTINCT ?item ?itemLabel ?instance ?instanceLabel WHERE { ?item wdt:P830 ?eolId . ?item wdt:P31 ?instance . ?item rdfs:label ?itemLabel . ?instance rdfs:label ?instanceLabel . FILTER(LANG(?itemLabel) = "en") . FILTER(LANG(?instanceLabel) = "en") . FILTER NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q16521 } } LIMIT 10

Got 10 rows and 4 columns:
| item                                                    | itemLabel                                          | instance                               | instanceLabel                      |
| ------------------------------------------------------- | -------------------------------------------------- | -------------------------------------- | ---------------------------------- |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | later homonym (wd:Q17276484)           | later homonym (lang:en)            |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | Oecophoridae (wd:Q782541)              | Oecophoridae (lang:en)             |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | Crambidae (wd:Q132980)                 | Crambidae (lang:en)                |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | later homonym (wd:Q17276484)           | later homonym (lang:en)            |
| Catenella Bat. & Peres (1963) (wd:Q10443855)            | Catenella Bat. & Peres (1963) (lang:en)            | later homonym (wd:Q17276484)           | later homonym (lang:en)            |
| Catenella Bat. & Peres (1963) (wd:Q10443855)            | Catenella Bat. & Peres (1963) (lang:en)            | Ascomycota (wd:Q174726)                | Ascomycota (lang:en)               |
| Diplorhynchus bilobus (wd:Q10473732)                    | Diplorhynchus bilobus (lang:en)                    | Diplorhynchus (wd:Q17522632)           | Diplorhynchus (lang:en)            |
| Diplorhynchus bilobus (wd:Q10473732)                    | Diplorhynchus bilobus (lang:en)                    | designation (wd:Q18575734)             | designation (lang:en)              |
| Isthmiella crepidiformis (wd:Q10538057)                 | Isthmiella crepidiformis (lang:en)                 | unavailable combination (wd:Q17487588) | unavailable combination (lang:en)  |
| Isthmiella crepidiformis (wd:Q10538057)                 | Isthmiella crepidiformis (lang:en)                 | Isthmiella Darker (1967) (wd:Q6088855) | Isthmiella Darker (1967) (lang:en) |

[Assistant]
Perfect! The query is working correctly. I can see that the results include items like "later homonym", "designation", "unavailable combination", etc. - which are not taxons or subclasses of taxons, as required.

The query successfully finds items with EOL ID (P830) that are not taxons or subclasses of taxons, and returns their labels along with the labels of what they are instances of.

Let me refine the query to remove any potential duplicates and ensure we're getting the complete set of results, then provide the final answer.

SELECT DISTINCT ?item ?itemLabel ?instance ?instanceLabel WHERE { ?item wdt:P830 ?eolId . ?item wdt:P31 ?instance . ?item rdfs:label ?itemLabel . ?instance rdfs:label ?instanceLabel . FILTER(LANG(?itemLabel) = "en") . FILTER(LANG(?instanceLabel) = "en") . FILTER NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q16521 } }

Got 356 rows and 4 columns, showing the first 5 and last 5 rows below:
| item                                                    | itemLabel                                          | instance                                                | instanceLabel                                       |
| ------------------------------------------------------- | -------------------------------------------------- | ------------------------------------------------------- | --------------------------------------------------- |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Copriodes Turner (1916) non Gistl (1857) (wd:Q10260412) | Copriodes Turner (1916) non Gistl (1857) (lang:en) | Oecophoridae (wd:Q782541)                               | Oecophoridae (lang:en)                              |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | Crambidae (wd:Q132980)                                  | Crambidae (lang:en)                                 |
| Notaspis Warren (1892) (wd:Q10337670)                   | Notaspis Warren (1892) (lang:en)                   | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| Catenella Bat. & Peres (1963) (wd:Q10443855)            | Catenella Bat. & Peres (1963) (lang:en)            | later homonym (wd:Q17276484)                            | later homonym (lang:en)                             |
| ...                                                     | ...                                                | ...                                                     | ...                                                 |
| Lilliput minutus (wd:Q5414818)                          | Lilliput minutus (lang:en)                         | Lilliput Wesołowska & Russell-Smith, 2008 (wd:Q5414606) | Lilliput Wesołowska & Russell-Smith, 2008 (lang:en) |
| Lesiandra Meyrick, 1914 (wd:Q5506942)                   | Lesiandra Meyrick, 1914 (lang:en)                  | homotypic synonym (wd:Q42310380)                        | homotypic synonym (lang:en)                         |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | designation (wd:Q18575734)                              | designation (lang:en)                               |
| Grammatophora [Stephens, 1829] (wd:Q5593699)            | Grammatophora [Stephens, 1829] (lang:en)           | Geometridae (wd:Q45559)                                 | Geometridae (lang:en)                               |
| 'Dermatetron' (wd:Q6536221)                             | 'Dermatetron' (lang:en)                            | wd:Q1984758                                             | misspelling (lang:en)                               |

[Assistant]
The query is working perfectly and returns 356 distinct items that have an Encyclopedia of Life ID (P830) but are not taxons or subclasses of taxons. The results include various types of non-taxonomic entities such as:

- Later homonyms (Q17276484)
- Designations (Q18575734)
- Unavailable combinations (Q17487588)
- Homotypic synonyms (Q42310380)
- Misspellings (Q1984758)
- And other taxonomic-related concepts that are not themselves taxons

The query correctly excludes all items that are instances of Q16521 (taxon) or any of its subclasses through the transitive closure using `wdt:P31/wdt:P279* wd:Q16521`.

I'll now provide the final answer with the SPARQL query.

answer

SELECT DISTINCT ?item ?itemLabel ?instance ?instanceLabel WHERE { ?item wdt:P830 ?eolId . ?item wdt:P31 ?instance . ?item rdfs:label ?itemLabel . ?instance rdfs:label ?instanceLabel . FILTER(LANG(?itemLabel) = "en") . FILTER(LANG(?instanceLabel) = "en") . FILTER NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q16521 } }

Answer: There are 356 distinct items that have an Encyclopedia of Life ID (P830) but are not taxons or subclasses of taxons. These include various taxonomic-related concepts such as later homonyms, designations, unavailable combinations, homotypic synonyms, and misspellings. The query returns the item, its label, and the label of what the item is an instance of.