query-be5fe47535847d0563b21d1ff697dbd5
wikidata items with 2011 village/census town codes and having images but not captions in Telugu
SELECT DISTINCT ?item ?page_titleTE WHERE {
hint:Query hint:optimizer "None".
Values ?iteminstance {
wd:Q56436498
}.
?item (wdt:P131*) wd:Q1159;
wdt:P131 ?mandal;
(wdt:P31) ?item_instance;
wdt:P5578 ?2011censuscode.
OPTIONAL { ?item wdt:P625 ?wdloc. }
OPTIONAL { ?item wdt:P18 ?prefimgfilename. }
OPTIONAL {
?item p:P18 ?imgst.
?imgst ps:P18 ?imgfilename;
pq:P2096 ?imglegend.
FILTER((LANG(?imglegend)) = "te")
}
?tewikilink schema:about ?item;
schema:isPartOf https://te.wikipedia.org/;
schema:name ?page_titleTE.
SERVICE wikibase:label { bd:serviceParam wikibase:language "te". }
FILTER((?2011censuscode > "579012") && (?2011censuscode < "597114"))
FILTER(BOUND(?prefimgfilename))
FILTER(!(BOUND(?imglegend)))
}
ORDER BY (?page_titleTE)
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 schema: <http://schema.org/>
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#>
#wikidata items with 2011 village/census town codes and having images but not captions in Telugu
SELECT DISTINCT ?item ?page_titleTE WHERE {
Values ?iteminstance {
wd:Q56436498
}.
?item (wdt:P131*) wd:Q1159;
wdt:P131 ?mandal;
(wdt:P31) ?item_instance;
wdt:P5578 ?2011censuscode.
OPTIONAL { ?item wdt:P625 ?wdloc. }
OPTIONAL { ?item wdt:P18 ?prefimgfilename. }
OPTIONAL {
?item p:P18 ?imgst.
?imgst ps:P18 ?imgfilename;
pq:P2096 ?imglegend.
FILTER((LANG(?imglegend)) = "te")
}
?tewikilink schema:about ?item;
schema:isPartOf <https://te.wikipedia.org/>;
schema:name ?page_titleTE.
SERVICE wikibase:label { bd:serviceParam wikibase:language "te". }
FILTER((?2011censuscode > "579012") && (?2011censuscode < "597114"))
FILTER(BOUND(?prefimgfilename))
FILTER(!(BOUND(?imglegend)))
}
ORDER BY (?page_titleTE)