Simple Question (Direct)
Simple Question
Q434662
P22
Q502895
USER
Who was the father of Anne of Bohemia, Duchess of Silesia ?
(Q434662,P22,c(Q502895))
action filter_type
action find
entity Q434662
relation P22
type Q502895
['Q434662', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q434662 property:P22 ?h }
Anne of Bohemia, Duchess of Silesia
action filter_type
action find
entity Anne of Bohemia, Duchess of Silesia
relation father
type common name
['Anne of Bohemia, Duchess of Silesia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Anne_of_Bohemia,_Duchess_of_Silesia property:father ?h }
[]
common name
Q312938
SYSTEM
Ottokar I of Bohemia
Q312938
(Q434662,P22,c(Q502895))
action filter_type
action find
entity Q434662
relation P22
type Q502895
The father of Anne of Bohemia , Duchess of Silesia was married [ANSWER]
['Q434662', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q434662 property:P22 ?h }
Ottokar I of Bohemia
The father of Anne of Bohemia , Duchess of Silesia was married Ottokar I of Bohemia
Ottokar I of Bohemia
action filter_type
action find
entity Anne of Bohemia, Duchess of Silesia
relation father
type common name
['Anne of Bohemia, Duchess of Silesia', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Anne_of_Bohemia,_Duchess_of_Silesia property:father ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q434662
P9
Q502895
USER
Who are Anne of Bohemia, Duchess of Silesia a sibling of ?
(Q434662,P9,c(Q502895))
action filter_type
action find
entity Q434662
relation P9
type Q502895
['Q434662', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q434662 property:P9 ?t . ?t rdf:type ontology:Q502895 }
Anne of Bohemia, Duchess of Silesia
action filter_type
action find
entity Anne of Bohemia, Duchess of Silesia
relation sister
type common name
['Anne of Bohemia, Duchess of Silesia', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Anne_of_Bohemia,_Duchess_of_Silesia property:sister ?t . ?t rdf:type ontology:common_name }
[]
common name
Q2385877 Q394727 Q263412
SYSTEM
Judith of Bohemia, Agnes of Bohemia, Dagmar of Bohemia
Q2385877 Q394727 Q263412
(Q434662,P9,c(Q502895))
action filter_type
action find
entity Q434662
relation P9
type Q502895
Anne of Bohemia , Duchess of Silesia are born [ANSWERS] a sibling of
['Q434662', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q434662 property:P9 ?t . ?t rdf:type ontology:Q502895 }
Judith of Bohemia Agnes of Bohemia Dagmar of Bohemia
Anne of Bohemia , Duchess of Silesia are born Judith of Bohemia, Agnes of Bohemia and Dagmar of Bohemia a sibling of
Judith of Bohemia Agnes of Bohemia Dagmar of Bohemia
action filter_type
action find
entity Anne of Bohemia, Duchess of Silesia
relation sister
type common name
['Anne of Bohemia, Duchess of Silesia', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Anne_of_Bohemia,_Duchess_of_Silesia property:sister ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q533577
Q502895
USER
And what about Catherine of Hanau, Countess of Wied?
(Q533577,P9,c(Q502895))
action filter_type
action find
entity Q533577
relation P9
type Q502895
['Q533577', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q533577 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Catherine of Hanau, Countess of Wied
action filter_type
action find
entity Catherine of Hanau, Countess of Wied
relation sister
type common name
['Catherine of Hanau, Countess of Wied', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Catherine_of_Hanau,_Countess_of_Wied property:sister ?o . ?o rdf:type ontology:common_name }
[]
common name
Q481274 Q2225507 Q2318556
SYSTEM
Maria of Nassau, Catharine of Nassau-Dillenburg, Juliana of Nassau-Dillenburg
Q2225507 Q1868984 Q481274 Q3241152 Q1834423 Q2318556
(Q533577,P9,c(Q502895))
action filter_type
action find
entity Q533577
relation P9
type Q502895
[ANSWERS]
['Q533577', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q533577 property:P9 ?o . ?o rdf:type ontology:Q502895 }
Catharine of Nassau-Dillenburg Magdalena of Nassau-Dillenburg Maria of Nassau Elisabeth of Nassau-Dillenburg Anna of Nassau-Dillenburg Juliana of Nassau-Dillenburg
Maria of Nassau Catharine of Nassau-Dillenburg Juliana of Nassau-Dillenburg
action filter_type
action find
entity Catherine of Hanau, Countess of Wied
relation sister
type common name
['Catherine of Hanau, Countess of Wied', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Catherine_of_Hanau,_Countess_of_Wied property:sister ?o . ?o rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q71441
P9
Q502895
USER
Did Henry of Nassau-Dillenburg have those ones as sister ?
(Q71441,P9,Q481274) (Q71441,P9,Q2225507) (Q71441,P9,Q2318556)
action is_in
entity prev_answer
action find
entity Q71441
relation P9
['Q71441', 'P9', 'Q481274'] ['Q71441', 'P9', 'Q2225507'] ['Q71441', 'P9', 'Q2318556']
ASK WHERE { resource:Q71441 property:P9 ?l . VALUES ( ?l ) { ( resource:Q2225507 ) ( resource:Q1868984 ) ( resource:Q481274 ) } }
Henry of Nassau-Dillenburg
action is_in
entity prev_answer
action find
entity Henry of Nassau-Dillenburg
relation sister
['Henry of Nassau-Dillenburg', 'sister', 'Maria of Nassau'] ['Henry of Nassau-Dillenburg', 'sister', 'Catharine of Nassau-Dillenburg'] ['Henry of Nassau-Dillenburg', 'sister', 'Juliana of Nassau-Dillenburg']
ASK WHERE { resource:Henry_of_Nassau-Dillenburg property:sister ?l . VALUES ( ?l ) { ( resource:Catharine_of_Nassau-Dillenburg ) ( resource:Magdalena_of_Nassau-Dillenburg ) ( resource:Maria_of_Nassau ) } }
[]
common name
SYSTEM
YES
(Q71441,P9,Q481274) (Q71441,P9,Q2225507) (Q71441,P9,Q2318556)
action is_in
entity prev_answer
action find
entity Q71441
relation P9
[ANSWER]
['Q71441', 'P9', 'Q481274'] ['Q71441', 'P9', 'Q2225507'] ['Q71441', 'P9', 'Q2318556']
ASK WHERE { resource:Q71441 property:P9 ?l . VALUES ( ?l ) { ( resource:Q2225507 ) ( resource:Q1868984 ) ( resource:Q481274 ) } }
Yes
action is_in
entity prev_answer
action find
entity Henry of Nassau-Dillenburg
relation sister
['Henry of Nassau-Dillenburg', 'sister', 'Maria of Nassau'] ['Henry of Nassau-Dillenburg', 'sister', 'Catharine of Nassau-Dillenburg'] ['Henry of Nassau-Dillenburg', 'sister', 'Juliana of Nassau-Dillenburg']
ASK WHERE { resource:Henry_of_Nassau-Dillenburg property:sister ?l . VALUES ( ?l ) { ( resource:Catharine_of_Nassau-Dillenburg ) ( resource:Magdalena_of_Nassau-Dillenburg ) ( resource:Maria_of_Nassau ) } }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2318556 Q12260918 Q1834423
P9
Q502895
USER
Is Joxean Sagastizabal and Anna of Nassau-Dillenburg a sister of Juliana of Nassau-Dillenburg ?
(Q2318556,P9,Q12260918) (Q2318556,P9,Q1834423)
action is_in
entity Q2318556
action intersection
action find_reverse
entity Q12260918
relation P9
action find_reverse
entity Q1834423
relation P9
['Q2318556', 'P9', 'Q12260918'] ['Q2318556', 'P9', 'Q1834423']
ASK WHERE { resource:Q2318556 property:P9 resource:Q12260918 . resource:Q2318556 property:P9 resource:Q1834423 }
Juliana of Nassau-Dillenburg Joxean Sagastizabal Anna of Nassau-Dillenburg
action is_in
entity Juliana of Nassau-Dillenburg
action intersection
action find_reverse
entity Joxean Sagastizabal
relation sister
action find_reverse
entity Anna of Nassau-Dillenburg
relation sister
['Juliana of Nassau-Dillenburg', 'sister', 'Joxean Sagastizabal'] ['Juliana of Nassau-Dillenburg', 'sister', 'Anna of Nassau-Dillenburg']
ASK WHERE { resource:Juliana_of_Nassau-Dillenburg property:sister resource:Joxean_Sagastizabal . resource:Juliana_of_Nassau-Dillenburg property:sister resource:Anna_of_Nassau-Dillenburg }
[]
common name
SYSTEM
NO and YES respectively
(Q2318556,P9,Q12260918) (Q2318556,P9,Q1834423)
action is_in
entity Q2318556
action intersection
action find_reverse
entity Q12260918
relation P9
action find_reverse
entity Q1834423
relation P9
[ANSWER]
['Q2318556', 'P9', 'Q12260918'] ['Q2318556', 'P9', 'Q1834423']
ASK WHERE { resource:Q2318556 property:P9 resource:Q12260918 . resource:Q2318556 property:P9 resource:Q1834423 }
NO and YES respectively
action is_in
entity Juliana of Nassau-Dillenburg
action intersection
action find_reverse
entity Joxean Sagastizabal
relation sister
action find_reverse
entity Anna of Nassau-Dillenburg
relation sister
['Juliana of Nassau-Dillenburg', 'sister', 'Joxean Sagastizabal'] ['Juliana of Nassau-Dillenburg', 'sister', 'Anna of Nassau-Dillenburg']
ASK WHERE { resource:Juliana_of_Nassau-Dillenburg property:sister resource:Joxean_Sagastizabal . resource:Juliana_of_Nassau-Dillenburg property:sister resource:Anna_of_Nassau-Dillenburg }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2318556
P7
Q502895
USER
Who have Juliana of Nassau-Dillenburg as their brother ?
(Q2318556,P7,c(Q502895))
action filter_type
action find
entity Q2318556
relation P7
type Q502895
['Q2318556', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q2318556 property:P7 ?h }
Juliana of Nassau-Dillenburg
action filter_type
action find
entity Juliana of Nassau-Dillenburg
relation brother
type common name
['Juliana of Nassau-Dillenburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Juliana_of_Nassau-Dillenburg property:brother ?h }
[]
common name
Q78454 Q71434 Q91880
SYSTEM
William the Silent, John VI, Count of Nassau-Dillenburg, Philip III, Count of Hanau-Münzenberg
Q71441 Q91880 Q700300 Q78454 Q71434 Q329117
(Q2318556,P7,c(Q502895))
action filter_type
action find
entity Q2318556
relation P7
type Q502895
[ANSWERS]
['Q2318556', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q502895 . resource:Q2318556 property:P7 ?h }
Henry of Nassau-Dillenburg Philip III, Count of Hanau-Münzenberg Louis of Nassau William the Silent John VI, Count of Nassau-Dillenburg Adolf of Nassau
William the Silent, John VI, Count of Nassau-Dillenburg and Philip III, Count of Hanau-Münzenberg have Juliana of Nassau-Dillenburg as their brother
William the Silent John VI, Count of Nassau-Dillenburg Philip III, Count of Hanau-Münzenberg
action filter_type
action find
entity Juliana of Nassau-Dillenburg
relation brother
type common name
['Juliana of Nassau-Dillenburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:common_name . resource:Juliana_of_Nassau-Dillenburg property:brother ?h }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q78454 Q71434 Q91880
P9
Q502895
USER
Who are the siblings of those ones ?
(Q78454,P9,c(Q502895)) (Q71434,P9,c(Q502895)) (Q91880,P9,c(Q502895))
action filter_type
action find
entity prev_answer
relation P9
type Q502895
['Q78454', 'P9', {'concept': 'Q502895'}] ['Q71434', 'P9', {'concept': 'Q502895'}] ['Q91880', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q71441 ) ( resource:Q91880 ) ( resource:Q700300 ) } . ?p property:P9 ?x }
William the Silent John VI, Count of Nassau-Dillenburg Philip III, Count of Hanau-Münzenberg
action filter_type
action find
entity prev_answer
relation sister
type common name
['William the Silent', 'sister', {'concept': 'common name'}] ['John VI, Count of Nassau-Dillenburg', 'sister', {'concept': 'common name'}] ['Philip III, Count of Hanau-Münzenberg', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Henry_of_Nassau-Dillenburg ) ( resource:Philip_III,_Count_of_Hanau-Münzenberg ) ( resource:Louis_of_Nassau ) } . ?p property:sister ?x }
[]
common name
Q481274 Q481274 Q481274
SYSTEM
Maria of Nassau
Q2225507 Q1868984 Q481274 Q3241152 Q1834423 Q2318556 Q533577 Q2225507 Q1868984 Q481274 Q3241152 Q1834423 Q2318556 Q533577 Q2225507 Q1868984 Q481274 Q3241152 Q1834423 Q2318556 Q533577
(Q78454,P9,c(Q502895)) (Q71434,P9,c(Q502895)) (Q91880,P9,c(Q502895))
action filter_type
action find
entity prev_answer
relation P9
type Q502895
The siblings of those ones are [ANSWER], [ANSWER] and [ANSWER]
['Q78454', 'P9', {'concept': 'Q502895'}] ['Q71434', 'P9', {'concept': 'Q502895'}] ['Q91880', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . VALUES ( ?p ) { ( resource:Q71441 ) ( resource:Q91880 ) ( resource:Q700300 ) } . ?p property:P9 ?x }
Catharine of Nassau-Dillenburg Magdalena of Nassau-Dillenburg Maria of Nassau Elisabeth of Nassau-Dillenburg Anna of Nassau-Dillenburg Juliana of Nassau-Dillenburg Catherine of Hanau, Countess of Wied Catharine of Nassau-Dillenburg Magdalena of Nassau-Dillenburg Maria of Nassau Elisabeth of Nassau-Dillenburg Anna of Nassau-Dillenburg Juliana of Nassau-Dillenburg Catherine of Hanau, Countess of Wied Catharine of Nassau-Dillenburg Magdalena of Nassau-Dillenburg Maria of Nassau Elisabeth of Nassau-Dillenburg Anna of Nassau-Dillenburg Juliana of Nassau-Dillenburg Catherine of Hanau, Countess of Wied
The siblings of those ones are Maria of Nassau, Maria of Nassau and Maria of Nassau
Maria of Nassau Maria of Nassau Maria of Nassau
action filter_type
action find
entity prev_answer
relation sister
type common name
['William the Silent', 'sister', {'concept': 'common name'}] ['John VI, Count of Nassau-Dillenburg', 'sister', {'concept': 'common name'}] ['Philip III, Count of Hanau-Münzenberg', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . VALUES ( ?p ) { ( resource:Henry_of_Nassau-Dillenburg ) ( resource:Philip_III,_Count_of_Hanau-Münzenberg ) ( resource:Louis_of_Nassau ) } . ?p property:sister ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q78454
P39
Q15617994
USER
Which administrative territory was a position held by William the Silent ?
(Q78454,P39,c(Q15617994))
action filter_type
action find
entity Q78454
relation P39
type Q15617994
['Q78454', 'P39', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q78454 property:P39 ?l }
William the Silent
action filter_type
action find
entity William the Silent
relation position held
type designation for an administrative territorial entity
['William the Silent', 'position held', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:William_the_Silent property:position_held ?l }
[]
designation for an administrative territorial entity
Q549449
SYSTEM
Prince of Orange
Q549449
(Q78454,P39,c(Q15617994))
action filter_type
action find
entity Q78454
relation P39
type Q15617994
[ANSWER] was a position held by William the Silent
['Q78454', 'P39', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q15617994 . resource:Q78454 property:P39 ?l }
Prince of Orange
Prince of Orange was a position held by William the Silent
Prince of Orange
action filter_type
action find
entity William the Silent
relation position held
type designation for an administrative territorial entity
['William the Silent', 'position held', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:William_the_Silent property:position_held ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q78454
P112
Q8436
USER
Which family was founded by that person ?
(c(Q8436),P112,Q549449)
action filter_type
action find_reverse
entity Q78454
relation P112
type Q8436
[{'concept': 'Q8436'}, 'P112', 'Q549449']
SELECT DISTINCT ?r WHERE { ?r property:P112 resource:Q78454 . ?r rdf:type ontology:Q8436 }
William the Silent
action filter_type
action find_reverse
entity William the Silent
relation founder
type family
[{'concept': 'family'}, 'founder', 'Prince of Orange']
SELECT DISTINCT ?r WHERE { ?r property:founder resource:William_the_Silent . ?r rdf:type ontology:family }
[]
family
Q155483
SYSTEM
House of Orange-Nassau
Q155483
(c(Q8436),P112,Q549449)
action filter_type
action find_reverse
entity Q78454
relation P112
type Q8436
[ANSWER] was founded by that person
[{'concept': 'Q8436'}, 'P112', 'Q549449']
SELECT DISTINCT ?r WHERE { ?r property:P112 resource:Q78454 . ?r rdf:type ontology:Q8436 }
House of Orange-Nassau
House of Orange-Nassau was founded by that person
House of Orange-Nassau
action filter_type
action find_reverse
entity William the Silent
relation founder
type family
[{'concept': 'family'}, 'founder', 'Prince of Orange']
SELECT DISTINCT ?r WHERE { ?r property:founder resource:William_the_Silent . ?r rdf:type ontology:family }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P53
Q8436 Q502895
USER
Which families are the royal families that approximately the same number of people are a part of as that family ?
(c(Q502895),P53,c(Q8436))
action approx
action find_reverse_tuple_counts
relation P53
type Q8436
type Q502895
action count
action filter_type
action find
entity Q155483
relation P53
type Q8436
[{'concept': 'Q502895'}, 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P53 ?w . ?w rdf:type ontology:Q8436 . ?n rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q8436 . resource:Q155483 property:P53 ?i } } . FILTER ( ?q = ?r ) }
action approx
action find_reverse_tuple_counts
relation noble family
type family
type common name
action count
action filter_type
action find
entity House of Orange-Nassau
relation noble family
type family
[{'concept': 'common name'}, 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:noble_family ?w . ?w rdf:type ontology:family . ?n rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:family . resource:House_of_Orange-Nassau property:noble_family ?i } } . FILTER ( ?q = ?r ) }
[]
family common name
Q4164435 Q156433 Q698530
SYSTEM
Bagratuni Dynasty, House of Welf, Princely Family of Liechtenstein
Q1336538 Q2116135 Q700158 Q834364 Q852111 Q560837 Q1347533 Q661534 Q156433 Q699788 Q698530 Q668182 Q122293 Q2091436 Q2795526 Q890246 Q155483 Q170022 Q2364167 Q4164435 Q678502 Q699691
(c(Q502895),P53,c(Q8436))
action approx
action find_reverse_tuple_counts
relation P53
type Q8436
type Q502895
action count
action filter_type
action find
entity Q155483
relation P53
type Q8436
[ANSWERS] are the royal families that approximately the same number of people are a part of as that family
[{'concept': 'Q502895'}, 'P53', {'concept': 'Q8436'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:P53 ?w . ?w rdf:type ontology:Q8436 . ?n rdf:type ontology:Q502895 } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:Q8436 . resource:Q155483 property:P53 ?i } } . FILTER ( ?q = ?r ) }
House of Guise Thurn und Taxis House of Mecklenburg Hōjō clan Anscarids House of Scarpone House of Orléans House of Barcelona House of Welf House of Württemberg Princely Family of Liechtenstein House of Grimaldi House of Luxembourg Gediminids De Vos van Steenwijk Czartoryski family House of Orange-Nassau House of Medici House of Neville Bagratuni Dynasty Mamikonian Potocki family
Bagratuni Dynasty, House of Welf and Princely Family of Liechtenstein are the royal families that approximately the same number of people are a part of as that family
Bagratuni Dynasty House of Welf Princely Family of Liechtenstein
action approx
action find_reverse_tuple_counts
relation noble family
type family
type common name
action count
action filter_type
action find
entity House of Orange-Nassau
relation noble family
type family
[{'concept': 'common name'}, 'noble family', {'concept': 'family'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?n ) AS ?q ) WHERE { ?n property:noble_family ?w . ?w rdf:type ontology:family . ?n rdf:type ontology:common_name } GROUP BY ?w } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?r ) WHERE { ?i rdf:type ontology:family . resource:House_of_Orange-Nassau property:noble_family ?i } } . FILTER ( ?q = ?r ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q312938
P22
Q502895
USER
How many people have Ottokar I of Bohemia as dad ?
(c(Q502895),P22,Q312938)
action count
action filter_type
action find_reverse
entity Q312938
relation P22
type Q502895
[{'concept': 'Q502895'}, 'P22', 'Q312938']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P22 resource:Q312938 . ?g rdf:type ontology:Q502895 }
Ottokar I of Bohemia
action count
action filter_type
action find_reverse
entity Ottokar I of Bohemia
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ottokar I of Bohemia']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:father resource:Ottokar_I_of_Bohemia . ?g rdf:type ontology:common_name }
[]
common name
SYSTEM
7
Q2385877 Q2270266 Q394727 Q434662 Q572198 Q1368797 Q263412
(c(Q502895),P22,Q312938)
action count
action filter_type
action find_reverse
entity Q312938
relation P22
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P22', 'Q312938']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:P22 resource:Q312938 . ?g rdf:type ontology:Q502895 }
Judith of Bohemia Vladislaus, Margrave of Moravia Agnes of Bohemia Anne of Bohemia, Duchess of Silesia Guglielma de Bohême Přemyslid, Margrave of Moravia Dagmar of Bohemia
7
action count
action filter_type
action find_reverse
entity Ottokar I of Bohemia
relation father
type common name
[{'concept': 'common name'}, 'father', 'Ottokar I of Bohemia']
SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) WHERE { ?g property:father resource:Ottokar_I_of_Bohemia . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q312938
P106
Q12737077
USER
What is the profession of that person ?
action filter_type
action find
entity Q312938
relation P106
type Q12737077
SELECT DISTINCT ?j WHERE { resource:Q312938 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
Ottokar I of Bohemia
action filter_type
action find
entity Ottokar I of Bohemia
relation occupation
type occupation
SELECT DISTINCT ?j WHERE { resource:Ottokar_I_of_Bohemia property:occupation ?j . ?j rdf:type ontology:occupation }
[]
occupation
Q12097
SYSTEM
king
Q12097
action filter_type
action find
entity Q312938
relation P106
type Q12737077
The profession of that person is [ANSWER]
SELECT DISTINCT ?j WHERE { resource:Q312938 property:P106 ?j . ?j rdf:type ontology:Q12737077 }
king
The profession of that person is king
king
action filter_type
action find
entity Ottokar I of Bohemia
relation occupation
type occupation
SELECT DISTINCT ?j WHERE { resource:Ottokar_I_of_Bohemia property:occupation ?j . ?j rdf:type ontology:occupation }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q78454
P138
Q34442 Q486972
USER
How many roads and human settlements are named after William the Silent ?
(c(Q34442),P138,Q78454) (c(Q486972),P138,Q78454)
action count
action union
action filter_type
action find_reverse
entity Q78454
relation P138
type Q34442
action filter_type
action find_reverse
entity Q78454
relation P138
type Q486972
[{'concept': 'Q34442'}, 'P138', 'Q78454'] [{'concept': 'Q486972'}, 'P138', 'Q78454']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q34442 ) ( ontology:Q486972 ) } }
William the Silent
action count
action union
action filter_type
action find_reverse
entity William the Silent
relation named after
type road
action filter_type
action find_reverse
entity William the Silent
relation named after
type human settlement
[{'concept': 'road'}, 'named after', 'William the Silent'] [{'concept': 'human settlement'}, 'named after', 'William the Silent']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:road ) ( ontology:human_settlement ) } }
[]
road human settlement
SYSTEM
118 roads and 1 human settlements
Q19656857 Q19656742 Q19656743 Q19656800 Q19656753 Q19656750 Q19656756 Q19656754 Q19656758 Q19656717 Q19656728 Q19656715 Q19656713 Q19656859 Q19656710 Q19656856 Q14856991 Q19656698 Q19656852 Q19656718 Q19656810 Q19656812 Q19656814 Q19656798 Q19656818 Q19656796 Q19656690 Q19656793 Q19656792 Q19656694 Q19656708 Q19656746 Q19656721 Q19656667 Q19656665 Q19656693 Q19656701 Q19656703 Q19656704 Q19656706 Q19656727 Q3081163 Q19656835 Q19656865 Q19656864 Q19656782 Q76937 Q19656861 Q19656860 Q19656863 Q19656862 Q19656788 Q19656789 Q19656822 Q19656869 Q19656868 Q19656827 Q19656826 Q19656828 Q19656674 Q19656675 Q19656677 Q19656670 Q19656778 Q19656672 Q19656824 Q19656774 Q19656776 Q19656771 Q19656770 Q19656773 Q19656772 Q19656780 Q19656802 Q19656735 Q19656734 Q2025738 Q19656858 Q19656739 Q19656877 Q19656874 Q19656875 Q19656872 Q19656871 Q19656832 Q19656784 Q19656881 Q19656831 Q19656837 Q19656879 Q19656786 Q19656730 Q19656820 Q19656767 Q19656765 Q19656762 Q19656805 Q19656838 Q19656722 Q19656720 Q19656848 Q19656726 Q19656737 Q19656724 Q19656880 Q19656843 Q19656825 Q19656841 Q19656840 Q19656845 Q19656844 Q19656853 Q19656808 Q19656680 Q19656683 Q19656682 Q19656803 Q19656684 Q19656686
(c(Q34442),P138,Q78454) (c(Q486972),P138,Q78454)
action count
action union
action filter_type
action find_reverse
entity Q78454
relation P138
type Q34442
action filter_type
action find_reverse
entity Q78454
relation P138
type Q486972
[ANSWER]
[{'concept': 'Q34442'}, 'P138', 'Q78454'] [{'concept': 'Q486972'}, 'P138', 'Q78454']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:Q34442 ) ( ontology:Q486972 ) } }
Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgersingel Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerweg Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerplein Willem de Zwijgerstraat Willem de Zwijgerplantsoen Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerhof Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willemstad, North Brabant Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerweg Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerweg Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerlaan Willem de Zwijgerstraat Willem de Zwijgerlaan Willem de Zwijgerlaan
118 roads and 1 human settlements
action count
action union
action filter_type
action find_reverse
entity William the Silent
relation named after
type road
action filter_type
action find_reverse
entity William the Silent
relation named after
type human settlement
[{'concept': 'road'}, 'named after', 'William the Silent'] [{'concept': 'human settlement'}, 'named after', 'William the Silent']
SELECT DISTINCT ( COUNT ( ?t ) AS ?q ) WHERE { ?t rdf:type ?y . VALUES ( ?y ) { ( ontology:road ) ( ontology:human_settlement ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q12343108 Q71434
P27
Q1048835
USER
Which political territories do John VI, Count of Nassau-Dillenburg or Thomas Cortebeeck belong to ?
OR((Q71434,P27,c(Q1048835)), (Q12343108,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q71434
relation P27
action find
entity Q12343108
relation P27
type Q1048835
{'OR': [['Q71434', 'P27', {'concept': 'Q1048835'}], ['Q12343108', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . { VALUES ( ?i ) { ( resource:Q71434 ) ( resource:Q12343108 ) } . ?i property:P27 ?t } }
Thomas Cortebeeck John VI, Count of Nassau-Dillenburg
action filter_type
action union
action find
entity John VI, Count of Nassau-Dillenburg
relation country of citizenship
action find
entity Thomas Cortebeeck
relation country of citizenship
type political territorial entity
{'OR': [['John VI, Count of Nassau-Dillenburg', 'country of citizenship', {'concept': 'political territorial entity'}], ['Thomas Cortebeeck', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . { VALUES ( ?i ) { ( resource:John_VI,_Count_of_Nassau-Dillenburg ) ( resource:Thomas_Cortebeeck ) } . ?i property:country_of_citizenship ?t } }
[]
political territorial entity
Q183 Q35
SYSTEM
Germany, Denmark
Q183 Q35
OR((Q71434,P27,c(Q1048835)), (Q12343108,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q71434
relation P27
action find
entity Q12343108
relation P27
type Q1048835
[ANSWERS] John VI, Count of Nassau-Dillenburg or Thomas Cortebeeck belong to
{'OR': [['Q71434', 'P27', {'concept': 'Q1048835'}], ['Q12343108', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q1048835 . { VALUES ( ?i ) { ( resource:Q71434 ) ( resource:Q12343108 ) } . ?i property:P27 ?t } }
Germany Denmark
Germany and Denmark John VI, Count of Nassau-Dillenburg or Thomas Cortebeeck belong to
Germany Denmark
action filter_type
action union
action find
entity John VI, Count of Nassau-Dillenburg
relation country of citizenship
action find
entity Thomas Cortebeeck
relation country of citizenship
type political territorial entity
{'OR': [['John VI, Count of Nassau-Dillenburg', 'country of citizenship', {'concept': 'political territorial entity'}], ['Thomas Cortebeeck', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:political_territorial_entity . { VALUES ( ?i ) { ( resource:John_VI,_Count_of_Nassau-Dillenburg ) ( resource:Thomas_Cortebeeck ) } . ?i property:country_of_citizenship ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q184
P530
Q15617994 Q1048835
USER
Which administrative territories have a diplomatic relationship with around the same number of political territories as Belarus ?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q184
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?w ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?w = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q184 property:P530 ?y } } }
Belarus
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?w ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?w = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:diplomatic_relation ?y } } }
[]
designation for an administrative territorial entity political territorial entity
Q230 Q184 Q32
SYSTEM
Georgia, Belarus, Luxembourg
Q702 Q262 Q265 Q37 Q712 Q717 Q837 Q657 Q792 Q958 Q986 Q822 Q241 Q242 Q244 Q32 Q929 Q983 Q29999 Q854 Q819 Q424 Q730 Q230 Q232 Q238 Q1045 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q184 Q228 Q227 Q222 Q221 Q1037 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q695 Q754 Q211 Q217 Q214 Q912 Q917 Q1007 Q1006 Q1005 Q977 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q948 Q817 Q1019 Q1016 Q1011 Q945 Q678 Q33788
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q184
relation P530
type Q15617994
[ANSWERS] have a diplomatic relationship with around the same number of political territories as Belarus
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?w ) WHERE { ?s property:P530 ?l . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q1048835 } GROUP BY ?s } . FILTER ( ?w = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q184 property:P530 ?y } } }
Federated States of Micronesia Algeria Uzbekistan Lithuania Fiji Venezuela Nepal Chad El Salvador South Sudan Eritrea Lebanon Cuba Belize Barbados Luxembourg Central African Republic Equatorial Guinea Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Georgia Kazakhstan San Marino Somalia Hungary Brunei Sudan Mauritius Malawi Iceland Belarus Andorra Azerbaijan Albania Republic of Macedonia Rwanda Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Palau Trinidad and Tobago Latvia Republic of Moldova Slovakia Mali Bhutan Guinea-Bissau Guinea Gambia Djibouti Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Tunisia Kuwait Madagascar Libya Cape Verde Togo Tonga New Caledonia
Georgia, Belarus and Luxembourg have a diplomatic relationship with around the same number of political territories as Belarus
Georgia Belarus Luxembourg
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Belarus
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?l ) AS ?w ) WHERE { ?s property:diplomatic_relation ?l . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:political_territorial_entity } GROUP BY ?s } . FILTER ( ?w = ?u ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?u ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Belarus property:diplomatic_relation ?y } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q347
P530
Q15617994 Q1048835
USER
And also tell me about Liechtenstein?
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?f ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q347 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f = ?r ) }
Liechtenstein
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?f ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Liechtenstein property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f = ?r ) }
[]
designation for an administrative territorial entity political territorial entity
Q55 Q148 Q17
SYSTEM
Netherlands, People's Republic of China, Japan
Q804 Q800 Q419 Q668 Q414 Q55 Q148 Q783 Q45 Q41 Q796 Q794 Q954 Q889 Q881 Q811 Q31 Q924 Q928 Q733 Q734 Q233 Q1041 Q27 Q1028 Q736 Q786 Q225 Q224 Q96 Q347 Q17 Q902 Q1036 Q1033 Q963 Q298 Q117 Q750 Q213 Q215 Q219 Q916 Q1009 Q774 Q810 Q29 Q869
(c(Q1048835),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q347
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?f ) WHERE { ?i property:P530 ?g . ?i rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q1048835 } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q347 property:P530 ?n . ?n rdf:type ontology:Q15617994 } } . FILTER ( ?f = ?r ) }
Panama Costa Rica Peru India Argentina Netherlands People's Republic of China Honduras Portugal Greece Iraq Iran Zimbabwe Afghanistan Vietnam Nicaragua Belgium Tanzania Philippines Paraguay Guyana Malta Senegal Ireland Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Liechtenstein Japan Bangladesh Uganda Nigeria Botswana Chile Ghana Bolivia Czech Republic Slovenia Bulgaria Angola Cameroon Guatemala Jordan Spain Thailand
Netherlands People's Republic of China Japan
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Liechtenstein
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?g ) AS ?f ) WHERE { ?i property:diplomatic_relation ?g . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:political_territorial_entity } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Liechtenstein property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?f = ?r ) }
[]