Simple Question (Direct)
Simple Question
Q480148
P106
Q12737077
USER
What does Laurence Robertson do for a living ?
(Q480148,P106,c(Q12737077))
action filter_type
action find
entity Q480148
relation P106
type Q12737077
['Q480148', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q480148 property:P106 ?v }
Laurence Robertson
action filter_type
action find
entity Laurence Robertson
relation occupation
type occupation
['Laurence Robertson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Laurence_Robertson property:occupation ?v }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q480148,P106,c(Q12737077))
action filter_type
action find
entity Q480148
relation P106
type Q12737077
Laurence Robertson does a [ANSWER] for a living
['Q480148', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . resource:Q480148 property:P106 ?v }
politician
Laurence Robertson does a politician for a living
politician
action filter_type
action find
entity Laurence Robertson
relation occupation
type occupation
['Laurence Robertson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . resource:Laurence_Robertson property:occupation ?v }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q480148
P102
Q7210356
USER
Which party does that person belong to ?
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q480148
relation P102
type Q7210356
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q480148 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Laurence Robertson
action filter_type
action find
entity Laurence Robertson
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Laurence_Robertson property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
political organization
Q9626
SYSTEM
Conservative Party
Q9626
(Q82955,P102,c(Q7210356))
action filter_type
action find
entity Q480148
relation P102
type Q7210356
That person belongs to [ANSWER]
['Q82955', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?w WHERE { resource:Q480148 property:P102 ?w . ?w rdf:type ontology:Q7210356 }
Conservative Party
That person belongs to Conservative Party
Conservative Party
action filter_type
action find
entity Laurence Robertson
relation member of political party
type political organization
['politician', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?w WHERE { resource:Laurence_Robertson property:member_of_political_party ?w . ?w rdf:type ontology:political_organization }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P488
Q502895
USER
How many people were the chairpersons of that political organization ?
(Q9626,P488,c(Q502895))
action count
action filter_type
action find
entity Q9626
relation P488
type Q502895
['Q9626', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q9626 property:P488 ?f . ?f rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Conservative Party
relation chairperson
type common name
['Conservative Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Conservative_Party property:chairperson ?f . ?f rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q192
(Q9626,P488,c(Q502895))
action count
action filter_type
action find
entity Q9626
relation P488
type Q502895
[ANSWER]
['Q9626', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Q9626 property:P488 ?f . ?f rdf:type ontology:Q502895 }
David Cameron
1
action count
action filter_type
action find
entity Conservative Party
relation chairperson
type common name
['Conservative Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?g ) WHERE { resource:Conservative_Party property:chairperson ?f . ?f rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q10308975 Q480148
P27
Q15617994
USER
Which administrative territories are Laurence Robertson or José Bento de Araújo an inhabitant of ?
OR((Q480148,P27,c(Q15617994)), (Q10308975,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q480148
relation P27
action find
entity Q10308975
relation P27
type Q15617994
{'OR': [['Q480148', 'P27', {'concept': 'Q15617994'}], ['Q10308975', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?k property:P27 ?g . VALUES ( ?k ) { ( resource:Q480148 ) ( resource:Q10308975 ) } } . ?g rdf:type ontology:Q15617994 }
José Bento de Araújo Laurence Robertson
action filter_type
action union
action find
entity Laurence Robertson
relation country of citizenship
action find
entity José Bento de Araújo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Robertson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Bento de Araújo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?k property:country_of_citizenship ?g . VALUES ( ?k ) { ( resource:Laurence_Robertson ) ( resource:José_Bento_de_Araújo ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q145
SYSTEM
Brazil, United Kingdom
Q155 Q145
OR((Q480148,P27,c(Q15617994)), (Q10308975,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q480148
relation P27
action find
entity Q10308975
relation P27
type Q15617994
[ANSWERS] are Laurence Robertson or José Bento de Araújo an inhabitant of
{'OR': [['Q480148', 'P27', {'concept': 'Q15617994'}], ['Q10308975', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?k property:P27 ?g . VALUES ( ?k ) { ( resource:Q480148 ) ( resource:Q10308975 ) } } . ?g rdf:type ontology:Q15617994 }
Brazil United Kingdom
Brazil and United Kingdom are Laurence Robertson or José Bento de Araújo an inhabitant of
Brazil United Kingdom
action filter_type
action union
action find
entity Laurence Robertson
relation country of citizenship
action find
entity José Bento de Araújo
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Robertson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['José Bento de Araújo', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?k property:country_of_citizenship ?g . VALUES ( ?k ) { ( resource:Laurence_Robertson ) ( resource:José_Bento_de_Araújo ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q525992
P47
Q15617994
USER
Are Waffenbrunn next to the border of those ones ?
(Q525992,P47,Q155) (Q525992,P47,Q145)
action is_in
entity prev_answer
action find
entity Q525992
relation P47
['Q525992', 'P47', 'Q155'] ['Q525992', 'P47', 'Q145']
ASK WHERE { VALUES ( ?g ) { ( resource:Q155 ) ( resource:Q145 ) } . resource:Q525992 property:P47 ?g }
Waffenbrunn
action is_in
entity prev_answer
action find
entity Waffenbrunn
relation shares border with
['Waffenbrunn', 'shares border with', 'Brazil'] ['Waffenbrunn', 'shares border with', 'United Kingdom']
ASK WHERE { VALUES ( ?g ) { ( resource:Brazil ) ( resource:United_Kingdom ) } . resource:Waffenbrunn property:shares_border_with ?g }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q525992,P47,Q155) (Q525992,P47,Q145)
action is_in
entity prev_answer
action find
entity Q525992
relation P47
[ANSWER]
['Q525992', 'P47', 'Q155'] ['Q525992', 'P47', 'Q145']
ASK WHERE { VALUES ( ?g ) { ( resource:Q155 ) ( resource:Q145 ) } . resource:Q525992 property:P47 ?g }
No
action is_in
entity prev_answer
action find
entity Waffenbrunn
relation shares border with
['Waffenbrunn', 'shares border with', 'Brazil'] ['Waffenbrunn', 'shares border with', 'United Kingdom']
ASK WHERE { VALUES ( ?g ) { ( resource:Brazil ) ( resource:United_Kingdom ) } . resource:Waffenbrunn property:shares_border_with ?g }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have ambassadorial relations with atmost 12 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 . ?s property:P530 ?m } GROUP BY ?s } . FILTER ( ?p <= 12 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?m } GROUP BY ?s } . FILTER ( ?p <= 12 ) }
[]
designation for an administrative territorial entity political territorial entity
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 12
[ANSWERS] have ambassadorial relations with atmost 12 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s rdf:type ontology:Q1048835 . ?m rdf:type ontology:Q15617994 . ?s property:P530 ?m } GROUP BY ?s } . FILTER ( ?p <= 12 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea New Zealand Jamaica
Denmark, Austria and New Zealand have ambassadorial relations with atmost 12 administrative territories
Denmark Austria New Zealand
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 12
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ?s ( COUNT ( ?m ) AS ?p ) WHERE { ?s rdf:type ontology:political_territorial_entity . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?s property:diplomatic_relation ?m } GROUP BY ?s } . FILTER ( ?p <= 12 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16669734 Q480148
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Laurence Robertson or Serhiy Lavrynenko ?
OR((Q480148,P27,c(Q15617994)), (Q16669734,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q480148
relation P27
action find
entity Q16669734
relation P27
type Q15617994
{'OR': [['Q480148', 'P27', {'concept': 'Q15617994'}], ['Q16669734', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { VALUES ( ?d ) { ( resource:Q16669734 ) ( resource:Q480148 ) } . ?d property:P27 ?r } }
Serhiy Lavrynenko Laurence Robertson
action filter_type
action union
action find
entity Laurence Robertson
relation country of citizenship
action find
entity Serhiy Lavrynenko
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Robertson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Serhiy Lavrynenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?d ) { ( resource:Serhiy_Lavrynenko ) ( resource:Laurence_Robertson ) } . ?d property:country_of_citizenship ?r } }
[]
designation for an administrative territorial entity
Q212 Q145
SYSTEM
Ukraine, United Kingdom
Q212 Q145
OR((Q480148,P27,c(Q15617994)), (Q16669734,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q480148
relation P27
action find
entity Q16669734
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Laurence Robertson or Serhiy Lavrynenko
{'OR': [['Q480148', 'P27', {'concept': 'Q15617994'}], ['Q16669734', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { VALUES ( ?d ) { ( resource:Q16669734 ) ( resource:Q480148 ) } . ?d property:P27 ?r } }
Ukraine United Kingdom
Ukraine and United Kingdom are the countries of citizenship of Laurence Robertson or Serhiy Lavrynenko
Ukraine United Kingdom
action filter_type
action union
action find
entity Laurence Robertson
relation country of citizenship
action find
entity Serhiy Lavrynenko
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Laurence Robertson', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Serhiy Lavrynenko', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?d ) { ( resource:Serhiy_Lavrynenko ) ( resource:Laurence_Robertson ) } . ?d property:country_of_citizenship ?r } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q33788
P530
Q15617994 Q15617994
USER
Which administrative territories have ambassadorial relations with around the same number of administrative territories as New Caledonia ?
(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 Q33788
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q33788 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?q ) WHERE { ?h property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } }
New Caledonia
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 New Caledonia
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 ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:New_Caledonia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?q ) WHERE { ?h property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
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 Q33788
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with around the same number of administrative territories as New Caledonia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:Q33788 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?q = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?q ) WHERE { ?h property:P530 ?p . ?p rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } }
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 ambassadorial relations with around the same number of administrative territories as New Caledonia
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 New Caledonia
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 ?h WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { resource:New_Caledonia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?q = ?w ) . { SELECT DISTINCT ?h ( COUNT ( ?p ) AS ?q ) WHERE { ?h property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q15617994
USER
And how about Lebanon?
(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 Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?z ) WHERE { ?d property:P530 ?e . ?d rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?o } } . FILTER ( ?z = ?n ) }
Lebanon
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 Lebanon
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?z ) WHERE { ?d property:diplomatic_relation ?e . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?o } } . FILTER ( ?z = ?n ) }
[]
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 Q17 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 Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?z ) WHERE { ?d property:P530 ?e . ?d rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:Q15617994 . resource:Q822 property:P530 ?o } } . FILTER ( ?z = ?n ) }
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 Japan 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 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 Lebanon
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 ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?e ) AS ?z ) WHERE { ?d property:diplomatic_relation ?e . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?n ) WHERE { ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Lebanon property:diplomatic_relation ?o } } . FILTER ( ?z = ?n ) }
[]