Simple Question (Direct)
Simple Question
Q52628
P47
Q15617994
USER
Who share the border with Palazzo San Gervasio ?
(Q52628,P47,c(Q15617994))
action filter_type
action find
entity Q52628
relation P47
type Q15617994
['Q52628', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q52628 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Palazzo San Gervasio
action filter_type
action find
entity Palazzo San Gervasio
relation shares border with
type designation for an administrative territorial entity
['Palazzo San Gervasio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Palazzo_San_Gervasio property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q52691 Q23253 Q52593
SYSTEM
Venosa, Spinazzola, Lavello
Q52691 Q52606 Q52593 Q52574 Q23253 Q52610 Q52527 Q52571 Q52511
(Q52628,P47,c(Q15617994))
action filter_type
action find
entity Q52628
relation P47
type Q15617994
[ANSWERS] share the border with Palazzo San Gervasio
['Q52628', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q52628 property:P47 ?i . ?i rdf:type ontology:Q15617994 }
Venosa Maschito Lavello Genzano di Lucania Spinazzola Montemilone Banzi Forenza Acerenza
Venosa, Spinazzola and Lavello share the border with Palazzo San Gervasio
Venosa Spinazzola Lavello
action filter_type
action find
entity Palazzo San Gervasio
relation shares border with
type designation for an administrative territorial entity
['Palazzo San Gervasio', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Palazzo_San_Gervasio property:shares_border_with ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q52691 Q23253 Q52593
P190
Q15617994
USER
Which administrative territories are twin town of those ones ?
(c(Q15617994),P190,Q52691) (c(Q15617994),P190,Q23253) (c(Q15617994),P190,Q52593)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q15617994
[{'concept': 'Q15617994'}, 'P190', 'Q52691'] [{'concept': 'Q15617994'}, 'P190', 'Q23253'] [{'concept': 'Q15617994'}, 'P190', 'Q52593']
SELECT DISTINCT ?o WHERE { ?o property:P190 ?e . ?o rdf:type ontology:Q15617994 . VALUES ( ?e ) { ( resource:Q52691 ) ( resource:Q52606 ) ( resource:Q52593 ) } }
Venosa Spinazzola Lavello
action filter_type
action find_reverse
entity prev_answer
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Venosa'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Spinazzola'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Lavello']
SELECT DISTINCT ?o WHERE { ?o property:sister_city ?e . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?e ) { ( resource:Venosa ) ( resource:Maschito ) ( resource:Lavello ) } }
[]
designation for an administrative territorial entity
Q3639 Q180032 Q13659
SYSTEM
Verbania, Tuscania, Tortolì
Q52279 Q13659 Q53866 Q3639 Q180032
(c(Q15617994),P190,Q52691) (c(Q15617994),P190,Q23253) (c(Q15617994),P190,Q52593)
action filter_type
action find_reverse
entity prev_answer
relation P190
type Q15617994
[ANSWERS] are twin town of those ones
[{'concept': 'Q15617994'}, 'P190', 'Q52691'] [{'concept': 'Q15617994'}, 'P190', 'Q23253'] [{'concept': 'Q15617994'}, 'P190', 'Q52593']
SELECT DISTINCT ?o WHERE { ?o property:P190 ?e . ?o rdf:type ontology:Q15617994 . VALUES ( ?e ) { ( resource:Q52691 ) ( resource:Q52606 ) ( resource:Q52593 ) } }
Bernalda Tortolì Cetraro Verbania Tuscania
Verbania, Tuscania and Tortolì are twin town of those ones
Verbania Tuscania Tortolì
action filter_type
action find_reverse
entity prev_answer
relation sister city
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Venosa'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Spinazzola'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Lavello']
SELECT DISTINCT ?o WHERE { ?o property:sister_city ?e . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . VALUES ( ?e ) { ( resource:Venosa ) ( resource:Maschito ) ( resource:Lavello ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q52691
P19
Q502895
USER
Who were born at Venosa ?
(c(Q502895),P19,Q52691)
action filter_type
action find_reverse
entity Q52691
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q52691']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P19 resource:Q52691 }
Venosa
action filter_type
action find_reverse
entity Venosa
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Venosa']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_birth resource:Venosa }
[]
common name
Q164889 Q7819075 Q6197
SYSTEM
Manfred, King of Sicily, Tommaso Marolda, Horace
Q3732171 Q3708451 Q19413193 Q3726439 Q3848501 Q15711032 Q23818796 Q3611517 Q809505 Q3897038 Q3839762 Q3929045 Q4776635 Q3767823 Q6197 Q3762037 Q7819075 Q602901 Q3677343 Q1396092 Q2160198 Q707853 Q4013541 Q192958 Q3934658 Q2601491 Q164889 Q3724016
(c(Q502895),P19,Q52691)
action filter_type
action find_reverse
entity Q52691
relation P19
type Q502895
[ANSWERS] were born at Venosa
[{'concept': 'Q502895'}, 'P19', 'Q52691']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . ?h property:P19 resource:Q52691 }
Ernesto Battaglini Diodato Lioy Savino Sileno Enzio Di Poppa Volture Mario de Bernardi Vincenzo Leggieri Donato Briscese Alfredo Viviani Bartolomeo Maranta Pasquale Del Giudice Luigi La Vista Raffaele Ciriello Antonio Gammone Giovanni Ninni Horace Giacomo Cenna Tommaso Marolda Giovanni Battista de Luca Cinzia Giorgio Giacomo Di Chirico Rocco Talucci Luigi Tansillo Vincenzo Tangorra Carlo Gesualdo Riccardo da Venosa Luigi Frusci Manfred, King of Sicily Emanuele Virgilio
Manfred, King of Sicily, Tommaso Marolda and Horace were born at Venosa
Manfred, King of Sicily Tommaso Marolda Horace
action filter_type
action find_reverse
entity Venosa
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Venosa']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . ?h property:place_of_birth resource:Venosa }
[]
Clarification
Simple Question|Single Entity|Indirect
Q164889
P1441
Q2342494
USER
Which collectable is that person present in ?
(Q164889,P1441,c(Q2342494))
action filter_type
action find
entity Q164889
relation P1441
type Q2342494
['Q164889', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?f WHERE { resource:Q164889 property:P1441 ?f . ?f rdf:type ontology:Q2342494 }
Manfred, King of Sicily
action filter_type
action find
entity Manfred, King of Sicily
relation present in work
type collectable
['Manfred, King of Sicily', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?f WHERE { resource:Manfred,_King_of_Sicily property:present_in_work ?f . ?f rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q7819075
SYSTEM
Did you mean Tommaso Marolda ?
Q164889 Q7819075 Q6197
(Q164889,P1441,c(Q2342494)) (Q7819075,P1441,c(Q2342494)) (Q6197,P1441,c(Q2342494))
[ANSWER]
['Q164889', 'P1441', {'concept': 'Q2342494'}] ['Q7819075', 'P1441', {'concept': 'Q2342494'}] ['Q6197', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?f WHERE { resource:Q164889 property:P1441 ?f . ?f rdf:type ontology:Q2342494 }
Manfred, King of Sicily Tommaso Marolda Horace
Did you mean Tommaso Marolda ?
Tommaso Marolda
['Manfred, King of Sicily', 'present in work', {'concept': 'collectable'}] ['Tommaso Marolda', 'present in work', {'concept': 'collectable'}] ['Horace', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?f WHERE { resource:Manfred,_King_of_Sicily property:present_in_work ?f . ?f rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant Manfred, King of Sicily. Could you tell me the answer for that?
(Q164889,P1441,c(Q2342494))
Q164889
['Q164889', 'P1441', {'concept': 'Q2342494'}]
['Manfred, King of Sicily', 'present in work', {'concept': 'collectable'}]
[]
Q16438
SYSTEM
The Decameron
Q16438
(Q164889,P1441,c(Q2342494))
action filter_type
action find
entity Q164889
relation P1441
type Q2342494
That person is in [ANSWER]
['Q164889', 'P1441', {'concept': 'Q2342494'}]
SELECT DISTINCT ?f WHERE { resource:Q164889 property:P1441 ?f . ?f rdf:type ontology:Q2342494 }
The Decameron
That person is in The Decameron
The Decameron
action filter_type
action find
entity Manfred, King of Sicily
relation present in work
type collectable
['Manfred, King of Sicily', 'present in work', {'concept': 'collectable'}]
SELECT DISTINCT ?f WHERE { resource:Manfred,_King_of_Sicily property:present_in_work ?f . ?f rdf:type ontology:collectable }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q38 Q13659
P47 P17
Q15617994
USER
Which administrative territories do Tortolì share a border with and are situated in Italy ?
AND((c(Q15617994),P47,Q13659), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q13659
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q13659'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?n WHERE { ?n property:P47 resource:Q13659 . ?n property:P17 resource:Q38 . ?n rdf:type ontology:Q15617994 }
Italy Tortolì
action filter_type
action intersection
action find_reverse
entity Tortolì
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tortolì'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?n WHERE { ?n property:shares_border_with resource:Tortolì . ?n property:country resource:Italy . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q340616 Q339713 Q339898 Q340042 Q339968 Q339728
SYSTEM
Villagrande Strisaili, Arzana, Elini, Lotzorai, Ilbono, Bari Sardo
Q340616 Q339713 Q339898 Q340042 Q339968 Q339728
AND((c(Q15617994),P47,Q13659), (c(Q15617994),P17,Q38))
action filter_type
action intersection
action find_reverse
entity Q13659
relation P47
action find_reverse
entity Q38
relation P17
type Q15617994
Tortolì share a border with [ANSWERS]
{'AND': [[{'concept': 'Q15617994'}, 'P47', 'Q13659'], [{'concept': 'Q15617994'}, 'P17', 'Q38']]}
SELECT DISTINCT ?n WHERE { ?n property:P47 resource:Q13659 . ?n property:P17 resource:Q38 . ?n rdf:type ontology:Q15617994 }
Villagrande Strisaili Arzana Elini Lotzorai Ilbono Bari Sardo
Tortolì share a border with Villagrande Strisaili, Arzana, Elini, Lotzorai, Ilbono and Bari Sardo
Villagrande Strisaili Arzana Elini Lotzorai Ilbono Bari Sardo
action filter_type
action intersection
action find_reverse
entity Tortolì
relation shares border with
action find_reverse
entity Italy
relation country
type designation for an administrative territorial entity
{'AND': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Tortolì'], [{'concept': 'designation for an administrative territorial entity'}, 'country', 'Italy']]}
SELECT DISTINCT ?n WHERE { ?n property:shares_border_with resource:Tortolì . ?n property:country resource:Italy . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P47
Q56061 Q15617994
USER
How many administrative territories and administrative territories are bordered by that administrative territory ?
(Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q340616,P47,c(Q56061)) (Q340616,P47,c(Q15617994)) (Q339713,P47,c(Q56061)) (Q339713,P47,c(Q15617994)) (Q339898,P47,c(Q56061)) (Q339898,P47,c(Q15617994)) (Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q339968,P47,c(Q56061)) (Q339968,P47,c(Q15617994)) (Q339728,P47,c(Q56061)) (Q339728,P47,c(Q15617994))
['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q340616', 'P47', {'concept': 'Q56061'}] ['Q340616', 'P47', {'concept': 'Q15617994'}] ['Q339713', 'P47', {'concept': 'Q56061'}] ['Q339713', 'P47', {'concept': 'Q15617994'}] ['Q339898', 'P47', {'concept': 'Q56061'}] ['Q339898', 'P47', {'concept': 'Q15617994'}] ['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q339968', 'P47', {'concept': 'Q56061'}] ['Q339968', 'P47', {'concept': 'Q15617994'}] ['Q339728', 'P47', {'concept': 'Q56061'}] ['Q339728', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q340616 property:P47 ?z } UNION { resource:Q340616 property:P47 ?y } UNION { resource:Q339713 property:P47 ?z } UNION { resource:Q339713 property:P47 ?y } UNION { resource:Q339898 property:P47 ?z } UNION { resource:Q339898 property:P47 ?y } UNION { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q339968 property:P47 ?z } UNION { resource:Q339968 property:P47 ?y } UNION { resource:Q339728 property:P47 ?z } UNION { resource:Q339728 property:P47 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Villagrande_Strisaili property:shares_border_with ?z } UNION { resource:Villagrande_Strisaili property:shares_border_with ?y } UNION { resource:Arzana property:shares_border_with ?z } UNION { resource:Arzana property:shares_border_with ?y } UNION { resource:Elini property:shares_border_with ?z } UNION { resource:Elini property:shares_border_with ?y } UNION { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Ilbono property:shares_border_with ?z } UNION { resource:Ilbono property:shares_border_with ?y } UNION { resource:Bari_Sardo property:shares_border_with ?z } UNION { resource:Bari_Sardo property:shares_border_with ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
administrative territorial entity designation for an administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q339713
SYSTEM
Did you mean Arzana ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q340616 property:P47 ?z } UNION { resource:Q340616 property:P47 ?y } UNION { resource:Q339713 property:P47 ?z } UNION { resource:Q339713 property:P47 ?y } UNION { resource:Q339898 property:P47 ?z } UNION { resource:Q339898 property:P47 ?y } UNION { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q339968 property:P47 ?z } UNION { resource:Q339968 property:P47 ?y } UNION { resource:Q339728 property:P47 ?z } UNION { resource:Q339728 property:P47 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Did you mean Arzana ?
Arzana
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Villagrande_Strisaili property:shares_border_with ?z } UNION { resource:Villagrande_Strisaili property:shares_border_with ?y } UNION { resource:Arzana property:shares_border_with ?z } UNION { resource:Arzana property:shares_border_with ?y } UNION { resource:Elini property:shares_border_with ?z } UNION { resource:Elini property:shares_border_with ?y } UNION { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Ilbono property:shares_border_with ?z } UNION { resource:Ilbono property:shares_border_with ?y } UNION { resource:Bari_Sardo property:shares_border_with ?z } UNION { resource:Bari_Sardo property:shares_border_with ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Lotzorai. Could you tell me the answer for that?
(Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q340616,P47,c(Q56061)) (Q340616,P47,c(Q15617994)) (Q339713,P47,c(Q56061)) (Q339713,P47,c(Q15617994)) (Q339898,P47,c(Q56061)) (Q339898,P47,c(Q15617994)) (Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q339968,P47,c(Q56061)) (Q339968,P47,c(Q15617994)) (Q339728,P47,c(Q56061)) (Q339728,P47,c(Q15617994))
Q340042
['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q340616', 'P47', {'concept': 'Q56061'}] ['Q340616', 'P47', {'concept': 'Q15617994'}] ['Q339713', 'P47', {'concept': 'Q56061'}] ['Q339713', 'P47', {'concept': 'Q15617994'}] ['Q339898', 'P47', {'concept': 'Q56061'}] ['Q339898', 'P47', {'concept': 'Q15617994'}] ['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q339968', 'P47', {'concept': 'Q56061'}] ['Q339968', 'P47', {'concept': 'Q15617994'}] ['Q339728', 'P47', {'concept': 'Q56061'}] ['Q339728', 'P47', {'concept': 'Q15617994'}]
['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
6
Q340612 Q340610 Q340616 Q339776 Q339943 Q13659
(Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q340616,P47,c(Q56061)) (Q340616,P47,c(Q15617994)) (Q339713,P47,c(Q56061)) (Q339713,P47,c(Q15617994)) (Q339898,P47,c(Q56061)) (Q339898,P47,c(Q15617994)) (Q340042,P47,c(Q56061)) (Q340042,P47,c(Q15617994)) (Q339968,P47,c(Q56061)) (Q339968,P47,c(Q15617994)) (Q339728,P47,c(Q56061)) (Q339728,P47,c(Q15617994))
[ANSWER]
['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q340616', 'P47', {'concept': 'Q56061'}] ['Q340616', 'P47', {'concept': 'Q15617994'}] ['Q339713', 'P47', {'concept': 'Q56061'}] ['Q339713', 'P47', {'concept': 'Q15617994'}] ['Q339898', 'P47', {'concept': 'Q56061'}] ['Q339898', 'P47', {'concept': 'Q15617994'}] ['Q340042', 'P47', {'concept': 'Q56061'}] ['Q340042', 'P47', {'concept': 'Q15617994'}] ['Q339968', 'P47', {'concept': 'Q56061'}] ['Q339968', 'P47', {'concept': 'Q15617994'}] ['Q339728', 'P47', {'concept': 'Q56061'}] ['Q339728', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q340616 property:P47 ?z } UNION { resource:Q340616 property:P47 ?y } UNION { resource:Q339713 property:P47 ?z } UNION { resource:Q339713 property:P47 ?y } UNION { resource:Q339898 property:P47 ?z } UNION { resource:Q339898 property:P47 ?y } UNION { resource:Q340042 property:P47 ?z } UNION { resource:Q340042 property:P47 ?y } UNION { resource:Q339968 property:P47 ?z } UNION { resource:Q339968 property:P47 ?y } UNION { resource:Q339728 property:P47 ?z } UNION { resource:Q339728 property:P47 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q15617994 }
Triei Talana Villagrande Strisaili Baunei Girasole Tortolì
6
['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'administrative territorial entity'}] ['Villagrande Strisaili', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'administrative territorial entity'}] ['Arzana', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'administrative territorial entity'}] ['Elini', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'administrative territorial entity'}] ['Lotzorai', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'administrative territorial entity'}] ['Ilbono', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'administrative territorial entity'}] ['Bari Sardo', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Villagrande_Strisaili property:shares_border_with ?z } UNION { resource:Villagrande_Strisaili property:shares_border_with ?y } UNION { resource:Arzana property:shares_border_with ?z } UNION { resource:Arzana property:shares_border_with ?y } UNION { resource:Elini property:shares_border_with ?z } UNION { resource:Elini property:shares_border_with ?y } UNION { resource:Lotzorai property:shares_border_with ?z } UNION { resource:Lotzorai property:shares_border_with ?y } UNION { resource:Ilbono property:shares_border_with ?z } UNION { resource:Ilbono property:shares_border_with ?y } UNION { resource:Bari_Sardo property:shares_border_with ?z } UNION { resource:Bari_Sardo property:shares_border_with ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q158876
P138
Q486972 Q15619164 Q15617994
USER
Which administrative territories are named after less number of human settlements or abstract beings than Reinickendorf ?
(c(Q15617994),P138,c(Q486972)|c(Q15619164))
action less
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action count
action filter_multi_types
action find
entity Q158876
relation P138
type Q486972
type Q15619164
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { VALUES ( ?w ) { ( ontology:Q15619164 ) ( ontology:Q486972 ) } . ?s rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q158876 property:P138 ?o . { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q486972 ) } } } } . FILTER ( ?x < ?u ) }
Reinickendorf
action less
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action count
action filter_multi_types
action find
entity Reinickendorf
relation named after
type human settlement
type abstract being
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { VALUES ( ?w ) { ( ontology:abstract_being ) ( ontology:human_settlement ) } . ?s rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Reinickendorf property:named_after ?o . { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:human_settlement ) } } } } . FILTER ( ?x < ?u ) }
[]
human settlement abstract being designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q1093 Q12536 Q12740 Q189 Q12820 Q1090684 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q3240 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q1508919 Q979470 Q3259 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q12694 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q1452646 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q1366860 Q12788 Q12584 Q12580 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q1101 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q2921370 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q217 Q12736 Q12642 Q160307 Q12761 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q1393469 Q27 Q1011 Q1013 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q2528268 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q486972)|c(Q15619164))
action less
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action count
action filter_multi_types
action find
entity Q158876
relation P138
type Q486972
type Q15619164
[ANSWERS] are named after less number of human settlements or abstract beings than Reinickendorf
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { VALUES ( ?w ) { ( ontology:Q15619164 ) ( ontology:Q486972 ) } . ?s rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Q158876 property:P138 ?o . { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:Q15619164 ) ( ontology:Q486972 ) } } } } . FILTER ( ?x < ?u ) }
North Holland Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Limburg Abbasid caliphate Sarthe Iceland Yvelines Montserrat Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Bouches-du-Rhône Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Marengo Seine-et-Oise Cantal Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Puy-de-Dôme Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Montenotte Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Escaut Val-de-Marne Maine-et-Loire Lozère Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques North Brabant Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Republic of Moldova Saône-et-Loire Morbihan Fatimid caliphate Seine-Saint-Denis Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Jemmapes Ireland Cape Verde Lesotho Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Mont-Blanc Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
Brazil, United States of America and Georgia are named after less number of human settlements or abstract beings than Reinickendorf
Brazil United States of America Georgia
action less
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action count
action filter_multi_types
action find
entity Reinickendorf
relation named after
type human settlement
type abstract being
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?x ) ?t WHERE { VALUES ( ?w ) { ( ontology:abstract_being ) ( ontology:human_settlement ) } . ?s rdf:type ?w } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?u ) WHERE { resource:Reinickendorf property:named_after ?o . { ?o rdf:type ?g . VALUES ( ?g ) { ( ontology:abstract_being ) ( ontology:human_settlement ) } } } } . FILTER ( ?x < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q79
P138
Q486972 Q15619164 Q15617994
USER
And also tell me about Egypt?
(c(Q15617994),P138,c(Q486972)|c(Q15619164))
action less
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action count
action filter_multi_types
action find
entity Q79
relation P138
type Q486972
type Q15619164
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?j rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 . ?x property:P138 ?j } UNION { ?x property:P138 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15619164 } } GROUP BY ?x } . FILTER ( ?m < ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Q79 property:P138 ?q . { { ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q15619164 } } } } }
Egypt
action less
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action count
action filter_multi_types
action find
entity Egypt
relation named after
type human settlement
type abstract being
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?j rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:named_after ?j } UNION { ?x property:named_after ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:abstract_being } } GROUP BY ?x } . FILTER ( ?m < ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Egypt property:named_after ?q . { { ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:abstract_being } } } } }
[]
human settlement abstract being designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q701 Q968630 Q705 Q3216 Q707 Q1087137 Q709 Q1421544 Q12789 Q1027 Q12779 Q124000 Q12631 Q1041 Q3305157 Q492430 Q668 Q10919 Q2567507 Q3278 Q12563 Q142 Q33 Q685048 Q21671144 Q801 Q12538 Q1093 Q12536 Q12740 Q189 Q12820 Q1090684 Q657 Q3184 Q1098820 Q1452650 Q12594 Q3349 Q378004 Q568751 Q2316529 Q2803031 Q711 Q710 Q1979 Q625403 Q691368 Q1817784 Q199974 Q2998020 Q3083 Q7408058 Q1939894 Q3240 Q1028 Q12772 Q3286 Q691890 Q3249 Q12607 Q2310748 Q3164 Q15055472 Q1465069 Q12572 Q554491 Q159 Q686924 Q598193 Q1090678 Q12556 Q12526 Q12689 Q12753 Q624428 Q155 Q1232680 Q2527360 Q699731 Q290739 Q3377 Q12576 Q3372 Q231168 Q739 Q12589 Q2521404 Q12574 Q957825 Q1270638 Q3093 Q161258 Q1965 Q1508919 Q979470 Q3259 Q786 Q1142326 Q10957559 Q5015782 Q676543 Q1270648 Q2758 Q12694 Q3563282 Q12745 Q12515 Q451448 Q12517 Q3368 Q32 Q31 Q30 Q924 Q36 Q12770 Q928 Q3361 Q39 Q3364 Q302479 Q2514636 Q1452646 Q986 Q541095 Q20211 Q3148 Q219 Q1390630 Q736 Q2567535 Q12798 Q4336071 Q1032 Q1508927 Q11140 Q3068 Q12792 Q676178 Q1268811 Q1338277 Q236 Q492437 Q230 Q221 Q232 Q233 Q2304605 Q1914678 Q282355 Q238 Q12620 Q566032 Q12661 Q20 Q4229407 Q621869 Q1042 Q475659 Q691265 Q28 Q1366860 Q12788 Q12584 Q12580 Q1025 Q683555 Q1020 Q2009 Q843 Q12709 Q184 Q548396 Q1029 Q3336 Q1206596 Q3334 Q541811 Q707950 Q3131 Q7084 Q1904 Q27495866 Q12784 Q12578 Q12717 Q3139 Q12782 Q3342 Q12559 Q558771 Q12679 Q12700 Q12703 Q1101 Q12675 Q811 Q1270623 Q347 Q71090 Q1989 Q4165945 Q21915715 Q902 Q153402 Q3207 Q974 Q3120 Q894972 Q894971 Q14810 Q967 Q962 Q963 Q2921370 Q694 Q3125 Q114 Q117 Q81751 Q12569 Q2921378 Q1788988 Q754 Q752 Q750 Q12730 Q12657 Q20095245 Q217 Q12736 Q12642 Q160307 Q12761 Q505607 Q6661829 Q2295479 Q2115819 Q912 Q1270568 Q1270636 Q2136219 Q3514973 Q1090691 Q12765 Q1005 Q977 Q1019 Q1008 Q3509886 Q971 Q3194 Q3113 Q568833 Q252157 Q12652 Q3110307 Q894973 Q541589 Q20310 Q760 Q1033 Q11301 Q1030 Q12804 Q12808 Q894970 Q12722 Q784 Q3326 Q1234961 Q12553 Q3528124 Q775 Q15060143 Q776 Q810 Q770 Q773 Q46130 Q1393469 Q27 Q1011 Q1013 Q4149 Q12549 Q3266 Q12626 Q8575586 Q12543 Q3105 Q12545 Q1558632 Q1913193 Q4066675 Q12758 Q599866 Q1579364 Q731547 Q12816 Q2938 Q12751 Q1951 Q2236821 Q1952 Q2528268 Q3353 Q3357 Q1231 Q13401101 Q558796 Q12564
(c(Q15617994),P138,c(Q486972)|c(Q15619164))
action less
action union
action find_tuple_counts
relation P138
type Q15617994
type Q486972
action find_tuple_counts
relation P138
type Q15617994
type Q15619164
action count
action filter_multi_types
action find
entity Q79
relation P138
type Q486972
type Q15619164
[ANSWERS]
[{'concept': 'Q15617994'}, 'P138', [{'concept': 'Q486972'}, {'concept': 'Q15619164'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?j rdf:type ontology:Q486972 . ?x rdf:type ontology:Q15617994 . ?x property:P138 ?j } UNION { ?x property:P138 ?j . ?x rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15619164 } } GROUP BY ?x } . FILTER ( ?m < ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Q79 property:P138 ?q . { { ?q rdf:type ontology:Q486972 } UNION { ?q rdf:type ontology:Q15619164 } } } } }
North Holland Taro Zeeland Aveyron Flevoland Rockaway, New Jersey Marshall Islands Wettertal Var Mauritius Tarn-et-Garonne Victoria Meuse Senegal Mella Bouches-de-l'Elbe India Medebach Arno Charente-Maritime Landes France Finland Simplon Mezhetchina Israel Haute-Garonne Limburg Abbasid caliphate Sarthe Iceland Yvelines Montserrat Chad Ariège Gênes Ombrone Marne Côtes-d'Armor Forêts Mont-Tonnerre Noordpolderzijl Pasop Mongolia Kiribati Prince Edward Island Schwielowsee Léman Leninkent, Makhachkala, Republic of Dagestan Hürtgenwald Corse Ain Sam Rayburn Independent School District Upper Oka Principalities Bouches-du-Rhône Morocco Tarn Cher Corcyre Calvados Haute-Marne Liamone Ardennes Gehlsbach Frise Haute-Loire Banan District Russia Mer-Égée Apennins Sègre Indre-et-Loire Gironde Pas-de-Calais Seine-et-Marne Biebertal Brazil Ithaque Stura Wied Sesia Eure-et-Loir Lot Eure Zuyderzée Colombia Manche Veytal Loiret Yssel-Supérieur Rhine Aisne Clipperton Island New Brunswick Marengo Seine-et-Oise Cantal Dominican Republic Seine Moldavia Cabot Public Schools Sankt Thomas Sieg Mönchengladbach Puy-de-Dôme Rumi District Savoie Gard Am Salzhaff Gers Essonne Luxembourg Belgium United States of America Tanzania Poland Somme Philippines Doubs Switzerland Drôme Ems-Occidental Vogtei Montenotte Eritrea Rhin-et-Moselle Peenehagen Ardèche Bulgaria Ourthe Ecuador Pô Vendée Ordzhonikidzevskiy raion of Zaporizhzhya Niger Méditerranée Möhnesee Loire-Atlantique Vaucluse Viereck Dyle Sambre-et-Meuse Montenegro Bouches-du-Weser Georgia Republic of Macedonia Kazakhstan Malta Spitsbergen Vlagtwedder-Veldhuis Nesse-Apfelstädt San Marino Mayenne Rheinbreitbach Nord Norway Komarovsky, Orenburg Oblast Georgsdorf Seychelles Sassenburg Mont-Terrible Hungary Escaut Val-de-Marne Maine-et-Loire Lozère Mauritania Vyronas Malawi Yukon Pakistan Pyrénées-Orientales Belarus Pommerby Mozambique Corse-du-Sud Deux-Nèthes Haute-Corse Ems-Oriental Muldestausee Alpes-de-Haute-Provence Seevetal Ontario Corse Val-d'Oise Lot-et-Garonne Bas-Rhin Alpes-Maritimes Territoire de Belfort Côte-d'Or Isère Wedendorfersee Orne Hautes-Pyrénées Pyrénées-Atlantiques North Brabant Oise Nicaragua Meurthe Liechtenstein Augustusburg Saskatchewan Sheikh Zayed City Kloster Tempzin Bangladesh Roer Aude Democratic Republic of the Congo Jura Bouches-de-l'Yssel Bouches-de-l'Escaut Nettetal Burundi Benin Botswana Bouches-de-l'Èbre-Montserrat South Holland Hautes-Alpes Kenya Ghana Niedereschach Loire Bouches-de-l'Èbre Trasimène Trinidad and Tobago Groningen Bolivia Haute-Saône Nièvre Sept-Saints Republic of Moldova Saône-et-Loire Morbihan Fatimid caliphate Seine-Saint-Denis Philippsreut Llanvaches Zandberg, Zeeland Klein-Ulsda Mali Ems Ruhr Amsterdam, Saskatchewan Tanaro Ter Deux-Sèvres Gambia Djibouti Madagascar Côte d'Ivoire Sègre-Ter Republic of the Congo Aube Allier Meuse-Inférieure Sarre Moselle Golo Bouches-du-Rhin Ems-Supérieur Kuckssee Saint Lucia Nigeria Ennepetal Namibia Vienne Haute-Vienne Bouches-de-la-Meuse Haut-Rhin Dominica Corrèze Doire Indre Tibre Gelderland Stepenitztal Utrecht Jordan Friesland Overijssel Rhône Jemmapes Ireland Cape Verde Lesotho Neustadt an der Weinstraße Ille-et-Vilaine Charente Meurthe-et-Moselle Umayyad Caliphate Hauts-de-Seine Vosges Hérault Rome Chkalovsk Microdistrict Annino Seine-Maritime Lev Tolstoy Lys Lippe Yonne Leverkusen Haute-Savoie Alberta Rhône-et-Loire Nova Scotia Mont-Blanc Creuse Dordogne Kosovo Region Brandon Valley School District Obere Warnow Loir-et-Cher
Brazil United States of America Georgia
action less
action union
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type human settlement
action find_tuple_counts
relation named after
type designation for an administrative territorial entity
type abstract being
action count
action filter_multi_types
action find
entity Egypt
relation named after
type human settlement
type abstract being
[{'concept': 'designation for an administrative territorial entity'}, 'named after', [{'concept': 'human settlement'}, {'concept': 'abstract being'}]]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?m ) ?x WHERE { { ?j rdf:type ontology:human_settlement . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:named_after ?j } UNION { ?x property:named_after ?j . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:abstract_being } } GROUP BY ?x } . FILTER ( ?m < ?i ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { resource:Egypt property:named_after ?q . { { ?q rdf:type ontology:human_settlement } UNION { ?q rdf:type ontology:abstract_being } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q836
P530
Q15617994 Q15617994
USER
Which administrative territories have tactful political relations with around the same number of administrative territories as Myanmar ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?b ) WHERE { ?u property:P530 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?b = ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q836 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } }
Myanmar
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?b ) WHERE { ?u property:diplomatic_relation ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?b = ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Myanmar property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q836
relation P530
type Q15617994
[ANSWERS] have tactful political relations with around the same number of administrative territories as Myanmar
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?b ) WHERE { ?u property:P530 ?a . ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?b = ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Q836 property:P530 ?x . ?x rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and People's Republic of China have tactful political relations with around the same number of administrative territories as Myanmar
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Myanmar
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?b ) WHERE { ?u property:diplomatic_relation ?a . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?b = ?s ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?s ) WHERE { resource:Myanmar property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7903424 Q13659
P17
Q15617994
USER
Which administrative territories are Tortolì or Utter Inn located in ?
OR((Q13659,P17,c(Q15617994)), (Q7903424,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13659
relation P17
action find
entity Q7903424
relation P17
type Q15617994
{'OR': [['Q13659', 'P17', {'concept': 'Q15617994'}], ['Q7903424', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7903424 property:P17 ?q } UNION { resource:Q13659 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Utter Inn Tortolì
action filter_type
action union
action find
entity Tortolì
relation country
action find
entity Utter Inn
relation country
type designation for an administrative territorial entity
{'OR': [['Tortolì', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Utter Inn', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Utter_Inn property:country ?q } UNION { resource:Tortolì property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q34
SYSTEM
Italy, Sweden
Q38 Q34
OR((Q13659,P17,c(Q15617994)), (Q7903424,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q13659
relation P17
action find
entity Q7903424
relation P17
type Q15617994
Tortolì or Utter Inn are located in [ANSWERS]
{'OR': [['Q13659', 'P17', {'concept': 'Q15617994'}], ['Q7903424', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Q7903424 property:P17 ?q } UNION { resource:Q13659 property:P17 ?q } } . ?q rdf:type ontology:Q15617994 }
Italy Sweden
Tortolì or Utter Inn are located in Italy and Sweden
Italy Sweden
action filter_type
action union
action find
entity Tortolì
relation country
action find
entity Utter Inn
relation country
type designation for an administrative territorial entity
{'OR': [['Tortolì', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Utter Inn', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?q WHERE { { { resource:Utter_Inn property:country ?q } UNION { resource:Tortolì property:country ?q } } . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7091354
P495
Q838948
USER
Did On the Fiddle originate in those administrative territories ?
(Q7091354,P495,Q38) (Q7091354,P495,Q34)
action is_in
entity prev_answer
action find
entity Q7091354
relation P495
['Q7091354', 'P495', 'Q38'] ['Q7091354', 'P495', 'Q34']
ASK WHERE { resource:Q7091354 property:P495 ?m . VALUES ( ?m ) { ( resource:Q38 ) ( resource:Q34 ) } }
On the Fiddle
action is_in
entity prev_answer
action find
entity On the Fiddle
relation country of origin
['On the Fiddle', 'country of origin', 'Italy'] ['On the Fiddle', 'country of origin', 'Sweden']
ASK WHERE { resource:On_the_Fiddle property:country_of_origin ?m . VALUES ( ?m ) { ( resource:Italy ) ( resource:Sweden ) } }
[]
work of art
SYSTEM
NO
(Q7091354,P495,Q38) (Q7091354,P495,Q34)
action is_in
entity prev_answer
action find
entity Q7091354
relation P495
[ANSWER]
['Q7091354', 'P495', 'Q38'] ['Q7091354', 'P495', 'Q34']
ASK WHERE { resource:Q7091354 property:P495 ?m . VALUES ( ?m ) { ( resource:Q38 ) ( resource:Q34 ) } }
No
action is_in
entity prev_answer
action find
entity On the Fiddle
relation country of origin
['On the Fiddle', 'country of origin', 'Italy'] ['On the Fiddle', 'country of origin', 'Sweden']
ASK WHERE { resource:On_the_Fiddle property:country_of_origin ?m . VALUES ( ?m ) { ( resource:Italy ) ( resource:Sweden ) } }
[]