Simple Question (Direct)
Simple Question
Q4104739
P22
Q502895
USER
Who was the father of Ekaterina Vasilyeva ?
(Q4104739,P22,c(Q502895))
action filter_type
action find
entity Q4104739
relation P22
type Q502895
['Q4104739', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4104739 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Ekaterina Vasilyeva
action filter_type
action find
entity Ekaterina Vasilyeva
relation father
type common name
['Ekaterina Vasilyeva', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Ekaterina_Vasilyeva property:father ?k . ?k rdf:type ontology:common_name }
[]
common name
Q4252214
SYSTEM
Nikolai Lavrov
Q4252214
(Q4104739,P22,c(Q502895))
action filter_type
action find
entity Q4104739
relation P22
type Q502895
The father of Ekaterina Vasilyeva was the [ANSWER]
['Q4104739', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q4104739 property:P22 ?k . ?k rdf:type ontology:Q502895 }
Nikolai Lavrov
The father of Ekaterina Vasilyeva was the Nikolai Lavrov
Nikolai Lavrov
action filter_type
action find
entity Ekaterina Vasilyeva
relation father
type common name
['Ekaterina Vasilyeva', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Ekaterina_Vasilyeva property:father ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4104739
P20
Q56061
USER
Where did Ekaterina Vasilyeva expire ?
(Q4104739,P20,c(Q56061))
action filter_type
action find
entity Q4104739
relation P20
type Q56061
['Q4104739', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q4104739 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Ekaterina Vasilyeva
action filter_type
action find
entity Ekaterina Vasilyeva
relation place of death
type administrative territorial entity
['Ekaterina Vasilyeva', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ekaterina_Vasilyeva property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q70
SYSTEM
Bern
Q70
(Q4104739,P20,c(Q56061))
action filter_type
action find
entity Q4104739
relation P20
type Q56061
Ekaterina Vasilyeva expired in [ANSWER]
['Q4104739', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { resource:Q4104739 property:P20 ?c . ?c rdf:type ontology:Q56061 }
Bern
Ekaterina Vasilyeva expired in Bern
Bern
action filter_type
action find
entity Ekaterina Vasilyeva
relation place of death
type administrative territorial entity
['Ekaterina Vasilyeva', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { resource:Ekaterina_Vasilyeva property:place_of_death ?c . ?c rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4104739
P27
Q3024240
USER
Which former country is that person an inhabitant of ?
(Q70,P27,c(Q3024240))
action filter_type
action find
entity Q4104739
relation P27
type Q3024240
['Q70', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?n WHERE { resource:Q4104739 property:P27 ?n . ?n rdf:type ontology:Q3024240 }
Ekaterina Vasilyeva
action filter_type
action find
entity Ekaterina Vasilyeva
relation country of citizenship
type former country
['Bern', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?n WHERE { resource:Ekaterina_Vasilyeva property:country_of_citizenship ?n . ?n rdf:type ontology:former_country }
[]
former country
Q34266
SYSTEM
Russian Empire
Q34266
(Q70,P27,c(Q3024240))
action filter_type
action find
entity Q4104739
relation P27
type Q3024240
The [ANSWER] is that person an inhabitant of
['Q70', 'P27', {'concept': 'Q3024240'}]
SELECT DISTINCT ?n WHERE { resource:Q4104739 property:P27 ?n . ?n rdf:type ontology:Q3024240 }
Russian Empire
The Russian Empire is that person an inhabitant of
Russian Empire
action filter_type
action find
entity Ekaterina Vasilyeva
relation country of citizenship
type former country
['Bern', 'country of citizenship', {'concept': 'former country'}]
SELECT DISTINCT ?n WHERE { resource:Ekaterina_Vasilyeva property:country_of_citizenship ?n . ?n rdf:type ontology:former_country }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q34266 Q8479
P112
Q502895
USER
Is Peter the Great the name of the founder of that former country ?
(Q34266,P112,Q8479)
action is_in
entity Q8479
action find
entity Q34266
relation P112
['Q34266', 'P112', 'Q8479']
ASK WHERE { resource:Q34266 property:P112 resource:Q8479 }
Russian Empire Peter the Great
action is_in
entity Peter the Great
action find
entity Russian Empire
relation founder
['Russian Empire', 'founder', 'Peter the Great']
ASK WHERE { resource:Russian_Empire property:founder resource:Peter_the_Great }
[]
common name
SYSTEM
YES
(Q34266,P112,Q8479)
action is_in
entity Q8479
action find
entity Q34266
relation P112
[ANSWER]
['Q34266', 'P112', 'Q8479']
ASK WHERE { resource:Q34266 property:P112 resource:Q8479 }
Yes
action is_in
entity Peter the Great
action find
entity Russian Empire
relation founder
['Russian Empire', 'founder', 'Peter the Great']
ASK WHERE { resource:Russian_Empire property:founder resource:Peter_the_Great }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q70 Q16465606 Q1741
P190
Q56061
USER
Is Bern sister town of Nemeikščiai and Vienna ?
(Q70,P190,Q16465606) (Q70,P190,Q1741)
action is_in
entity Q70
action intersection
action find_reverse
entity Q16465606
relation P190
action find_reverse
entity Q1741
relation P190
['Q70', 'P190', 'Q16465606'] ['Q70', 'P190', 'Q1741']
ASK WHERE { resource:Q70 property:P190 resource:Q16465606 . resource:Q70 property:P190 resource:Q1741 }
Bern Nemeikščiai Vienna
action is_in
entity Bern
action intersection
action find_reverse
entity Nemeikščiai
relation sister city
action find_reverse
entity Vienna
relation sister city
['Bern', 'sister city', 'Nemeikščiai'] ['Bern', 'sister city', 'Vienna']
ASK WHERE { resource:Bern property:sister_city resource:Nemeikščiai . resource:Bern property:sister_city resource:Vienna }
[]
administrative territorial entity
SYSTEM
NO and YES respectively
(Q70,P190,Q16465606) (Q70,P190,Q1741)
action is_in
entity Q70
action intersection
action find_reverse
entity Q16465606
relation P190
action find_reverse
entity Q1741
relation P190
[ANSWER]
['Q70', 'P190', 'Q16465606'] ['Q70', 'P190', 'Q1741']
ASK WHERE { resource:Q70 property:P190 resource:Q16465606 . resource:Q70 property:P190 resource:Q1741 }
NO and YES respectively
action is_in
entity Bern
action intersection
action find_reverse
entity Nemeikščiai
relation sister city
action find_reverse
entity Vienna
relation sister city
['Bern', 'sister city', 'Nemeikščiai'] ['Bern', 'sister city', 'Vienna']
ASK WHERE { resource:Bern property:sister_city resource:Nemeikščiai . resource:Bern property:sister_city resource:Vienna }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70
P159
Q43229
USER
Which organizations have the principal seat at Bern ?
action filter_type
action find_reverse
entity Q70
relation P159
type Q43229
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q70 . ?v rdf:type ontology:Q43229 }
Bern
action filter_type
action find_reverse
entity Bern
relation headquarters location
type organization
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Bern . ?v rdf:type ontology:organization }
[]
organization
Q747059 Q614803 Q83835
SYSTEM
European Movement Switzerland, Swiss Post, Swiss Federal Railways
Q663942 Q449233 Q793607 Q2311221 Q681700 Q614803 Q747059 Q670895 Q723691 Q3685026 Q83835 Q7714792 Q665504 Q3266774 Q1437563 Q667060 Q688785 Q796246 Q676238 Q18018661
action filter_type
action find_reverse
entity Q70
relation P159
type Q43229
[ANSWERS] have the principal seat at Bern
SELECT DISTINCT ?v WHERE { ?v property:P159 resource:Q70 . ?v rdf:type ontology:Q43229 }
Ascom PostFinance Bernafon Spital Netz Bern Städtische Verkehrsbetriebe Bern Swiss Post European Movement Switzerland BKW FMB Energie Asendia Brig–Furka–Disentis-Bahn Swiss Federal Railways The Athlete's Foot Valora Mb-microtec Swiss Cheese Union RUAG Sea Launch BLS Cargo Alliance Boots Bayard Wartmann
European Movement Switzerland, Swiss Post and Swiss Federal Railways have the principal seat at Bern
European Movement Switzerland Swiss Post Swiss Federal Railways
action filter_type
action find_reverse
entity Bern
relation headquarters location
type organization
SELECT DISTINCT ?v WHERE { ?v property:headquarters_location resource:Bern . ?v rdf:type ontology:organization }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1009136 Q70
P190
Q56061
USER
Which administrative territories are twin cities of Bern or Vesilahti ?
OR((Q70,P190,c(Q56061)), (Q1009136,P190,c(Q56061)))
action filter_type
action union
action find
entity Q70
relation P190
action find
entity Q1009136
relation P190
type Q56061
{'OR': [['Q70', 'P190', {'concept': 'Q56061'}], ['Q1009136', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q70 property:P190 ?y } UNION { resource:Q1009136 property:P190 ?y } } . ?y rdf:type ontology:Q56061 }
Vesilahti Bern
action filter_type
action union
action find
entity Bern
relation sister city
action find
entity Vesilahti
relation sister city
type administrative territorial entity
{'OR': [['Bern', 'sister city', {'concept': 'administrative territorial entity'}], ['Vesilahti', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Bern property:sister_city ?y } UNION { resource:Vesilahti property:sister_city ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q1002490 Q83036 Q34820 Q34713
SYSTEM
Vienna, New Bern, Sankt Georgen im Schwarzwald, Santo Domingo, Salzburg
Q1741 Q1002490 Q83036 Q34820 Q34713
OR((Q70,P190,c(Q56061)), (Q1009136,P190,c(Q56061)))
action filter_type
action union
action find
entity Q70
relation P190
action find
entity Q1009136
relation P190
type Q56061
[ANSWERS] are twin cities of Bern or Vesilahti
{'OR': [['Q70', 'P190', {'concept': 'Q56061'}], ['Q1009136', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q70 property:P190 ?y } UNION { resource:Q1009136 property:P190 ?y } } . ?y rdf:type ontology:Q56061 }
Vienna New Bern Sankt Georgen im Schwarzwald Santo Domingo Salzburg
Vienna, New Bern, Sankt Georgen im Schwarzwald, Santo Domingo and Salzburg are twin cities of Bern or Vesilahti
Vienna New Bern Sankt Georgen im Schwarzwald Santo Domingo Salzburg
action filter_type
action union
action find
entity Bern
relation sister city
action find
entity Vesilahti
relation sister city
type administrative territorial entity
{'OR': [['Bern', 'sister city', {'concept': 'administrative territorial entity'}], ['Vesilahti', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Bern property:sister_city ?y } UNION { resource:Vesilahti property:sister_city ?y } } . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q70
P915
Q838948
USER
What were filmed at Bern ?
(c(Q838948),P915,Q70)
action filter_type
action find_reverse
entity Q70
relation P915
type Q838948
[{'concept': 'Q838948'}, 'P915', 'Q70']
SELECT DISTINCT ?r WHERE { ?r property:P915 resource:Q70 . ?r rdf:type ontology:Q838948 }
Bern
action filter_type
action find_reverse
entity Bern
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Bern']
SELECT DISTINCT ?r WHERE { ?r property:filming_location resource:Bern . ?r rdf:type ontology:work_of_art }
[]
work of art
Q17019453 Q107894
SYSTEM
Our Kind of Traitor, On Her Majesty's Secret Service
Q17019453 Q107894
(c(Q838948),P915,Q70)
action filter_type
action find_reverse
entity Q70
relation P915
type Q838948
In [ANSWERS] were filmed at Bern
[{'concept': 'Q838948'}, 'P915', 'Q70']
SELECT DISTINCT ?r WHERE { ?r property:P915 resource:Q70 . ?r rdf:type ontology:Q838948 }
Our Kind of Traitor On Her Majesty's Secret Service
In Our Kind of Traitor and On Her Majesty's Secret Service were filmed at Bern
Our Kind of Traitor On Her Majesty's Secret Service
action filter_type
action find_reverse
entity Bern
relation filming location
type work of art
[{'concept': 'work of art'}, 'filming location', 'Bern']
SELECT DISTINCT ?r WHERE { ?r property:filming_location resource:Bern . ?r rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q70
P17
Q15617994
USER
Which administrative territory is that administrative territory located in ?
(Q17019453,P17,c(Q15617994)) (Q107894,P17,c(Q15617994))
action filter_type
action find
entity Q70
relation P17
type Q15617994
['Q17019453', 'P17', {'concept': 'Q15617994'}] ['Q107894', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q70 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Bern
action filter_type
action find
entity Bern
relation country
type designation for an administrative territorial entity
['Our Kind of Traitor', 'country', {'concept': 'designation for an administrative territorial entity'}] ["On Her Majesty's Secret Service", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Bern property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q39
SYSTEM
Switzerland
Q39
(Q17019453,P17,c(Q15617994)) (Q107894,P17,c(Q15617994))
action filter_type
action find
entity Q70
relation P17
type Q15617994
That administrative territory is located in [ANSWER]
['Q17019453', 'P17', {'concept': 'Q15617994'}] ['Q107894', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { resource:Q70 property:P17 ?f . ?f rdf:type ontology:Q15617994 }
Switzerland
That administrative territory is located in Switzerland
Switzerland
action filter_type
action find
entity Bern
relation country
type designation for an administrative territorial entity
['Our Kind of Traitor', 'country', {'concept': 'designation for an administrative territorial entity'}] ["On Her Majesty's Secret Service", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { resource:Bern property:country ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q954
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relations with less number of administrative territories than Zimbabwe ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q954
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P530 resource:Q954 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?v ) }
Zimbabwe
action count
action less
action find_reverse_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_reverse
entity Zimbabwe
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 ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:diplomatic_relation resource:Zimbabwe . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find_reverse
entity Q954
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:P530 resource:Q954 . ?j rdf:type ontology:Q15617994 } } . FILTER ( ?a < ?v ) }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
action count
action less
action find_reverse_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_reverse
entity Zimbabwe
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 ( COUNT ( ?h ) AS ?n ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?m ) AS ?a ) WHERE { ?m property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?j ) AS ?v ) WHERE { ?j property:diplomatic_relation resource:Zimbabwe . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?a < ?v ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q921
P530
Q15617994 Q15617994
USER
And what about Brunei?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q921
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?j property:P530 ?q } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Q921 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?u ) }
Brunei
action count
action less
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 Brunei
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 ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?q } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Brunei property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?u ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
25
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q921
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { ?j rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?j property:P530 ?q } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Q921 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?g < ?u ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
25
action count
action less
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 Brunei
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 ( COUNT ( ?j ) AS ?l ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?g ) WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?q } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { resource:Brunei property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g < ?u ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
How many political territories have a diplomatic relationship with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?v ) WHERE { ?s property:P530 ?i . ?s rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?v = 1 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?v ) WHERE { ?s property:diplomatic_relation ?i . ?s rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?v = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
SYSTEM
4
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?v ) WHERE { ?s property:P530 ?i . ?s rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?v = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
4
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?e ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?i ) AS ?v ) WHERE { ?s property:diplomatic_relation ?i . ?s rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?v = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q1307214 Q22676587 Q3024240
USER
How many former countries have exactly 1 forms of government or monarchic systems as the form of government ?
(c(Q3024240),P122,c(Q1307214)|c(Q22676587))
action count
action equal
action union
action find_tuple_counts
relation P122
type Q3024240
type Q1307214
action find_tuple_counts
relation P122
type Q3024240
type Q22676587
value 1
[{'concept': 'Q3024240'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?f ) { ( ontology:Q1307214 ) ( ontology:Q22676587 ) } . ?q rdf:type ?f } GROUP BY ?z } }
action count
action equal
action union
action find_tuple_counts
relation basic form of government
type former country
type form of government
action find_tuple_counts
relation basic form of government
type former country
type monarchic system
value 1
[{'concept': 'former country'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?f ) { ( ontology:form_of_government ) ( ontology:monarchic_system ) } . ?q rdf:type ?f } GROUP BY ?z } }
[]
form of government monarchic system former country
SYSTEM
4
Q34266 Q5406 Q43287 Q837855
(c(Q3024240),P122,c(Q1307214)|c(Q22676587))
action count
action equal
action union
action find_tuple_counts
relation P122
type Q3024240
type Q1307214
action find_tuple_counts
relation P122
type Q3024240
type Q22676587
value 1
[ANSWER]
[{'concept': 'Q3024240'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?f ) { ( ontology:Q1307214 ) ( ontology:Q22676587 ) } . ?q rdf:type ?f } GROUP BY ?z } }
Russian Empire Hittites German Empire Qi
4
action count
action equal
action union
action find_tuple_counts
relation basic form of government
type former country
type form of government
action find_tuple_counts
relation basic form of government
type former country
type monarchic system
value 1
[{'concept': 'former country'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?h ) WHERE { FILTER ( ?l = 1 ) . { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?l ) WHERE { VALUES ( ?f ) { ( ontology:form_of_government ) ( ontology:monarchic_system ) } . ?q rdf:type ?f } GROUP BY ?z } }
[]