query-2f857e9dddfa3400bc3cd8c0f574d2c6

rq turtle/ttl

Participants of tournaments

Use at

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#>
SELECT ?item ?itemLabel ?participantLabel WHERE {
  {
    SELECT ?item ?itemLabel ?participantLabel (CONTAINS(?participantLabel, "Bangladesh Badminton") AS ?is_Bangla) WHERE {
      ?item wdt:P31 wd:Q5; wdt:P106 wd:Q13141064; wdt:P1344 ?participant .
      SERVICE wikibase:label {
        bd:serviceParam wikibase:language "en" .
      } .
    }
  } .
  FILTER( ?is_Bangla = true ) .
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v4("?is_Bangla") v2("?item"):::projected v3("?participant") c8(["bd:serviceParam"]):::iri c3(["wd:Q5"]):::iri c10(["en"]):::literal c5(["wd:Q13141064"]):::iri f0[["?is_Bangla = 'true^^xsd:boolean'"]] f0 --> v4 v2 --"wdt:P31"--> c3 v2 --"wdt:P106"--> c5 v2 --"wdt:P1344"--> v3 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end bind1[/"contains(?participantLabel,'Bangladesh Badminton')"/] null --o bind1 bind1 --as--o v4