query-1429dbc2de623b6b4637b901aadce8d2

rq turtle/ttl

Adjusting the Mix'n'MatchHello, claim which is considerably less than the number of items in the Mix'n'Match. (P590)GNIS Feature ID . I eyeballed all claims where the distance between the two was more than a kilometer (about 500) and fixed mislabeled items as appropriate. At the time of writing there are <1000 US lakes without any GNIS with the coordinates available from (P625)coordinate location claim on them and compared the (P590)GNIS Feature ID items which had a (Q23397)lake I'm not sure how the Mix'n'Match works, but I looked at all the

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?hasGNISID (COUNT(*) as ?count) WHERE {
  ?item wdt:P31/wdt:P279* wd:Q23397.
  ?item wdt:P17 wd:Q30.
  OPTIONAL { ?item wdt:P590 ?gnisid }
  BIND(IF(BOUND(?gnisid),true,false) AS ?hasGNISID )
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} GROUP BY ?hasGNISID

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?count") v2("?gnisid") v3("?hasGNISID"):::projected v1("?item") a1((" ")) c3(["wd:Q23397"]):::iri c8(["bd:serviceParam"]):::iri c5(["wd:Q30"]):::iri c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c3 v1 --"wdt:P17"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."wdt:P590".-> v2 end bind0[/"if(bound(?gnisid),'true^^xsd:boolean','false^^xsd:boolean')"/] v2 --o bind0 bind0 --as--o v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind2[/"count(*)"/] bind2 --as--o v4