query-259acfa80ca2bfa370f4e52e9c6b7b78
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 ?eventLabel (COUNT(?team) as ?teams)
WHERE {
?player wdt:P106 wd:Q937857.
?player p:P1344 ?statement.
?statement ps:P1344 ?event ; #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 ?eventLabel ?teams HAVING ( ?teams > 1 )
ORDER BY ?teamLabel ?playerLabel