Give me {territory of Australia} that {public holiday} {New Year's Day} and which contains the word {territory} in their name
Which is the territory of Australia that has New Year's Day as public vacation and whose identify includes the word territory?
Which is the territory of Australia that has New Year's Day as public holiday and whose name contains the word territory?
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:territory_of_Australia . ?m property:public_holiday resource:New_Year's_Day . FILTER ( CONTAINS ( LCASE ( ?m ) , 'territory' ) ) }
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/Q14192199>. ?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/P832> . ?statement2 <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> <http://wikidata.dbpedia.org/resource/Q196627>. ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'territory')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25
SELECT DISTINCT ?sbj ?sbj_label WHERE { ?sbj wdt:P31 wd:Q14192199 . ?sbj wdt:P832 wd:Q196627 . ?sbj rdfs:label ?sbj_label . FILTER(CONTAINS(lcase(?sbj_label), 'territory')) . FILTER (lang(?sbj_label) = 'en') } LIMIT 25 
Northern Territory Northern Territory Australian Capital Territory Australian Capital Territory