PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?person ?dod ?fsid ?father WHERE {
  ?person wdt:P27 wd:Q16 ; wdt:P570 ?dod ; wdt:P2671 ?fsid ; wdt:P22 ?father .
  FILTER NOT EXISTS {
    ?father wdt:P2671 []
  }
}
LIMIT 100

These are deceased Canadian individuals who have a FamilySearch person ID and whose father does not have a FamilySearch person ID. For each, the date of death, FamilySearch person ID, and their father are included as requested. The result contains Wikidata IRIs for each entity.

Which deceased Canadian individuals have a FamilySearch person ID and have a father who does not have a FamilySearch person ID? For each person, include their date of death, FamilySearch person ID, and their father.

[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-sebastian with notes:
1. For P39 legislative memberships, filter by pq:P2937 (legislative term) on the p:P39 statement; don’t use P793 for term filtering. For UK MPs, avoid a generic Q16707842-only scan; rely on term qualifiers and proper date overlap on pq:P580/pq:P582.
2. For residence (P551), time bounds are qualifiers on the statement: p:P551/ps:P551 place, pq:P580 start, pq:P582 end. To include containing areas (e.g., NYC boroughs), expand via wdt:P551/wdt:P131*. Durations usually need client-side calc on QLever.
3. Ticker symbols are pq:P249 on p:P414 statements; query via the statement node (?org p:P414 ?st . ?st ps:P414 ?ex ; pq:P249 ?ticker). Use VALUES to pre-limit orgs/exchanges. Don’t expect wdt:P249 on the org. Prefer qualifiers for time-bound tickers.
4. Archives: use p:P485/ps:P485 for the holding institution. Inventory numbers are qualifiers pq:P217 on that P485 statement. Don’t expect wdt:P217 directly on the person/work. “Archive descriptions” may be separate collection items (P195).
5. When listing contained municipalities or similar, prefer wdt:P150* (has parts) from the parent to enumerate children, then join other relations (e.g., twin towns via wdt:P190). Avoid broad wdt:P131+ scans from children; they are slow and can timeout.
6. On QLever, avoid SERVICE wikibase:label (frequent 301). Use OPTIONAL rdfs:label with LANG filters or fetch QIDs then labels separately. For property mapping, (?prop wikibase:directClaim ?p). Pre-limit with subselect/VALUES to avoid timeouts.
7. Employer constraints: to find people employed by UN or international orgs, use wdt:P108 directly for UN (wd:Q1065), or traverse employer to part of (wdt:P361*) UN, or employer wdt:P31 wd:Q484652 (international organization). Combine with other occupations.
8. For sports/events/editions, prefer explicit edition items (e.g., Q47345468) with wdt:P361 linking to the parent series/tour and filter by wdt:P585/P571 for year; avoid P641/P2139 that model sports played or participants, not the edition metadata.
9. For author/creator queries, use occupation wdt:P106 (e.g., author/writer) rather than P31 typing. To list works, prefer the reverse path ^wdt:P50 ?work; P800 (notable work) is incomplete and curated, not a full bibliography.
10. Awards: use p:P166/ps:P166 and constrain award via wdt:P31/wdt:P279* to a target class (e.g., Cannes awards Q28444913). Recipients can be films or people; don’t assume film-specific properties exist. Count/group by recipient type if needed.
11. To select current/active codes or memberships on QLever, use statement nodes (p:/ps:) and MINUS { ?st pq:P582 [] }. For time series counts (e.g., daily members), generate a date series (VALUES/UNNEST), then test overlap with pq:P580/pq:P582 per date.
12. For people’s native names, use wdt:P1559 (name in native language) on the person, not rdfs:label. Return multiple if multiple native languages exist; pick a preferred language client-side if needed.
13. For multi-valued props (e.g., P1082), GROUP BY entity and aggregate (MAX/MIN/SAMPLE) to avoid duplicates; DISTINCT won’t collapse multiple statements. For category/gender counts, prefer indicator sums: SUM(IF(cond,1,0)) over COUNT on OPTIONAL vars.
14. Avoid SERVICE wikibase:label on QLever; it often 301s. Use OPTIONAL rdfs:label with LANG filters, or fetch QIDs first and labels in a follow-up. Pre-limit with subselect/VALUES to avoid timeouts when joining many labels.
15. For P551 duration comparisons, avoid unsupported date arithmetic. If needed, compute overlaps client-side. On-endpoint, you can only compare presence/counts or use simple MIN/MAX of dates (casting and arithmetic are limited in QLever).
16. When excluding specific entities from a relation (e.g., siblings), use FILTER to drop explicit QIDs or FILTER NOT EXISTS with a VALUES list. Ensure you use the exact sibling QIDs returned by the KG, not assumed ones.

General notes for all knowledge graphs:
1. When checking date interval overlaps, handle open intervals (missing start/end) and use xsd:dateTime. Use OR conditions to cover start within, end within, or spanning the whole range.
2. For P39 queries, qualifiers (e.g., P2937 term, P768 electoral district, P4100 parliamentary group) live on the p:P39 statement node. Do not expect them as wdt: properties on the person or use ps: for non-main values.
3. To get sitelink counts, use wikibase:sitelinks on the entity; it returns a single numeric value, so GROUP BY the entity and avoid COUNT over ?sitelink.
4. Use subclass expansion for types: wdt:P31/wdt:P279* target (e.g., dams, educational institutions). This captures items modeled with subclasses.
5. For locations, prefer hierarchies via wdt:P131+ to reach a containing region/state, and wdt:P17 for country. If HQ is a building, P159 ps points to a city; specific site is qualifier pq:P276 on the P159 statement.
6. When excluding or selecting by a legislative term on P39, check pq:P2937 on the relevant statement. Use FILTER NOT EXISTS over p:P39 with ps:P39 target and pq:P2937 value to exclude a term.
7. QLever endpoints may not support Wikidata’s “WITH {…} AS %name” and “INCLUDE %name” syntax. Avoid named subqueries; use nested SELECTs or VALUES instead.
8. The wikibase:label SERVICE often fails on QLever. Prefer rdfs:label with FILTER(LANG(..)="en") or get QIDs only and resolve labels client-side.
9. Avoid COUNT over OPTIONAL variables that may be unbound for all rows; prefer EXISTS/BOUND checks or aggregate over DISTINCT entities to prevent misleading zeros.
10. On QLever, heavy OPTIONAL label/property joins often time out. Pre-limit with a subselect/VALUES over IDs (ORDER BY + LIMIT), then join labels/properties. Or fetch QIDs first and labels in a second, smaller query.
11. For precise date filtering on Wikidata (birth/death), prefer p/psv time nodes and wikibase:timeValue plus timePrecision checks over wdt:P569/P570 to include values with year/month precision and avoid silent drops.
12. When filtering by exact day of birth or event, avoid STRSTARTS on wdt:P569; instead bound an interval [day, next day) with xsd:dateTime to include all precisions. On QLever, add hint:Prior hint:rangeSafe true to improve performance on time ranges.

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/
qlss: <https://qlever.cs.uni-freiburg.de/spatialSearch/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
ref: <http://www.wikidata.org/reference/
s: <http://www.wikidata.org/entity/statement/
schema: <http://schema.org/
skos: <http://www.w3.org/2004/02/skos/core#
v: <http://www.wikidata.org/value/
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. Search for the entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Execute intermediate queries to get feedback and to verify your assumptions. You may need to refine or rethink your current plan based on the query results and go back to step 2 if needed, possibly multiple times.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not just use or make up entity or property identifiers without verifying their existence in the knowledge graphs first.
3. Always execute your final SPARQL query before giving an answer to make sure it returns the expected results.
4. 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.
5. 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.
6. 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.
7. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
8. 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 deceased Canadian individuals have a FamilySearch person ID and have a father who does not have a FamilySearch person ID? For each person, include their date of death, FamilySearch person ID, and their father.

[Assistant]
Let's break down the requirements:

1. We want deceased Canadian individuals.
   - "Deceased" can be inferred by the presence of a date of death (P570).
   - "Canadian" can be inferred by nationality (P27) or country of citizenship (P27) being Canada (Q16).

2. The individual must have a FamilySearch person ID (P2671).

3. The individual's father (P22) must NOT have a FamilySearch person ID (P2671).

4. For each person, include:
   - date of death (P570)
   - FamilySearch person ID (P2671)
   - their father (entity IRI)

Step-by-step plan:
- Find people with P27 Canada (Q16), P570 (date of death), and P2671 (FamilySearch ID).
- For each, get their father (P22).
- For the father, ensure there is NO P2671 (FamilySearch ID).
- Return the person, their date of death, their FamilySearch ID, and their father.

First, let's verify the relevant properties and entities:
- Canada: Q16
- Date of death: P570
- FamilySearch person ID: P2671
- Father: P22
- Country of citizenship: P27

Now, let's check if "country of citizenship" (P27) is the best property for "Canadian individuals". Sometimes "nationality" (P27) is used, but in Wikidata, P27 is "country of citizenship".

Now, let's proceed to build the query.

We want:
- ?person wdt:P27 wd:Q16 .
- ?person wdt:P570 ?dod .
- ?person wdt:P2671 ?fsid .
- ?person wdt:P22 ?father .
- FILTER NOT EXISTS { ?father wdt:P2671 ?fatherfsid }

Optionally, get labels for the person and father.

Let's write the query.

[Tool]
Got 100 rows and 4 columns, showing the first 5 and last 5 rows below:
| person                                    | dod                                 | fsid          | father                                             |
| ----------------------------------------- | ----------------------------------- | ------------- | -------------------------------------------------- |
| Antoinette Giroux (wd:Q2856960)           | 1978-07-08T00:00:00Z (xsd:dateTime) | /g/120rrqyh   | Lactance Giroux (wd:Q100876911)                    |
| Mia Riddez (wd:Q3307853)                  | 1995-10-13T00:00:00Z (xsd:dateTime) | /g/121w1hnr   | Jean Riddez (wd:Q101246373)                        |
| Sita Riddez (wd:Q3485368)                 | 2002-04-26T00:00:00Z (xsd:dateTime) | /g/1213tt05   | Jean Riddez (wd:Q101246373)                        |
| Oscar Pelletier (wd:Q28709999)            | 1943-03-28T00:00:00Z (xsd:dateTime) | /g/11c6l9vnv6 | Charles Alphonse Pantaléon Pelletier (wd:Q1063332) |
| Ovilu Tunnillie (wd:Q28935888)            | 2014-06-12T00:00:00Z (xsd:dateTime) | /g/11dxdx14_2 | wd:Q107067374                                      |
| ...                                       | ...                                 | ...           | ...                                                |
| Violet Keene (wd:Q50450145)               | 1987-05-10T00:00:00Z (xsd:dateTime) | /g/11f53qs6qz | Caleb Keene (wd:Q64437978)                         |
| Frederick Longstaff (wd:Q61642473)        | 1961-01-01T00:00:00Z (xsd:dateTime) | /g/11h01s_btp | Llewellyn W. Longstaff (wd:Q6662085)               |
| José Delaquerrière (wd:Q3186261)          | 1978-04-10T00:00:00Z (xsd:dateTime) | /g/121pk35h   | Louis Delaquerrière (wd:Q6687001)                  |
| Pierre Nadeau (wd:Q3386411)               | 2019-09-03T00:00:00Z (xsd:dateTime) | /g/121yn651   | Jean-Marie Nadeau (wd:Q67122701)                   |
| James Michael Gardner Fell (wd:Q47512087) | 2016-12-16T00:00:00Z (xsd:dateTime) | /g/11f4pkslh_ | James Pemberton Fell (wd:Q75297899)                |

[Tool] Stopped generation process


PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
SELECT ?work ?workLabel WHERE {
  ?work wdt:P50 wd:Q35610 .
  ?work wdt:P31 / wdt:P279 * wd:Q7725634 .
  OPTIONAL {
    ?work rdfs:label ?workLabel FILTER ( LANG( ?workLabel ) = "en" )
  }
}
LIMIT 200

Got 181 rows and 2 columns, showing the first 5 and last 5 rows below:
| work                                                                                | workLabel                                                                |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| The Adventure of the Speckled Band (wd:Q1060471)                                    | The Adventure of the Speckled Band (en)                                  |
| Polish translation of Conan Doyl...How the Brigadier Saved the Army (wd:Q109177445) | Polish translation of Conan Doyl...How the Brigadier Saved the Army (en) |
| The Adventure of the Noble Bachelor (wd:Q1115266)                                   | The Adventure of the Noble Bachelor (en)                                 |
| The Case-Book of Sherlock Holmes (wd:Q1129378)                                      | The Case-Book of Sherlock Holmes (en)                                    |
| The Story of the Japanned Box (wd:Q113078716)                                       | The Story of the Japanned Box (en)                                       |
| ...                                                                                | ...                                                                      |
| The Lost World (wd:Q785255)                                                         | The Lost World (en)                                                      |
| The Memoirs of Sherlock Holmes (wd:Q860831)                                         | The Memoirs of Sherlock Holmes (en)                                      |
| The Valley of Fear (wd:Q863438)                                                     | The Valley of Fear (en)                                                  |
| The Adventure of the Naval Treaty (wd:Q930923)                                      | The Adventure of the Naval Treaty (en)                                   |
| The Adventure of the Three Students (wd:Q961957)                                    | The Adventure of the Three Students (en)                                 |

Some books authored by Arthur Conan Doyle include:
- The Adventure of the Speckled Band
- The Adventure of the Noble Bachelor
- The Case-Book of Sherlock Holmes
- The Lost World
- The Memoirs of Sherlock Holmes
- The Valley of Fear
- The Adventure of the Naval Treaty
- The Adventure of the Three Students
...and many more. The full list is available in the query results.

Which books were authored by Arthur Conan Doyle?

[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-sebastian with notes:
1. For P39 legislative memberships, filter by pq:P2937 (legislative term) on the p:P39 statement; don’t use P793 for term filtering. For UK MPs, avoid a generic Q16707842-only scan; rely on term qualifiers and proper date overlap on pq:P580/pq:P582.
2. For residence (P551), time bounds are qualifiers on the statement: p:P551/ps:P551 place, pq:P580 start, pq:P582 end. To include containing areas (e.g., NYC boroughs), expand via wdt:P551/wdt:P131*. Durations usually need client-side calc on QLever.
3. Ticker symbols are pq:P249 on p:P414 statements; query via the statement node (?org p:P414 ?st . ?st ps:P414 ?ex ; pq:P249 ?ticker). Use VALUES to pre-limit orgs/exchanges. Don’t expect wdt:P249 on the org. Prefer qualifiers for time-bound tickers.
4. Archives: use p:P485/ps:P485 for the holding institution. Inventory numbers are qualifiers pq:P217 on that P485 statement. Don’t expect wdt:P217 directly on the person/work. “Archive descriptions” may be separate collection items (P195).
5. When listing contained municipalities or similar, prefer wdt:P150* (has parts) from the parent to enumerate children, then join other relations (e.g., twin towns via wdt:P190). Avoid broad wdt:P131+ scans from children; they are slow and can timeout.
6. On QLever, avoid SERVICE wikibase:label (frequent 301). Use OPTIONAL rdfs:label with LANG filters or fetch QIDs then labels separately. For property mapping, (?prop wikibase:directClaim ?p). Pre-limit with subselect/VALUES to avoid timeouts.
7. Employer constraints: to find people employed by UN or international orgs, use wdt:P108 directly for UN (wd:Q1065), or traverse employer to part of (wdt:P361*) UN, or employer wdt:P31 wd:Q484652 (international organization). Combine with other occupations.
8. For sports/events/editions, prefer explicit edition items (e.g., Q47345468) with wdt:P361 linking to the parent series/tour and filter by wdt:P585/P571 for year; avoid P641/P2139 that model sports played or participants, not the edition metadata.
9. For author/creator queries, use occupation wdt:P106 (e.g., author/writer) rather than P31 typing. To list works, prefer the reverse path ^wdt:P50 ?work; P800 (notable work) is incomplete and curated, not a full bibliography.
10. Awards: use p:P166/ps:P166 and constrain award via wdt:P31/wdt:P279* to a target class (e.g., Cannes awards Q28444913). Recipients can be films or people; don’t assume film-specific properties exist. Count/group by recipient type if needed.
11. To select current/active codes or memberships on QLever, use statement nodes (p:/ps:) and MINUS { ?st pq:P582 [] }. For time series counts (e.g., daily members), generate a date series (VALUES/UNNEST), then test overlap with pq:P580/pq:P582 per date.
12. For people’s native names, use wdt:P1559 (name in native language) on the person, not rdfs:label. Return multiple if multiple native languages exist; pick a preferred language client-side if needed.
13. For multi-valued props (e.g., P1082), GROUP BY entity and aggregate (MAX/MIN/SAMPLE) to avoid duplicates; DISTINCT won’t collapse multiple statements. For category/gender counts, prefer indicator sums: SUM(IF(cond,1,0)) over COUNT on OPTIONAL vars.
14. Avoid SERVICE wikibase:label on QLever; it often 301s. Use OPTIONAL rdfs:label with LANG filters, or fetch QIDs first and labels in a follow-up. Pre-limit with subselect/VALUES to avoid timeouts when joining many labels.
15. For P551 duration comparisons, avoid unsupported date arithmetic. If needed, compute overlaps client-side. On-endpoint, you can only compare presence/counts or use simple MIN/MAX of dates (casting and arithmetic are limited in QLever).
16. When excluding specific entities from a relation (e.g., siblings), use FILTER to drop explicit QIDs or FILTER NOT EXISTS with a VALUES list. Ensure you use the exact sibling QIDs returned by the KG, not assumed ones.

General notes for all knowledge graphs:
1. When checking date interval overlaps, handle open intervals (missing start/end) and use xsd:dateTime. Use OR conditions to cover start within, end within, or spanning the whole range.
2. For P39 queries, qualifiers (e.g., P2937 term, P768 electoral district, P4100 parliamentary group) live on the p:P39 statement node. Do not expect them as wdt: properties on the person or use ps: for non-main values.
3. To get sitelink counts, use wikibase:sitelinks on the entity; it returns a single numeric value, so GROUP BY the entity and avoid COUNT over ?sitelink.
4. Use subclass expansion for types: wdt:P31/wdt:P279* target (e.g., dams, educational institutions). This captures items modeled with subclasses.
5. For locations, prefer hierarchies via wdt:P131+ to reach a containing region/state, and wdt:P17 for country. If HQ is a building, P159 ps points to a city; specific site is qualifier pq:P276 on the P159 statement.
6. When excluding or selecting by a legislative term on P39, check pq:P2937 on the relevant statement. Use FILTER NOT EXISTS over p:P39 with ps:P39 target and pq:P2937 value to exclude a term.
7. QLever endpoints may not support Wikidata’s “WITH {…} AS %name” and “INCLUDE %name” syntax. Avoid named subqueries; use nested SELECTs or VALUES instead.
8. The wikibase:label SERVICE often fails on QLever. Prefer rdfs:label with FILTER(LANG(..)="en") or get QIDs only and resolve labels client-side.
9. Avoid COUNT over OPTIONAL variables that may be unbound for all rows; prefer EXISTS/BOUND checks or aggregate over DISTINCT entities to prevent misleading zeros.
10. On QLever, heavy OPTIONAL label/property joins often time out. Pre-limit with a subselect/VALUES over IDs (ORDER BY + LIMIT), then join labels/properties. Or fetch QIDs first and labels in a second, smaller query.
11. For precise date filtering on Wikidata (birth/death), prefer p/psv time nodes and wikibase:timeValue plus timePrecision checks over wdt:P569/P570 to include values with year/month precision and avoid silent drops.
12. When filtering by exact day of birth or event, avoid STRSTARTS on wdt:P569; instead bound an interval [day, next day) with xsd:dateTime to include all precisions. On QLever, add hint:Prior hint:rangeSafe true to improve performance on time ranges.

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/
qlss: <https://qlever.cs.uni-freiburg.de/spatialSearch/
rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#
rdfs: <http://www.w3.org/2000/01/rdf-schema#
ref: <http://www.wikidata.org/reference/
s: <http://www.wikidata.org/entity/statement/
schema: <http://schema.org/
skos: <http://www.w3.org/2004/02/skos/core#
v: <http://www.wikidata.org/value/
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. Search for the entities and properties in the knowledge graphs. Where applicable, constrain the searches with already identified entities and properties.
3. Gradually build up the SPARQL query using the identified entities and properties. Start with simple queries and add more complexity as needed. Execute intermediate queries to get feedback and to verify your assumptions. You may need to refine or rethink your current plan based on the query results and go back to step 2 if needed, possibly multiple times.
4. Use the answer or cancel function to finalize your answer and stop the generation process.

Additional rules:
1. Explain your thought process before and after each step and function call.
2. Do not just use or make up entity or property identifiers without verifying their existence in the knowledge graphs first.
3. Always execute your final SPARQL query before giving an answer to make sure it returns the expected results.
4. 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.
5. 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.
6. 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.
7. For questions with a "True" or "False" answer the SPARQL query should be an ASK query.
8. 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 books were authored by Arthur Conan Doyle?

[Assistant]
Let's break down the question:

1. The entity is "Arthur Conan Doyle".
2. The property is "authored by" (i.e., works where Arthur Conan Doyle is the author).
3. The target type is "books".

Step 1: Find the entity for Arthur Conan Doyle.
Step 2: Find the property for "author" or "written by".
Step 3: Find the class/entity for "book".
Step 4: Construct a query to find all books where Arthur Conan Doyle is the author.

Let's start by searching for the entity "Arthur Conan Doyle".

[Tool]
Top 10 entity alternatives:
1. Arthur Conan Doyle, also known as Sir Arthur Conan Doyle, Sir A. Conan Doyle, Conan Doyle, Sir Arthur Ignatius Conan Doyle, Arthur Conan, Sir Doyle (wd:Q35610): British writer and physician (1859–1930), science fiction writer, crime fiction writer, short story writer, instance of human, children's writer, physician writer, screenwriter, playwright, historian, physician, essayist, novelist, writer
2. Arthur Conan Doyle (wd:Q13471093): instance of film, 1927 film
3. Arthur conan doyle (wd:Q85135559): scientific article published on 01 September 1991, instance of scholarly article
4. Arthur Conan Doyle. (wd:Q52488757): scientific article published in January 1960, instance of scholarly article
5. Arthur Conan Doyle (wd:Q61773675): instance of scholarly article
6. Arthur Conan Doyle (wd:Q52417813): scientific article published in November 1980, instance of scholarly article
7. Arthur Conan Doyle (wd:Q28051383): painting by Henry L. Gates, instance of painting
8. Arthur Conan Doyle bibliography (wd:Q4798323): list of works of Sir Arthur Conan Doyle, instance of bibliography
9. Sir Arthur Conan Doyle (wd:Q52490062): instance of scholarly article, scientific article
10. Statue of Arthur Conan Doyle (wd:Q56295036): statue in Crowborough, East Sussex, England, UK, instance of statue

[Tool]
Top 10 property alternatives:
1. theorized by, also known as posed by, supported by, suggested by, proposer, proposed by (wd:P8403 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): subject who suggested or proposed this concept or immaterial invention
2. lyricist, also known as writer (of song lyrics), words by, text writer, text poet, text by (wd:P676 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): author of song lyrics, subproperty of author
3. author, also known as co-author, written by, writer, poet, playwright (wd:P50 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): main creator(s) of a written work (use on works, not humans); us...hor name string) when Wikidata item is unknown or does not exist, subproperty of creator
4. notable work, also known as representative of artwork type, representative work, significance, significant works, they created (wd:P800 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): notable scientific, artistic or literary work, or other work of significance among subject's works
5. author given names, also known as given names, given name, first name, author first names, author first name (wd:P9687 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): qualifier for string representation of given or secondary sortin...presented in a bibliographic reference file (for example BibTeX), subproperty of given name
6. operator, also known as operated by, manager, provided by, run by, service operator (wd:P137 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): person, profession, organization or entity that operates the equipment, facility, or service, subproperty of used by
7. used by, also known as armiger, of, played by, user (wd:P1535 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): item or concept that makes use of the subject (use sub-properties when appropriate)
8. creator, also known as art by, visual artist, sculptor, sculpted by, realized by (wd:P170 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): maker of this creative work or other object (where no more specific property exists)
9. author last names, also known as last names, surnames, surname, last name, author last name (wd:P9688 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): qualifier to provide string representation of family or primary ...presented in a bibliographic reference file (for example BibTeX), subproperty of family name
10. object named as, also known as original wording, place name string, printed as, reference wording, [sic] (wd:P1932 as pqv/prv/psn/pqn/wdt/pr/p/psv/wdtn/prn/ps/pq): use as qualifier to indicate how the object's value was given in the source, subproperty of name

[Tool]
Top 10 entity alternatives:
1. book (wd:Q571)
2. book (wd:Q997698): common figure in heraldry, used as a symbol of scholarship, instance of artificial figure
3. book graph, also known as book (wd:Q4942925)
4. Kasidet Plookphol, also known as Book (wd:Q110897550): instance of human, television actor, Thai actor, actor
5. Book (wd:Q5851422): instance of village, village in Iran
6. Book (wd:Q106838557): 2021 studio album by They Might Be Giants, instance of album
7. .book (wd:Q24033188): instance of top-level domain, top-level domain
8. Book (wd:Q16860229): instance of family name, family name
9. book typeface, also known as book, book font, body typeface, body text font (wd:Q60520831)
10. Book Book, also known as Book Book, New South Wales, Book Book, New South Wales, Australia (wd:Q4942928): suburb of Wagga Wagga, New South Wales, Australia, instance of suburb

[Tool] Got no rows and 1 columns

[Tool]
Got 65,536 rows and 3 columns, showing the first 10 rows below:
| subject                                     | property         | object                          |
| ------------------------------------------- | ---------------- | ------------------------------- |
| wd:Q100414660                               | author (wdt:P50) | William Shakespeare (wd:Q692)   |
| wd:L48237                                   | author (wdt:P50) | Julius Caesar (wd:Q1048)        |
| Promise Me, Dad (wd:Q100221747)             | author (wdt:P50) | Joe Biden (wd:Q6279)            |
| Детство (wd:Q100336557)                     | author (wdt:P50) | Leo Tolstoy (wd:Q7243)          |
| Ílias (wd:Q100388853)                       | author (wdt:P50) | Homer (wd:Q6691)                |
| Wspomnienia z martwego domu (wd:Q100158001) | author (wdt:P50) | Fyodor Dostoyevsky (wd:Q991)    |
| The Signal-Man (wd:Q1002362)                | author (wdt:P50) | Charles Dickens (wd:Q5686)      |
| wd:Q100376095                               | author (wdt:P50) | Cicero (wd:Q1541)               |
| fire (python package) (wd:Q100153817)       | author (wdt:P50) | Google (wd:Q95)                 |
| wd:Q100283292                               | author (wdt:P50) | Carl Friedrich Gauss (wd:Q6722) |
| ...                                         | ...              | ...                             |

[Tool]
Got 760 rows and 3 columns, showing the first 10 rows below:
| subject                                                     | property         | object                         |
| ----------------------------------------------------------- | ---------------- | ------------------------------ |
| wd:Q100701554                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| wd:Q100701555                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| wd:Q100701556                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557)  | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| wd:Q102463609                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| wd:Q102487255                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| wd:Q105104567                                               | author (wdt:P50) | Arthur Conan Doyle (wd:Q35610) |
| ...                                                         | ...              | ...                            |

