Submissions for LinkedMusic
Description
A federated graph of 14 music databases, including The Global Jukebox, Dig That Lick, The Sessions, RISM, MusicBrainz and more
16 of 16 submissions
#250
Natural Language Question
Find all compositions in DIAMM that are composed by Guillaume de Machaut
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
SELECT DISTINCT ?composition ?compositionLabel
WHERE {
GRAPH <https://linkedmusic.ca/graphs/diamm/> {
?composer wdt:P2888 wd:Q200580 .
?composition wdt:P86 ?composer .
OPTIONAL { ?composition rdfs:label ?compositionLabel . }
}
}
#251
Natural Language Question
Find all the different time signatures for jigs in The Session
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?timeSignature
WHERE {
?tune a ts:Tune .
?tune wdt:P747 ?tuneSetting .
?tuneSetting wdt:P136 wd:Q1079270 .
?tuneSetting wdt:P3440 ?timeSignature .
}
ORDER BY ?timeSignature
#252
Natural Language Question
Find the capital city of the country with the most sessions
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?capitalCity ?capitalCityLabel
WHERE {
{
SELECT ?country
WHERE {
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
?session a ts:Session .
?session wdt:P17 ?country .
}
}
GROUP BY ?country
ORDER BY DESC(COUNT(?session))
LIMIT 1
}
SERVICE <https://query.wikidata.org/sparql> {
?country wdt:P36 ?capitalCity .
?capitalCity rdfs:label ?capitalCityLabel .
FILTER (LANG(?capitalCityLabel) = "en")
}
}
#253
Natural Language Question
Find all songs in The Global Jukebox from countries with more than four sessions in the Session
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?song
WHERE {
GRAPH <https://linkedmusic.ca/graphs/theglobaljukebox/> {
?song a gj:Song ;
wdt:P495 ?country .
}
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
SELECT ?country (COUNT(DISTINCT ?session) AS ?sessionCount)
WHERE {
?session a ts:Session ;
wdt:P17 ?country .
}
GROUP BY ?country
HAVING (COUNT(DISTINCT ?session) > 4)
}
}
#254
Natural Language Question
Find all works in MusicBrainz that, according to Dig that Lick, contains a solo performed by Charlie Parker
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?work
WHERE {
GRAPH <https://linkedmusic.ca/graphs/dig-that-lick/> {
?solo a dtl:Solo ;
wdt:P175 wd:Q103767 ;
wdt:P361 ?track .
?track wdt:P2888 ?wikidataWork .
}
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?work a mb:Work ;
wdt:P2888 ?wikidataWork .
}
}
#255
Natural Language Question
Find all compositions or recordings with "death" in the title
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?entity ?label
WHERE {
{
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?entity rdf:type mb:Work .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?entity rdf:type mb:Recording .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/diamm/> {
?entity rdf:type diamm:Composition .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
?entity rdf:type ts:Recording .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/dig-that-lick/> {
?entity rdf:type dtl:Track .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
?entity rdf:type ts:Tune .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
UNION
{
GRAPH <https://linkedmusic.ca/graphs/theglobaljukebox/> {
?entity rdf:type gj:Song .
?entity rdfs:label ?label .
FILTER (CONTAINS(LCASE(STR(?label)), "death"))
}
}
}
#256
Natural Language Question
Find all musical instruments in the Global Jukebox featured in songs indigenous to Madagascar, and find recordings in MusicBrainz featuring these same instruments
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?wikidataInstrument ?recording WHERE {
GRAPH <https://linkedmusic.ca/graphs/theglobaljukebox/> {
?song wdt:P495 wd:Q1019 .
?song wdt:P870 ?wikidataInstrument .
}
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?recording wdt:P870 ?musicBrainzInstrument .
?musicBrainzInstrument wdt:P2888 ?wikidataInstrument .
}
}
#329
Natural Language Question
Find all sessions in France in The Session
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?session WHERE {
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
?session a ts:Session;
wdt:P17 wd:Q142.
}
}
#330
Natural Language Question
Find all MusicBrainz recordings made by Taylor Swift
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?recording WHERE {
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?artist a mb:Artist.
?artist wdt:P2888 wd:Q26876.
?recording a mb:Recording.
?recording wdt:P175 ?artist.
}
}
#331
Natural Language Question
Find all Ethiopian songs in The Global Jukebox
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?song ?songLabel WHERE {
GRAPH <https://linkedmusic.ca/graphs/theglobaljukebox/> {
?song rdf:type gj:Song.
?song wdt:P495 wd:Q115.
OPTIONAL {
?song rdfs:label ?songLabel.
}
}
}
#332
Natural Language Question
Find all solos in Dig That Lick
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?solo WHERE {
GRAPH <https://linkedmusic.ca/graphs/dig-that-lick/> {
?solo rdf:type dtl:Solo
}
}
#333
Natural Language Question
Find all DIAMM archives and sort them by the number of sources that they contain
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?archive(COUNT(?source) AS ?sourceCount) WHERE {
?archive a diamm:Archive.
OPTIONAL {
?source a diamm:Source;
wdt:P276 ?archive.
}
}
GROUP BY ?archive ORDER BY DESC(?sourceCount)
#334
Natural Language Question
Find all bands that share at least two members with Radiohead in MusicBrainz
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT ?band(COUNT(DISTINCT ?sharedMember) AS ?sharedMemberCount) WHERE {
?radiohead a mb:Artist;
wdt:P2888 wd:Q44190.
?radiohead wdt:P527 ?radiomember.
?band a mb:Artist;
wdt:P527 ?radiomember;
wdt:P527 ?sharedMember.
?radiohead wdt:P527 ?sharedMember.
FILTER (?band != ?radiohead)
}
GROUP BY ?band ?bandLabel HAVING(COUNT(DISTINCT ?sharedMember) >= 2) ORDER BY DESC(?sharedMemberCount)
#335
Natural Language Question
Find all Global Jukebox cultures that have at least one song with flute instrumentation
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?culture WHERE {
?song a gj:Song.
?song wdt:P2596 ?culture.
?song wdt:P870 wd:Q11405.
?culture a gj:Culture.
}
#336
Natural Language Question
Find all tracks in Dig That Lick recorded in New York City
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?track WHERE {
GRAPH <https://linkedmusic.ca/graphs/dig-that-lick/> {
?track a dtl:Track.
?track wdt:P8546 wd:Q60.
}
}
#337
Natural Language Question
Find all music events that happened on a day where at least one South Korean music label dissolved
SPARQL Query
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX diamm: <https://linkedmusic.ca/graphs/diamm/>
PREFIX dtl: <https://linkedmusic.ca/graphs/dig-that-lick/>
PREFIX ts: <https://linkedmusic.ca/graphs/thesession/>
PREFIX gj: <https://linkedmusic.ca/graphs/theglobaljukebox/>
PREFIX mb: <https://linkedmusic.ca/graphs/musicbrainz/>
SELECT DISTINCT ?event WHERE {
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?label a mb:Label;
wdt:P17 ?area;
wdt:P576 ?dissolutionDate.
?area wdt:P2888 wd:Q884.
}
{
GRAPH <https://linkedmusic.ca/graphs/thesession/> {
?event a ts:Events;
wdt:P580 ?eventDate.
}
}
UNION {
GRAPH <https://linkedmusic.ca/graphs/musicbrainz/> {
?event a mb:Event;
wdt:P585 ?eventDate.
}
}
FILTER (?eventDate = ?dissolutionDate)
}