query-119c00cb78a867ccd4518adae84a964f
Films only on Armenian Wikipedia SELECT (SAMPLE(?year) AS ?year) ?statements (GROUP_CONCAT(DISTINCT ?origlang) as ?origlangs) ?item ?locallabel ?itemLabel ?itemDescription (SAMPLE(?originaltitle) AS ?originaltitle) (xsd:integer(STRAFTER(str(?item), "Q")) AS ?qid) { ?item wdt:P31/wdt:P279* wd:Q11424 . ?item wikibase:sitelinks 1 . [] schema:about ?item; schema:isPartOf https://hy.wikipedia.org/; schema:inLanguage ?lll . ?item rdfs:label ?locallabel . FILTER(lang(?locallabel) = ?lll ) . ?item wikibase:statements ?statements . OPTIONAL { ?item wdt:P364/wdt:P424 ?origlang } OPTIONAL { ?item wdt:P1476 ?originaltitle } OPTIONAL { ?item wdt:P577 ?date . BIND(YEAR(?date) as ?year) } SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } } GROUP BY ?item ?statements ?locallabel ?itemLabel ?itemDescription ORDER BY DESC(?year) LIMIT 1000
Use at
- https://query.wikidata.org/sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
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 rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Films only on Armenian Wikipedia
SELECT (SAMPLE(?year) AS ?year)
?statements
(GROUP_CONCAT(DISTINCT ?origlang) as ?origlangs)
?item ?locallabel ?itemLabel ?itemDescription
(SAMPLE(?originaltitle) AS ?originaltitle)
(xsd:integer(STRAFTER(str(?item), "Q")) AS ?qid)
{
?item wdt:P31/wdt:P279* wd:Q11424 .
?item wikibase:sitelinks 1 .
[] schema:about ?item; schema:isPartOf <https://hy.wikipedia.org/>; schema:inLanguage ?lll .
?item rdfs:label ?locallabel . FILTER(lang(?locallabel) = ?lll ) .
?item wikibase:statements ?statements .
OPTIONAL { ?item wdt:P364/wdt:P424 ?origlang }
OPTIONAL { ?item wdt:P1476 ?originaltitle }
OPTIONAL { ?item wdt:P577 ?date . BIND(YEAR(?date) as ?year) }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" }
}
GROUP BY ?item ?statements ?locallabel ?itemLabel ?itemDescription
ORDER BY DESC(?year) LIMIT 1000