[Tool]
Got 44 rows and 3 columns, showing the first 10 rows below:
| subject       | property                                      | object                                                                                |
| ------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| wd:Q100701554 | instance of (wdt:P31)                         | version, edition or translation (wd:Q3331189)                                                                      |
| wd:Q100701554 | title (wdt:P1476)                             | Sherlock Holmes äventyr (sv)                                                                                |
| wd:Q100701554 | publication date (wdt:P577)                   | 1911-01-01T00:00:00Z (xsd:dateTime)                                                                                |
| wd:Q100701554 | author (wdt:P50)                              | Arthur Conan Doyle (wd:Q35610)                                                                                |
| wd:Q100701554 | language of work or name (wdt:P407)           | Swedish (wd:Q9027)                                                                                |
| wd:Q100701554 | has part(s) (wdt:P527)                        | Mannen med den kluvna läppen (wd:Q123597819)                                                                       |
| wd:Q100701554 | follows (wdt:P155)                            | wd:Q100701556                                                                                |
| wd:Q100701554 | followed by (wdt:P156)                        | Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557)                                                         |
| wd:Q100701554 | place of publication (wdt:P291)               | Stockholm (wd:Q1754)                                                                                |
| wd:Q100701554 | document file on Wikimedia Commons (wdt:P996) | <http://commons.wikimedia.org/wiki/Special:FilePath/Sherlock%20Holmes%20%C3%A4ventyr%20-%20Andra%20samlingen.djvu> |
| ...           | ...                                           | ...                                                                                |

