query-0c56eb22f7e1677b4c166760fd369d15

rq turtle/ttl

SPARQL query for listing NBA players at the 2020 Tokyo Olympics. If so, the query shown below answers that question. Which players at the 2020 Tokio Olympics also belong to the NBA league?. If I understand your question correctly, the question actually refers to What are all the players that play for the NBA in the 2020 Tokyo Olympics?: Hey! I just found this page and I saw that one of the questions that you try to answer is Lectrician1@

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 ?player ?playerLabel {

  # basketball at the 2020 Summer Olympics – men's tournament
  {?player wdt:P1344 wd:Q39080780}
  UNION
  # basketball at the 2020 Summer Olympics – men's 3x3 tournament
  {?player wdt:P1344 wd:Q64369209}

  ?player wdt:P118 wd:Q155223.

  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". }
}
ORDER BY ASC(?playerLabel)

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?player"):::projected v1("?playerLabel"):::projected c3(["wd:Q64369209"]):::iri c7(["bd:serviceParam"]):::iri c9(["#91;AUTO_LANGUAGE#93;"]):::literal c2(["wd:Q39080780"]):::iri c5(["wd:Q155223"]):::iri subgraph union0[" Union "] subgraph union0l[" "] style union0l fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P1344"--> c3 end subgraph union0r[" "] style union0r fill:#abf,stroke-dasharray: 3 3; v2 --"wdt:P1344"--> c2 end union0r <== or ==> union0l end v2 --"wdt:P118"--> c5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c7 --"wikibase:language"--> c9 end