query-b676bf1fe57a63b7c9cfe99e3a64a75b
Tunisian Singer
SELECT DISTINCT ?item ?itemLabel ?occupationLabel ?statements WHERE { ?item wdt:P31 wd:Q5. # Human ?item wdt:P27 wd:Q948. # Citizenship = Tunisia ?item wdt:P106 wd:Q177220. #Occupation = Singer ?item wikibase:statements ?statements. # Number of statements SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY desc(?statements) # Sort by number of statements
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 bd: <http://www.bigdata.com/rdf#>
# Tunisian Singer
SELECT DISTINCT ?item ?itemLabel ?occupationLabel ?statements WHERE {
?item wdt:P31 wd:Q5. # Human
?item wdt:P27 wd:Q948. # Citizenship = Tunisia
?item wdt:P106 wd:Q177220. #Occupation = Singer
?item wikibase:statements ?statements. # Number of statements
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
} ORDER BY desc(?statements) # Sort by number of statements
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?statements"):::projected
c9(["bd:serviceParam"]):::iri
c2(["wd:Q5"]):::iri
c4(["wd:Q948"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c6(["wd:Q177220"]):::iri
v2 --"wdt:P31"--> c2
v2 --"wdt:P27"--> c4
v2 --"wdt:P106"--> c6
v2 --"wikibase:statements"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end