PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX psv: <http://www.wikidata.org/prop/statement/value/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
SELECT DISTINCT ?company ?companyLabel ?hq ?hqLabel ?revenueAmount ?revenueDate ?revenueUnit ?revenueUnitLabel ?netProfitAmount ?netProfitDate ( ( ?netProfitAmount / ?revenueAmount ) AS ?profitMargin ) ( xsd:decimal ( ROUND( ( ?netProfitAmount / ?revenueAmount ) * 100 ) / 100 ) AS ?profitMarginRounded ) WHERE {
  ?company wdt:P31 / wdt:P279 * wd:Q4830453 .
  ?company wdt:P159 ?hq .
  ?hq wdt:P17 wd:Q213 .
  FILTER ( ?company NOT IN ( wd:Q100707321 , wd:Q12021780 ) ) ?company p:P2139 ?revStmt .
  ?revStmt psv:P2139 ?revValueNode .
  ?revValueNode wikibase:quantityAmount ?revenueAmount .
  OPTIONAL {
    ?revValueNode wikibase:quantityUnit ?revenueUnit .
  }
  OPTIONAL {
    ?revStmt pq:P585 ?revenueDate .
  }
  ?company p:P2295 ?netStmt .
  ?netStmt psv:P2295 ?netValueNode .
  ?netValueNode wikibase:quantityAmount ?netProfitAmount .
  OPTIONAL {
    ?netStmt pq:P585 ?netProfitDate .
  }
  OPTIONAL {
    ?company rdfs:label ?companyLabel FILTER ( LANG( ?companyLabel ) = "en" )
  }
  OPTIONAL {
    ?hq rdfs:label ?hqLabel FILTER ( LANG( ?hqLabel ) = "en" )
  }
  OPTIONAL {
    ?revenueUnit rdfs:label ?revenueUnitLabel FILTER ( LANG( ?revenueUnitLabel ) = "en" )
  }
  FILTER ( ?revenueAmount != 0 )
}
ORDER BY ?profitMarginRounded
LIMIT 20

Using entities:
Adental Czech Republic (wd:Q100707321)
Investiční a poštovní banka (wd:Q12021780), also known as Investiční banka, IPB
Czech Republic (wd:Q213), also known as CZ, CZE, Czechia, CZR
business (wd:Q4830453)

Using properties:
headquarters location (wd:P159 as wdt), also known as admin HQ, based in, garrison, head office location, head quarters, etc.
country (wd:P17 as wdt), also known as host country, land, sovereign state, state, P17
total revenue (wd:P2139 as psv/p), also known as gross revenue, income, net sales, revenue, sales, etc.
net profit (wd:P2295 as psv/p), also known as bottom line, clear gain, clear profit, net earnings, net income, etc.
subclass of (wd:P279 as wdt), also known as all members of this class also belong to, category of, form of, has superclass, is a class of, etc.
instance of (wd:P31 as wdt), also known as example of, has type, is a, is an, is of type, etc.
point in time (wd:P585 as pq), also known as as of, at time, by date, date, during, etc.

Got 20 rows and 12 columns, showing the first 5 and last 5 columns and the first 5 and last 5 rows below:
| company                                   | companyLabel                    | hq                | hqLabel     | revenueAmount          | ... | revenueUnitLabel  | netProfitAmount           | netProfitDate                       | profitMargin           | profitMarginRounded    |
| ----------------------------------------- | ------------------------------- | ----------------- | ----------- | ---------------------- | --- | ----------------- | ------------------------- | ----------------------------------- | ---------------------- | ---------------------- |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -110279 (xsd:decimal)  | -110279 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -96443.4 (xsd:decimal) | -96443.4 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -86148.9 (xsd:decimal) | -86148.9 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 339000 (xsd:decimal)   | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -15940.1 (xsd:decimal) | -15940.1 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 339000 (xsd:decimal)   | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -13940.2 (xsd:decimal) | -13940.2 (xsd:decimal) |
| ...                                       | ...                             | ...               | ...         | ...                    | ... | ...               | ...                       | ...                                 | ...                    | ...                    |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -473.841 (xsd:decimal) | -473.84 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 1092000 (xsd:decimal)  | ... | Czech koruna (en) | -469927000 (xsd:decimal)  | 2016-01-01T00:00:00Z (xsd:dateTime) | -430.336 (xsd:decimal) | -430.34 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -414.392 (xsd:decimal) | -414.39 (xsd:decimal)  |
| Czech Property Investments (wd:Q11707166) | Czech Property Investments (en) | Prague (wd:Q1085) | Prague (en) | 14132000 (xsd:decimal) | ... | Czech koruna (en) | -5260945000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -372.272 (xsd:decimal) | -372.27 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -370.159 (xsd:decimal) | -370.16 (xsd:decimal)  |

