query-6c71a98bad87831436c1b10294c0311f
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 ?match ?seriesLabel ?time ?home_teamLabel ?home_goals ?away_teamLabel ?away_goals {
# uncomment next line if you only want the match or matches specified within the { }
# VALUES ?match { wd:Q29877824 }
?match wdt:P179 ?series .
?series wdt:P3450 wd:Q82595 .
?match wdt:P585 ?time .
?match p:P1923 ?p1923stm_home.
?p1923stm_home ps:P1923 ?home_team .
?p1923stm_home pq:P2868 wd:Q24633211 .
?p1923stm_home pq:P1351 ?home_goals .
?match p:P1923 ?p1923stm_away.
?p1923stm_away ps:P1923 ?away_team .
?p1923stm_away pq:P2868 wd:Q24633216 .
?p1923stm_away pq:P1351 ?away_goals .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY ?time ?home_teamLabel
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v10("?away_goals"):::projected
v9("?away_team")
v7("?home_goals"):::projected
v6("?home_team")
v2("?home_teamLabel"):::projected
v3("?match"):::projected
v8("?p1923stm_away")
v5("?p1923stm_home")
v4("?series")
v1("?time"):::projected
c8(["wd:Q24633211"]):::iri
c10(["wd:Q24633216"]):::iri
c12(["bd:serviceParam"]):::iri
c3(["wd:Q82595"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v3 --"p:direct/P179"--> v4
v4 --"p:direct/P3450"--> c3
v3 --"p:direct/P585"--> v1
v3 --"p:P1923"--> v5
v5 --"p:statement/P1923"--> v6
v5 --"p:qualifier/P2868"--> c8
v5 --"p:qualifier/P1351"--> v7
v3 --"p:P1923"--> v8
v8 --"p:statement/P1923"--> v9
v8 --"p:qualifier/P2868"--> c10
v8 --"p:qualifier/P1351"--> v10
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end