query-5f9ec8240e2434cee36d2c14f75d01c1

rq turtle/ttl

Padma awardees from Odisha (birthplace), 70 Resulst @16 FEB 2019 SELECT distinct ?item ?itemLabel ?itemDescription ?awardLabel ?linkcount WHERE { VALUES ?award {wd:Q949193 wd:Q30132541 wd:Q30132621 wd:Q30132672 wd:Q30132492 wd:Q30133065 wd:Q30132984 wd:Q60671348 wd:Q30132589 wd:Q60671291 wd:Q932650 wd:Q672392} ?item wdt:P31 wd:Q5. ?item wdt:P166 ?award. { ?item wdt:P19 wd:Q22048 } UNION { ?item wdt:P19/ wdt:P131* wd:Q22048 }
OPTIONAL { ?item wikibase:sitelinks ?linkcount. } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?linkcount) limit 111

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#>
# Padma awardees from Odisha (birthplace), 70 Resulst @16 FEB 2019
SELECT distinct ?item ?itemLabel ?itemDescription ?awardLabel ?linkcount
WHERE {
  VALUES ?award {wd:Q949193 wd:Q30132541 wd:Q30132621 wd:Q30132672 wd:Q30132492 wd:Q30133065 wd:Q30132984 wd:Q60671348 wd:Q30132589 wd:Q60671291 wd:Q932650 wd:Q672392}
  ?item wdt:P31 wd:Q5.
  ?item wdt:P166 ?award.
   { ?item wdt:P19 wd:Q22048 }
 UNION  { ?item wdt:P19/ wdt:P131* wd:Q22048 }   
      OPTIONAL { ?item wikibase:sitelinks ?linkcount. }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?linkcount)
limit 111

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?award") v3("?item"):::projected v1("?linkcount"):::projected a1((" ")) c9(["bd:serviceParam"]):::iri c2(["wd:Q5"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c5(["wd:Q22048"]):::iri bind0[/VALUES ?award/] bind0-->v2 bind00(["wd:Q949193"]) bind00 --> bind0 bind01(["wd:Q30132541"]) bind01 --> bind0 bind02(["wd:Q30132621"]) bind02 --> bind0 bind03(["wd:Q30132672"]) bind03 --> bind0 bind04(["wd:Q30132492"]) bind04 --> bind0 bind05(["wd:Q30133065"]) bind05 --> bind0 bind06(["wd:Q30132984"]) bind06 --> bind0 bind07(["wd:Q60671348"]) bind07 --> bind0 bind08(["wd:Q30132589"]) bind08 --> bind0 bind09(["wd:Q60671291"]) bind09 --> bind0 bind010(["wd:Q932650"]) bind010 --> bind0 bind011(["wd:Q672392"]) bind011 --> bind0 v3 --"wdt:P31"--> c2 v3 --"wdt:P166"--> v2 subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P19"--> a1 a1 --"wdt:P131"--> c5 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v3 --"wdt:P19"--> c5 end union0r <== or ==> union0l end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."wikibase:sitelinks".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c9 --"wikibase:language"--> c11 end