Answer: I executed the query. It returns up to 20 businesses headquartered in the Czech Republic (excluding Adental Czech Republic and Investiční a poštovní banka) together with: company IRI and English label (if available), headquarters IRI and English label (if available), revenue amount, revenue date (qualifier P585 if present), revenue unit IRI and English label (if present), net profit amount, net profit date (P585 if present), computed profitMargin (netProfit/revenue) and profitMarginRounded (rounded to two decimals). The query returned 20 rows. The SPARQL query I ran is included above; you can use it directly against the Wikidata endpoint to retrieve the full table of results.

What are the businesses headquartered in the Czech Republic, excluding Adental Czech Republic and Investiční a poštovní banka, along with their total revenue, headquarters location, date of revenue (if available), net profit, profit margin (rounded to two decimal places), and the unit of revenue (if available)? Please order the results by ascending profit margin and limit the results to 20.

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

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

You have access to the following knowledge graphs:
wikidata at http://localhost:7001 without notes

You are provided with the following notes across all knowledge graphs:
No notes available

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

[User] What are the businesses headquartered in the Czech Republic, excluding Adental Czech Republic and Investiční a poštovní banka, along with their total revenue, headquarters location, date of revenue (if available), net profit, profit margin (rounded to two decimal places), and the unit of revenue (if available)? Please order the results by ascending profit margin and limit the results to 20.

[Assistant] I will first search for the relevant properties in Wikidata (revenue, net profit/net income, headquarters location, and profit margin if any) to identify the correct property identifiers. I'll explain each step and run searches to verify the identifiers exist. Then I'll build the SPARQL query incrementally and execute it to ensure it returns expected results. I'll exclude the two specified companies by their Wikidata IDs (once found).

