Open jakubklimek opened 9 years ago
@jakubklimek: Your commit is from Jun 24, whereas there have been a number of updates since then and when I build from the latest develop/7 head the query returns 150 rows and I don't see the duplicate rows you indicate:
SQL> SPARQL PREFIX schema: <http://schema.org/>
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> PREFIX mfcr: <http://linked.opendata.cz/ontology/domain/mfcr/monitor/ciselniky/>
Type the rest of statement, end with a semicolon (;)> PREFIX mfcrdsd: <http://linked.opendata.cz/resource/domain/mfcr/monitor/dsd/>
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> PREFIX nku: <http://data.nku.cz/ontology/>
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> SELECT DISTINCT ?lUcetniJednotka ?pocetKontrolNKU ?pocetKontrolCOI ?rUcetniJednotka ?rOrganizaceNKU ?rOrganizace
Type the rest of statement, end with a semicolon (;)> WHERE {
Type the rest of statement, end with a semicolon (;)> ?rUcetniJednotkaVersion a mfcr:UcetniJednotka ;
Type the rest of statement, end with a semicolon (;)> owl:sameAs ?rOrganizace ;
Type the rest of statement, end with a semicolon (;)> mfcr:versionOf ?rUcetniJednotka ;
Type the rest of statement, end with a semicolon (;)> skos:prefLabel ?lUcetniJednotka .
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> ?rOrganizaceNKU owl:sameAs ?rOrganizace .
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> FILTER EXISTS {
Type the rest of statement, end with a semicolon (;)> GRAPH <http://data.nku.cz/resource/dataset/audited-subjects> {
Type the rest of statement, end with a semicolon (;)> ?rOrganizaceNKU ?p ?o .
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> FILTER EXISTS {
Type the rest of statement, end with a semicolon (;)> GRAPH <http://linked.opendata.cz/resource/dataset/coi.cz/kontroly> {
Type the rest of statement, end with a semicolon (;)> ?rOrganizace ?p ?o .
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> OPTIONAL {
Type the rest of statement, end with a semicolon (;)> SELECT ?rOrganizaceNKU (COUNT(DISTINCT ?rKontrolniAkceNKU) AS ?pocetKontrolNKU)
Type the rest of statement, end with a semicolon (;)> FROM <http://data.nku.cz/resource/dataset/audited-subjects>
Type the rest of statement, end with a semicolon (;)> FROM <http://data.nku.cz/resource/dataset/check-actions>
Type the rest of statement, end with a semicolon (;)> WHERE {
Type the rest of statement, end with a semicolon (;)> ?rProvozovna schema:parentOrganization ?rOrganizaceNKU .
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> ?rKontrolniAkceNKU schema:object ?rProvozovna ;
Type the rest of statement, end with a semicolon (;)> schema:result ?rResult .
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> ?rResolution nku:approves ?rResult ;
Type the rest of statement, end with a semicolon (;)> dcterms:accepted ?vAccepted .
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)> GROUP BY ?rOrganizaceNKU
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> OPTIONAL {
Type the rest of statement, end with a semicolon (;)> SELECT ?rOrganizace (COUNT(DISTINCT ?rKontrolniAkceCOI) AS ?pocetKontrolCOI)
Type the rest of statement, end with a semicolon (;)> FROM <http://linked.opendata.cz/resource/dataset/coi.cz/kontroly>
Type the rest of statement, end with a semicolon (;)> FROM <http://linked.opendata.cz/resource/dataset/coi.cz/sankce>
Type the rest of statement, end with a semicolon (;)> WHERE {
Type the rest of statement, end with a semicolon (;)> ?rKontrolniAkceCOI schema:object ?rOrganizace .
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)> GROUP BY ?rOrganizace
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)>
Type the rest of statement, end with a semicolon (;)> }
Type the rest of statement, end with a semicolon (;)> ORDER BY ?rUcetniJednotka;
lUcetniJednotka pocetKontrolNKU pocetKontrolCOI rUcetniJednotka rOrganizaceNKU rOrganizace
LONG VARCHAR LONG VARCHAR LONG VARCHAR LONG VARCHAR LONG VARCHAR LONG VARCHAR
_______________________________________________________________________________
Vojenská lázeňská a rekreační zařízení 1 5 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00000582 http://data.nku.cz/resource/business-entity/CZ00000582 http://linked.opendata.cz/resource/business-entity/CZ00000582
Národní muzeum 3 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00023272 http://data.nku.cz/resource/business-entity/CZ00023272 http://linked.opendata.cz/resource/business-entity/CZ00023272
Nemocnice Na Homolce NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00023884 http://data.nku.cz/resource/business-entity/CZ00023884 http://linked.opendata.cz/resource/business-entity/CZ00023884
Nemocnice Na Homolce NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00023884 http://data.nku.cz/resource/business-entity/CZ00023884 http://linked.opendata.cz/resource/business-entity/CZ00023884
Městská část Praha 2 NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063461 http://data.nku.cz/resource/business-entity/CZ00063461 http://linked.opendata.cz/resource/business-entity/CZ00063461
Městská část Praha 2 NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063461 http://data.nku.cz/resource/business-entity/CZ00063461 http://linked.opendata.cz/resource/business-entity/CZ00063461
Městská část Praha 3 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063517 http://data.nku.cz/resource/business-entity/CZ00063517 http://linked.opendata.cz/resource/business-entity/CZ00063517
Městská část Praha 4 NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063584 http://data.nku.cz/resource/business-entity/CZ00063584 http://linked.opendata.cz/resource/business-entity/CZ00063584
Městská část Praha 4 NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063584 http://data.nku.cz/resource/business-entity/CZ00063584 http://linked.opendata.cz/resource/business-entity/CZ00063584
Městská část Praha 6 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00063703 http://data.nku.cz/resource/business-entity/CZ00063703 http://linked.opendata.cz/resource/business-entity/CZ00063703
Fakultní nemocnice v Motole 4 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00064203 http://data.nku.cz/resource/business-entity/CZ00064203 http://linked.opendata.cz/resource/business-entity/CZ00064203
Zoologická zahrada hlavního města Prahy 2 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00064459 http://data.nku.cz/resource/business-entity/CZ00064459 http://linked.opendata.cz/resource/business-entity/CZ00064459
Hlavní město Praha 10 4 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00064581 http://data.nku.cz/resource/business-entity/CZ00064581 http://linked.opendata.cz/resource/business-entity/CZ00064581
Statutární město Plzeň 8 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00075370 http://data.nku.cz/resource/business-entity/CZ00075370 http://linked.opendata.cz/resource/business-entity/CZ00075370
Zoologická zahrada Děčín - Pastýřská stěna, příspěvková organizace 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00078921 http://data.nku.cz/resource/business-entity/CZ00078921 http://linked.opendata.cz/resource/business-entity/CZ00078921
Muzeum skla a bižuterie v Jablonci nad Nisou 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00079481 http://data.nku.cz/resource/business-entity/CZ00079481 http://linked.opendata.cz/resource/business-entity/CZ00079481
Zoologická zahrada Liberec, příspěvková organizace 1 5 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00079651 http://data.nku.cz/resource/business-entity/CZ00079651 http://linked.opendata.cz/resource/business-entity/CZ00079651
Muzeum východních Čech v Hradci Králové NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00088382 http://data.nku.cz/resource/business-entity/CZ00088382 http://linked.opendata.cz/resource/business-entity/CZ00088382
Muzeum východních Čech v Hradci Králové NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00088382 http://data.nku.cz/resource/business-entity/CZ00088382 http://linked.opendata.cz/resource/business-entity/CZ00088382
Správa Krkonošského národního parku Vrchlabí 2 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00088455 http://data.nku.cz/resource/business-entity/CZ00088455 http://linked.opendata.cz/resource/business-entity/CZ00088455
ZOO a zámek Zlín - Lešná, příspěvková organizace 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00090026 http://data.nku.cz/resource/business-entity/CZ00090026 http://linked.opendata.cz/resource/business-entity/CZ00090026
Moravské zemské muzeum 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00094862 http://data.nku.cz/resource/business-entity/CZ00094862 http://linked.opendata.cz/resource/business-entity/CZ00094862
Zoologická zahrada Olomouc, příspěvková organizace 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00096814 http://data.nku.cz/resource/business-entity/CZ00096814 http://linked.opendata.cz/resource/business-entity/CZ00096814
Technické muzeum v Brně 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00101435 http://data.nku.cz/resource/business-entity/CZ00101435 http://linked.opendata.cz/resource/business-entity/CZ00101435
Zoologická zahrada města Brna, příspěvková organizace NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00101451 http://data.nku.cz/resource/business-entity/CZ00101451 http://linked.opendata.cz/resource/business-entity/CZ00101451
Zoo Brno a stanice zájmových činností, příspěvková organizace NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00101451 http://data.nku.cz/resource/business-entity/CZ00101451 http://linked.opendata.cz/resource/business-entity/CZ00101451
Zoologická zahrada města Brna, příspěvková organizace NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00101451 http://data.nku.cz/resource/business-entity/CZ00101451 http://linked.opendata.cz/resource/business-entity/CZ00101451
Fakultní nemocnice u sv. Anny v Brně 4 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00159816 http://data.nku.cz/resource/business-entity/CZ00159816 http://linked.opendata.cz/resource/business-entity/CZ00159816
Město Benešov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00231401 http://data.nku.cz/resource/business-entity/CZ00231401 http://linked.opendata.cz/resource/business-entity/CZ00231401
Město Týnec nad Sázavou 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00232904 http://data.nku.cz/resource/business-entity/CZ00232904 http://linked.opendata.cz/resource/business-entity/CZ00232904
Město Votice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00232963 http://data.nku.cz/resource/business-entity/CZ00232963 http://linked.opendata.cz/resource/business-entity/CZ00232963
Statutární město Kladno 3 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00234516 http://data.nku.cz/resource/business-entity/CZ00234516 http://linked.opendata.cz/resource/business-entity/CZ00234516
Město Kutná Hora 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00236195 http://data.nku.cz/resource/business-entity/CZ00236195 http://linked.opendata.cz/resource/business-entity/CZ00236195
Město Zruč nad Sázavou 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00236667 http://data.nku.cz/resource/business-entity/CZ00236667 http://linked.opendata.cz/resource/business-entity/CZ00236667
Město Říčany 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00240702 http://data.nku.cz/resource/business-entity/CZ00240702 http://linked.opendata.cz/resource/business-entity/CZ00240702
Obec Dublovice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00242195 http://data.nku.cz/resource/business-entity/CZ00242195 http://linked.opendata.cz/resource/business-entity/CZ00242195
Město Kaplice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00245941 http://data.nku.cz/resource/business-entity/CZ00245941 http://linked.opendata.cz/resource/business-entity/CZ00245941
Město Humpolec 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00248266 http://data.nku.cz/resource/business-entity/CZ00248266 http://linked.opendata.cz/resource/business-entity/CZ00248266
Město Pacov 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00248789 http://data.nku.cz/resource/business-entity/CZ00248789 http://linked.opendata.cz/resource/business-entity/CZ00248789
Město Veselí nad Lužnicí NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00253081 http://data.nku.cz/resource/business-entity/CZ00253081 http://linked.opendata.cz/resource/business-entity/CZ00253081
Město Kdyně NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00253464 http://data.nku.cz/resource/business-entity/CZ00253464 http://linked.opendata.cz/resource/business-entity/CZ00253464
Město Kdyně NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00253464 http://data.nku.cz/resource/business-entity/CZ00253464 http://linked.opendata.cz/resource/business-entity/CZ00253464
Město Františkovy Lázně 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00253936 http://data.nku.cz/resource/business-entity/CZ00253936 http://linked.opendata.cz/resource/business-entity/CZ00253936
Město Jáchymov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00254622 http://data.nku.cz/resource/business-entity/CZ00254622 http://linked.opendata.cz/resource/business-entity/CZ00254622
Město Nejdek NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00254801 http://data.nku.cz/resource/business-entity/CZ00254801 http://linked.opendata.cz/resource/business-entity/CZ00254801
Město Nejdek NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00254801 http://data.nku.cz/resource/business-entity/CZ00254801 http://linked.opendata.cz/resource/business-entity/CZ00254801
Město Ostrov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00254843 http://data.nku.cz/resource/business-entity/CZ00254843 http://linked.opendata.cz/resource/business-entity/CZ00254843
Obec Běšiny 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00255211 http://data.nku.cz/resource/business-entity/CZ00255211 http://linked.opendata.cz/resource/business-entity/CZ00255211
Město Sušice 3 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00256129 http://data.nku.cz/resource/business-entity/CZ00256129 http://linked.opendata.cz/resource/business-entity/CZ00256129
Město Dobřany 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00256552 http://data.nku.cz/resource/business-entity/CZ00256552 http://linked.opendata.cz/resource/business-entity/CZ00256552
Město Nepomuk 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00256986 http://data.nku.cz/resource/business-entity/CZ00256986 http://linked.opendata.cz/resource/business-entity/CZ00256986
Město Spálené Poříčí 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00257249 http://data.nku.cz/resource/business-entity/CZ00257249 http://linked.opendata.cz/resource/business-entity/CZ00257249
Obec Heřmanova Huť NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00257753 http://data.nku.cz/resource/business-entity/CZ00257753 http://linked.opendata.cz/resource/business-entity/CZ00257753
Město Touškov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00258105 http://data.nku.cz/resource/business-entity/CZ00258105 http://linked.opendata.cz/resource/business-entity/CZ00258105
Město Město Touškov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00258105 http://data.nku.cz/resource/business-entity/CZ00258105 http://linked.opendata.cz/resource/business-entity/CZ00258105
Obec Vejprnice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00258474 http://data.nku.cz/resource/business-entity/CZ00258474 http://linked.opendata.cz/resource/business-entity/CZ00258474
Obec Vejprnice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00258474 http://data.nku.cz/resource/business-entity/CZ00258474 http://linked.opendata.cz/resource/business-entity/CZ00258474
Město Rokycany NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00259047 http://data.nku.cz/resource/business-entity/CZ00259047 http://linked.opendata.cz/resource/business-entity/CZ00259047
Město Zbiroh NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00259225 http://data.nku.cz/resource/business-entity/CZ00259225 http://linked.opendata.cz/resource/business-entity/CZ00259225
Město Zbiroh NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00259225 http://data.nku.cz/resource/business-entity/CZ00259225 http://linked.opendata.cz/resource/business-entity/CZ00259225
Město Kraslice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00259438 http://data.nku.cz/resource/business-entity/CZ00259438 http://linked.opendata.cz/resource/business-entity/CZ00259438
Město Nový Bor 1 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00260771 http://data.nku.cz/resource/business-entity/CZ00260771 http://linked.opendata.cz/resource/business-entity/CZ00260771
Město Zákupy NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00261114 http://data.nku.cz/resource/business-entity/CZ00261114 http://linked.opendata.cz/resource/business-entity/CZ00261114
Město Zákupy NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00261114 http://data.nku.cz/resource/business-entity/CZ00261114 http://linked.opendata.cz/resource/business-entity/CZ00261114
Obec Hřensko 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00261351 http://data.nku.cz/resource/business-entity/CZ00261351 http://linked.opendata.cz/resource/business-entity/CZ00261351
Město Jílové 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00261408 http://data.nku.cz/resource/business-entity/CZ00261408 http://linked.opendata.cz/resource/business-entity/CZ00261408
Obec Hrušovany 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00261874 http://data.nku.cz/resource/business-entity/CZ00261874 http://linked.opendata.cz/resource/business-entity/CZ00261874
Město Železný Brod NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00262633 http://data.nku.cz/resource/business-entity/CZ00262633 http://linked.opendata.cz/resource/business-entity/CZ00262633
Město Hrádek nad Nisou 3 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00262854 http://data.nku.cz/resource/business-entity/CZ00262854 http://linked.opendata.cz/resource/business-entity/CZ00262854
Město Třebenice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00264521 http://data.nku.cz/resource/business-entity/CZ00264521 http://linked.opendata.cz/resource/business-entity/CZ00264521
Město Úštěk 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00264571 http://data.nku.cz/resource/business-entity/CZ00264571 http://linked.opendata.cz/resource/business-entity/CZ00264571
Město Louny 3 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00265209 http://data.nku.cz/resource/business-entity/CZ00265209 http://linked.opendata.cz/resource/business-entity/CZ00265209
Město Podbořany 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00265365 http://data.nku.cz/resource/business-entity/CZ00265365 http://linked.opendata.cz/resource/business-entity/CZ00265365
Město Žatec 3 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00265781 http://data.nku.cz/resource/business-entity/CZ00265781 http://linked.opendata.cz/resource/business-entity/CZ00265781
Obec Havraň NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00265918 http://data.nku.cz/resource/business-entity/CZ00265918 http://linked.opendata.cz/resource/business-entity/CZ00265918
Obec Havraň NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00265918 http://data.nku.cz/resource/business-entity/CZ00265918 http://linked.opendata.cz/resource/business-entity/CZ00265918
Obec Povrly 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00266931 http://data.nku.cz/resource/business-entity/CZ00266931 http://linked.opendata.cz/resource/business-entity/CZ00266931
Město Ledeč nad Sázavou 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00267759 http://data.nku.cz/resource/business-entity/CZ00267759 http://linked.opendata.cz/resource/business-entity/CZ00267759
Město Chrudim 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00270211 http://data.nku.cz/resource/business-entity/CZ00270211 http://linked.opendata.cz/resource/business-entity/CZ00270211
Obec Dětenice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00271471 http://data.nku.cz/resource/business-entity/CZ00271471 http://linked.opendata.cz/resource/business-entity/CZ00271471
Statutární město Pardubice 2 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00274046 http://data.nku.cz/resource/business-entity/CZ00274046 http://linked.opendata.cz/resource/business-entity/CZ00274046
Město Turnov 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00276227 http://data.nku.cz/resource/business-entity/CZ00276227 http://linked.opendata.cz/resource/business-entity/CZ00276227
Město Moravská Třebová 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00277037 http://data.nku.cz/resource/business-entity/CZ00277037 http://linked.opendata.cz/resource/business-entity/CZ00277037
Obec Mostek NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278157 http://data.nku.cz/resource/business-entity/CZ00278157 http://linked.opendata.cz/resource/business-entity/CZ00278157
Obec Mostek NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278157 http://data.nku.cz/resource/business-entity/CZ00278157 http://linked.opendata.cz/resource/business-entity/CZ00278157
Obec Radvanice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278220 http://data.nku.cz/resource/business-entity/CZ00278220 http://linked.opendata.cz/resource/business-entity/CZ00278220
Obec Radvanice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278220 http://data.nku.cz/resource/business-entity/CZ00278220 http://linked.opendata.cz/resource/business-entity/CZ00278220
Město Trutnov 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278360 http://data.nku.cz/resource/business-entity/CZ00278360 http://linked.opendata.cz/resource/business-entity/CZ00278360
Město Choceň NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278955 http://data.nku.cz/resource/business-entity/CZ00278955 http://linked.opendata.cz/resource/business-entity/CZ00278955
Město Choceň NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278955 http://data.nku.cz/resource/business-entity/CZ00278955 http://linked.opendata.cz/resource/business-entity/CZ00278955
Město Jablonné nad Orlicí NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278963 http://data.nku.cz/resource/business-entity/CZ00278963 http://linked.opendata.cz/resource/business-entity/CZ00278963
Město Jablonné nad Orlicí NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00278963 http://data.nku.cz/resource/business-entity/CZ00278963 http://linked.opendata.cz/resource/business-entity/CZ00278963
Město Blansko 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00279943 http://data.nku.cz/resource/business-entity/CZ00279943 http://linked.opendata.cz/resource/business-entity/CZ00279943
Město Boskovice 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00279978 http://data.nku.cz/resource/business-entity/CZ00279978 http://linked.opendata.cz/resource/business-entity/CZ00279978
Město Brumov - Bylnice 1 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00283819 http://data.nku.cz/resource/business-entity/CZ00283819 http://linked.opendata.cz/resource/business-entity/CZ00283819
Město Brumov-Bylnice 1 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00283819 http://data.nku.cz/resource/business-entity/CZ00283819 http://linked.opendata.cz/resource/business-entity/CZ00283819
Město Fryšták NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00283916 http://data.nku.cz/resource/business-entity/CZ00283916 http://linked.opendata.cz/resource/business-entity/CZ00283916
Město Fryšták NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00283916 http://data.nku.cz/resource/business-entity/CZ00283916 http://linked.opendata.cz/resource/business-entity/CZ00283916
Město Bzenec NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00284807 http://data.nku.cz/resource/business-entity/CZ00284807 http://linked.opendata.cz/resource/business-entity/CZ00284807
Město Bzenec NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00284807 http://data.nku.cz/resource/business-entity/CZ00284807 http://linked.opendata.cz/resource/business-entity/CZ00284807
Obec Mikulčice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00285102 http://data.nku.cz/resource/business-entity/CZ00285102 http://linked.opendata.cz/resource/business-entity/CZ00285102
Obec Mikulčice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00285102 http://data.nku.cz/resource/business-entity/CZ00285102 http://linked.opendata.cz/resource/business-entity/CZ00285102
Město Strážnice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00285315 http://data.nku.cz/resource/business-entity/CZ00285315 http://linked.opendata.cz/resource/business-entity/CZ00285315
Obec Žarošice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00285528 http://data.nku.cz/resource/business-entity/CZ00285528 http://linked.opendata.cz/resource/business-entity/CZ00285528
Město Bystřice pod Hostýnem 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00287113 http://data.nku.cz/resource/business-entity/CZ00287113 http://linked.opendata.cz/resource/business-entity/CZ00287113
Městys Višňové 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00293784 http://data.nku.cz/resource/business-entity/CZ00293784 http://linked.opendata.cz/resource/business-entity/CZ00293784
Město Velká Bíteš NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00295647 http://data.nku.cz/resource/business-entity/CZ00295647 http://linked.opendata.cz/resource/business-entity/CZ00295647
Město Velká Bíteš NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00295647 http://data.nku.cz/resource/business-entity/CZ00295647 http://linked.opendata.cz/resource/business-entity/CZ00295647
Město Velké Meziříčí 5 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00295671 http://data.nku.cz/resource/business-entity/CZ00295671 http://linked.opendata.cz/resource/business-entity/CZ00295671
Město Žďár nad Sázavou 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00295841 http://data.nku.cz/resource/business-entity/CZ00295841 http://linked.opendata.cz/resource/business-entity/CZ00295841
Město Moravský Beroun NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00296244 http://data.nku.cz/resource/business-entity/CZ00296244 http://linked.opendata.cz/resource/business-entity/CZ00296244
Město Moravský Beroun NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00296244 http://data.nku.cz/resource/business-entity/CZ00296244 http://linked.opendata.cz/resource/business-entity/CZ00296244
Statutární město Karviná 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00297534 http://data.nku.cz/resource/business-entity/CZ00297534 http://linked.opendata.cz/resource/business-entity/CZ00297534
Město Štramberk NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00298468 http://data.nku.cz/resource/business-entity/CZ00298468 http://linked.opendata.cz/resource/business-entity/CZ00298468
Město Šumperk 4 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00303461 http://data.nku.cz/resource/business-entity/CZ00303461 http://linked.opendata.cz/resource/business-entity/CZ00303461
Město Rožnov pod Radhoštěm 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00304271 http://data.nku.cz/resource/business-entity/CZ00304271 http://linked.opendata.cz/resource/business-entity/CZ00304271
Město Valašské Meziříčí 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00304387 http://data.nku.cz/resource/business-entity/CZ00304387 http://linked.opendata.cz/resource/business-entity/CZ00304387
Město Vsetín 4 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00304450 http://data.nku.cz/resource/business-entity/CZ00304450 http://linked.opendata.cz/resource/business-entity/CZ00304450
Zoologická a botanická zahrada města Plzně, příspěvková organizace 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00377015 http://data.nku.cz/resource/business-entity/CZ00377015 http://linked.opendata.cz/resource/business-entity/CZ00377015
Podkrušnohorský zoopark Chomutov, příspěvková organizace 1 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00379719 http://data.nku.cz/resource/business-entity/CZ00379719 http://linked.opendata.cz/resource/business-entity/CZ00379719
Integrovaná střední škola Mladá Boleslav NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00473944 http://data.nku.cz/resource/business-entity/CZ00473944 http://linked.opendata.cz/resource/business-entity/CZ00473944
Nemocnice Pelhřimov, příspěvková organizace 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00511951 http://data.nku.cz/resource/business-entity/CZ00511951 http://linked.opendata.cz/resource/business-entity/CZ00511951
Obec Bedřichov NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00525511 http://data.nku.cz/resource/business-entity/CZ00525511 http://linked.opendata.cz/resource/business-entity/CZ00525511
Obec Bedřichov NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00525511 http://data.nku.cz/resource/business-entity/CZ00525511 http://linked.opendata.cz/resource/business-entity/CZ00525511
Město Kunovice 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00567892 http://data.nku.cz/resource/business-entity/CZ00567892 http://linked.opendata.cz/resource/business-entity/CZ00567892
Obec Mostkovice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00600032 http://data.nku.cz/resource/business-entity/CZ00600032 http://linked.opendata.cz/resource/business-entity/CZ00600032
Obec Mostkovice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00600032 http://data.nku.cz/resource/business-entity/CZ00600032 http://linked.opendata.cz/resource/business-entity/CZ00600032
Fakultní nemocnice Plzeň 2 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00669806 http://data.nku.cz/resource/business-entity/CZ00669806 http://linked.opendata.cz/resource/business-entity/CZ00669806
Obec Jindřichovice pod Smrkem 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00672025 http://data.nku.cz/resource/business-entity/CZ00672025 http://linked.opendata.cz/resource/business-entity/CZ00672025
Obec Skalice u České Lípy 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00673455 http://data.nku.cz/resource/business-entity/CZ00673455 http://linked.opendata.cz/resource/business-entity/CZ00673455
Město Trmice NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00674010 http://data.nku.cz/resource/business-entity/CZ00674010 http://linked.opendata.cz/resource/business-entity/CZ00674010
Nemocnice s poliklinikou Havířov, příspěvková organizace 1 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00844896 http://data.nku.cz/resource/business-entity/CZ00844896 http://linked.opendata.cz/resource/business-entity/CZ00844896
Statutární město Ostrava 9 3 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00845451 http://data.nku.cz/resource/business-entity/CZ00845451 http://linked.opendata.cz/resource/business-entity/CZ00845451
Východočeské muzeum v Pardubicích 1 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/14450542 http://data.nku.cz/resource/business-entity/CZ14450542 http://linked.opendata.cz/resource/business-entity/CZ14450542
Statutární město Brno 11 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/44992785 http://data.nku.cz/resource/business-entity/CZ44992785 http://linked.opendata.cz/resource/business-entity/CZ44992785
Střední odborná škola Liberec, Jablonecká 999, příspěvková organizace NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/46746862 http://data.nku.cz/resource/business-entity/CZ46746862 http://linked.opendata.cz/resource/business-entity/CZ46746862
Střední odborná škola Liberec, Jablonecká 999, příspěvková organizace NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/46746862 http://data.nku.cz/resource/business-entity/CZ46746862 http://linked.opendata.cz/resource/business-entity/CZ46746862
Správa Pražského hradu 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/49366076 http://data.nku.cz/resource/business-entity/CZ49366076 http://linked.opendata.cz/resource/business-entity/CZ49366076
Akademie věd České republiky 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/60165171 http://data.nku.cz/resource/business-entity/CZ60165171 http://linked.opendata.cz/resource/business-entity/CZ60165171
Střední škola a Jazyková škola s právem státní jazykové zkoušky Volyně, Lidická 135 NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/60650478 http://data.nku.cz/resource/business-entity/CZ60650478 http://linked.opendata.cz/resource/business-entity/CZ60650478
Střední škola a Jazyková škola s právem státní jazykové zkoušky Volyně, Lidická 135 NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/60650478 http://data.nku.cz/resource/business-entity/CZ60650478 http://linked.opendata.cz/resource/business-entity/CZ60650478
Ústřední vojenská nemocnice Praha 3 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/61383082 http://data.nku.cz/resource/business-entity/CZ61383082 http://linked.opendata.cz/resource/business-entity/CZ61383082
Domov důchodců Bystřany, příspěvková organizace 1 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/63787725 http://data.nku.cz/resource/business-entity/CZ63787725 http://linked.opendata.cz/resource/business-entity/CZ63787725
Ředitelství silnic a dálnic ČR 18 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/65993390 http://data.nku.cz/resource/business-entity/CZ65993390 http://linked.opendata.cz/resource/business-entity/CZ65993390
Zotavovna Vězeňské služby České republiky Pracov NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/65997999 http://data.nku.cz/resource/business-entity/CZ65997999 http://linked.opendata.cz/resource/business-entity/CZ65997999
Zotavovna Vězeňské služby České republiky Pracov NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/65997999 http://data.nku.cz/resource/business-entity/CZ65997999 http://linked.opendata.cz/resource/business-entity/CZ65997999
Zotavovna Vězeňské služby České republiky Pracov NULL 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/65997999 http://data.nku.cz/resource/business-entity/CZ65997999 http://linked.opendata.cz/resource/business-entity/CZ65997999
Zařízení služeb pro Ministerstvo vnitra 3 5 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/67779999 http://data.nku.cz/resource/business-entity/CZ67779999 http://linked.opendata.cz/resource/business-entity/CZ67779999
Plzeňský kraj 6 1 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/70890366 http://data.nku.cz/resource/business-entity/CZ70890366 http://linked.opendata.cz/resource/business-entity/CZ70890366
Národní památkový ústav 3 38 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/75032333 http://data.nku.cz/resource/business-entity/CZ75032333 http://linked.opendata.cz/resource/business-entity/CZ75032333
150 Rows. -- 260 msec.
SQL>
How many rows does your query run return ?
Actually, the duplicate is right there in your result:
Nemocnice Na Homolce NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00023884 http://data.nku.cz/resource/business-entity/CZ00023884 http://linked.opendata.cz/resource/business-entity/CZ00023884
Nemocnice Na Homolce NULL 2 http://linked.opendata.cz/resource/domain/mfcr/monitor/ciselniky/UcetniJednotka/00023884 http://data.nku.cz/resource/business-entity/CZ00023884 http://linked.opendata.cz/resource/business-entity/CZ00023884
My query run returns 145 rows now, but the data in our endpoint might have changed since.
Commit: 5b95d916d4d6f38722f9518e1a71fdec0c384959 Database: http://linked.opendata.cz/dump/dberr2.zip
Returns:
Note that the last two lines are the same, which should not happen when using DISTINCT.
When I nest the query in another select distinct *:
It works as expected and returns each line only once.