PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?type ( COUNT( DISTINCT ?org ) AS ?orgCount ) WHERE {
  ?org wdt:P131 wd:Q5765 .
  ?org wdt:P31 ?type .
  ?type wdt:P279 * wd:Q43229 .
}
GROUP BY ?type
ORDER BY DESC ( ?orgCount )

The only type of organization located in the Balearic Islands found in Wikidata is 'astronomical observatory' (wd:Q1254933), with 1 distinct organization of this type.

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

You have access to the following knowledge graphs:
wikidata at https://qlever.cs.uni-freiburg.de/api/wikidata

You can use the following SPARQL prefixes implicitly in all functions:
cc: <http://creativecommons.org/ns#
data: <https://www.wikidata.org/wiki/Special:EntityData/
dct: <http://purl.org/dc/terms/
geo: <http://www.opengis.net/ont/geosparql#
geof: <http://www.opengis.net/def/function/geosparql/
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/
qfn: <http://qlever.cs.uni-freiburg.de/function#
ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/
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/
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#
foaf: <http://xmlns.com/foaf/0.1/
dc: <http://purl.org/dc/elements/1.1/
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

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. Use the functions to search for 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. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. 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.
4. 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.
5. 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.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. 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.

[User] What are the types of organizations located in the Balearic Islands, along with the count of distinct organizations for each type, ordered by the count in descending order?

[Assistant]
Let's break down the question:

1. We need to identify the entity for "Balearic Islands".
2. We need to find organizations located there.
3. For each organization, we need its type (class).
4. We need to count the number of distinct organizations for each type.
5. The results should be ordered by the count in descending order.

Step 1: Search for the entity "Balearic Islands" in Wikidata.

[Tool]
Top 10 entity alternatives:
1. Balearic Islands, also known as Balearic Isles, Islas baleares (wd:Q5765): archipelago in the Mediterranean Sea
2. Balearic Islands (wd:Q4850673): Spanish Congress Electoral District
3. Balearic Islands (wd:Q107356469): province
4. Balearic Islands (wd:Q107356467): autonomous community of Spain
5. Balearic Islands (wd:Q107356470): region (1833–1982)
6. Balearic Islands (wd:Q103891547): encyclopedia article
7. flag of the Balearic Islands, also known as Balearic Islands flag, the Balearic Islands flag (wd:Q435103): flag of the Spanish autonomous community of the Balearic Islands
8. history of Balearic Islands, also known as Balearic Islands history (wd:Q11925943)
9. geography of the Balearic Islands, also known as the Balearic Islands geography, Balearic Islands geography (wd:Q11924065)
10. Balearic Islands Award (wd:Q11953178): Spanish soccer award

[Assistant]
There are several entities for "Balearic Islands", but the most relevant for location is "Balearic Islands" (wd:Q5765), which is the archipelago itself.

Next, let's find organizations located in the Balearic Islands (wd:Q5765). We need to identify the property for "located in the administrative territorial entity" or similar, and the class/property for "organization".

Let's search for the property "located in" to find the correct property to use.