[Tool]
Got 33 rows and 3 columns, showing the first 10 rows below:
| subject                                                     | property                              | object                                                                   |
| ----------------------------------------------------------- | ------------------------------------- | ------------------------------------------------------------------------ |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | instance of (wdt:P31)                 | version, edition or translation (wd:Q3331189)                            |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | title (wdt:P1476)                     | Sherlock Holmes et le chien des Baskerville (fr)                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | author (wdt:P50)                      | Arthur Conan Doyle (wd:Q35610)                                           |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | language of work or name (wdt:P407)   | French (wd:Q150)                                                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | cast member (wdt:P161)                | Philippe Robert (wd:Q101112735)                                          |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | time period (wdt:P2348)               | 2015-2016 theatrical season in Quebec (wd:Q101097175)                    |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | production company (wdt:P272)         | Théâtre Advienne que pourra (wd:Q100523979)                              |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | date of first performance (wdt:P1191) | 2015-01-01T00:00:00Z (xsd:dateTime)                                      |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | wdt:P31279                            | publication (wd:Q732577)                                                 |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095488) | schema:description                    | edition or translation of a thea...n the saison 2015-2016 in Quebec (en) |
| ...                                                         | ...                                   | ...                                                                      |

[Tool]
Got 48 rows and 3 columns, showing the first 10 rows below:
| subject       | property                            | object                                                     |
| ------------- | ----------------------------------- | ---------------------------------------------------------- |
| wd:Q100701555 | instance of (wdt:P31)               | version, edition or translation (wd:Q3331189)              |
| wd:Q100701555 | title (wdt:P1476)                   | Sherlock Holmes äventyr (sv)                               |
| wd:Q100701555 | publication date (wdt:P577)         | 1911-01-01T00:00:00Z (xsd:dateTime)                        |
| wd:Q100701555 | author (wdt:P50)                    | Arthur Conan Doyle (wd:Q35610)                             |
| wd:Q100701555 | language of work or name (wdt:P407) | Swedish (wd:Q9027)                                         |
| wd:Q100701555 | number of pages (wdt:P1104)         | 181 (xsd:decimal)                                          |
| wd:Q100701555 | has part(s) (wdt:P527)              | Det stulna dokumentet (wd:Q112633502)                      |
| wd:Q100701555 | follows (wdt:P155)                  | Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) |
| wd:Q100701555 | place of publication (wdt:P291)     | Stockholm (wd:Q1754)                                       |
| wd:Q100701555 | publisher (wdt:P123)                | Nordiska förlaget (wd:Q10602117)                           |
| ...           | ...                                 | ...                                                        |

