# Canadian Football League teams and stadiums: name and year of inception. # (wikidata.org https://w.wiki/8FTS) SELECT DISTINCT ?team ?stadium ?teamLabel ?teamInceptionYear ?stadiumLabel ?stadiumInceptionYear# ?subjLabel ?prop WHERE { ?team ?prop wd:Q1032175. ?team wdt:P31 wd:Q17271186. OPTIONAL { ?team wdt:P115 ?stadium. ?stadium wdt:P571 ?stadiumInceptionYear. ?team wdt:P571 ?teamInceptionYear } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } # Helps get the label in your language, if not, then en language } ORDER BY ?teamLabel