Give me {ice hockey team} that {league} {National Hockey League} and which contains the word {ottawa} in their name
What hockey group in the NHL contains Ottawa in their name?
What hockey team in the NHL contains Ottawa in their name?
SELECT DISTINCT ?t WHERE { ?t property:league resource:National_Hockey_League . ?t rdf:type ontology:ice_hockey_team . FILTER ( CONTAINS ( LCASE ( ?t ) , 'ottawa' ) ) }
SELECT DISTINCT ?sbj ?sbj_label { ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P31> . ?statement1 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q4498974>. ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> ?sbj . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P118> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q1215892>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'ottawa')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q4498974 . ?sbj wdt:P118 wd:Q1215892 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'ottawa')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Ottawa Senators Ottawa Senators