[Tool]
Got 42 rows and 3 columns, showing the first 10 rows below:
| subject       | property                                      | object                                                                                |
| ------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| wd:Q100701556 | instance of (wdt:P31)                         | version, edition or translation (wd:Q3331189)                                                                            |
| wd:Q100701556 | title (wdt:P1476)                             | Sherlock Holmes äventyr (sv)                                                                                |
| wd:Q100701556 | publication date (wdt:P577)                   | 1911-01-01T00:00:00Z (xsd:dateTime)                                                                                |
| wd:Q100701556 | author (wdt:P50)                              | Arthur Conan Doyle (wd:Q35610)                                                                                |
| wd:Q100701556 | language of work or name (wdt:P407)           | Swedish (wd:Q9027)                                                                                |
| wd:Q100701556 | number of pages (wdt:P1104)                   | 159 (xsd:decimal)                                                                                |
| wd:Q100701556 | has part(s) (wdt:P527)                        | Hemligheten i Boscombe Valley (wd:Q123597958)                                                                            |
| wd:Q100701556 | followed by (wdt:P156)                        | wd:Q100701554                                                                                |
| wd:Q100701556 | place of publication (wdt:P291)               | Stockholm (wd:Q1754)                                                                                |
| wd:Q100701556 | document file on Wikimedia Commons (wdt:P996) | <http://commons.wikimedia.org/wiki/Special:FilePath/Sherlock%20Holmes%20%C3%A4ventyr%20-%20F%C3%B6rsta%20samlingen.djvu> |
| ...           | ...                                           | ...                                                                                |

