query-f6f990f9e4219ef325632abe05a4d857
Odisha Sahitya Akademi awardees, 243 items @16JUL2020 SELECT ?item ?linkcount ?itemLabel ?itemDescription ?awardyear ?viaf ?ol WHERE { ?item wdt:P31 wd:Q5. # <<<<<< Item = Human ?item p:P166 ?award. ?award ps:P166 ?awardval. { ?award ps:P166 wd:Q6596243. } # <<<<<< Award = Odisha Sahitya Akademi OPTIONAL { ?item wikibase:sitelinks ?linkcount. } # <<<<<< Link count OPTIONAL { ?award pq:P585 ?time. }# <<<<<< Award has a time statement BIND(YEAR(?time) AS ?awardyear)
filter(year(?time)=2016)# <<<<<< Filter for Award time = 2016
OPTIONAL { ?item wdt:P214 ?viaf1. } OPTIONAL { ?item wdt:P648 ?ol1. } BIND(IF(BOUND(?ol1), ?ol1, "no OL identifier") AS ?ol) BIND(IF(BOUND(?viaf1), ?viaf1, "no VIAF identifier") AS ?viaf) SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY DESC(?time)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
# Odisha Sahitya Akademi awardees, 243 items @16JUL2020
SELECT ?item ?linkcount ?itemLabel ?itemDescription ?awardyear ?viaf ?ol WHERE {
?item wdt:P31 wd:Q5. # <<<<<< Item = Human
?item p:P166 ?award.
?award ps:P166 ?awardval.
{ ?award ps:P166 wd:Q6596243. } # <<<<<< Award = Odisha Sahitya Akademi
OPTIONAL { ?item wikibase:sitelinks ?linkcount. } # <<<<<< Link count
OPTIONAL { ?award pq:P585 ?time. }# <<<<<< Award has a time statement
BIND(YEAR(?time) AS ?awardyear)
# filter(year(?time)=2016)# <<<<<< Filter for Award time = 2016
OPTIONAL { ?item wdt:P214 ?viaf1. }
OPTIONAL { ?item wdt:P648 ?ol1. }
BIND(IF(BOUND(?ol1), ?ol1, "no OL identifier") AS ?ol)
BIND(IF(BOUND(?viaf1), ?viaf1, "no VIAF identifier") AS ?viaf)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?time)