Simple Question (Direct)
Simple Question
Q11737651
P20
Q56061
USER
Where did Kazimieras Franco Liaudis die ?
(Q11737651,P20,c(Q56061))
action filter_type
action find
entity Q11737651
relation P20
type Q56061
['Q11737651', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q11737651 property:P20 ?j }
Kazimieras Franco Liaudis
action filter_type
action find
entity Kazimieras Franco Liaudis
relation place of death
type administrative territorial entity
['Kazimieras Franco Liaudis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Kazimieras_Franco_Liaudis property:place_of_death ?j }
[]
administrative territorial entity
Q216
SYSTEM
Vilnius
Q216
(Q11737651,P20,c(Q56061))
action filter_type
action find
entity Q11737651
relation P20
type Q56061
Kazimieras Franco Liaudis died in [ANSWER]
['Q11737651', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q56061 . resource:Q11737651 property:P20 ?j }
Vilnius
Kazimieras Franco Liaudis died in Vilnius
Vilnius
action filter_type
action find
entity Kazimieras Franco Liaudis
relation place of death
type administrative territorial entity
['Kazimieras Franco Liaudis', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:administrative_territorial_entity . resource:Kazimieras_Franco_Liaudis property:place_of_death ?j }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q216
P276
Q1190554
USER
Which events have their location as that administrative territory ?
(c(Q1190554),P276,Q216)
action filter_type
action find_reverse
entity Q216
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q216']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q216 . ?q rdf:type ontology:Q1190554 }
Vilnius
action filter_type
action find_reverse
entity Vilnius
relation location
type event
[{'concept': 'event'}, 'location', 'Vilnius']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Vilnius . ?q rdf:type ontology:event }
[]
event
Q4090297 Q4087367 Q719515
SYSTEM
Battle of Wilno, Battle of Vilnius, Operation Ostra Brama
Q4090297 Q4087367 Q719515
(c(Q1190554),P276,Q216)
action filter_type
action find_reverse
entity Q216
relation P276
type Q1190554
[ANSWERS] have their location as that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q216']
SELECT DISTINCT ?q WHERE { ?q property:P276 resource:Q216 . ?q rdf:type ontology:Q1190554 }
Battle of Wilno Battle of Vilnius Operation Ostra Brama
Battle of Wilno, Battle of Vilnius and Operation Ostra Brama have their location as that administrative territory
Battle of Wilno Battle of Vilnius Operation Ostra Brama
action filter_type
action find_reverse
entity Vilnius
relation location
type event
[{'concept': 'event'}, 'location', 'Vilnius']
SELECT DISTINCT ?q WHERE { ?q property:location resource:Vilnius . ?q rdf:type ontology:event }
[]
Clarification
Simple Question|Single Entity|Indirect
Q4087367
P361
Q350604
USER
What is that event a portion of ?
(Q4087367,P361,c(Q350604))
action filter_type
action find
entity Q4087367
relation P361
type Q350604
['Q4087367', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?e WHERE { resource:Q4087367 property:P361 ?e . ?e rdf:type ontology:Q350604 }
Battle of Vilnius
action filter_type
action find
entity Battle of Vilnius
relation part of
type armed conflict
['Battle of Vilnius', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?e WHERE { resource:Battle_of_Vilnius property:part_of ?e . ?e rdf:type ontology:armed_conflict }
[]
armed conflict
Clarification for simple ques.
Q719515
SYSTEM
Did you mean Operation Ostra Brama ?
Q4090297 Q4087367 Q719515
(Q4090297,P361,c(Q350604)) (Q4087367,P361,c(Q350604)) (Q719515,P361,c(Q350604))
[ANSWER]
['Q4090297', 'P361', {'concept': 'Q350604'}] ['Q4087367', 'P361', {'concept': 'Q350604'}] ['Q719515', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?e WHERE { resource:Q4087367 property:P361 ?e . ?e rdf:type ontology:Q350604 }
Battle of Wilno Battle of Vilnius Operation Ostra Brama
Did you mean Operation Ostra Brama ?
Operation Ostra Brama
['Battle of Wilno', 'part of', {'concept': 'armed conflict'}] ['Battle of Vilnius', 'part of', {'concept': 'armed conflict'}] ['Operation Ostra Brama', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?e WHERE { resource:Battle_of_Vilnius property:part_of ?e . ?e rdf:type ontology:armed_conflict }
[]
Simple Question (Coreferenced)
USER
No, I meant Battle of Vilnius. Could you tell me the answer for that?
(Q4087367,P361,c(Q350604))
Q4087367
['Q4087367', 'P361', {'concept': 'Q350604'}]
['Battle of Vilnius', 'part of', {'concept': 'armed conflict'}]
[]
Q631991
SYSTEM
Russo-Polish War
Q631991
(Q4087367,P361,c(Q350604))
action filter_type
action find
entity Q4087367
relation P361
type Q350604
That event a portion of is the [ANSWER]
['Q4087367', 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?e WHERE { resource:Q4087367 property:P361 ?e . ?e rdf:type ontology:Q350604 }
Russo-Polish War
That event a portion of is the Russo-Polish War
Russo-Polish War
action filter_type
action find
entity Battle of Vilnius
relation part of
type armed conflict
['Battle of Vilnius', 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?e WHERE { resource:Battle_of_Vilnius property:part_of ?e . ?e rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4087367
P17
Q7275
USER
Which state does Battle of Vilnius belong to ?
(Q4087367,P17,c(Q7275))
action filter_type
action find
entity Q4087367
relation P17
type Q7275
['Q4087367', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q4087367 property:P17 ?l . ?l rdf:type ontology:Q7275 }
Battle of Vilnius
action filter_type
action find
entity Battle of Vilnius
relation country
type state
['Battle of Vilnius', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Battle_of_Vilnius property:country ?l . ?l rdf:type ontology:state }
[]
state
Q172107
SYSTEM
Polish–Lithuanian Commonwealth
Q172107
(Q4087367,P17,c(Q7275))
action filter_type
action find
entity Q4087367
relation P17
type Q7275
Battle of Vilnius belongs to [ANSWER]
['Q4087367', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?l WHERE { resource:Q4087367 property:P17 ?l . ?l rdf:type ontology:Q7275 }
Polish–Lithuanian Commonwealth
Battle of Vilnius belongs to Polish–Lithuanian Commonwealth
Polish–Lithuanian Commonwealth
action filter_type
action find
entity Battle of Vilnius
relation country
type state
['Battle of Vilnius', 'country', {'concept': 'state'}]
SELECT DISTINCT ?l WHERE { resource:Battle_of_Vilnius property:country ?l . ?l rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172107
P710
Q1190554
USER
Which events were that state a participant of ?
(c(Q1190554),P710,Q172107)
action filter_type
action find_reverse
entity Q172107
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q172107']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q172107 . ?q rdf:type ontology:Q1190554 }
Polish–Lithuanian Commonwealth
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation participant
type event
[{'concept': 'event'}, 'participant', 'Polish–Lithuanian Commonwealth']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Polish–Lithuanian_Commonwealth . ?q rdf:type ontology:event }
[]
event
Q541566 Q593045 Q546505
SYSTEM
Battle of Kolding, Battle of Berestechko, Battle of Stegeborg
Q593045 Q246863 Q546505 Q541566
(c(Q1190554),P710,Q172107)
action filter_type
action find_reverse
entity Q172107
relation P710
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q172107']
SELECT DISTINCT ?q WHERE { ?q property:P710 resource:Q172107 . ?q rdf:type ontology:Q1190554 }
Battle of Berestechko Livonian War Battle of Stegeborg Battle of Kolding
Which events were that state a participant of
Battle of Kolding Battle of Berestechko Battle of Stegeborg
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation participant
type event
[{'concept': 'event'}, 'participant', 'Polish–Lithuanian Commonwealth']
SELECT DISTINCT ?q WHERE { ?q property:participant resource:Polish–Lithuanian_Commonwealth . ?q rdf:type ontology:event }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172107
P122
Q22676587
USER
What best describes the type of government of Polish–Lithuanian Commonwealth ?
(Q172107,P122,c(Q22676587))
action filter_type
action find
entity Q172107
relation P122
type Q22676587
['Q172107', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?d WHERE { resource:Q172107 property:P122 ?d . ?d rdf:type ontology:Q22676587 }
Polish–Lithuanian Commonwealth
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation basic form of government
type monarchic system
['Polish–Lithuanian Commonwealth', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?d WHERE { resource:Polish–Lithuanian_Commonwealth property:basic_form_of_government ?d . ?d rdf:type ontology:monarchic_system }
[]
monarchic system
Q849242
SYSTEM
hereditary monarchy
Q849242
(Q172107,P122,c(Q22676587))
action filter_type
action find
entity Q172107
relation P122
type Q22676587
[ANSWER] best describes the type of government of Polish–Lithuanian Commonwealth
['Q172107', 'P122', {'concept': 'Q22676587'}]
SELECT DISTINCT ?d WHERE { resource:Q172107 property:P122 ?d . ?d rdf:type ontology:Q22676587 }
hereditary monarchy
Hereditary monarchy best describes the type of government of Polish–Lithuanian Commonwealth
hereditary monarchy
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation basic form of government
type monarchic system
['Polish–Lithuanian Commonwealth', 'basic form of government', {'concept': 'monarchic system'}]
SELECT DISTINCT ?d WHERE { resource:Polish–Lithuanian_Commonwealth property:basic_form_of_government ?d . ?d rdf:type ontology:monarchic_system }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P122
Q13417114 Q515
USER
How many noble families and cities have that monarchic system as the form of government ?
(c(Q13417114),P122,Q849242) (c(Q515),P122,Q849242) (c(Q13417114),P122,Q849242) (c(Q515),P122,Q849242)
action count
action union
action filter_type
action find_reverse
entity Q849242
relation P122
type Q13417114
action filter_type
action find_reverse
entity Q849242
relation P122
type Q515
[{'concept': 'Q13417114'}, 'P122', 'Q849242'] [{'concept': 'Q515'}, 'P122', 'Q849242'] [{'concept': 'Q13417114'}, 'P122', 'Q849242'] [{'concept': 'Q515'}, 'P122', 'Q849242']
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:Q13417114 ) ( ontology:Q515 ) } . ?o rdf:type ?d }
action count
action union
action filter_type
action find_reverse
entity hereditary monarchy
relation basic form of government
type noble family
action filter_type
action find_reverse
entity hereditary monarchy
relation basic form of government
type city
[{'concept': 'noble family'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'city'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'noble family'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'city'}, 'basic form of government', 'hereditary monarchy']
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:noble_family ) ( ontology:city ) } . ?o rdf:type ?d }
[]
noble family city
SYSTEM
2 noble families and 1 cities
Q199443 Q235 Q273874
(c(Q13417114),P122,Q849242) (c(Q515),P122,Q849242) (c(Q13417114),P122,Q849242) (c(Q515),P122,Q849242)
action count
action union
action filter_type
action find_reverse
entity Q849242
relation P122
type Q13417114
action filter_type
action find_reverse
entity Q849242
relation P122
type Q515
[ANSWER]
[{'concept': 'Q13417114'}, 'P122', 'Q849242'] [{'concept': 'Q515'}, 'P122', 'Q849242'] [{'concept': 'Q13417114'}, 'P122', 'Q849242'] [{'concept': 'Q515'}, 'P122', 'Q849242']
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:Q13417114 ) ( ontology:Q515 ) } . ?o rdf:type ?d }
Ghurid Dynasty Monaco Buyid dynasty
2 noble families and 1 cities
action count
action union
action filter_type
action find_reverse
entity hereditary monarchy
relation basic form of government
type noble family
action filter_type
action find_reverse
entity hereditary monarchy
relation basic form of government
type city
[{'concept': 'noble family'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'city'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'noble family'}, 'basic form of government', 'hereditary monarchy'] [{'concept': 'city'}, 'basic form of government', 'hereditary monarchy']
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { VALUES ( ?d ) { ( ontology:noble_family ) ( ontology:city ) } . ?o rdf:type ?d }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172107
P1376
Q56061
USER
Which administrative territories are center of administration for Polish–Lithuanian Commonwealth ?
(c(Q56061),P1376,Q172107)
action filter_type
action find_reverse
entity Q172107
relation P1376
type Q56061
[{'concept': 'Q56061'}, 'P1376', 'Q172107']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . ?c property:P1376 resource:Q172107 }
Polish–Lithuanian Commonwealth
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Polish–Lithuanian Commonwealth']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . ?c property:capital_of resource:Polish–Lithuanian_Commonwealth }
[]
administrative territorial entity
Q270 Q216
SYSTEM
Warsaw, Vilnius
Q270 Q216
(c(Q56061),P1376,Q172107)
action filter_type
action find_reverse
entity Q172107
relation P1376
type Q56061
[ANSWERS] are center of administration for Polish–Lithuanian Commonwealth
[{'concept': 'Q56061'}, 'P1376', 'Q172107']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q56061 . ?c property:P1376 resource:Q172107 }
Warsaw Vilnius
Warsaw and Vilnius are center of administration for Polish–Lithuanian Commonwealth
Warsaw Vilnius
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation capital of
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'capital of', 'Polish–Lithuanian Commonwealth']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:administrative_territorial_entity . ?c property:capital_of resource:Polish–Lithuanian_Commonwealth }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q216
P138
Q355304
USER
Which watercourse is the origin of Vilnius ?
(Q216,P138,c(Q355304))
action filter_type
action find
entity Q216
relation P138
type Q355304
['Q216', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q216 property:P138 ?a . ?a rdf:type ontology:Q355304 }
Vilnius
action filter_type
action find
entity Vilnius
relation named after
type watercourse
['Vilnius', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Vilnius property:named_after ?a . ?a rdf:type ontology:watercourse }
[]
watercourse
Q661684
SYSTEM
Vilnia River
Q661684
(Q216,P138,c(Q355304))
action filter_type
action find
entity Q216
relation P138
type Q355304
The origin of Vilnius is the [ANSWER]
['Q216', 'P138', {'concept': 'Q355304'}]
SELECT DISTINCT ?a WHERE { resource:Q216 property:P138 ?a . ?a rdf:type ontology:Q355304 }
Vilnia River
The origin of Vilnius is the Vilnia River
Vilnia River
action filter_type
action find
entity Vilnius
relation named after
type watercourse
['Vilnius', 'named after', {'concept': 'watercourse'}]
SELECT DISTINCT ?a WHERE { resource:Vilnius property:named_after ?a . ?a rdf:type ontology:watercourse }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q172107
P37
Q34770
USER
What are the official languages of Polish–Lithuanian Commonwealth ?
(Q172107,P37,c(Q34770))
action filter_type
action find
entity Q172107
relation P37
type Q34770
['Q172107', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q172107 property:P37 ?k . ?k rdf:type ontology:Q34770 }
Polish–Lithuanian Commonwealth
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation official language
type language
['Polish–Lithuanian Commonwealth', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Polish–Lithuanian_Commonwealth property:official_language ?k . ?k rdf:type ontology:language }
[]
language
Q397 Q13211
SYSTEM
Latin, Ruthenian
Q397 Q13211
(Q172107,P37,c(Q34770))
action filter_type
action find
entity Q172107
relation P37
type Q34770
The official languages of Polish – Lithuanian are in [ANSWERS]
['Q172107', 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q172107 property:P37 ?k . ?k rdf:type ontology:Q34770 }
Latin Ruthenian
The official languages of Polish – Lithuanian are in Latin and Ruthenian
Latin Ruthenian
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation official language
type language
['Polish–Lithuanian Commonwealth', 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:Polish–Lithuanian_Commonwealth property:official_language ?k . ?k rdf:type ontology:language }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q172107
P361
Q7275
USER
Which states are a part of that one ?
(c(Q7275),P361,Q397) (c(Q7275),P361,Q13211)
action filter_type
action find_reverse
entity Q172107
relation P361
type Q7275
[{'concept': 'Q7275'}, 'P361', 'Q397'] [{'concept': 'Q7275'}, 'P361', 'Q13211']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . ?p property:P361 resource:Q172107 }
Polish–Lithuanian Commonwealth
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation part of
type state
[{'concept': 'state'}, 'part of', 'Latin'] [{'concept': 'state'}, 'part of', 'Ruthenian']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . ?p property:part_of resource:Polish–Lithuanian_Commonwealth }
[]
state
Q171348 Q49683
SYSTEM
Crown of the Kingdom of Poland, Grand Duchy of Lithuania
Q171348 Q49683
(c(Q7275),P361,Q397) (c(Q7275),P361,Q13211)
action filter_type
action find_reverse
entity Q172107
relation P361
type Q7275
[ANSWERS] are a part of that one
[{'concept': 'Q7275'}, 'P361', 'Q397'] [{'concept': 'Q7275'}, 'P361', 'Q13211']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q7275 . ?p property:P361 resource:Q172107 }
Crown of the Kingdom of Poland Grand Duchy of Lithuania
Crown of the Kingdom of Poland and Grand Duchy of Lithuania are a part of that one
Crown of the Kingdom of Poland Grand Duchy of Lithuania
action filter_type
action find_reverse
entity Polish–Lithuanian Commonwealth
relation part of
type state
[{'concept': 'state'}, 'part of', 'Latin'] [{'concept': 'state'}, 'part of', 'Ruthenian']
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:state . ?p property:part_of resource:Polish–Lithuanian_Commonwealth }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P36
Q486972 Q20667921 Q7275
USER
Which states contain exactly 1 human settlements or french administrative divisions as their capital ?
(c(Q7275),P36,c(Q486972)|c(Q20667921))
action equal
action union
action find_tuple_counts
relation P36
type Q7275
type Q486972
action find_tuple_counts
relation P36
type Q7275
type Q20667921
value 1
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?t ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?e rdf:type ?t } GROUP BY ?b } . FILTER ( ?i = 1 ) }
action equal
action union
action find_tuple_counts
relation capital
type state
type human settlement
action find_tuple_counts
relation capital
type state
type type of french administrative division
value 1
[{'concept': 'state'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?t ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?t } GROUP BY ?b } . FILTER ( ?i = 1 ) }
[]
human settlement type of french administrative division state
Q16957 Q172107 Q112558
SYSTEM
East Germany, Polish–Lithuanian Commonwealth, Republic of Saugeais
Q3456417 Q1649871 Q2361927 Q953432 Q129569 Q216173 Q16957 Q172107 Q797422 Q235030 Q842091 Q112558 Q487829
(c(Q7275),P36,c(Q486972)|c(Q20667921))
action equal
action union
action find_tuple_counts
relation P36
type Q7275
type Q486972
action find_tuple_counts
relation P36
type Q7275
type Q20667921
value 1
[ANSWERS] contain exactly 1 human settlements or french administrative divisions as their capital
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q486972'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?t ) { ( ontology:Q486972 ) ( ontology:Q20667921 ) } . ?e rdf:type ?t } GROUP BY ?b } . FILTER ( ?i = 1 ) }
Republic of Saint-Malo Kingdom of Poland Duchy of Masovia Couto Misto Poher Free City of Danzig East Germany Polish–Lithuanian Commonwealth Republic of Upper Volta Principality of Antioch Duchy of Normandy Republic of Saugeais Chagatai Khanate
East Germany, Polish–Lithuanian Commonwealth and Republic of Saugeais contain exactly 1 human settlements or french administrative divisions as their capital
East Germany Polish–Lithuanian Commonwealth Republic of Saugeais
action equal
action union
action find_tuple_counts
relation capital
type state
type human settlement
action find_tuple_counts
relation capital
type state
type type of french administrative division
value 1
[{'concept': 'state'}, 'capital', [{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?i ) WHERE { VALUES ( ?t ) { ( ontology:human_settlement ) ( ontology:type_of_french_administrative_division ) } . ?e rdf:type ?t } GROUP BY ?b } . FILTER ( ?i = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q184 Q172107
P17
Q56061
USER
Which administrative territories are situated in Polish–Lithuanian Commonwealth and Belarus ?
AND((c(Q56061),P17,Q172107), (c(Q56061),P17,Q184))
action filter_type
action intersection
action find_reverse
entity Q172107
relation P17
action find_reverse
entity Q184
relation P17
type Q56061
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q172107'], [{'concept': 'Q56061'}, 'P17', 'Q184']]}
SELECT DISTINCT ?u WHERE { ?u property:P17 resource:Q172107 . ?u property:P17 resource:Q184 . ?u rdf:type ontology:Q56061 }
Belarus Polish–Lithuanian Commonwealth
action filter_type
action intersection
action find_reverse
entity Polish–Lithuanian Commonwealth
relation country
action find_reverse
entity Belarus
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'Polish–Lithuanian Commonwealth'], [{'concept': 'administrative territorial entity'}, 'country', 'Belarus']]}
SELECT DISTINCT ?u WHERE { ?u property:country resource:Polish–Lithuanian_Commonwealth . ?u property:country resource:Belarus . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q140147 Q181376 Q2579602 Q204150 Q102217 Q241475
SYSTEM
Brest, Grodno, Merechevschina, Pinsk, Vitebsk, Lida
Q140147 Q181376 Q2579602 Q204150 Q102217 Q241475
AND((c(Q56061),P17,Q172107), (c(Q56061),P17,Q184))
action filter_type
action intersection
action find_reverse
entity Q172107
relation P17
action find_reverse
entity Q184
relation P17
type Q56061
[ANSWERS] are situated in Polish–Lithuanian Commonwealth and Belarus
{'AND': [[{'concept': 'Q56061'}, 'P17', 'Q172107'], [{'concept': 'Q56061'}, 'P17', 'Q184']]}
SELECT DISTINCT ?u WHERE { ?u property:P17 resource:Q172107 . ?u property:P17 resource:Q184 . ?u rdf:type ontology:Q56061 }
Brest Grodno Merechevschina Pinsk Vitebsk Lida
Brest, Grodno, Merechevschina, Pinsk, Vitebsk and Lida are situated in Polish–Lithuanian Commonwealth and Belarus
Brest Grodno Merechevschina Pinsk Vitebsk Lida
action filter_type
action intersection
action find_reverse
entity Polish–Lithuanian Commonwealth
relation country
action find_reverse
entity Belarus
relation country
type administrative territorial entity
{'AND': [[{'concept': 'administrative territorial entity'}, 'country', 'Polish–Lithuanian Commonwealth'], [{'concept': 'administrative territorial entity'}, 'country', 'Belarus']]}
SELECT DISTINCT ?u WHERE { ?u property:country resource:Polish–Lithuanian_Commonwealth . ?u property:country resource:Belarus . ?u rdf:type ontology:administrative_territorial_entity }
[]