Simple Question (Direct)
Simple Question
Q272325
P1376
Q20667921
USER
Which french administrative division has Guerville has its center of administration ?
(Q272325,P1376,c(Q20667921))
action filter_type
action find
entity Q272325
relation P1376
type Q20667921
['Q272325', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q20667921 . resource:Q272325 property:P1376 ?z }
Guerville
action filter_type
action find
entity Guerville
relation capital of
type type of french administrative division
['Guerville', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Guerville property:capital_of ?z }
[]
type of french administrative division
Q1293204
SYSTEM
canton of Guerville
Q1293204
(Q272325,P1376,c(Q20667921))
action filter_type
action find
entity Q272325
relation P1376
type Q20667921
[ANSWER] has Guerville has its center of administration
['Q272325', 'P1376', {'concept': 'Q20667921'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q20667921 . resource:Q272325 property:P1376 ?z }
canton of Guerville
Canton of Guerville has Guerville has its center of administration
canton of Guerville
action filter_type
action find
entity Guerville
relation capital of
type type of french administrative division
['Guerville', 'capital of', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:type_of_french_administrative_division . resource:Guerville property:capital_of ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1293204
P36
Q20667921
USER
Which french administrative division is known as the capital of that one ?
(Q1293204,P36,c(Q20667921))
action filter_type
action find
entity Q1293204
relation P36
type Q20667921
['Q1293204', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1293204 property:P36 ?e . ?e rdf:type ontology:Q20667921 }
canton of Guerville
action filter_type
action find
entity canton of Guerville
relation capital
type type of french administrative division
['canton of Guerville', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:canton_of_Guerville property:capital ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q272325
SYSTEM
Guerville
Q272325
(Q1293204,P36,c(Q20667921))
action filter_type
action find
entity Q1293204
relation P36
type Q20667921
[ANSWER] is known as the capital of that one
['Q1293204', 'P36', {'concept': 'Q20667921'}]
SELECT DISTINCT ?e WHERE { resource:Q1293204 property:P36 ?e . ?e rdf:type ontology:Q20667921 }
Guerville
Guerville is known as the capital of that one
Guerville
action filter_type
action find
entity canton of Guerville
relation capital
type type of french administrative division
['canton of Guerville', 'capital', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?e WHERE { resource:canton_of_Guerville property:capital ?e . ?e rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1293204
P17
Q15617994
USER
Which administrative territory is canton of Guerville located in ?
(Q1293204,P17,c(Q15617994))
action filter_type
action find
entity Q1293204
relation P17
type Q15617994
['Q1293204', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1293204 property:P17 ?a }
canton of Guerville
action filter_type
action find
entity canton of Guerville
relation country
type designation for an administrative territorial entity
['canton of Guerville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:canton_of_Guerville property:country ?a }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1293204,P17,c(Q15617994))
action filter_type
action find
entity Q1293204
relation P17
type Q15617994
Canton of Guerville is located in [ANSWER]
['Q1293204', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15617994 . resource:Q1293204 property:P17 ?a }
France
Canton of Guerville is located in France
France
action filter_type
action find
entity canton of Guerville
relation country
type designation for an administrative territorial entity
['canton of Guerville', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:canton_of_Guerville property:country ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q17527622
Q15617994
USER
And also tell me about Church Of St Margaret?
(Q17527622,P17,c(Q15617994))
action filter_type
action find
entity Q17527622
relation P17
type Q15617994
['Q17527622', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q17527622 property:P17 ?q }
Church Of St Margaret
action filter_type
action find
entity Church Of St Margaret
relation country
type designation for an administrative territorial entity
['Church Of St Margaret', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Church_Of_St_Margaret property:country ?q }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q17527622,P17,c(Q15617994))
action filter_type
action find
entity Q17527622
relation P17
type Q15617994
[ANSWER]
['Q17527622', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q15617994 . resource:Q17527622 property:P17 ?q }
United Kingdom
United Kingdom
action filter_type
action find
entity Church Of St Margaret
relation country
type designation for an administrative territorial entity
['Church Of St Margaret', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Church_Of_St_Margaret property:country ?q }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q145 Q3167286 Q269412
P35
Q502895
USER
Is Jean-Luc Wingert and George V the head of state of United Kingdom ?
(Q145,P35,Q3167286) (Q145,P35,Q269412)
action is_in
entity Q145
action intersection
action find_reverse
entity Q3167286
relation P35
action find_reverse
entity Q269412
relation P35
['Q145', 'P35', 'Q3167286'] ['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q3167286 . resource:Q145 property:P35 resource:Q269412 }
United Kingdom Jean-Luc Wingert George V
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Jean-Luc Wingert
relation head of state
action find_reverse
entity George V
relation head of state
['United Kingdom', 'head of state', 'Jean-Luc Wingert'] ['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Jean-Luc_Wingert . resource:United_Kingdom property:head_of_state resource:George_V }
[]
common name
SYSTEM
NO and YES respectively
(Q145,P35,Q3167286) (Q145,P35,Q269412)
action is_in
entity Q145
action intersection
action find_reverse
entity Q3167286
relation P35
action find_reverse
entity Q269412
relation P35
[ANSWER]
['Q145', 'P35', 'Q3167286'] ['Q145', 'P35', 'Q269412']
ASK WHERE { resource:Q145 property:P35 resource:Q3167286 . resource:Q145 property:P35 resource:Q269412 }
NO and YES respectively
action is_in
entity United Kingdom
action intersection
action find_reverse
entity Jean-Luc Wingert
relation head of state
action find_reverse
entity George V
relation head of state
['United Kingdom', 'head of state', 'Jean-Luc Wingert'] ['United Kingdom', 'head of state', 'George V']
ASK WHERE { resource:United_Kingdom property:head_of_state resource:Jean-Luc_Wingert . resource:United_Kingdom property:head_of_state resource:George_V }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q272325 Q142
P17
Q15617994
USER
Is that french administrative division a part of France ?
(Q272325,P17,Q142)
action is_in
entity Q142
action find
entity Q272325
relation P17
['Q272325', 'P17', 'Q142']
ASK WHERE { resource:Q272325 property:P17 resource:Q142 }
Guerville France
action is_in
entity France
action find
entity Guerville
relation country
['Guerville', 'country', 'France']
ASK WHERE { resource:Guerville property:country resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q272325,P17,Q142)
action is_in
entity Q142
action find
entity Q272325
relation P17
[ANSWER]
['Q272325', 'P17', 'Q142']
ASK WHERE { resource:Q272325 property:P17 resource:Q142 }
Yes
action is_in
entity France
action find
entity Guerville
relation country
['Guerville', 'country', 'France']
ASK WHERE { resource:Guerville property:country resource:France }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q37180 Q272325
P47
Q20667921
USER
Which french administrative divisions share the border with Guerville or Saint-Firmin ?
OR((Q272325,P47,c(Q20667921)), (Q37180,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q272325
relation P47
action find
entity Q37180
relation P47
type Q20667921
{'OR': [['Q272325', 'P47', {'concept': 'Q20667921'}], ['Q37180', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q272325 property:P47 ?p } UNION { resource:Q37180 property:P47 ?p } } . ?p rdf:type ontology:Q20667921 }
Saint-Firmin Guerville
action filter_type
action union
action find
entity Guerville
relation shares border with
action find
entity Saint-Firmin
relation shares border with
type type of french administrative division
{'OR': [['Guerville', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Firmin', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Guerville property:shares_border_with ?p } UNION { resource:Saint-Firmin property:shares_border_with ?p } } . ?p rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1157060 Q760624 Q1146892 Q41714 Q244294 Q83452 Q1419015 Q783707 Q890160 Q526378
SYSTEM
Some of them are Bona, Mantes-la-Ville, Saint-Jean-aux-Amognes, Saint-Benin-d'Azy, Porcheville, Boinville-en-Mantois, Arnouville-lès-Mantes, Breuil-Bois-Robert, Billy-Chevannes, Limay
Q890160 Q783707 Q1157060 Q33828 Q1146892 Q83452 Q760624 Q41714 Q526378 Q1419015 Q244294 Q1464487
OR((Q272325,P47,c(Q20667921)), (Q37180,P47,c(Q20667921)))
action filter_type
action union
action find
entity Q272325
relation P47
action find
entity Q37180
relation P47
type Q20667921
[ANSWERS] share the border with Guerville or Saint-Firmin
{'OR': [['Q272325', 'P47', {'concept': 'Q20667921'}], ['Q37180', 'P47', {'concept': 'Q20667921'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Q272325 property:P47 ?p } UNION { resource:Q37180 property:P47 ?p } } . ?p rdf:type ontology:Q20667921 }
Billy-Chevannes Breuil-Bois-Robert Bona Saint-Sulpice Saint-Jean-aux-Amognes Boinville-en-Mantois Mantes-la-Ville Saint-Benin-d'Azy Limay Arnouville-lès-Mantes Porcheville Mézières-sur-Seine
Bona, Mantes-la-Ville, Saint-Jean-aux-Amognes, Saint-Benin-d'Azy, Porcheville, Boinville-en-Mantois, Arnouville-lès-Mantes, Breuil-Bois-Robert, Billy-Chevannes and Limay share the border with Guerville or Saint-Firmin
Bona Mantes-la-Ville Saint-Jean-aux-Amognes Saint-Benin-d'Azy Porcheville Boinville-en-Mantois Arnouville-lès-Mantes Breuil-Bois-Robert Billy-Chevannes Limay
action filter_type
action union
action find
entity Guerville
relation shares border with
action find
entity Saint-Firmin
relation shares border with
type type of french administrative division
{'OR': [['Guerville', 'shares border with', {'concept': 'type of french administrative division'}], ['Saint-Firmin', 'shares border with', {'concept': 'type of french administrative division'}]]}
SELECT DISTINCT ?p WHERE { { { resource:Guerville property:shares_border_with ?p } UNION { resource:Saint-Firmin property:shares_border_with ?p } } . ?p rdf:type ontology:type_of_french_administrative_division }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4821136 Q145
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relationships with United Kingdom or do Augustin Senghor belong to ?
OR((Q145,P530,c(Q15617994)), (Q4821136,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q4821136
relation P27
type Q15617994
{'OR': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q4821136', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q4821136 property:P27 ?m } UNION { resource:Q145 property:P530 ?m } } . ?m rdf:type ontology:Q15617994 }
Augustin Senghor United Kingdom
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity Augustin Senghor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Augustin Senghor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Augustin_Senghor property:country_of_citizenship ?m } UNION { resource:United_Kingdom property:diplomatic_relation ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q805 Q801 Q155 Q37 Q1041 Q403 Q38
SYSTEM
France, Yemen, Israel, Brazil, Lithuania, Senegal, Serbia, Italy
Q142 Q805 Q801 Q155 Q37 Q1041 Q403 Q38
OR((Q145,P530,c(Q15617994)), (Q4821136,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q145
relation P530
action find
entity Q4821136
relation P27
type Q15617994
[ANSWERS] have diplomatic relationships with United Kingdom or do Augustin Senghor belong to
{'OR': [['Q145', 'P530', {'concept': 'Q15617994'}], ['Q4821136', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q4821136 property:P27 ?m } UNION { resource:Q145 property:P530 ?m } } . ?m rdf:type ontology:Q15617994 }
France Yemen Israel Brazil Lithuania Senegal Serbia Italy
France, Yemen, Israel, Brazil, Lithuania, Senegal, Serbia and Italy have diplomatic relationships with United Kingdom or do Augustin Senghor belong to
France Yemen Israel Brazil Lithuania Senegal Serbia Italy
action filter_type
action union
action find
entity United Kingdom
relation diplomatic relation
action find
entity Augustin Senghor
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Augustin Senghor', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Augustin_Senghor property:country_of_citizenship ?m } UNION { resource:United_Kingdom property:diplomatic_relation ?m } } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q33
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with around the same number of administrative territories as Finland ?
(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 Q33
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?y ) WHERE { ?x property:P530 ?i . ?x rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q33 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Finland
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 Finland
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?y ) WHERE { ?x property:diplomatic_relation ?i . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Finland property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 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 Q33
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with around the same number of administrative territories as Finland
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?y ) WHERE { ?x property:P530 ?i . ?x rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?x } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q33 property:P530 ?m . ?m rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein 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 and People's Republic of China are known to have diplomatic connections with around the same number of administrative territories as Finland
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 Finland
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?i ) AS ?y ) WHERE { ?x property:diplomatic_relation ?i . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . FILTER ( ?y = ?f ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Finland property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q29
P530
Q15617994 Q15617994
USER
And what about Spain?
(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 Q29
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?o ) WHERE { ?g property:P530 ?u . ?g rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q29 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?i ) }
Spain
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 Spain
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?o ) WHERE { ?g property:diplomatic_relation ?u . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Spain property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?i ) }
[]
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 Q29
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?o ) WHERE { ?g property:P530 ?u . ?g rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Q29 property:P530 ?e . ?e rdf:type ontology:Q15617994 } } . FILTER ( ?o = ?i ) }
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 Spain
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 ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?u ) AS ?o ) WHERE { ?g property:diplomatic_relation ?u . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?e ) AS ?i ) WHERE { resource:Spain property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?o = ?i ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q2480941 Q36
P47 P27
Q15617994
USER
Which administrative territories share border with Poland and do Shamil Lakhiyalov belong to ?
AND((Q36,P47,c(Q15617994)), (Q2480941,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q36
relation P47
action find
entity Q2480941
relation P27
type Q15617994
{'AND': [['Q36', 'P47', {'concept': 'Q15617994'}], ['Q2480941', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q36 property:P47 ?u . resource:Q2480941 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Shamil Lakhiyalov Poland
action filter_type
action intersection
action find
entity Poland
relation shares border with
action find
entity Shamil Lakhiyalov
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Shamil Lakhiyalov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Poland property:shares_border_with ?u . resource:Shamil_Lakhiyalov property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159
SYSTEM
Russia
Q159
AND((Q36,P47,c(Q15617994)), (Q2480941,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q36
relation P47
action find
entity Q2480941
relation P27
type Q15617994
[ANSWER] share border with Poland and do Shamil Lakhiyalov belong to
{'AND': [['Q36', 'P47', {'concept': 'Q15617994'}], ['Q2480941', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { resource:Q36 property:P47 ?u . resource:Q2480941 property:P27 ?u . ?u rdf:type ontology:Q15617994 }
Russia
Russia share border with Poland and do Shamil Lakhiyalov belong to
Russia
action filter_type
action intersection
action find
entity Poland
relation shares border with
action find
entity Shamil Lakhiyalov
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Poland', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Shamil Lakhiyalov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { resource:Poland property:shares_border_with ?u . resource:Shamil_Lakhiyalov property:country_of_citizenship ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]