[Tool]
Got 26 rows and 3 columns, showing the first 10 rows below:
| subject       | property                                    | object                                        |
| ------------- | ------------------------------------------- | --------------------------------------------- |
| wd:Q102463609 | instance of (wdt:P31)                       | version, edition or translation (wd:Q3331189) |
| wd:Q102463609 | title (wdt:P1476)                           | Min vän privatdetektivens äfventyr (sv)       |
| wd:Q102463609 | publication date (wdt:P577)                 | 1893-01-01T00:00:00Z (xsd:dateTime)           |
| wd:Q102463609 | author (wdt:P50)                            | Arthur Conan Doyle (wd:Q35610)                |
| wd:Q102463609 | language of work or name (wdt:P407)         | Swedish (wd:Q9027)                            |
| wd:Q102463609 | place of publication (wdt:P291)             | Stockholm (wd:Q1754)                          |
| wd:Q102463609 | Libris-URI (wdtn:P5587)                     | <https://libris.kb.se/fxqcd3nr0q3xggz>        |
| wd:Q102463609 | LIBRIS editions (wdtn:P1182)                | <http://libris.kb.se/resource/bib/1602833>    |
| wd:Q102463609 | Swedish Literature Bank edition (wdt:P5123) | DoyleAC/titlar/MinVänPrivatdetektivensI       |
| wd:Q102463609 | wdt:P31279                                  | publication (wd:Q732577)                      |
| ...           | ...                                         | ...                                           |

