query-a4e13d931eb6a840d80a8a9cbd13f118
TODO
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
select ?player ?playerLabel ?event (COUNT(?team) as ?teams)
WHERE {
?player wdt:P106 wd:Q937857.
?player p:P1344 ?event.
?event ps:P1344 wd:Q28937555 ; #how to change so that I can list all instances, not just 1 individual
pq:P54 ?team ;
OPTIONAL { ?event pq:P1350 ?matches;}
OPTIONAL { ?event pq:P1351 ?goals ;}
service wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?player ?playerLabel ?event ?teams HAVING ( ?teams > 1 )
ORDER BY ?teamLabel ?playerLabel