What is {basic form of government} of {Polish–Lithuanian Commonwealth} that is {end time} is {1795-1-1} ?
Which form of government for the Polish-Lithuanian Commonwealth ended in 1795?
What basic form of government for the Polish-Lithuanian Commonwealth ended in 1795?
SELECT ?o WHERE { ?g property:end_time ?u . resource:Polish–Lithuanian_Commonwealth property:basic_form_of_government ?g . FILTER ( CONTAINS ( YEAR ( ?u ) , '1795' ) ) . ?g property:basic_form_of_government ?o }
select distinct ?obj  where {
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#subject> <http://wikidata.dbpedia.org/resource/Q172107> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#predicate> <http://www.wikidata.org/entity/P122> .
?statement <http://www.w3.org/1999/02/22-rdf-syntax-ns#object> ?obj .
?statement <http://www.wikidata.org/entity/P582> <1795-1-1>
} 

SELECT ?obj WHERE { wd:Q172107 p:P122 ?s . ?s ps:P122 ?obj . ?s pq:P582 ?x filter(contains(YEAR(?x),'1795')) }