[Tool]
Got 26 rows and 3 columns, showing the first 10 rows below:
| subject       | property                                    | object                                        |
| ------------- | ------------------------------------------- | --------------------------------------------- |
| wd:Q102487255 | instance of (wdt:P31)                       | version, edition or translation (wd:Q3331189) |
| wd:Q102487255 | title (wdt:P1476)                           | Min vän privatdetektivens äfventyr (sv)       |
| wd:Q102487255 | publication date (wdt:P577)                 | 1893-01-01T00:00:00Z (xsd:dateTime)           |
| wd:Q102487255 | author (wdt:P50)                            | Arthur Conan Doyle (wd:Q35610)                |
| wd:Q102487255 | language of work or name (wdt:P407)         | Swedish (wd:Q9027)                            |
| wd:Q102487255 | place of publication (wdt:P291)             | Stockholm (wd:Q1754)                          |
| wd:Q102487255 | Libris-URI (wdtn:P5587)                     | <https://libris.kb.se/gzrdf4ps4cg0xwj>        |
| wd:Q102487255 | LIBRIS editions (wdtn:P1182)                | <http://libris.kb.se/resource/bib/1602834>    |
| wd:Q102487255 | Swedish Literature Bank edition (wdt:P5123) | DoyleAC/titlar/MinVänPrivatdetektivensII      |
| wd:Q102487255 | wdt:P31279                                  | publication (wd:Q732577)                      |
| ...           | ...                                         | ...                                           |

[Tool]
Got 14 rows and 3 columns, showing the first 10 rows below:
| subject       | property                             | object                                                                   |
| ------------- | ------------------------------------ | ------------------------------------------------------------------------ |
| wd:Q105104567 | instance of (wdt:P31)                | version, edition or translation (wd:Q3331189)                            |
| wd:Q105104567 | author (wdt:P50)                     | Arthur Conan Doyle (wd:Q35610)                                           |
| wd:Q105104567 | edition or translation of (wdt:P629) | The Sign of Four (wd:Q500688)                                            |
| wd:Q105104567 | wdt:P31279                           | publication (wd:Q732577)                                                 |
| wd:Q105104567 | schema:description                   | polski przekład powieści krymina...isławy Neufeldówny wydany w 1922 (pl) |
| wd:Q105104567 | schema:name                          | Znak czterech (Doyle, tł. Neufeldówna, 1922) (pl)                        |
| wd:Q105104567 | rdf:type                             | wikibase:Item                                                            |
| wd:Q105104567 | rdfs:label                           | Znak czterech (Doyle, tł. Neufeldówna, 1922) (pl)                        |
| wd:Q105104567 | skos:altLabel                        | Znak czterech (pl)                                                       |
| wd:Q105104567 | skos:prefLabel                       | Znak czterech (Doyle, tł. Neufeldówna, 1922) (pl)                        |
| ...           | ...                                  | ...                                                                      |

[Tool]
Got 57 rows and 3 columns, showing the first 10 rows below:
| subject                                                    | property                            | object                                           |
| ---------------------------------------------------------- | ----------------------------------- | ------------------------------------------------ |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | instance of (wdt:P31)               | version, edition or translation (wd:Q3331189)    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | title (wdt:P1476)                   | Sherlock Holmes äventyr (sv)                     |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | publication date (wdt:P577)         | 1911-01-01T00:00:00Z (xsd:dateTime)              |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | author (wdt:P50)                    | Arthur Conan Doyle (wd:Q35610)                   |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | language of work or name (wdt:P407) | Swedish (wd:Q9027)                               |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | number of pages (wdt:P1104)         | 178 (xsd:decimal)                                |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | has part(s) (wdt:P527)              | Den försvunna kapplöpningshästen (wd:Q106689767) |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | follows (wdt:P155)                  | wd:Q100701554                                    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | followed by (wdt:P156)              | wd:Q100701555                                    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | place of publication (wdt:P291)     | Stockholm (wd:Q1754)                             |
| ...                                                        | ...                                 | ...                                              |

[Tool]
Got 31 rows and 3 columns, showing the first 10 rows below:
| subject                                                     | property                              | object                                                                   |
| ----------------------------------------------------------- | ------------------------------------- | ------------------------------------------------------------------------ |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | instance of (wdt:P31)                 | version, edition or translation (wd:Q3331189)                            |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | title (wdt:P1476)                     | Sherlock Holmes et le chien des Baskerville (fr)                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | author (wdt:P50)                      | Arthur Conan Doyle (wd:Q35610)                                           |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | language of work or name (wdt:P407)   | French (wd:Q150)                                                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | cast member (wdt:P161)                | Philippe Robert (wd:Q101112735)                                          |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | time period (wdt:P2348)               | 2016-2017 theatrical season in Quebec (wd:Q101097176)                    |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | production company (wdt:P272)         | Théâtre Advienne que pourra (wd:Q100523979)                              |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | date of first performance (wdt:P1191) | 2016-01-01T00:00:00Z (xsd:dateTime)                                      |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | wdt:P31279                            | publication (wd:Q732577)                                                 |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095628) | schema:description                    | edition or translation of a thea...n the saison 2016-2017 in Quebec (en) |
| ...                                                         | ...                                   | ...                                                                      |

