query-02884c4cdba8ab457fd8dc5fc071ed74
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 ?item ?itemLabel ?date_of_birth ?sex_or_gender ?sex_or_genderLabel ?country_of_citizenship ?country_of_citizenshipLabel ?given_name ?given_nameLabel ?place_of_birth ?place_of_birthLabel ?position_played_on_team___speciality ?position_played_on_team___specialityLabel ?FIFA_player_ID ?member_of_sports_team ?member_of_sports_teamLabel ?start_time ?end_time ?number_of_matches_played ?number_of_points_goals_set_scored ?height ?sport ?sportLabel ?acquisition_transaction ?acquisition_transactionLabel WHERE {
?item wdt:P413 wd:Q201330.
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
OPTIONAL { ?item wdt:P569 ?date_of_birth. }
OPTIONAL { ?item wdt:P735 ?given_name. }
OPTIONAL { ?item wdt:P1469 ?FIFA_player_ID. }
OPTIONAL { ?item p:P54 ?statementP54.
OPTIONAL { ?statementP54 ps:P54 ?member_of_sports_team. }
OPTIONAL { ?statementP54 pq:P580 ?start_time. }
OPTIONAL { ?statementP54 pq:P582 ?end_time. }
OPTIONAL { ?statementP54 pq:P1350 ?number_of_matches_played. }
OPTIONAL { ?statementP54 pq:P1351 ?number_of_points_goals_set_scored. }
}
OPTIONAL { ?item wdt:P1642 ?acquisition_transaction. }
} LIMIT 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?FIFA_player_ID"):::projected
v11("?acquisition_transaction"):::projected
v2("?date_of_birth"):::projected
v8("?end_time"):::projected
v3("?given_name"):::projected
v1("?item"):::projected
v6("?member_of_sports_team"):::projected
v9("?number_of_matches_played"):::projected
v10("?number_of_points_goals_set_scored"):::projected
v7("?start_time"):::projected
v5("?statementP54")
c2(["wd:Q201330"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"p:direct/P413"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P569".-> v2
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P735".-> v3
end
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1469".-> v4
end
subgraph optional3["(optional)"]
style optional3 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:P54".-> v5
subgraph optional4["(optional)"]
style optional4 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:statement/P54".-> v6
end
subgraph optional5["(optional)"]
style optional5 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P580".-> v7
end
subgraph optional6["(optional)"]
style optional6 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P582".-> v8
end
subgraph optional7["(optional)"]
style optional7 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P1350".-> v9
end
subgraph optional8["(optional)"]
style optional8 fill:#bbf,stroke-dasharray: 5 5;
v5 -."p:qualifier/P1351".-> v10
end
end
subgraph optional9["(optional)"]
style optional9 fill:#bbf,stroke-dasharray: 5 5;
v1 -."p:direct/P1642".-> v11
end