[Tool]
Top 10 property alternatives:
1. location, also known as neighbourhood, whereabouts, vilage, venue, town (wd:P276 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): location of the object, structure or event. In the case of an ad...ity use P706. Use P7153 for locations associated with the object
2. located in the administrative territorial entity, also known as is in the settlement of, is in the voivodeship of, is in the shire of, is in the state of, is in the territory of (wd:P131 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the item is located on the territory of the following administra...if the item falls only partially into the administrative entity., location, part of
3. occupant, also known as tenant, resident, renter, occupiers, lessee (wd:P466 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): person or organization occupying property, used by
4. headquarters location, also known as headquarters locality, seat, headquarters town, HQ, HQ location (wd:P159 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): city or town where an organization's headquarters is or has been situated. Use P276 qualifier for specific building, significant place
5. adjacent building, also known as next to, neighboring building, located next to, adjoining building (wd:P3032 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): building adjacent to the item, connects with
6. operating area, also known as province served, serves jurisdiction, serves geographic region, serves geographic area, serves area (wd:P2541 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): geographic area or jurisdiction an organisation or industry operates in, serves, or has responsibility for, location
7. set in environment, also known as set in location, takes place in, setting location, playing in, narrative set in (wd:P8411 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): environment (geographic feature, building type, etc.) the narrative work is set in, significant place, depicts
8. narrative location, also known as set in location, set in, setting, setting location, setting of work (wd:P840 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the narrative of the work is set in this location, significant place, depicts
9. located in the present-day administrative territorial entity, also known as present-day administrative territorial entity, located in the current administrative territorial entity, located in the modern-day administrative territorial entity, located in the present-day administrative territorial entity, would today be located in administrative territorial entity (wd:P3842 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the item was located in the territory of this present-day administrative unit; however the two did not at any point coexist in time, location, part of
10. coordinate location, also known as point on a map, gps coordinates, gps location, latitude, location (wd:P625 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): geocoordinates of the subject. For Earth, please note that only WGS84 coordinating system is supported at the moment

[Assistant]
The most relevant property for organizations located in a specific region is "located in the administrative territorial entity" (wdt:P131).

Now, let's identify the class or property for "organization". Let's search for the entity "organization" to get its QID.

[Tool]
Top 10 entity alternatives:
1. organization, also known as organizations, organization in sociology, organisation, institution, organisations (wd:Q43229): social entity established to meet needs or pursue goals
2. .org, also known as dot-org, .organization, .org domain (wd:Q32131): generic top-level domain
3. The Organization, also known as Organization (wd:Q1986084): 1971 film by Don Medford
4. Organization (wd:Q105755428): Turkish intelligence series broadcast on TRT 1
5. Organization (wd:Q7101933): peer-reviewed academic journal
6. organization, also known as auxiliary organization (wd:Q4827314): secondary body of the Church of Jesus Christ of Latter-day Saints
7. Samaritans, also known as Organization (wd:Q2256668): Swiss first aid organization
8. Organization (wd:Q33771005): essay by Parke Godwin
9. organization, also known as organisation, organizing, to organize (wd:Q2029841): concept in economics: activity in which something is accomplished
10. organization (wd:Q2204053): Dutch form of government

[Assistant]
The main entity for "organization" is wd:Q43229.

Now, we need to find all instances (and subclasses) of organization (wd:Q43229) that are located in the Balearic Islands (wd:Q5765) via wdt:P131. For each, we want their type (class), and count the number of distinct organizations per type.

To get the type, we can use wdt:P31 (instance of). Let's check if this property is correct by searching for "instance of".

[Tool]
Top 10 property alternatives:
1. instance of, also known as unitary element of class, has type, unique individual of, type, item of type (wd:P31 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): that class of which this subject is a particular example and mem...is a subclass of mountain (and an instance of volcanic landform)
2. Wikidata property example, also known as e.g., Wikidata property sample, property sample, property example, for example (wd:P1855 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): example where this Wikidata property is used; target item is one...ualifier the property being described given the associated value
3. quantity, also known as amount, total number, total, qty, occurrences (wd:P1114 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of instances of this subject in the universe of the subje...e actual number of instances in Wikidata may be lower or higher)
4. subproperty of, also known as subclass of property, superproperty, subPropertyOf, rdfs:subPropertyOf, parent property (wd:P1647 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): all resources related by this property are also related by that property, related property
5. partially coincident with, also known as intersecting with, has overlap with, has common parts with, has common members with, has common instances with (wd:P1382 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): object that partially overlaps with the subject in its instances, parts, or members, different from
6. model item, also known as specimen, sample, featured item, example item, best example (wd:P5869 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): defines which item is a best practice example of modelling a sub...lue of this property, usage instructions at Wikidata:Model items
7. permanent duplicated item, also known as same concept as, same as, duplicate of, permanently duplicated item, duplicate of item (wd:P2959 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this item duplicates another item and the two can't be merged, a... cdowiki, gomwiki, nanwiki).  Use P31=Q17362920 for other wikis.
8. exemplar of, also known as contains work, includes work, contents (wd:P1574 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): Links an individual copy of a work to the item for that work or edition, instance of
9. usage example, also known as sentence, use in a sentence, example sentence (wd:P5831 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): example of how a lexeme (sense) might be used
10. fictional or mythical analog of, also known as fictionalisation of, mythical analog of, fictional version of, fictionalization of, fictional analog of (wd:P1074 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): used to link an entity or class of entities appearing in a creat...with the analogous entity or class of entities in the real world, inspired by

[Assistant]
The property "instance of" (wdt:P31) is correct for getting the type/class of each organization.

Now, let's summarize the plan for the SPARQL query:
- Find all entities ?org such that:
  - ?org is an instance of (wdt:P31) some class ?type.
  - ?org is a (direct or indirect) instance/subclass of organization (wd:Q43229).
  - ?org is located in the Balearic Islands (wd:Q5765) via wdt:P131.
- For each ?type, count the number of distinct ?org.
- Order by count descending.
- Optionally, get the label for ?type.

To ensure we include subclasses of organization, we should use wdt:P31/wdt:P279* wd:Q43229 for the type.

Let's write the query.

[Tool]
Got 1 row and 2 columns:
| type                                   | orgCount    |
| -------------------------------------- | ----------- |
| astronomical observatory (wd:Q1254933) | 1 (xsd:int) |

[Assistant]
The query found only one type of organization located in the Balearic Islands: "astronomical observatory" (wd:Q1254933), with a count of 1.

Here is the final SPARQL query and the answer.

[Tool] Stopped generation process


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 WHERE {
  ?item wdt:P279 * wd:Q87167 .
  OPTIONAL {
    ?item rdfs:label ?itemLabel FILTER ( LANG( ?itemLabel ) = "en" )
  }
}

Got 195 rows and 2 columns, showing the first 5 and last 5 rows below:
| item                                   | itemLabel                    |
| -------------------------------------- | ---------------------------- |
| Lelampahan (wd:Q104079854)             | Lelampahan (en)              |
| Tantri (wd:Q104079920)                 | Tantri (en)                  |
| Itihasa (wd:Q104080182)                | Itihasa (en)                 |
| Wariga (wd:Q104080231)                 | Wariga (en)                  |
| agama (wd:Q104080293)                  | agama (en)                   |
| ...                                    | ...                          |
| Gĕguritan Bañuwurung (wd:Q99430861)    | Gĕguritan Bañuwurung (en)    |
| Gaguritan Rusak Gianyar (wd:Q99471867) | Gaguritan Rusak Gianyar (en) |
| Gaguritan Pakang Raras (wd:Q99471961)  | Gaguritan Pakang Raras (en)  |
| Gaguritan Japatuwan (wd:Q99472047)     | Gaguritan Japatuwan (en)     |
| Gaguritan Ni Sumala (wd:Q99472115)     | Gaguritan Ni Sumala (en)     |

All distinct items that are subclasses, at any level, of a manuscript (a document written by hand) are those entities ?item such that ?item is a subclass (directly or indirectly) of wd:Q87167 (manuscript). The query also optionally returns their English labels.

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

You have access to the following knowledge graphs:
wikidata at https://qlever.cs.uni-freiburg.de/api/wikidata

You can use the following SPARQL prefixes implicitly in all functions:
cc: <http://creativecommons.org/ns#
data: <https://www.wikidata.org/wiki/Special:EntityData/
dct: <http://purl.org/dc/terms/
geo: <http://www.opengis.net/ont/geosparql#
geof: <http://www.opengis.net/def/function/geosparql/
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/
qfn: <http://qlever.cs.uni-freiburg.de/function#
ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/
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/
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#
foaf: <http://xmlns.com/foaf/0.1/
dc: <http://purl.org/dc/elements/1.1/
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

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. Use the functions to search for 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. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. 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.
4. 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.
5. 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.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. 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.

[User] Which distinct items are subclasses, at any level, of a manuscript (a document written by hand)?

[Assistant]
Let's break down the question:

1. The user wants all distinct items that are subclasses (at any level) of "manuscript".
2. "Manuscript" is described as "a document written by hand".
3. In Wikidata, "subclass of" is property P279.
4. We need to find the entity for "manuscript" and then recursively find all items that are subclasses of it.

First, I will search for the entity "manuscript" in Wikidata.

[Tool]
Top 10 entity alternatives:
1. manuscript, also known as MSS, MS, manuscript book, manuscripts (wd:Q87167): document written by hand
2. block lettering, also known as ball and stick, block letter, block letters, manuscript, printscript (wd:Q1261015): sans-serif (or "gothic") style of writing in many scripts in whi... "please print"; may also be used as a synonym of block capitals
3. manuscript, also known as manuscript format, manuscript (publishing) (wd:Q2376293): work that an author submits to a publisher or editor for publication
4. Genkou, also known as manuscript (wd:Q127698834): Writings and other works intended for publication or presentation.
5. Manuscript (wd:Q16411389): album
6. Manuscript (wd:Q60851530): studio album by Manizha
7. Manuscript (wd:Q103955283): encyclopedia article
8. Manuscript (wd:Q122933956): sculpture by Seymour Lipton
9. Manuscript (wd:Q125094390): decorative artwork (glass) by Robert Kehlmann
10. Manuscript (wd:Q20797240): painting by Silja Rantanen

[Assistant]
The most relevant entity for "manuscript" as "a document written by hand" is wd:Q87167.

Next, I need to find all items that are subclasses (at any level) of wd:Q87167 ("manuscript"). This requires a recursive traversal of the "subclass of" (P279) property.

I will write a SPARQL query using the property path wdt:P279* to get all subclasses at any level. I will select distinct items and optionally their labels.

[Tool]
Got 195 rows and 1 column, showing the first 5 and last 5 rows below:
| item                                   |
| -------------------------------------- |
| Lelampahan (wd:Q104079854)             |
| Tantri (wd:Q104079920)                 |
| Itihasa (wd:Q104080182)                |
| Wariga (wd:Q104080231)                 |
| agama (wd:Q104080293)                  |
| ...                                    |
| Gĕguritan Bañuwurung (wd:Q99430861)    |
| Gaguritan Rusak Gianyar (wd:Q99471867) |
| Gaguritan Pakang Raras (wd:Q99471961)  |
| Gaguritan Japatuwan (wd:Q99472047)     |
| Gaguritan Ni Sumala (wd:Q99472115)     |

[Tool]
Got 195 rows and 2 columns, showing the first 5 and last 5 rows below:
| item                                   | itemLabel                    |
| -------------------------------------- | ---------------------------- |
| Lelampahan (wd:Q104079854)             | Lelampahan (en)              |
| Tantri (wd:Q104079920)                 | Tantri (en)                  |
| Itihasa (wd:Q104080182)                | Itihasa (en)                 |
| Wariga (wd:Q104080231)                 | Wariga (en)                  |
| agama (wd:Q104080293)                  | agama (en)                   |
| ...                                    | ...                          |
| Gĕguritan Bañuwurung (wd:Q99430861)    | Gĕguritan Bañuwurung (en)    |
| Gaguritan Rusak Gianyar (wd:Q99471867) | Gaguritan Rusak Gianyar (en) |
| Gaguritan Pakang Raras (wd:Q99471961)  | Gaguritan Pakang Raras (en)  |
| Gaguritan Japatuwan (wd:Q99472047)     | Gaguritan Japatuwan (en)     |
| Gaguritan Ni Sumala (wd:Q99472115)     | Gaguritan Ni Sumala (en)     |

[Tool] Stopped generation process


PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wikibase: <http://wikiba.se/ontology#>
SELECT ?property ?propertyLabel ?value WHERE {
  wd:Q9696 ?prop ?value .
  ?property wikibase:directClaim ?prop .
  OPTIONAL {
    ?property rdfs:label ?propertyLabel FILTER ( lang( ?propertyLabel ) = "en" )
  }
}

Got 412 rows and 3 columns, showing the first 5 and last 5 rows below:
| property                                            | propertyLabel                                 | value                                                                                |
| --------------------------------------------------- | --------------------------------------------- | ----------------------------------------------------------------------------------------- |
| video (wd:P10)                                      | video (en)                                    | <http://commons.wikimedia.org/wiki/Special:FilePath/Kennedy%20inauguration%20footage.ogv> |
| George Eastman Museum people ID (wd:P10018)         | George Eastman Museum people ID (en)          | 90819                                                                                |
| Portuguese National Library author ID (wd:P1005)    | Portuguese National Library author ID (en)    | 11414                                                                                |
| Nationale Thesaurus voor Auteursnamen ID (wd:P1006) | Nationale Thesaurus voor Auteursnamen ID (en) | 068645325                                                                                |
| Academy of Athens authority ID (wd:P10141)          | Academy of Athens authority ID (en)           | 40796                                                                                |
| ...                                                 | ...                                           | ...                                                                                |
| Kallías ID (wd:P9918)                               | Kallías ID (en)                               | PE00084182                                                                                |
| Kalliope-Verbund (GND) ID (wd:P9964)                | Kalliope-Verbund (GND) ID (en)                | 118561383                                                                                |
| Musik-Sammler.de artist ID (wd:P9965)               | Musik-Sammler.de artist ID (en)               | 107100                                                                                |
| CANTIC ID (wd:P9984)                                | CANTIC ID (en)                                | 981058523360406706                                                                        |
| MYmovies person ID (wd:P9995)                       | MYmovies person ID (en)                       | 118973                                                                                |

The properties and their values associated with John F. Kennedy (wd:Q9696) in Wikidata include all direct claims such as instance of (human), occupation (writer), sex or gender (male), given name (John), date of birth (1917-05-29), Commons category, image, country of citizenship (United States), family name (Kennedy), place of birth (Brookline), and many more. The full list can be retrieved with the provided SPARQL query.

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

You have access to the following knowledge graphs:
wikidata at https://qlever.cs.uni-freiburg.de/api/wikidata

You can use the following SPARQL prefixes implicitly in all functions:
cc: <http://creativecommons.org/ns#
data: <https://www.wikidata.org/wiki/Special:EntityData/
dct: <http://purl.org/dc/terms/
geo: <http://www.opengis.net/ont/geosparql#
geof: <http://www.opengis.net/def/function/geosparql/
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/
qfn: <http://qlever.cs.uni-freiburg.de/function#
ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/
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/
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#
foaf: <http://xmlns.com/foaf/0.1/
dc: <http://purl.org/dc/elements/1.1/
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

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. Use the functions to search for 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. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. 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.
4. 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.
5. 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.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. 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.

[User] What are the properties and their values associated with John F. Kennedy?

[Assistant]
To answer this question, I need to:

1. Identify the correct entity for "John F. Kennedy" in Wikidata.
2. Retrieve all properties and their values associated with this entity.

Let's start by searching for the entity "John F. Kennedy" in Wikidata.

[Tool]
Top 10 entity alternatives:
1. John F. Kennedy, also known as John Kennedy, John Fitzgerald Kennedy, John F Kennedy, Kennedy, President Kennedy (wd:Q9696): President of the United States from 1961 to 1963, anti-communist, naval officer, statesperson, journalist, politician, writer
2. John F. Kennedy, also known as CVN-79, PCU John F. Kennedy, USS John F. Kennedy (wd:Q240666): 2019 Gerald R. Ford-class aircraft carrier
3. MV John F. Kennedy, also known as IMO 8643195, John F. Kennedy (wd:Q29378914): Staten Island Ferry vessel.
4. John F Kennedy (wd:Q22006430): horse
5. John F. Kennedy (wd:Q130973914): sculpture by Evangelos Frudakis
6. John F. Kennedy, also known as John Flanders Kennedy (wd:Q28836957): American politician and member of the Georgia State Senate, politician
7. John F Kennedy (wd:Q42586306): cultural heritage monument in Aruba
8. Rosa 'John F. Kennedy', also known as John F. Kennedy (wd:Q83668459): rose cultivar
9. John F. Kennedy (wd:Q80912685): scientific article published on 01 November 1963
10. John F. Kennedy (wd:Q78526936): edition; published in 1997

[Assistant]
The most relevant entity for "John F. Kennedy" (the U.S. President) is wd:Q9696.

Next, I will retrieve all properties and their values associated with wd:Q9696. This will provide a comprehensive list of the properties (predicates) and their corresponding values (objects) for John F. Kennedy in Wikidata.

[Tool]
Got 1,679 rows and 3 columns, showing the first 10 rows below:
| subject                    | property                         | object                                                                                |
| -------------------------- | -------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
| John F. Kennedy (wd:Q9696) | instance of (wdt:P31)            | human (wd:Q5)                                                                                |
| John F. Kennedy (wd:Q9696) | occupation (wdt:P106)            | writer (wd:Q36180)                                                                                |
| John F. Kennedy (wd:Q9696) | sex or gender (wdt:P21)          | male (wd:Q6581097)                                                                                |
| John F. Kennedy (wd:Q9696) | given name (wdt:P735)            | John (wd:Q4925477)                                                                                |
| John F. Kennedy (wd:Q9696) | date of birth (wdt:P569)         | 1917-05-29T00:00:00Z (xsd:dateTime)                                                                                |
| John F. Kennedy (wd:Q9696) | Commons category (wdt:P373)      | John F. Kennedy                                                                                |
| John F. Kennedy (wd:Q9696) | image (wdt:P18)                  | <http://commons.wikimedia.org/wiki/Special:FilePath/John%20F.%20Kennedy%2C%20White%20House%20color%20photo%20portrait.jpg> |
| John F. Kennedy (wd:Q9696) | country of citizenship (wdt:P27) | United States (wd:Q30)                                                                                |
| John F. Kennedy (wd:Q9696) | family name (wdt:P734)           | Kennedy (wd:Q120401)                                                                                |
| John F. Kennedy (wd:Q9696) | place of birth (wdt:P19)         | Brookline (wd:Q49142)                                                                                |
| ...                        | ...                              | ...                                                                                |

[Tool] Stopped generation process


SELECT ?category ?categoryLabel ?count WHERE {
  {
    SELECT ?category (COUNT(?entity) AS ?count) WHERE {
      ?entity wdt:P31 ?category .
      ?category wdt:P31 wd:Q56427813 .
    } GROUP BY ?category
  }
  FILTER(?count > 499)
  OPTIONAL { ?category rdfs:label ?categoryLabel FILTER(LANG(?categoryLabel) = "fr") }
}
UNION
{
  SELECT ("AUTRE" AS ?categoryLabel) (SUM(?count) AS ?count) WHERE {
    {
      SELECT ?category (COUNT(?entity) AS ?count) WHERE {
        ?entity wdt:P31 ?category .
        ?category wdt:P31 wd:Q56427813 .
      } GROUP BY ?category
    }
    FILTER(?count <= 499)
  }
}
ORDER BY DESC(?count)

This query returns the number of legal units for each level 3 legal category in France (with the category name in French) where the count is greater than 499, and adds a summary line labeled 'AUTRE' for all other categories with counts of 499 or less.

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

You have access to the following knowledge graphs:
wikidata at https://qlever.cs.uni-freiburg.de/api/wikidata

You can use the following SPARQL prefixes implicitly in all functions:
cc: <http://creativecommons.org/ns#
data: <https://www.wikidata.org/wiki/Special:EntityData/
dct: <http://purl.org/dc/terms/
geo: <http://www.opengis.net/ont/geosparql#
geof: <http://www.opengis.net/def/function/geosparql/
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/
qfn: <http://qlever.cs.uni-freiburg.de/function#
ql: <http://qlever.cs.uni-freiburg.de/builtin-functions/
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/
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#
foaf: <http://xmlns.com/foaf/0.1/
dc: <http://purl.org/dc/elements/1.1/
gn: <http://www.geonames.org/ontology#
bd: <http://www.bigdata.com/rdf#
hint: <http://www.bigdata.com/queryHints#
qb: <http://purl.org/linked-data/cube#
void: <http://rdfs.org/ns/void#

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. Use the functions to search for 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. Use the execute function to get feedback on intermediate queries. You can go back and forth between knowledge graph searches and SPARQL query executions to refine the query.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not assume or make up any entities or properties without verifying them with the knowledge graphs and functions.
3. 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.
4. 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.
5. 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.
6. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
7. 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.

[User] What is the number of legal units for each level 3 legal category in France, with the category name in French, where the count of legal units is greater than 499? Additionally, provide a summary line labeled "OTHER" that sums up the number of legal units for all other categories with counts of 499 or less.

[Assistant]
Let's break down the question:

1. We need to find "level 3 legal categories" in France. These are likely specific legal entity types or classifications used in French law.
2. For each such category, we need:
   - The category name in French.
   - The number of "legal units" (probably organizations or entities) belonging to that category.
   - Only include categories with more than 499 legal units.
3. Additionally, we need a summary line labeled "OTHER" that sums the number of legal units for all categories with 499 or fewer units.

Step 1: Identify the entities and properties.
- "Legal unit" in France: Let's search for the entity representing a legal unit or legal entity in France.
- "Level 3 legal category": Let's search for this classification.
- "Number of legal units": We need to count the number of legal units per category.
- "Category name in French": Use rdfs:label with language filter.
- "France": Restrict to French legal units.

Step 2: Search for relevant entities and properties.

I'll start by searching for "legal unit" and "legal category" in Wikidata.

[Tool]
Top 10 entity alternatives:
1. legal unit of measure (wd:Q22282168)
2. United States legal system, also known as court system of the United States, legal system of the United States (wd:Q4445375)
3. [New legal measure units] (wd:Q66870079): scientific article published on 01 September 1976
4. type of legal entity in the UK, also known as legal form (UK), type of legal entity (United Kingdom), type of legal entity (UK), type of legal entity in the United Kingdom, type of business entity (United Kingdom) (wd:Q57655433): legal entity used in the UK
5. United Arab Emirates Legal Process (wd:Q18356599)
6. Coronary care units: legal considerations (wd:Q68900361): scientific article published on 01 January 1974
7. Coronary care units: legal considerations (wd:Q39223479): scientific article published on January 1978
8. Legal Affairs Unit Files (NAID 7408582) (wd:Q63912670): series in the National Archives and Records Administration's holdings
9. LEGAL UNITS OF ELECTRIC MEASURE (wd:Q81196971): scientific article published on 01 January 1895
10. United Nations Office of Legal Affairs (wd:Q638357): United Nations office

[Tool]
Top 10 entity alternatives:
1. legal person, also known as artificial person, subject of law, persona iuris, legal subject, legal personality (wd:Q3778211): any human or non-human entity that is recognized as having privi... persons, juridical persons and other entities such as countries
2. corporate personhood, also known as corporate juridical person, Legal entity, Judicial person, Corporation person, Business entity (wd:Q3376073): notion that corporations can have some legal rights, responsibilities and accountability
3. legal entity (wd:L5236-S3)
4. Legal Entity Identifier, also known as Global Legal Entity Identifier, LEI, LEI code, LEI number (wd:Q6517388): 20-digit, alpha-numeric reference string to uniquely identify a legally distinct entity
5. separate legal entity, also known as SLE (wd:Q7451779): legal entity with detached accountability in the United States
6. ISO 20275, also known as ELF, entity legal forms (wd:Q106152815): international standard for legal forms of entities
7. International Legal Entity (wd:Q126891722): legal form in Portugal
8. other legal person, also known as ANNA, other legal entity (wd:Q99528763): type of legal entity in Norway
9. school legal entity (wd:Q56447357): Czech legal form of organization
10. Legal Entity Identifier, also known as ISO 17442 code, LEI Code, LEI, Legal Entity ID, ISO 17442 ID (wd:P1278): identifier for a legally distinct entity per ISO 17442

[Tool]
Top 10 entity alternatives:
1. type of legal entity in France, also known as legal business in France, type of legal form in France, type of business entity in France, legal form in France (wd:Q56427813): legal entity used in the France
2. legal form (wd:Q10541491): type of legal entity within certain legal system
3. legal form, also known as structured as, legal structure (wd:P1454): legal form of an entity
4. legal formalism (wd:Q1779729): positive or descriptive theory of adjudication
5. form book, also known as form books, formbooks, formularies, legal forms, legal formularies (wd:Q5469925): tool used by attorneys in the United States to aid in the filing...her legal documents with a court or similar decision-making body
6. Legal Formants (wd:Q3748131)
7. type of legal entity in Germany, also known as type of legal form in Germany, type of legal entity (Germany), type of business entity in Germany, type of business entity (Germany), legal form in Germany (wd:Q19335303): legal entity used in the Federal Republic of Germany
8. discontinued legal form (wd:Q123991206): types of legal entities in specific legal systems that have been abolished
9. historical business entity type, also known as defunct business entity, former business entity, historical legal form (wd:Q130499319): defunct legal form of business entities
10. type of legal entity in the UK, also known as legal form (UK), type of legal entity (United Kingdom), type of legal entity (UK), type of legal entity in the United Kingdom, type of business entity (United Kingdom) (wd:Q57655433): legal entity used in the UK

[Tool]
Top 10 property alternatives:
1. legal form, also known as legal structure, structured as (wd:P1454 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): legal form of an entity, instance of
2. writing system, also known as script, writing script, written form (wd:P282 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): alphabet, character set or other system of writing used by a language, word, or text, supported by a typeface
3. reservoir created, also known as impounds, lake created, lake formed, reservoir formed, forms (wd:P4661 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): product, material, or service produced or provided, reservoir created upstream of a dam by this dam, located in or next to body of water, product or material produced
4. form of creative work, also known as work type, work form, type of work, artform, type of reference work (wd:P7937 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): structure of a creative work
5. ELF code, also known as entity legal form ID, GLEI ELF, GLEIF ELF code (wd:P10421 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): code for entity legal form (ELF), assigned by the Global Legal Entity Identifier Foundation (GLEIF) per ISO 20275
6. signed form, also known as hand-signed form (wd:P3969 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): manually coded form of this language
7. bill number, also known as legal number (wd:P10703 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number assigned to a bill to be submitted to the parliament of the state or local government
8. botanist author abbreviation, also known as standard form, IPNI standard form, IPNI author abbreviation, botanic author abbreviation, botany author (wd:P428 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): standard form (official abbreviation) of a personal name for use in an author citation (only for names of algae, fungi and plants)
9. subclass of, also known as rdfs:subClassOf, sort of, subcategory of, subgenre of, subtype of (wd:P279 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this item is a subclass (subset) of that item; ALL instances of ...stance of volcanic landform); Everest is an instance of mountain
10. subject named as, also known as established as, established form, established heading, named as, spelled as (wd:P1810 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): name by which a subject is recorded in a database, mentioned as a contributor of a work, or is referred to in a particular context, name

[Tool]
Top 10 property alternatives:
1. maximum gradient, also known as maximum incline, ruling grade, max slop, maximum slope, max gradient (wd:P2595 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): maximum gradient on a route, expressed as a percentage
2. heritage designation, also known as legal protection, protection, protected status, listing, listed status (wd:P1435 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): heritage designation of a cultural or natural site, has part(s), instance of
3. legal form, also known as legal structure, structured as (wd:P1454 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): legal form of an entity, instance of
4. main regulatory text, also known as regulated by, statutory authorization, statutory authority, legally established by, legal basis (wd:P92 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): text setting the main rules by which the subject is regulated
5. law identifier, also known as law number, regulation number, regulation id, regulation i.d., law or regulation identifying number (wd:P8550 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): a sequence of numbers assigned to laws/acts that were passed by countries or local governments
6. next higher rank, also known as higher level, next higher level, next (higher), higher rank (wd:P3730 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): higher rank or level in a ranked hierarchy like sport league, mi...fiers. For sports leagues/taxa, use specific properties instead., followed by
7. laws applied, also known as applied law, law applied, legal base (wd:P3014 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the constitutional and statutory provisions that were the primary basis for a decision or law
8. NDL earlier law ID, also known as NDL law ID (wd:P9986 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier in the NDL (National Diet Library) Japanese Law Index (early Meiji years)
9. Levels.fyi company ID, also known as ID of Levels.fyi, Levels.fyi company identifier, levels fyi id, Levels.fyi id (wd:P10146 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): unique identifier of a company listed on the Levels.fyi salary comparison website
10. competition class, also known as disability sport classifications, weight class, rated at, qualifies for, qualification class (wd:P2094 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): official classification by a regulating body under which the sub...ents, teams, participants, or equipment) qualifies for inclusion

[Tool]
Got 125 rows and 3 columns, showing the first 10 rows below:
| subject                                       | property                            | object                                                       |
| --------------------------------------------- | ----------------------------------- | ------------------------------------------------------------ |
| type of legal entity in France (wd:Q56427813) | part of (wdt:P361)                  | company law in France (wd:Q3039755)                          |
| type of legal entity in France (wd:Q56427813) | subclass of (wdt:P279)              | type of business entity (wd:Q1269299)                        |
| type of legal entity in France (wd:Q56427813) | applies to jurisdiction (wdt:P1001) | France (wd:Q142)                                             |
| type of legal entity in France (wd:Q56427813) | topic's main category (wdt:P910)    | wd:Q8877969                                                  |
| type of legal entity in France (wd:Q56427813) | foundational text (wdt:P457)        | legal categories in France (wd:Q87711223)                    |
| type of legal entity in France (wd:Q56427813) | wdt:P31279                          | legal form (wd:Q10541491)                                    |
| type of legal entity in France (wd:Q56427813) | schema:description                  | in Frankreich verwendete Rechtsform /juristische Person (de) |
| type of legal entity in France (wd:Q56427813) | schema:name                         | Art der juristischen Person in Frankreich (gsw)              |
| type of legal entity in France (wd:Q56427813) | rdf:type                            | wikibase:Item                                                |
| type of legal entity in France (wd:Q56427813) | rdfs:label                          | Art der juristischen Person in Frankreich (gsw)              |
| ...                                           | ...                                 | ...                                                          |

[Tool]
Top 10 property alternatives:
1. subclass of, also known as rdfs:subClassOf, sort of, subcategory of, subgenre of, subtype of (wd:P279 as wdt/p): this item is a subclass (subset) of that item; ALL instances of ...stance of volcanic landform); Everest is an instance of mountain
2. topic's main category, also known as article's main category, category, category for this topic, catmain, has category (wd:P910 as wdt/p): main Wikimedia category
3. part of, also known as of, within, system of, subsystem of, subgroup of (wd:P361 as wdt/p): object of which the subject is a part (if this subject is alread... of "has part" (P527, see also "has parts of the class" (P2670))
4. applies to jurisdiction, also known as belongs to jurisdiction, applies to territorial jurisdiction, applies to region, applies to place, applies to geographic place (wd:P1001 as wdt/p): the item (institution, law, public office, public register...) o...a territorial jurisdiction: a country, state, municipality, ...), significant place, characteristic of, operating area
5. foundational text, also known as main text, treaty, organic law, founding document, establishing document (wd:P457 as wdt/p): text through which an institution or object has been created or established

No other items found

[Tool]
Top 10 entity alternatives:
1. law of France, also known as body of law in France, legal system of France, legal system in France, legal regime of France, legal regime in France (wd:Q1195493): body of law in France
2. legal history of France (wd:Q3137849)
3. Category:Wikicamps in France (wd:Q131940027)
4. Legal assistance in France (wd:Q2827799)
5. legal advocate in France (wd:Q791243): profession
6. Category:Mennonitism in France (wd:Q130253136)
7. Legal separation in France (wd:Q16678578)
8. legal doctrine in France (wd:Q2371351)
9. legal deposit in France (wd:Q3044959)
10. legal categories in France (wd:Q87711223): nomenclature

[Tool]
Got 111 rows and 3 columns, showing the first 10 rows below:
| subject                                   | property                              | object                                                                 |
| ----------------------------------------- | ------------------------------------- | ---------------------------------------------------------------------- |
| legal categories in France (wd:Q87711223) | instance of (wdt:P31)                 | nomenclature (wd:Q863247)                                              |
| legal categories in France (wd:Q87711223) | author (wdt:P50)                      | Sirene interministerial committee (wd:Q87711314)                       |
| legal categories in France (wd:Q87711223) | main subject (wdt:P921)               | type of legal entity in France (wd:Q56427813)                          |
| legal categories in France (wd:Q87711223) | country (wdt:P17)                     | France (wd:Q142)                                                       |
| legal categories in France (wd:Q87711223) | full work available at URL (wdt:P953) | <https://www.insee.fr/fr/information/2028129>                          |
| legal categories in France (wd:Q87711223) | has edition or translation (wdt:P747) | nomenclature of legal categories in France before 1991 (wd:Q112176136) |
| legal categories in France (wd:Q87711223) | wdt:P31279                            | nomenclature (wd:Q863247)                                              |
| legal categories in France (wd:Q87711223) | schema:description                    | nomenclatura (es)                                                      |
| legal categories in France (wd:Q87711223) | schema:name                           | categorías jurídicas en Francia (es)                                   |
| legal categories in France (wd:Q87711223) | rdf:type                              | wikibase:Item                                                          |
| ...                                       | ...                                   | ...                                                                    |

[Tool]
Got 335 rows and 3 columns, showing the first 10 rows below:
| subject                                                        | property              | object                                        |
| -------------------------------------------------------------- | --------------------- | --------------------------------------------- |
| prefecture (wd:Q179831)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| agglomeration community (wd:Q159321)                           | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| commune community (wd:Q423785)                                 | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| urban community (wd:Q423790)                                   | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| métropole (wd:Q3333855)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| territorial collectivity of France (wd:Q583865)                | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| société à responsabilité limitée (wd:Q15091621)                | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| public establishment of an administrative nature (wd:Q3244038) | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| établissement public (wd:Q15343039)                            | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| ministry (wd:Q14037025)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| ...                                                            | ...                   | ...                                           |

[Tool]
Top 10 property alternatives:
1. Levels.fyi company ID, also known as ID of Levels.fyi, Levels.fyi company identifier, levels fyi id, Levels.fyi id (wd:P10146 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): unique identifier of a company listed on the Levels.fyi salary comparison website
2. next higher rank, also known as higher level, next higher level, next (higher), higher rank (wd:P3730 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): higher rank or level in a ranked hierarchy like sport league, mi...fiers. For sports leagues/taxa, use specific properties instead., followed by
3. level of description (wd:P6224 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): position of the unit of description in the hierarchy of the fonds
4. sports league level, also known as league level, sport league level, level on sport league pyramid, level on league pyramid, level on pyramid (wd:P3983 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the level of the sport league in the sport league system
5. school class, also known as class, cohort, grade, school cohort, stage (wd:P7174 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): (qualifier) class of a given year/time period to which the person belonged in an educational institution
6. degree of difficulty, also known as difficulty, difficulty degree, difficulty level, level of difficulty (wd:P7252 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): difficulty level of an item
7. next lower rank, also known as lower level, lower rank, next (lower), next lower level (wd:P3729 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): lower rank or level in a ranked hierarchy like sport league, mil...fiers. For sports leagues/taxa, use specific properties instead., follows
8. floors above ground, also known as floor count, stories, storeys, number of floors, levels above ground (wd:P1101 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): above ground floor count of a building (ground floor and attic included)
9. league level above, also known as level above (league), promotion to (wd:P2499 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the league above this sports league, next higher rank
10. floors below ground, also known as basement floors, floors below ground, levels below ground, underground floors (wd:P1139 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): total number of below ground floors of the building

[Tool] Got no rows and 3 columns

[Tool]
Got 2,846 rows and 3 columns, showing the first 10 rows below:
| subject                            | property              | object                     |
| ---------------------------------- | --------------------- | -------------------------- |
| Notre-Dame d'Amiens (wd:Q106934)   | instance of (wdt:P31) | legal person (wd:Q3778211) |
| AirBaltic (wd:Q300924)             | instance of (wdt:P31) | legal person (wd:Q3778211) |
| debtor (wd:Q157470)                | instance of (wdt:P31) | legal person (wd:Q3778211) |
| Mount Taranaki (wd:Q850051)        | instance of (wdt:P31) | legal person (wd:Q3778211) |
| MikroTik (wd:Q913580)              | instance of (wdt:P31) | legal person (wd:Q3778211) |
| University of Wales (wd:Q1072029)  | instance of (wdt:P31) | legal person (wd:Q3778211) |
| Grindeks (wd:Q2071602)             | instance of (wdt:P31) | legal person (wd:Q3778211) |
| Partition of Albania (wd:Q7140640) | instance of (wdt:P31) | legal person (wd:Q3778211) |
| Latvenergo (wd:Q3736450)           | instance of (wdt:P31) | legal person (wd:Q3778211) |
| Happy Science (wd:Q1061176)        | instance of (wdt:P31) | legal person (wd:Q3778211) |
| ...                                | ...                   | ...                        |

[Tool]
Top 10 property alternatives:
1. valid in place, also known as applies to country, applies to location, applies to place, country, true in (wd:P3005 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): place where a statement is valid, applies to part
2. country of origin, also known as origin country, place of origin, originates from, country, CoO (wd:P495 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): country of origin of this item (creative work, food, phrase, product, etc.), significant place, country
3. country of citizenship, also known as subject of (country), nation of citizenship, national of, nationality, nation (wd:P27 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the object is a country that recognizes the subject as its citizen, country
4. country, also known as sovereign state, state, land, host country (wd:P17 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): sovereign state that this item is in (not to be used for human beings), located in the administrative territorial entity
5. location, also known as neighbourhood, whereabouts, vilage, venue, town (wd:P276 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): location of the object, structure or event. In the case of an ad...ity use P706. Use P7153 for locations associated with the object
6. located in the administrative territorial entity, also known as is in the settlement of, is in the voivodeship of, is in the shire of, is in the state of, is in the territory of (wd:P131 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the item is located on the territory of the following administra...if the item falls only partially into the administrative entity., location, part of
7. operating area, also known as province served, serves jurisdiction, serves geographic region, serves geographic area, serves area (wd:P2541 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): geographic area or jurisdiction an organisation or industry operates in, serves, or has responsibility for, location
8. located in the statistical territorial entity, also known as located in statistical territorial entity, statistical territorial entity (wd:P8138 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): statistical territorial entity in which a place is located or is...nty is split into or part of several regions: add several values, location
9. set in environment, also known as set in location, takes place in, setting location, playing in, narrative set in (wd:P8411 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): environment (geographic feature, building type, etc.) the narrative work is set in, significant place, depicts
10. narrative location, also known as set in location, set in, setting, setting location, setting of work (wd:P840 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the narrative of the work is set in this location, significant place, depicts

[Tool]
Top 10 property alternatives:
1. subclass of, also known as rdfs:subClassOf, sort of, subcategory of, subgenre of, subtype of (wd:P279 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this item is a subclass (subset) of that item; ALL instances of ...stance of volcanic landform); Everest is an instance of mountain
2. heritage designation, also known as legal protection, protection, protected status, listing, listed status (wd:P1435 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): heritage designation of a cultural or natural site, has part(s), instance of
3. legal form, also known as legal structure, structured as (wd:P1454 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): legal form of an entity, instance of
4. topic's main category, also known as article's main category, category, category for this topic, catmain, has category (wd:P910 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): main Wikimedia category
5. category's main topic, also known as item for this category, cmt, main article in category, main category topic, main subject of category (wd:P301 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): primary topic of the subject Wikimedia category, main subject
6. main regulatory text, also known as regulated by, statutory authorization, statutory authority, legally established by, legal basis (wd:P92 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): text setting the main rules by which the subject is regulated
7. protective marking, also known as confidentiality, document classification, document marking, information classification, privacy category (wd:P10129 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): label applied to an intellectual work to indicate how the docume... be handled, particularly from a security or privacy perspective
8. laws applied, also known as applied law, law applied, legal base (wd:P3014 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the constitutional and statutory provisions that were the primary basis for a decision or law
9. category related to list, also known as category equivalent to list, category related to this list, list category, list has category, list's category (wd:P1754 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): Wikimedia category that matches the Wikimedia list
10. items classified, also known as type of items classified, type of items categorized, type of entities classified, type of entities categorized, entities classified (wd:P13359 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): type of items classified by this classification system or act of classification

[Tool]
Top 10 property alternatives:
1. SIREN number, also known as SIREN ID, SIREN identifier (wd:P1616 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier for an organization in the SIRENE register maintained by INSEE
2. heritage designation, also known as legal protection, protection, protected status, listing, listed status (wd:P1435 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): heritage designation of a cultural or natural site, has part(s), instance of
3. applies to jurisdiction, also known as belongs to jurisdiction, applies to territorial jurisdiction, applies to region, applies to place, applies to geographic place (wd:P1001 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the item (institution, law, public office, public register...) o...a territorial jurisdiction: a country, state, municipality, ...), significant place, characteristic of, operating area
4. laws applied, also known as applied law, law applied, legal base (wd:P3014 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the constitutional and statutory provisions that were the primary basis for a decision or law
5. items classified, also known as type of items classified, type of items categorized, type of entities classified, type of entities categorized, entities classified (wd:P13359 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): type of items classified by this classification system or act of classification
6. main regulatory text, also known as regulated by, statutory authorization, statutory authority, legally established by, legal basis (wd:P92 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): text setting the main rules by which the subject is regulated
7. law identifier, also known as law number, regulation number, regulation id, regulation i.d., law or regulation identifying number (wd:P8550 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): a sequence of numbers assigned to laws/acts that were passed by countries or local governments
8. legal form, also known as legal structure, structured as (wd:P1454 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): legal form of an entity, instance of
9. copyright status as a creator, also known as statut des droits d'auteur du createur, copyright status of creator's works, copyright status as creator, copyright status of works (wd:P7763 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): states if the body of work published during the lifetime of this creator is still copyrighted or in the public domain
10. European Case Law ID, also known as ECLI, European Case Law Identifier (wd:P3570 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier for case law in Europe

[Tool]
Top 10 property alternatives:
1. subclass of, also known as rdfs:subClassOf, sort of, subcategory of, subgenre of, subtype of (wd:P279 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this item is a subclass (subset) of that item; ALL instances of ...stance of volcanic landform); Everest is an instance of mountain
2. topic's main category, also known as article's main category, category, category for this topic, catmain, has category (wd:P910 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): main Wikimedia category
3. items classified, also known as type of items classified, type of items categorized, type of entities classified, type of entities categorized, entities classified (wd:P13359 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): type of items classified by this classification system or act of classification
4. category's main topic, also known as item for this category, cmt, main article in category, main category topic, main subject of category (wd:P301 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): primary topic of the subject Wikimedia category, main subject
5. level of description (wd:P6224 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): position of the unit of description in the hierarchy of the fonds
6. category populated by, also known as category filled by, category has template, cat populated by, component adding into the category, populated by (wd:P4329 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): software component (template, module, extension, MediaWiki core) populating the category
7. category for the view of the item, also known as view of category (wd:P8989 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): category for the view of this item (object, place)
8. category contains, also known as is set of (wd:P4224 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): category contains elements that are instances of this item
9. list related to category, also known as category has list, list equivalent to category, category's list, associated list with category (wd:P1753 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): Wikimedia list equivalent to a Wikimedia category, has list
10. category related to list, also known as category equivalent to list, category related to this list, list category, list has category, list's category (wd:P1754 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): Wikimedia category that matches the Wikimedia list

[Tool]
Top 10 property alternatives:
1. INSEE municipality code, also known as INSEE municipality ID, INSEE municipality identifier (wd:P374 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier with 5 digits or letters for a municipality or a muni...e, per the National Institute of Statistics and Economic Studies
2. INSEE department code, also known as code département Insee, Insee département code (wd:P2586 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number sequence for the identification of departments in France
3. INSEE region code (wd:P2585 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number sequence for the identification of regions in France
4. INSEE countries and foreign territories code (wd:P3422 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): French identifier for countries and foreign territories
5. INE code, also known as INE municipality code (wd:P772 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier for Spanish populated entities, by the Spanish Statistical Office (INE)
6. INSEE arrondissement code (wd:P3423 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number sequence for identification of departmental arrondissements in France
7. INSEE canton code (wd:P2506 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number sequence for the identification of canton in France
8. Legal Entity Identifier, also known as ISO 17442 code, LEI Code, LEI, Legal Entity ID, ISO 17442 ID (wd:P1278 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier for a legally distinct entity per ISO 17442
9. law identifier, also known as law number, regulation number, regulation id, regulation i.d., law or regulation identifying number (wd:P8550 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): a sequence of numbers assigned to laws/acts that were passed by countries or local governments
10. legal form, also known as legal structure, structured as (wd:P1454 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): legal form of an entity, instance of

[Tool]
Top 10 entity alternatives:
1. nomenclatural term, also known as nomenclature designation (wd:Q62846988): terminology used in biological nomenclature
2. Théorie des catégories (wd:Q114022744): scientific article published in 2021
3. Commission des services juridiques (wd:Q5152635): Government of Quebec entity in charge of legal aid
4. Nomenclature des familles Hémiptères (wd:Q106496757): scientific article
5. Nomenclature des niveaux de formation, also known as National Classification of Levels of Training (wd:Q1765335): system to measure individual's training in France
6. Contribution à l'étude des catég...pos, nomenclature et définitions (wd:Q108825119)
7. Descent in triangulated categories (wd:Q59650025)
8. Fashion: Categories of design (wd:Q104008893): encyclopedia article
9. Why job description nomenclature? (wd:Q48812553): scientific article published in December 1968
10. Sur la nomenclature des hydres (wd:Q61678645): scientific article

[Tool]
Top 10 entity alternatives:
1. French engineer unit, also known as engineer unit (France) (wd:Q63090721): military unit type classification within the structure of the French armed forces
2. French armored unit, also known as armored unit (France), French tank unit, tank unit (France) (wd:Q63074733): military unit type classification within the organization of the French Army
3. French military unit, also known as French Army unit, military unit of France, military unit (France), French unit (wd:Q63046123): formation or organization specific to the French military
4. French helicopter unit, also known as helicopter unit (France) (wd:Q63091547): military unit classification within the French Armed Forces
5. French logistics unit, also known as French materiel unit, supply unit (France), French supply unit, materiel unit (France) (wd:Q63090780): military unit type classification within the French Armed Forces
6. French infantry unit, also known as infantry unit (France) (wd:Q63075183): military unit type classification within the organization of the French armed forces
7. French spahi unit, also known as spahi unit (France) (wd:Q63091658): military unit classification within the French Armed Forces
8. French signals unit, also known as signals unit (France) (wd:Q63048220): type of unit classification within the French military
9. law of France, also known as body of law in France, legal system of France, legal system in France, legal regime of France, legal regime in France (wd:Q1195493): body of law in France
10. Brigade anti-criminalité, also known as Anti Crime Unit (France) (wd:Q2925231): French anti-crime unit

[Tool]
Top 10 entity alternatives:
1. French company, also known as company (France), French Army company, military company (France) (wd:Q66737123): military unit size designation within the structure of the French Army
2. French company, also known as company in France, French business, French domestic company (wd:Q3055260): company based in France, contributing to the GDP of that country
3. company law in France, also known as French business law, French company law (wd:Q3039755): aspect of French law
4. Company Commercial Pornocadia France (wd:Q4876646): Legacy accounting company
5. Francesc Company Mas (wd:Q11922731): Spanish religious (1904-1994), religious
6. commercial company in France (wd:Q33134269)
7. The Walt Disney Company France (wd:Q3523270): French division of The Walt Disney Company from 1951 to present
8. 1st Free French tank company, also known as 1st Free French Forces tank company, 1st Tank Company, Free France (wd:Q109016589)
9. Francesc Olivella i Company (wd:Q21192880): Spanish musician, musician
10. [BULLETIN Official Company dentistry France] (wd:Q76298575): scientific article published on 01 May 1952

[Tool]
Top 10 property alternatives:
1. item of property constraint, also known as claim value, value, qid, property value, item qualifier (wd:P2305 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): qualifier to define a property constraint in combination with "property constraint" (P2302)
2. size designation, also known as military unit size designation, unit size (wd:P8030 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): organizational size classification or designation used to indica...of an entity within an organization (property under development)
3. series ordinal, also known as ordinal, unit number, sort order, sorting order, series number (wd:P1545 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): position of an item in its parent series (most frequently a 1-ba...d from "ranking" defined as a property for evaluating a quality)
4. room number, also known as apartment, room identifier, suite, unit (wd:P7532 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number or identifier of a room, which can qualify the address (P6375) of a place to complete it
5. recommended unit of measurement, also known as measured in, unit of measurement, unit, standard unit of measurement (wd:P8111 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): unit in which a quantity is measured as recommended by a standard (SI, ISO, IEC, etc.)
6. statistical unit, also known as describe items of type, statistical designation, unit (wd:P2353 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): member of a dataset; type of statistical designation
7. military unit, also known as member of military unit, unit (wd:P7779 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): smallest military unit that a person is/was in, member of
8. derived from base unit, also known as base units, base unit (wd:P12571 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): the base unit(s) that this derived unit is derived from
9. number of housing units, also known as dwelling-places, housing units, number of dwelling-places (wd:P10814 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of housing units (dwellings) in a specific place (such as city, county, state, country etc.)
10. UN/CEFACT Common Code, also known as unit code, UNUOM common code, UNUOM code, UNUOM, UNTDED common code (wd:P6512 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): unit of measurement identifier as defined by the UN/CEFACT in Re...n No. 20: Codes for Units of Measure Used in International Trade

[Tool]
Top 10 property alternatives:
1. member count, also known as total members, number of members, count of members, amount of members, membership (wd:P2124 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of entities that are part of an organization at a particular time
2. members have occupation, also known as profession of members, organization of, organization for, organisation of, organisation for (wd:P3989 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): some or all members of this group share the occupation
3. number of seats, also known as membership quantity, number of seats (members), quantity of members, seats (members) (wd:P1342 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): total number of seats/members in an assembly (legislative house or similar)
4. number of branches, also known as branches, store count, shop count, number of supermakerts, number of shops (wd:P8368 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of branches or stores affiliated with a chain, brand or company
5. number of participants, also known as number of competitors, number of teams, participant count, participants, qty participants (wd:P1132 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of participants of an event, e.g. people or groups of people that take part in the event (NO units), quantity
6. organization directed by the office or position, also known as leader of, head of, leads, organization directed by, organization directed from the office (wd:P2389 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): organization which is directed by this office
7. is a number of, also known as a number of, the number of, quantifies, number of, is the number of (wd:P11279 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this entity is a number representing the quantity of this item
8. number of clubs (wd:P4999 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of clubs active in a given sport for a region
9. employer, also known as working at, working for, working place, works at, works for (wd:P108 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): person or organization for which the subject works or worked, affiliation
10. represents, also known as represents organisation, stands for, symbolises, symbolizes, team for (wd:P1268 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): organization, individual, or concept that an entity represents

[Tool]
Top 10 property alternatives:
1. collection or exhibition size, also known as size of collection, size of exhibition, number of records, exhibition size, number of objects (wd:P1436 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of items in a collection or exhibition
2. items classified, also known as type of items classified, type of items categorized, type of entities classified, type of entities categorized, entities classified (wd:P13359 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): type of items classified by this classification system or act of classification
3. quantity, also known as amount, total number, total, qty, occurrences (wd:P1114 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of instances of this subject in the universe of the subje...e actual number of instances in Wikidata may be lower or higher)
4. is a number of, also known as a number of, the number of, quantifies, number of, is the number of (wd:P11279 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): this entity is a number representing the quantity of this item
5. WorldCat Entities ID, also known as Entities ID, OCLC WorldCat Entities ID, WC Entities ID, WorldCat Entities identifier (wd:P10832 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): identifier for a person, work, place, historical period, or event from the WorldCat Entities linked data service
6. number of records, also known as entries, rows, records, quantitiy of records, number of rows (wd:P4876 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of values of an identifier or records in a catalog
7. subject named as, also known as established as, established form, established heading, named as, spelled as (wd:P1810 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): name by which a subject is recorded in a database, mentioned as a contributor of a work, or is referred to in a particular context, name
8. number of works, also known as works, works posted, work count, posts posted, posts (wd:P3740 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): qualifier on identifiers, e.g. for creators or locations, giving... external database associated with the subject of the identifier
9. number of aid beneficiaries, also known as number of aid recipients, number of beneficiaries, number of people reached, people reached (wd:P9077 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): number of people reached with international aid programmes, acti...ctivities. Qualify with "point in time" (P585) where appropriate
10. number of seats, also known as membership quantity, number of seats (members), quantity of members, seats (members) (wd:P1342 as wdt/psv/psn/prn/pqv/ps/p/prv/pr/wdtn/pq/pqn): total number of seats/members in an assembly (legislative house or similar)

[Tool]
Got 1 row and 3 columns:
| category                                      | categoryLabel                      | count         |
| --------------------------------------------- | ---------------------------------- | ------------- |
| type of legal entity in France (wd:Q56427813) | catégorie juridique en France (fr) | 335 (xsd:int) |

[Tool]
Got 10 rows and 1 column:
| entity                                                                          |
| ------------------------------------------------------------------------------- |
| wd:Q104822568                                                                   |
| SA à directoire (s.a.i.) (wd:Q110567707)                                        |
| wd:Q110670511                                                                   |
| declared association (wd:Q111166550)                                            |
| employees' trade union (wd:Q111190925)                                          |
| agricultural cooperative (wd:Q111191049)                                        |
| undeclared association (wd:Q111191469)                                          |
| commerçant (wd:Q111191632)                                                      |
| établissement public local à caractère industriel ou commercial (wd:Q111302220) |
| société anonyme à directoire (wd:Q112136066)                                    |

[Tool] Got no rows and 2 columns

[Tool] Got no rows and 2 columns

[Tool] Got no rows and 3 columns

[Tool] Got no rows and 3 columns

[Tool]
Got 335 rows and 3 columns, showing the first 10 rows below:
| subject                                                        | property              | object                                        |
| -------------------------------------------------------------- | --------------------- | --------------------------------------------- |
| prefecture (wd:Q179831)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| agglomeration community (wd:Q159321)                           | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| commune community (wd:Q423785)                                 | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| urban community (wd:Q423790)                                   | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| métropole (wd:Q3333855)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| territorial collectivity of France (wd:Q583865)                | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| société à responsabilité limitée (wd:Q15091621)                | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| public establishment of an administrative nature (wd:Q3244038) | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| établissement public (wd:Q15343039)                            | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| ministry (wd:Q14037025)                                        | instance of (wdt:P31) | type of legal entity in France (wd:Q56427813) |
| ...                                                            | ...                   | ...                                           |

[Tool]
Got 48 rows and 3 columns, showing the first 5 and last 5 rows below:
| category                                                                 | categoryLabel                                                | count         |
| ------------------------------------------------------------------------ | ------------------------------------------------------------ | ------------- |
| Syndicat Mixte (wd:Q3508373)                                             | syndicat mixte (fr)                                          | 282 (xsd:int) |
| wd:Q83736718                                                             | association syndicale autorisée (fr)                         | 65 (xsd:int)  |
| établissement public (wd:Q15343039)                                      | établissement public (fr)                                    | 53 (xsd:int)  |
| hosting foundation (wd:Q60198902)                                        | fondation abritante (fr)                                     | 46 (xsd:int)  |
| research and education unit (wd:Q3550804)                                | unité de formation et de recherche (fr)                      | 43 (xsd:int)  |
| ...                                                                      | ...                                                          | ...           |
| partnership foundation (wd:Q60199055)                                    | fondation partenariale (fr)                                  | 1 (xsd:int)   |
| national public establishment of an administrative nature (wd:Q51704864) | établissement public national à caractère administratif (fr) | 1 (xsd:int)   |
| university foundation (wd:Q48749786)                                     | fondation universitaire (fr)                                 | 1 (xsd:int)   |
| commercial company in France (wd:Q33134269)                              | société commerciale (fr)                                     | 1 (xsd:int)   |
| wd:Q3477483                                                              | section de commune (fr)                                      | 1 (xsd:int)   |

[Tool]
Got 48 rows and 3 columns, showing the first 5 and last 5 rows below:
| category                                                                 | categoryLabel                                                | count         |
| ------------------------------------------------------------------------ | ------------------------------------------------------------ | ------------- |
| Syndicat Mixte (wd:Q3508373)                                             | syndicat mixte (fr)                                          | 282 (xsd:int) |
| wd:Q83736718                                                             | association syndicale autorisée (fr)                         | 65 (xsd:int)  |
| établissement public (wd:Q15343039)                                      | établissement public (fr)                                    | 53 (xsd:int)  |
| hosting foundation (wd:Q60198902)                                        | fondation abritante (fr)                                     | 46 (xsd:int)  |
| research and education unit (wd:Q3550804)                                | unité de formation et de recherche (fr)                      | 43 (xsd:int)  |
| ...                                                                      | ...                                                          | ...           |
| partnership foundation (wd:Q60199055)                                    | fondation partenariale (fr)                                  | 1 (xsd:int)   |
| national public establishment of an administrative nature (wd:Q51704864) | établissement public national à caractère administratif (fr) | 1 (xsd:int)   |
| university foundation (wd:Q48749786)                                     | fondation universitaire (fr)                                 | 1 (xsd:int)   |
| commercial company in France (wd:Q33134269)                              | société commerciale (fr)                                     | 1 (xsd:int)   |
| wd:Q3477483                                                              | section de commune (fr)                                      | 1 (xsd:int)   |

[Assistant]
We now have a list of legal categories (level 3 legal categories) in France, with their French labels and the count of legal units for each. To answer the question, we need to:

1. Return all categories with a count greater than 499.
2. Sum the counts for all other categories (count ≤ 499) and return a line labeled "OTHER".

Let's write a SPARQL query that:
- Selects all categories with count > 499, their label (in French), and count.
- Sums the counts for all categories with count ≤ 499 and returns a line with label "AUTRE" (French for "OTHER").

Here is the final SPARQL query:

[Tool] Stopped generation process