[Tool]
Got 31 rows and 3 columns, showing the first 10 rows below:
| subject                                                     | property                              | object                                                                   |
| ----------------------------------------------------------- | ------------------------------------- | ------------------------------------------------------------------------ |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | instance of (wdt:P31)                 | version, edition or translation (wd:Q3331189)                            |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | title (wdt:P1476)                     | Sherlock Holmes et le chien des Baskerville (fr)                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | author (wdt:P50)                      | Arthur Conan Doyle (wd:Q35610)                                           |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | language of work or name (wdt:P407)   | French (wd:Q150)                                                         |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | cast member (wdt:P161)                | Philippe Robert (wd:Q101112735)                                          |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | time period (wdt:P2348)               | 2018-2019 theatrical season in Quebec (wd:Q101097178)                    |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | production company (wdt:P272)         | Théâtre Advienne que pourra (wd:Q100523979)                              |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | date of first performance (wdt:P1191) | 2018-01-01T00:00:00Z (xsd:dateTime)                                      |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | wdt:P31279                            | publication (wd:Q732577)                                                 |
| Sherlock Holmes et le chien des Baskerville (wd:Q101095678) | schema:description                    | edition or translation of a thea...n the saison 2018-2019 in Quebec (en) |
| ...                                                         | ...                                   | ...                                                                      |

[Tool]
Got 44 rows and 3 columns, showing the first 10 rows below:
| subject       | property                                      | object                                                                                |
| ------------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| wd:Q100701554 | instance of (wdt:P31)                         | version, edition or translation (wd:Q3331189)                                                                      |
| wd:Q100701554 | title (wdt:P1476)                             | Sherlock Holmes äventyr (sv)                                                                                |
| wd:Q100701554 | publication date (wdt:P577)                   | 1911-01-01T00:00:00Z (xsd:dateTime)                                                                                |
| wd:Q100701554 | author (wdt:P50)                              | Arthur Conan Doyle (wd:Q35610)                                                                                |
| wd:Q100701554 | language of work or name (wdt:P407)           | Swedish (wd:Q9027)                                                                                |
| wd:Q100701554 | has part(s) (wdt:P527)                        | Mannen med den kluvna läppen (wd:Q123597819)                                                                       |
| wd:Q100701554 | follows (wdt:P155)                            | wd:Q100701556                                                                                |
| wd:Q100701554 | followed by (wdt:P156)                        | Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557)                                                         |
| wd:Q100701554 | place of publication (wdt:P291)               | Stockholm (wd:Q1754)                                                                                |
| wd:Q100701554 | document file on Wikimedia Commons (wdt:P996) | <http://commons.wikimedia.org/wiki/Special:FilePath/Sherlock%20Holmes%20%C3%A4ventyr%20-%20Andra%20samlingen.djvu> |
| ...           | ...                                           | ...                                                                                |

[Tool]
Got 57 rows and 3 columns, showing the first 10 rows below:
| subject                                                    | property                            | object                                           |
| ---------------------------------------------------------- | ----------------------------------- | ------------------------------------------------ |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | instance of (wdt:P31)               | version, edition or translation (wd:Q3331189)    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | title (wdt:P1476)                   | Sherlock Holmes äventyr (sv)                     |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | publication date (wdt:P577)         | 1911-01-01T00:00:00Z (xsd:dateTime)              |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | author (wdt:P50)                    | Arthur Conan Doyle (wd:Q35610)                   |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | language of work or name (wdt:P407) | Swedish (wd:Q9027)                               |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | number of pages (wdt:P1104)         | 178 (xsd:decimal)                                |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | has part(s) (wdt:P527)              | Den försvunna kapplöpningshästen (wd:Q106689767) |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | follows (wdt:P155)                  | wd:Q100701554                                    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | followed by (wdt:P156)              | wd:Q100701555                                    |
| Sherlock Holmes äventyr – Tredje samlingen (wd:Q100701557) | place of publication (wdt:P291)     | Stockholm (wd:Q1754)                             |
| ...                                                        | ...                                 | ...                                              |

[Tool]
Got 693 rows and 3 columns, showing the first 10 rows below:
| subject                                       | property                              | object                                                        |
| --------------------------------------------- | ------------------------------------- | ------------------------------------------------------------- |
| version, edition or translation (wd:Q3331189) | instance of (wdt:P31)                 | item (wd:Q11723795)                                           |
| version, edition or translation (wd:Q3331189) | subclass of (wdt:P279)                | publication (wd:Q732577)                                      |
| version, edition or translation (wd:Q3331189) | different from (wdt:P1889)            | book (wd:Q571)                                                |
| version, edition or translation (wd:Q3331189) | facet of (wdt:P1269)                  | Functional Requirements for Bibliographic Records (wd:Q16388) |
| version, edition or translation (wd:Q3331189) | fabrication method (wdt:P2079)        | editing (wd:Q194105)                                          |
| version, edition or translation (wd:Q3331189) | edition or translation of (wdt:P629)  | Diplomatic Dictionary. Volume 1, 1948 (wd:Q133574444)         |
| version, edition or translation (wd:Q3331189) | topic's main template (wdt:P1424)     | wd:Q5858283                                                   |
| version, edition or translation (wd:Q3331189) | partially coincident with (wdt:P1382) | Fassung (wd:Q15994174)                                        |
| version, edition or translation (wd:Q3331189) | Wikidata property (wdt:P1687)         | introduced in (wd:P10695)                                     |
| version, edition or translation (wd:Q3331189) | studied by (wdt:P2579)                | edition philology (wd:Q1285373)                               |
| ...                                           | ...                                   | ...                                                           |

