Research in programming Wikidata/Cities - Wikiversity
Which country has the most sister cities?Wikidata:SPARQL tutorial - Wikidata
# (film) items with "cast member P161" including "tom hanks Q2263"
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
{
SELECT DISTINCT ?item WHERE {
?item p:P161 ?statement0. # cast member
?statement0 (ps:P161/(wdt:P279*)) wd:Q2263. # tom hanks
}
LIMIT 100
}
}
# simplified, same
SELECT DISTINCT ?item ?itemLabel
WHERE {
?item p:P161 ?statement0. # cast member
?statement0 (ps:P161/(wdt:P279*)) wd:Q2263. # tom hanks
SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}
LIMIT 100
No comments:
Post a Comment