query-5145dd008ec296cf61f9c0b7553a3bb7
title:New Outdoor gyms videos produced in Sweden SELECT ?publishedDate ?language (SAMPLE(?title) AS ?title) ?youtube (SAMPLE(?item) AS ?WD) (SAMPLE(?OutdoorGym) AS ?OutdoorGym) ?nrviews (SAMPLE(?admin) AS ?admin) WHERE { ?item wdt:P6104 wd:Q107186275; wdt:P17 wd:Q34. OPTIONAL { ?item rdfs:label ?OutdoorGym. FILTER((LANG(?OutdoorGym)) = "en") } OPTIONAL { ?item wdt:P18 ?img. } OPTIONAL { ?item wdt:P131 ?adminId. ?adminId rdfs:label ?admin. FILTER((LANG(?admin)) = "en") } OPTIONAL { ?item wdt:P856 ?www. } {
{?item p:P1651 ?Pyoutubev.
?Pyoutubev ps:P1651 ?youtubev.
OPTIONAL { ?Pyoutubev pq:P1810 ?title. }
OPTIONAL { ?Pyoutubev pq:P407 ?languageid.
?languageid rdfs:label ??language.
FILTER((LANG(?language)) = "en")
}
OPTIONAL { ?Pyoutubev pq:P5436 ?nrviews. }
OPTIONAL { ?Pyoutubev pq:P577 ?publishedDate. }
}
} BIND(URI(CONCAT("https://www.youtube.com/watch?v=", ?youtubev)) AS ?youtube) OPTIONAL { ?item wdt:P625 ?coord. } } GROUP BY ?youtube ?nrviews ?publishedDate ?language ORDER BY DESC (?publishedDate)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
#title:New Outdoor gyms videos produced in Sweden
SELECT ?publishedDate ?language (SAMPLE(?title) AS ?title) ?youtube (SAMPLE(?item) AS ?WD) (SAMPLE(?OutdoorGym) AS ?OutdoorGym) ?nrviews (SAMPLE(?admin) AS ?admin) WHERE {
?item wdt:P6104 wd:Q107186275;
wdt:P17 wd:Q34.
OPTIONAL {
?item rdfs:label ?OutdoorGym.
FILTER((LANG(?OutdoorGym)) = "en")
}
OPTIONAL { ?item wdt:P18 ?img. }
OPTIONAL {
?item wdt:P131 ?adminId.
?adminId rdfs:label ?admin.
FILTER((LANG(?admin)) = "en")
}
OPTIONAL { ?item wdt:P856 ?www. }
{
{?item p:P1651 ?Pyoutubev.
?Pyoutubev ps:P1651 ?youtubev.
OPTIONAL { ?Pyoutubev pq:P1810 ?title. }
OPTIONAL { ?Pyoutubev pq:P407 ?languageid.
?languageid rdfs:label ??language.
FILTER((LANG(?language)) = "en")
}
OPTIONAL { ?Pyoutubev pq:P5436 ?nrviews. }
OPTIONAL { ?Pyoutubev pq:P577 ?publishedDate. }
}
}
BIND(URI(CONCAT("https://www.youtube.com/watch?v=", ?youtubev)) AS ?youtube)
OPTIONAL { ?item wdt:P625 ?coord. }
}
GROUP BY ?youtube ?nrviews ?publishedDate ?language
ORDER BY DESC (?publishedDate)