[Tool]
Got 325 rows and 3 columns, showing the first 10 rows below:
| subject                       | property                                 | object                                                                                |
| ----------------------------- | ---------------------------------------- | ---------------------------------------------------------------------------------------------- |
| The Sign of Four (wd:Q500688) | instance of (wdt:P31)                    | literary work (wd:Q7725634)                                                                    |
| The Sign of Four (wd:Q500688) | title (wdt:P1476)                        | The Sign of Four (en)                                                                          |
| The Sign of Four (wd:Q500688) | publication date (wdt:P577)              | 1890-02-01T00:00:00Z (xsd:dateTime)                                                            |
| The Sign of Four (wd:Q500688) | published in (wdt:P1433)                 | Lippincott's Monthly Magazine (wd:Q3310758)                                                    |
| The Sign of Four (wd:Q500688) | author (wdt:P50)                         | Arthur Conan Doyle (wd:Q35610)                                                                 |
| The Sign of Four (wd:Q500688) | language of work or name (wdt:P407)      | English (wd:Q1860)                                                                             |
| The Sign of Four (wd:Q500688) | full work available online at (wdt:P953) | <https://standardebooks.org/ebooks/arthur-conan-doyle/the-sign-of-the-four>                    |
| The Sign of Four (wd:Q500688) | Commons category (wdt:P373)              | The Sign of the Four                                                                           |
| The Sign of Four (wd:Q500688) | image (wdt:P18)                          | <http://commons.wikimedia.org/wiki/Special:FilePath/The%20Sign%20of%20Four%20cover%201892.jpg> |
| The Sign of Four (wd:Q500688) | copyright status (wdt:P6216)             | public domain (wd:Q19652)                                                                      |
| ...                           | ...                                      | ...                                                                                |

[Tool]
Got 693 rows and 3 columns, showing the first 10 rows below:
| subject                                       | property                              | object                                                        |
| --------------------------------------------- | ------------------------------------- | ------------------------------------------------------------- |
| version, edition or translation (wd:Q3331189) | instance of (wdt:P31)                 | item (wd:Q11723795)                                           |
| version, edition or translation (wd:Q3331189) | subclass of (wdt:P279)                | publication (wd:Q732577)                                      |
| version, edition or translation (wd:Q3331189) | different from (wdt:P1889)            | book (wd:Q571)                                                |
| version, edition or translation (wd:Q3331189) | facet of (wdt:P1269)                  | Functional Requirements for Bibliographic Records (wd:Q16388) |
| version, edition or translation (wd:Q3331189) | fabrication method (wdt:P2079)        | editing (wd:Q194105)                                          |
| version, edition or translation (wd:Q3331189) | edition or translation of (wdt:P629)  | Diplomatic Dictionary. Volume 1, 1948 (wd:Q133574444)         |
| version, edition or translation (wd:Q3331189) | topic's main template (wdt:P1424)     | wd:Q5858283                                                   |
| version, edition or translation (wd:Q3331189) | partially coincident with (wdt:P1382) | Fassung (wd:Q15994174)                                        |
| version, edition or translation (wd:Q3331189) | Wikidata property (wdt:P1687)         | introduced in (wd:P10695)                                     |
| version, edition or translation (wd:Q3331189) | studied by (wdt:P2579)                | edition philology (wd:Q1285373)                               |
| ...                                           | ...                                   | ...                                                           |

[Tool]
Got 100 rows and 2 columns, showing the first 5 and last 5 rows below:
| work                                                                                | workLabel                                                                |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| The Adventure of the Speckled Band (wd:Q1060471)                                    | The Adventure of the Speckled Band (en)                                  |
| Polish translation of Conan Doyl...How the Brigadier Saved the Army (wd:Q109177445) | Polish translation of Conan Doyl...How the Brigadier Saved the Army (en) |
| The Adventure of the Noble Bachelor (wd:Q1115266)                                   | The Adventure of the Noble Bachelor (en)                                 |
| The Case-Book of Sherlock Holmes (wd:Q1129378)                                      | The Case-Book of Sherlock Holmes (en)                                    |
| The Story of the Japanned Box (wd:Q113078716)                                       | The Story of the Japanned Box (en)                                       |
| ...                                                                                | ...                                                                      |
| The Adventure of the Golden Pince-Nez (wd:Q2728818)                                 | The Adventure of the Golden Pince-Nez (en)                               |
| The Adventure of the Missing Three-Quarter (wd:Q2728822)                            | The Adventure of the Missing Three-Quarter (en)                          |
| The Adventure of the Illustrious Client (wd:Q2740073)                               | The Adventure of the Illustrious Client (en)                             |
| The Adventure of the Veiled Lodger (wd:Q2740089)                                    | The Adventure of the Veiled Lodger (en)                                  |
| The Adventure of the Sussex Vampire (wd:Q2740092)                                   | The Adventure of the Sussex Vampire (en)                                 |

[Tool] Got no rows and 2 columns

[Tool]
Got 100 rows and 2 columns, showing the first 5 and last 5 rows below:
| work                                                      | workLabel                                       |
| --------------------------------------------------------- | ----------------------------------------------- |
| The Adventure of the Speckled Band (wd:Q1060471)          | The Adventure of the Speckled Band (en)         |
| wd:Q108946158                                             |                                                 |
| wd:Q108984068                                             |                                                 |
| wd:Q108991366                                             |                                                 |
| wd:Q108997234                                             |                                                 |
| ...                                                       | ...                                             |
| How Copley Banks slew Captain Sharkey (wd:Q19049029)      | How Copley Banks slew Captain Sharkey (en)      |
| How the Governor of Saint Kitt's came Home (wd:Q19049556) | How the Governor of Saint Kitt's came Home (en) |
| Compensation (wd:Q19051118)                               | Compensation (en)                               |
| December's Snow (wd:Q19078140)                            | December's Snow (en)                            |
| Now Then, Smith (wd:Q19079497)                            | Now Then, Smith (en)                            |

[Tool]
Got 181 rows and 2 columns, showing the first 5 and last 5 rows below:
| work                                                                                | workLabel                                                                |
| ----------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| The Adventure of the Speckled Band (wd:Q1060471)                                    | The Adventure of the Speckled Band (en)                                  |
| Polish translation of Conan Doyl...How the Brigadier Saved the Army (wd:Q109177445) | Polish translation of Conan Doyl...How the Brigadier Saved the Army (en) |
| The Adventure of the Noble Bachelor (wd:Q1115266)                                   | The Adventure of the Noble Bachelor (en)                                 |
| The Case-Book of Sherlock Holmes (wd:Q1129378)                                      | The Case-Book of Sherlock Holmes (en)                                    |
| The Story of the Japanned Box (wd:Q113078716)                                       | The Story of the Japanned Box (en)                                       |
| ...                                                                                | ...                                                                      |
| The Lost World (wd:Q785255)                                                         | The Lost World (en)                                                      |
| The Memoirs of Sherlock Holmes (wd:Q860831)                                         | The Memoirs of Sherlock Holmes (en)                                      |
| The Valley of Fear (wd:Q863438)                                                     | The Valley of Fear (en)                                                  |
| The Adventure of the Naval Treaty (wd:Q930923)                                      | The Adventure of the Naval Treaty (en)                                   |
| The Adventure of the Three Students (wd:Q961957)                                    | The Adventure of the Three Students (en)                                 |

[Tool] Stopped generation process