[Tool]
Top 10 property alternatives:
1. total revenue (wd:P2139 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via revenue), also known as gross revenue, income, net sales, revenue, sales, etc.: income gained by an organization during a given time frame. Not to be confused with fiscal revenue
2. box office (wd:P2142 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via earnings), also known as earnings, P2142: box office takings accumulated by a film / is subproperty of total revenue
3. source of income (wd:P2770 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via revenue source), also known as income source, revenue source, source of revenue, P2770: source of income of an organization or person
4. fiscal/tax revenue (wd:P3087 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as P3087: fiscal revenue of a public entity (not for private entities)
5. units sold (wd:P2664 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via sales figures), also known as number of sales, sales, sales figures, total sales, P2664: is subproperty of quantity / sales figures of an object
6. net profit (wd:P2295 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via profit), also known as bottom line, clear gain, clear profit, net earnings, net income, etc.: private entity profit after accounting for all costs
7. operating income (wd:P3362 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as earnings before interest and taxes, EBIT, operating profit, P3362: private entity operating income
8. donations (wd:P8093 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via donations received), also known as donations received, P8093: sum of donations an organization receives
9. net worth (wd:P2218 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as declared patrimony, estimated net worth, net wealth, net worth estimate, personal assets, etc.: totality of wealth possessed by a person
10. quantity (wd:P1114 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via total), also known as amount, copies, count, instances, multiplicity, etc.: number of instances of this subject in the universe of the ... number of instances in Wikidata may be lower or higher) / number of instances of this subject

[Tool]
Top 10 property alternatives:
1. headquarters location (wd:P159 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as admin HQ, based in, garrison, head office location, head quarters, etc.: city or town where an organization's headquarters is or has been situated. Use P276 qualifier for specific building / specific location where an organisation's HQ is or has been located / specific location where an organisation's HQ is or has been located / is subproperty of significant place
2. capital (wd:P36 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via administrative headquarters), also known as administrative capital, administrative center, administrative centre, administrative headquarters, administrative seat, etc.: location (city, municipality) of governmental seat of the country, or administrative territorial entity / seat of government of a country, province, state or other type of administrative territorial entity / city of governmental seat of the country, state or administrative subdivision
3. occupant (wd:P466 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via location of), also known as home team, houses, inhabitant, lessee, location of, etc.: person or organization occupying a building or facility / person or organization occupying property / is subproperty of used by
4. operating area (wd:P2541 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via place of operation), also known as area of operations, area of responsibility, area operated, area served, areas served, etc.: geographic area or jurisdiction an organisation or industry operates in, serves, or has responsibility for / geographic area or jurisdiction an organisation or industry operates in, serves, or has responsibility for / geographic area or jurisdiction an organization or industry operates in, serves, or has responsibility for / is subproperty of location
5. work location (wd:P937 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via location of work), also known as active in, conducts business at, conducts business in, did work at, did work from, etc.: location where persons or organisations were actively participating in employment, business or other work / is subproperty of significant place / location where persons were active / is subproperty of location
6. location of creation (wd:P1071 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via manufacturing location), also known as assembly location, built at, built in, composed at, created at, etc.: place where the item was conceived or made; where applicable, location of final assembly / is subproperty of significant place
7. applies to jurisdiction (wd:P1001 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via of location), also known as applicable area, applicable country, applicable geographic place, applicable jurisdiction, applicable location, etc.: the item (institution, law, public office, public ... jurisdiction: a country, state, municipality, ...) / the item (an institution, law, public office ...) or ... jurisdiction: a country, state, municipality, ...) / is subproperty of characteristic of / is subproperty of significant place / is subproperty of operating area
8. location of formation (wd:P740 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via place of establishment), also known as comes from, formation location, formation place, formed in, founded in, etc.: location where a group or organisation was formed / location where a group or organization was formed / is subproperty of location of creation
9. coordinates of geographic center (wd:P5140 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via geographical center), also known as coordinates of geographic centre, geographical center, geographical centre, geographical midpoint, geographic center, etc.: coordinates of the center of an area. Use qualifier "determination method" (P459) to indicate how / coordinates of the centre of an area. Use qualifier "determination method" (P459) to indicate how / is subproperty of coordinate location
10. coordinate location (wd:P625 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via location), also known as co-ordinate location, co-ordinates, coordinates, co-ords, coords, etc.: geocoordinates of the subject. For Earth, please note that only WGS84 coordinating system is supported at the moment / coordinates of the subject / coordinates of the subject

[Tool]
Top 10 property alternatives:
1. net profit (wd:P2295 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as bottom line, clear gain, clear profit, net earnings, net income, etc.: private entity profit after accounting for all costs
2. operating income (wd:P3362 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as earnings before interest and taxes, EBIT, operating profit, P3362: private entity operating income
3. total revenue (wd:P2139 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via net sales), also known as gross revenue, income, net sales, revenue, sales, etc.: income gained by an organization during a given time frame. Not to be confused with fiscal revenue
4. box office (wd:P2142 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via earnings), also known as earnings, P2142: box office takings accumulated by a film / is subproperty of total revenue
5. balance of trade (wd:P2294 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via net exports), also known as net exports, P2294: exports minus imports. not to be confused with current account balance and balance of payments
6. EBITDA (wd:P12642 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as P12642: accounting measure: net earnings, before interest expenses, taxes, depreciation, and amortization are subtracted
7. net worth (wd:P2218 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via estimated net worth), also known as declared patrimony, estimated net worth, net wealth, net worth estimate, personal assets, etc.: totality of wealth possessed by a person
8. fiscal/tax revenue (wd:P3087 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as P3087: fiscal revenue of a public entity (not for private entities)
9. source of income (wd:P2770 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via source of revenue), also known as income source, revenue source, source of revenue, P2770: source of income of an organization or person
10. units sold (wd:P2664 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via sales figures), also known as number of sales, sales, sales figures, total sales, P2664: is subproperty of quantity / sales figures of an object

[Assistant] I'll search for the entity "Czech Republic" and then look for companies with headquarters in that country. I'll first search for companies headquartered in the Czech Republic by finding items with headquarters location (P159) in places that are in the Czech Republic (country wd:Q213). I'll look for one or two sample companies to inspect how revenue and net profit are encoded.

[Tool]
Top 10 entity alternatives:
1. Czech Republic (wd:Q213), also known as CZ, CZE, Czechia, CZR: is instance of landlocked country / is instance of sovereign state / is instance of successor state / republic in Central Europe / country in Central Europe / is instance of Republic / is instance of republic / is instance of country / country in Europe
2. Czech Republic (wd:Q3496079): member state of the Czech and Slovak Federal Republic (1990–1992) / is instance of constituent republic within Czechoslovakia
3. Czech Republic (wd:Q5201764): is instance of constituency of the European Parliament / constituency of the European Parliament
4. Czech Republic (wd:Q103900680): is instance of encyclopaedic article / is instance of encyclopedia article / encyclopedia article
5. Czech Republic (wd:Q25339548): is instance of team / iGEM 2015 team
6. CZECH REPUBLIC (wd:Q60164570): is instance of scholarly article / is instance of academic article
7. Czech Republic (wd:Q59760445): scholarly article by LUKAS LINEK & ZDENKA MANSFELDOVA published December 2004 in European Journal of Political Research / is instance of scholarly article / is instance of academic article
8. Czech Republic (wd:Q57542866): is instance of scholarly article / is instance of academic article / scholarly article
9. Czech Republic (wd:Q59212257): scholarly article by Aleš Kudrnáč et al published December ... Journal of Political Research Political Data Yearbook / is instance of scholarly article / is instance of academic article
10. Czech Republic (wd:Q59212246): scholarly article by IVAN PETÚŠEK & ALEŠ KUDRNÁČ published 5 ... Journal of Political Research Political Data Yearbook / is instance of scholarly article / is instance of academic article

[Assistant] Next, I will query for companies that have headquarters location in the Czech Republic. To be precise, items with P159 pointing to a place whose country is Czech Republic, or items with "country" property? Usually companies have "headquarters location (P159)" with a city that has country (P17) Czech Republic. I'll run a SPARQL query to find companies (instance of business or company) headquartered in Czech Republic and get revenue and net profit if present. I'll start with a simple query limiting to e.g. 50 to inspect.

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

[Tool]
Top 10 property alternatives:
1. net profit (wd:P2295 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via profit), also known as bottom line, clear gain, clear profit, net earnings, net income, etc.: private entity profit after accounting for all costs
2. operating income (wd:P3362 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via operating profit), also known as earnings before interest and taxes, EBIT, operating profit, P3362: private entity operating income
3. box office (wd:P2142 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via earnings), also known as earnings, P2142: box office takings accumulated by a film / is subproperty of total revenue
4. total revenue (wd:P2139 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via revenue), also known as gross revenue, income, net sales, revenue, sales, etc.: income gained by an organization during a given time frame. Not to be confused with fiscal revenue
5. EBITDA (wd:P12642 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv), also known as P12642: accounting measure: net earnings, before interest expenses, taxes, depreciation, and amortization are subtracted
6. by-product (wd:P2821 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via yields by-product), also known as byproduct, has by-product, has byproduct, produces by-product, secondary product, etc.: product of a chemical or industrial process, of secondary economic value
7. promoted (wd:P2881 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via promotion), also known as competitor promoted, player promoted, promotion, team promoted, P2881: competitor or team promoted at the end of competition / competitor or team promoted during competition
8. source of income (wd:P2770 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via source of revenue), also known as income source, revenue source, source of revenue, P2770: source of income of an organization or person
9. proportion (wd:P1107 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via percent), also known as %, part, percent, ratio, share, etc.: to be used as a qualifier, value must be between 0 and 1 / to be used as a qualifier, value must be between 0 and 1
10. aspect ratio (W:H) (wd:P2061 as prn/p/pr/wdt/ps/pqv/psv/pq/psn/pqn/wdtn/prv, matched via ratio), also known as aspect ratio, image aspect ratio, ratio, P2061: image width to height ratio of flags, films, photographs, and other images / image width to height ratio of films, photographs, and other images

[Assistant] I'll search for the two companies to get their Wikidata IDs so I can reliably exclude them in the final query. I'll call the entity search for each name.

[Tool]
Top 10 entity alternatives:
1. Adental Czech Republic (wd:Q100707321): is instance of business / Czech medical company
2. Czech Republic (wd:Q213), also known as CZ, CZE, Czechia, CZR: is instance of landlocked country / is instance of successor state / is instance of sovereign state / republic in Central Europe / country in Central Europe / is instance of Republic / is instance of republic / is instance of country / country in Europe
3. flag of the Czech Republic (wd:Q127155, matched via Czech Republic flag), also known as Czech flag, Czech Republic flag, flag of Czechia, flag of Czechoslovakia, the Czech Republic flag: national flag of the Czech Republic / is instance of national flag
4. Jihlava (wd:Q183111, matched via Jihlava, Czech Republic), also known as Iglau, Jihlava, Czech Republic, Jihlava, Vysocina: is instance of municipality with town privileges in the Czech Republic / is instance of municipality with authorized municipal office / is instance of Czech municipality with expanded powers / is instance of municipality of the Czech Republic / is instance of statutory city in Czechia / is instance of capital of region / city in Vysocina, Czech Republic / is instance of mining community / is instance of district town
5. geography of the Czech Republic (wd:Q76380, matched via Czech Republic geography), also known as Czech Republic geography, the Czech Republic geography: is instance of geography of geographic location / is subclass of geography of Europe / features of Czechia
6. Army of the Czech Republic (wd:Q276325, matched via mil Czech Republic), also known as Armady Ceske, Armed Forces of the Czech Republic, Czech Armed Forces, Czech military, Czech Military, etc.: combined military forces of the Czech Republic / is instance of armed forces / is instance of Armed forces
7. Javorek (wd:Q72366, matched via Javorek, Czech Republic), also known as Javorek, Czech Republic: village in Žďár nad Sázavou District of Vysočina region / is instance of municipality of the Czech Republic
8. Mirotice (wd:Q1641811, matched via Mirotice, Czech Republic), also known as Mirotice, Czech Republic: is instance of municipality with town privileges in the Czech Republic / is instance of municipality with authorized municipal office / is instance of municipality of the Czech Republic / municipality of the Czech Republic
9. Jezernice (wd:Q1632309, matched via Jezernice, Czech Republic), also known as Jezernice, Czech Republic: is instance of municipality of the Czech Republic / village in Přerov District of Olomouc region
10. Sulice (wd:Q2239471, matched via Sulice, Czech Republic), also known as Sulice, Czech Republic: village in Praha-východ District of Central Bohemian region, Czech Republic / is instance of municipality of the Czech Republic

[Tool]
Top 10 entity alternatives:
1. Investiční a poštovní banka (wd:Q12021780), also known as Investiční banka, IPB: is instance of former entity / is instance of enterprise / governmental organization / is instance of business / is instance of Bank / is instance of bank / former Czech bank
2. STING Realitní a investiční skupina (wd:Q130557405, matched via STING Realitní a investiční skupina a.s.), also known as STING Realitní a investiční skupina a.s.: is instance of enterprise / is instance of business / Czech company
3. Novinová a poštovní (wd:Q106586580): is instance of business
4. Investiční a majetková (wd:Q67810899): is instance of enterprise / is instance of business / Czech company
5. Stavební, investiční a kapitálová (wd:Q67804080): is instance of enterprise / is instance of business / Czech company
6. Poštovní banka (wd:Q61640132): is instance of enterprise / is instance of business / former Czech bank
7. Census of India 2011 (Bihar): Banka District Village and Town Directory (wd:Q55971546, matched via DCHB Banka Part A), also known as DCHB Banka Part A: is instance of report
8. Komerční banka (wd:Q1541079, matched via Komerční banka, a.s.), also known as KB, Komerční banka, a.s.: banking company in the Czech Republic / is instance of credit institution / is instance of investment firm / is instance of enterprise / is instance of business / is instance of company / is instance of bank / is instance of Bank
9. Československá obchodní banka (wd:Q340135, matched via Československá obchodní banka, a. s.), also known as Československá obchodní banka, a. s., ČSOB, Czechoslovak Commercial Bank: is instance of investment firm / commercial bank in Czechia / is instance of enterprise / is instance of business / is instance of company / is instance of bank / is instance of Bank
10. Tatra banka (wd:Q1718069, matched via Tatra banka, a.s.), also known as Tatra bank, Tatra banka, a.s., TB: commercial bank located in Slovakia / is instance of credit institution / is instance of enterprise / is instance of business / is instance of Bank / is instance of bank

[Assistant] I have the Wikidata IDs for the two companies to exclude: Adental Czech Republic (wd:Q100707321) and Investiční a poštovní banka (wd:Q12021780). Next, I'll craft a SPARQL query to find companies headquartered in the Czech Republic, excluding these two, and retrieve total revenue (P2139) with date (qualifier P585), net profit (P2295) with date, and the unit of revenue. Profit margin isn't usually stored; I need to compute profit margin as netProfit / revenue within SPARQL and round to two decimals. SPARQL can do arithmetic with xsd:decimal and functions. Wikidata values often are quantities with units using "p:" statements; but we can use wdt:P2139 which gives numeric value in base units? wdt:P2139 returns a quantity with unit as a URI? Let's inspect a sample company to see how revenue is recorded. I'll search for one known Czech company like 'Skoda Auto' or 'ČEZ'.

[Tool]
Top 10 entity alternatives:
1. Škoda Auto (wd:Q29637), also known as Automobilový koncern ŠKODA a.s., Skoda, SKODA, Skoda Auto, Škoda Auto a.s., etc.: automotive manufacturing subsidiary of Volkswagen Group / is instance of automobile manufacturer / is instance of car manufacturer / is instance of enterprise / is instance of business
2. Škoda Auto Museum (wd:Q3610511), also known as Škoda Muzeum (Mladá Boleslav, Česko): is instance of automobile museum / museum in Czech Republic
3. Škoda Auto University (wd:Q391945): private university located in Mladá Boleslav, Czech Republic / is instance of Czech research institution / is instance of organisation / is instance of organization / is instance of university
4. Škoda Auto Vrchlabí (wd:Q115858401): is instance of enterprise
5. Škoda Auto Deutschland (wd:Q18030153): is instance of business / Firm
6. Škoda Auto DigiLab (wd:Q64778156): is instance of enterprise / is instance of business / Czech company
7. Skoda Auto Volkswagen India (wd:Q7940322), also known as ŠAVWIPL, Škoda Auto Volkswagen India, ŠKODA AUTO Volkswagen India Pvt Ltd, Volkswagen Group Sales India: is instance of business / Indian company
8. Nadační fond Škoda Auto (wd:Q110756120): is instance of endowment fund / is instance of organization / is instance of organisation
9. ŠKODA AUTO University, Library (wd:Q114619605): is instance of university library / is instance of college library
10. Škoda Autohaus Eschwege (wd:Q83866514): Škoda Autohaus der Glinicke Automobilgruppe / is instance of business

[Tool]
Got 663 rows and 3 columns, showing the first 10 rows below:
| subject                | property                    | object                                                                                |
| ---------------------- | --------------------------- | -------------------------------------------------------------------------------------------- |
| Škoda Auto (wd:Q29637) | instance of (wdt:P31)       | business (wd:Q4830453)                                                                       |
| Škoda Auto (wd:Q29637) | country (wdt:P17)           | Czech Republic (wd:Q213)                                                                     |
| Škoda Auto (wd:Q29637) | Commons category (wdt:P373) | Škoda Auto                                                                                |
| Škoda Auto (wd:Q29637) | image (wdt:P18)             | <http://commons.wikimedia.org/wiki/Special:FilePath/%C5%A0koda%20nov%C3%A9%20s%C3%ADdlo.jpg> |
| Škoda Auto (wd:Q29637) | Freebase ID (wdt:P646)      | /m/06psh                                                                                |
| Škoda Auto (wd:Q29637) | inception (wdt:P571)        | 1895-12-17T00:00:00Z (xsd:dateTime)                                                          |
| Škoda Auto (wd:Q29637) | VIAF cluster ID (wdtn:P214) | <http://viaf.org/viaf/292828003>                                                             |
| Škoda Auto (wd:Q29637) | described at URL (wdt:P973) | <http://www.fundinguniverse.com/company-histories/skoda-auto-a-s-history/>                   |
| Škoda Auto (wd:Q29637) | GND ID (wdtn:P227)          | <https://d-nb.info/gnd/4381830-4>                                                            |
| Škoda Auto (wd:Q29637) | official name (wdt:P1448)   | Škoda Auto a.s. (cs)                                                                         |
| ...                    | ...                         | ...                                                                                |

[Assistant] We saw country P17 populated but perhaps P159 may not be used for Škoda Auto. Let's check revenue and net profit statements for Škoda Auto. I'll list P2139 and P2295 triples for Škoda Auto.

[Tool]
Got 1 row and 3 columns:
| subject                | property                  | object                     |
| ---------------------- | ------------------------- | -------------------------- |
| Škoda Auto (wd:Q29637) | total revenue (wdt:P2139) | 424292000000 (xsd:decimal) |

[Tool]
Got 15 rows and 3 columns, showing the first 10 rows below:
| subject                | property                | object                                        |
| ---------------------- | ----------------------- | --------------------------------------------- |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-01c982cd-44ad-431e-87be-67b4fae6e1f9 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-0ec65b92-4219-fcc0-a694-844d9057a814 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-33F308B4-7E4A-44A9-B77E-E862DC1A632D |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-40774e03-46c0-0281-3908-0957b8b8f965 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-42c6bd23-417d-7d60-4d7b-45e5ec24d18b |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-5B6F0780-0E79-4757-BF06-A63DFA6EAAF5 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-8864d5fa-4202-d4b7-a434-563fbbb5cc76 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-941422ee-4628-0f3d-abf6-83be2cc9b2b6 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-991A43A7-67CF-4B7D-9E15-DEA2DA3DB997 |
| Škoda Auto (wd:Q29637) | total revenue (p:P2139) | s:Q29637-A413ADEF-163B-420A-B72E-EBE969572363 |
| ...                    | ...                     | ...                                           |

[Assistant] We saw wdt:P2139 gives a numeric value but we need unit. The full statement nodes contain unit and qualifiers including P585 date. I'll build a query that retrieves the statement objects and extracts amount and unit from the statement value using the psn/psv pattern. Using p:P2139/psv:P2139 gives a quantity node? The typical pattern is ?company p:P2139 ?revstmt . ?revstmt ps:P2139 ?revenueValue . The revenueValue may be a quantity value with numeric and unit? Alternatively use psv:P2139 to get the value node which contains wikibase:quantityAmount and wikibase:quantityUnit. The QLever endpoint supports direct use of wikibase:quantityAmount? But safer: use SERVICE to get labels? But cannot use wikibase:label service. However we can get unit IRIs by ?revstmt psv:P2139 ?revValueNode . Then ?revValueNode wikibase:quantityAmount ?revAmount . ?revValueNode wikibase:quantityUnit ?revUnit . But I need to verify property names. Let's inspect the structure of a p-statement for Škoda Auto revenue by querying one statement node's triples. I'll list triples for one statement node found earlier: s:Q29637-01c98... The list tool earlier showed the statement IRIs; we need to retrieve details. Let's run a SPARQL to get statement nodes for Škoda Auto P2139 and then their psv nodes.

[Tool]
Got 10 rows and 4 columns:
| stmt                                          | valueNode                          | amount                     | unit                      |
| --------------------------------------------- | ---------------------------------- | -------------------------- | ------------------------- |
| s:Q29637-33F308B4-7E4A-44A9-B77E-E862DC1A632D | v:1dc731ff0e3fd09fdcc394b301b3d893 | 221967000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-A413ADEF-163B-420A-B72E-EBE969572363 | v:1e869b6ebdf93564fb3b136c32b0a324 | 252562000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-A8748236-1354-4B08-BA9F-E321ECDD53C4 | v:32990f1d5e1791b1ab15863e9a3182f5 | 187858000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-0ec65b92-4219-fcc0-a694-844d9057a814 | v:4b636d4bd0898607c746725224550eff | 422607000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-01c982cd-44ad-431e-87be-67b4fae6e1f9 | v:7140ea300614c526cffbfe298a1943c8 | 407400000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-a697af50-4480-2e22-445d-7499cd51ecda | v:79a796003f5a17c298806033b3e60bd4 | 299318000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-5B6F0780-0E79-4757-BF06-A63DFA6EAAF5 | v:80e02515b1178c788da5a6187718069d | 459122000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-F24AF5CF-AB0B-48E6-89DB-F15D0905128E | v:8c54a392b1d04bf52bcc114fd8b2d425 | 219454000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-991A43A7-67CF-4B7D-9E15-DEA2DA3DB997 | v:8e3c33b04a65899d5f87616b724d5b25 | 200182000000 (xsd:decimal) | Czech koruna (wd:Q131016) |
| s:Q29637-B0EF5535-61EB-4C81-8D64-B7BC714B111C | v:936829d6d9a2ec2ee90e948e1e7a30cb | 424292000000 (xsd:decimal) | Czech koruna (wd:Q131016) |

[Assistant] I'll run a SPARQL query that finds companies headquartered in the Czech Republic (via P159 to a place in the Czech Republic, or having country P17 Czech Republic), excludes the two specified companies, retrieves revenue and net profit amounts and their dates and units, computes profit margin as netProfit/revenue, rounds it to two decimals, orders by that rounded profit margin, and limits to 20. I'll execute the query to verify results.

[Tool]
Got 20 rows and 10 columns, showing the first 5 and last 5 rows below:
| company                                   | companyLabel                    | revenueAmount          | revenueDate                         | revenueUnit               | revenueUnitLabel  | netProfitAmount           | netProfitDate                       | profitMargin           | profitMarginRounded    |
| ----------------------------------------- | ------------------------------- | ---------------------- | ----------------------------------- | ------------------------- | ----------------- | ------------------------- | ----------------------------------- | ---------------------- | ---------------------- |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 49000 (xsd:decimal)    | 2015-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -110279 (xsd:decimal)  | -110279 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 49000 (xsd:decimal)    | 2015-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -96443.4 (xsd:decimal) | -96443.4 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 49000 (xsd:decimal)    | 2015-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -86148.9 (xsd:decimal) | -86148.9 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 339000 (xsd:decimal)   | 2017-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -15940.1 (xsd:decimal) | -15940.1 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 339000 (xsd:decimal)   | 2017-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -13940.2 (xsd:decimal) | -13940.2 (xsd:decimal) |
| ...                                       | ...                             | ...                    | ...                                 | ...                       | ...               | ...                       | ...                                 | ...                    | ...                    |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 11404000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -473.841 (xsd:decimal) | -473.84 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 1092000 (xsd:decimal)  | 2018-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -469927000 (xsd:decimal)  | 2016-01-01T00:00:00Z (xsd:dateTime) | -430.336 (xsd:decimal) | -430.34 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 11404000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -414.392 (xsd:decimal) | -414.39 (xsd:decimal)  |
| Czech Property Investments (wd:Q11707166) | Czech Property Investments (en) | 14132000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -5260945000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -372.272 (xsd:decimal) | -372.27 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | 11404000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | Czech koruna (wd:Q131016) | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -370.159 (xsd:decimal) | -370.16 (xsd:decimal)  |

[Assistant] Now I'll execute a final SPARQL query that requires an explicit headquarters location (P159) in the Czech Republic, excludes the two given companies, retrieves revenue and net profit statements (with dates and revenue unit), computes the profit margin and rounds it to two decimal places, orders ascending by the rounded profit margin, and limits to 20 results. This execution verifies the final query's results.

[Tool]
Got 20 rows and 12 columns, showing the first 5 and last 5 columns and the first 5 and last 5 rows below:
| company                                   | companyLabel                    | hq                | hqLabel     | revenueAmount          | ... | revenueUnitLabel  | netProfitAmount           | netProfitDate                       | profitMargin           | profitMarginRounded    |
| ----------------------------------------- | ------------------------------- | ----------------- | ----------- | ---------------------- | --- | ----------------- | ------------------------- | ----------------------------------- | ---------------------- | ---------------------- |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -110279 (xsd:decimal)  | -110279 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -96443.4 (xsd:decimal) | -96443.4 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 49000 (xsd:decimal)    | ... | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -86148.9 (xsd:decimal) | -86148.9 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 339000 (xsd:decimal)   | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -15940.1 (xsd:decimal) | -15940.1 (xsd:decimal) |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 339000 (xsd:decimal)   | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -13940.2 (xsd:decimal) | -13940.2 (xsd:decimal) |
| ...                                       | ...                             | ...               | ...         | ...                    | ... | ...               | ...                       | ...                                 | ...                    | ...                    |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -5403679000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -473.841 (xsd:decimal) | -473.84 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 1092000 (xsd:decimal)  | ... | Czech koruna (en) | -469927000 (xsd:decimal)  | 2016-01-01T00:00:00Z (xsd:dateTime) | -430.336 (xsd:decimal) | -430.34 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -4725729000 (xsd:decimal) | 2018-01-01T00:00:00Z (xsd:dateTime) | -414.392 (xsd:decimal) | -414.39 (xsd:decimal)  |
| Czech Property Investments (wd:Q11707166) | Czech Property Investments (en) | Prague (wd:Q1085) | Prague (en) | 14132000 (xsd:decimal) | ... | Czech koruna (en) | -5260945000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -372.272 (xsd:decimal) | -372.27 (xsd:decimal)  |
| CITIC Europe Holdings (wd:Q47466468)      | CITIC Europe Holdings (en)      | Prague (wd:Q1085) | Prague (en) | 11404000 (xsd:decimal) | ... | Czech koruna (en) | -4221297000 (xsd:decimal) | 2019-01-01T00:00:00Z (xsd:dateTime) | -370.159 (xsd:decimal) | -370.16 (xsd:decimal)  |

[Assistant] I will now submit the final SPARQL query. I verified the properties used: total revenue (P2139), net profit (P2295), headquarters location (P159). I also found the Wikidata IDs for the excluded companies (Adental Czech Republic: wd:Q100707321; Investiční a poštovní banka: wd:Q12021780). The query computes profit margin = netProfit / revenue and rounds it to two decimals, orders ascending, and limits to 20. I'm sending the query and a short summary of the results.

[Tool] Stopping