Simple Question (Direct)
Simple Question
Q11470815
P106
Q12737077
USER
Which occupation is the profession of Mitsuru Yamashina ?
(Q11470815,P106,c(Q12737077))
action filter_type
action find
entity Q11470815
relation P106
type Q12737077
['Q11470815', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q11470815 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Mitsuru Yamashina
action filter_type
action find
entity Mitsuru Yamashina
relation occupation
type occupation
['Mitsuru Yamashina', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Mitsuru_Yamashina property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q211346
SYSTEM
psychiatrist
Q211346
(Q11470815,P106,c(Q12737077))
action filter_type
action find
entity Q11470815
relation P106
type Q12737077
[ANSWER] the profession of Mitsuru Yamashina
['Q11470815', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q11470815 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
psychiatrist
Psychiatrist the profession of Mitsuru Yamashina
psychiatrist
action filter_type
action find
entity Mitsuru Yamashina
relation occupation
type occupation
['Mitsuru Yamashina', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Mitsuru_Yamashina property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11470815
P21
Q290
USER
Which sex does that person possess ?
(Q211346,P21,c(Q290))
action filter_type
action find
entity Q11470815
relation P21
type Q290
['Q211346', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q11470815 property:P21 ?e }
Mitsuru Yamashina
action filter_type
action find
entity Mitsuru Yamashina
relation gender
type sex
['psychiatrist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Mitsuru_Yamashina property:gender ?e }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q211346,P21,c(Q290))
action filter_type
action find
entity Q11470815
relation P21
type Q290
That person possesses a [ANSWER]
['Q211346', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q290 . resource:Q11470815 property:P21 ?e }
male
That person possesses a male
male
action filter_type
action find
entity Mitsuru Yamashina
relation gender
type sex
['psychiatrist', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:sex . resource:Mitsuru_Yamashina property:gender ?e }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q11685495 Q11470815
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Mitsuru Yamashina or Alojzy Szczęśniak ?
OR((Q11470815,P27,c(Q15617994)), (Q11685495,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11470815
relation P27
action find
entity Q11685495
relation P27
type Q15617994
{'OR': [['Q11470815', 'P27', {'concept': 'Q15617994'}], ['Q11685495', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q11470815 property:P27 ?b } UNION { resource:Q11685495 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Alojzy Szczęśniak Mitsuru Yamashina
action filter_type
action union
action find
entity Mitsuru Yamashina
relation country of citizenship
action find
entity Alojzy Szczęśniak
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mitsuru Yamashina', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alojzy Szczęśniak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Mitsuru_Yamashina property:country_of_citizenship ?b } UNION { resource:Alojzy_Szczęśniak property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q17 Q36
SYSTEM
Japan, Poland
Q17 Q36
OR((Q11470815,P27,c(Q15617994)), (Q11685495,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q11470815
relation P27
action find
entity Q11685495
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Mitsuru Yamashina or Alojzy Szczęśniak
{'OR': [['Q11470815', 'P27', {'concept': 'Q15617994'}], ['Q11685495', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q11470815 property:P27 ?b } UNION { resource:Q11685495 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Japan Poland
Japan and Poland are the countries of citizenship of Mitsuru Yamashina or Alojzy Szczęśniak
Japan Poland
action filter_type
action union
action find
entity Mitsuru Yamashina
relation country of citizenship
action find
entity Alojzy Szczęśniak
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Mitsuru Yamashina', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alojzy Szczęśniak', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Mitsuru_Yamashina property:country_of_citizenship ?b } UNION { resource:Alojzy_Szczęśniak property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Are Germany known to have diplomatic connections with those administrative territories ?
(Q183,P530,Q17) (Q183,P530,Q36)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q17'] ['Q183', 'P530', 'Q36']
ASK WHERE { resource:Q183 property:P530 ?p . VALUES ( ?p ) { ( resource:Q17 ) ( resource:Q36 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Japan'] ['Germany', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Germany property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Japan ) ( resource:Poland ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q17) (Q183,P530,Q36)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q17'] ['Q183', 'P530', 'Q36']
ASK WHERE { resource:Q183 property:P530 ?p . VALUES ( ?p ) { ( resource:Q17 ) ( resource:Q36 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Japan'] ['Germany', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Germany property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Japan ) ( resource:Poland ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q11323
P1001
Q15617994 Q11204 Q192350
USER
Which administrative territories belong to jurisdiction of around the same number of legislatures or ministries as Breckerfeld ?
(c(Q11204)|c(Q192350),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action count
action filter_multi_types
action find_reverse
entity Q11323
relation P1001
type Q11204
type Q192350
[[{'concept': 'Q11204'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P1001 resource:Q11323 . { { ?k rdf:type ontology:Q11204 } UNION { ?k rdf:type ontology:Q192350 } } } } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q192350 ) } } GROUP BY ?f } }
Breckerfeld
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action count
action filter_multi_types
action find_reverse
entity Breckerfeld
relation applies to jurisdiction
type legislature
type ministry
[[{'concept': 'legislature'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:applies_to_jurisdiction resource:Breckerfeld . { { ?k rdf:type ontology:legislature } UNION { ?k rdf:type ontology:ministry } } } } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:legislature ) ( ontology:ministry ) } } GROUP BY ?f } }
[]
designation for an administrative territorial entity legislature ministry
Q155 Q55 Q953
SYSTEM
Brazil, Netherlands, Zambia
Q701 Q702 Q804 Q705 Q707 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q22273061 Q55 Q2871 Q262 Q784 Q31 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q657 Q258 Q6465 Q1979 Q155 Q792 Q790 Q4628 Q796 Q958 Q881 Q7688 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q813 Q33 Q921 Q4712 Q924 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q1948 Q232 Q233 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q223 Q222 Q221 Q229 Q347 Q1050 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q12642 Q219 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q33788 Q929 Q1267638 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953 Q1237
(c(Q11204)|c(Q192350),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action count
action filter_multi_types
action find_reverse
entity Q11323
relation P1001
type Q11204
type Q192350
[ANSWERS] belong to jurisdiction of around the same number of legislatures or ministries as Breckerfeld
[[{'concept': 'Q11204'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P1001 resource:Q11323 . { { ?k rdf:type ontology:Q11204 } UNION { ?k rdf:type ontology:Q192350 } } } } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:Q11204 ) ( ontology:Q192350 ) } } GROUP BY ?f } }
North Holland Federated States of Micronesia Panama Zeeland Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen Algeria Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Chad South Africa department of France Prince Edward Island Brazil El Salvador Haiti Faroe Islands Iraq South Sudan Vietnam raion Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Kyrgyzstan Finland Brunei Duchy of Burgundy Tanzania Duchy of Lorraine Switzerland Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Manitoba Kazakhstan Malta Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Greenland Albania Republic of Macedonia Cyprus Liechtenstein Swaziland Saskatchewan Oberhausen Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Nauru South Holland Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Morbihan Bulgaria duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Beloostrov Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia Trentino-South Tyrol
Brazil, Netherlands and Zambia belong to jurisdiction of around the same number of legislatures or ministries as Breckerfeld
Brazil Netherlands Zambia
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action count
action filter_multi_types
action find_reverse
entity Breckerfeld
relation applies to jurisdiction
type legislature
type ministry
[[{'concept': 'legislature'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:applies_to_jurisdiction resource:Breckerfeld . { { ?k rdf:type ontology:legislature } UNION { ?k rdf:type ontology:ministry } } } } . FILTER ( ?v = ?d ) . { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?v ) WHERE { ?w rdf:type ?r . VALUES ( ?r ) { ( ontology:legislature ) ( ontology:ministry ) } } GROUP BY ?f } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q770
P1001
Q15617994 Q11204 Q192350
USER
And how about Friesland?
(c(Q11204)|c(Q192350),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action count
action filter_multi_types
action find_reverse
entity Q770
relation P1001
type Q11204
type Q192350
[[{'concept': 'Q11204'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:P1001 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } UNION { ?m property:P1001 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q192350 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { ?x rdf:type ?q . VALUES ( ?q ) { ( ontology:Q192350 ) ( ontology:Q11204 ) } } . ?x property:P1001 resource:Q770 } } . FILTER ( ?w = ?l ) }
Friesland
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action count
action filter_multi_types
action find_reverse
entity Friesland
relation applies to jurisdiction
type legislature
type ministry
[[{'concept': 'legislature'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } UNION { ?m property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:ministry } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { ?x rdf:type ?q . VALUES ( ?q ) { ( ontology:ministry ) ( ontology:legislature ) } } . ?x property:applies_to_jurisdiction resource:Friesland } } . FILTER ( ?w = ?l ) }
[]
designation for an administrative territorial entity legislature ministry
Q155 Q55 Q953
SYSTEM
Brazil, Netherlands, Zambia
Q701 Q702 Q804 Q705 Q707 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q22273061 Q55 Q2871 Q262 Q784 Q31 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q710 Q717 Q837 Q213 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q657 Q258 Q6465 Q1979 Q155 Q792 Q790 Q4628 Q796 Q958 Q881 Q7688 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q813 Q33 Q921 Q4712 Q924 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q1948 Q232 Q233 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q27 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q2007 Q184 Q1101 Q1029 Q2003 Q736 Q786 Q1904 Q32 Q228 Q3462133 Q227 Q225 Q223 Q222 Q221 Q229 Q347 Q1050 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q22274534 Q11337 Q211 Q11331 Q217 Q214 Q215 Q12642 Q219 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q33788 Q929 Q1267638 Q329609 Q863 Q2938 Q2023 Q869 Q1231 Q953 Q1237
(c(Q11204)|c(Q192350),P1001,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q11204
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action count
action filter_multi_types
action find_reverse
entity Q770
relation P1001
type Q11204
type Q192350
[ANSWERS]
[[{'concept': 'Q11204'}, {'concept': 'Q192350'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:P1001 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q11204 } UNION { ?m property:P1001 ?u . ?u rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q192350 } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { ?x rdf:type ?q . VALUES ( ?q ) { ( ontology:Q192350 ) ( ontology:Q11204 ) } } . ?x property:P1001 resource:Q770 } } . FILTER ( ?w = ?l ) }
North Holland Federated States of Micronesia Panama Zeeland Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen Algeria Dominica Belgium Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Nepal Czech Republic Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Chad South Africa department of France Prince Edward Island Brazil El Salvador Haiti Faroe Islands Iraq South Sudan Vietnam raion Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Kyrgyzstan Finland Brunei Duchy of Burgundy Tanzania Duchy of Lorraine Switzerland Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Mitte Bornholm Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Manitoba Kazakhstan Malta Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Northwest Territories Belarus North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Ontario Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Greenland Albania Republic of Macedonia Cyprus Liechtenstein Swaziland Saskatchewan Oberhausen Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Nauru South Holland Palau Ethiopia Kenya Ghana Trinidad and Tobago Groningen Bolivia Duchy of Elbeuf Herdecke Latvia Gevelsberg Republic of Moldova Slovakia Slovenia Morbihan Bulgaria duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Côte d'Ivoire Republic of the Congo Comoros Campania Niue Duchy of Zaslawye Vanuatu Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Egypt Uruguay Syria United Arab Emirates Gelderland Guatemala Utrecht Jordan Friesland Overijssel Drenthe Liberia Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga French Southern and Antarctic Lands Costa Rica Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Beloostrov Lichtenberg Tajikistan Leverkusen Nunavut Thailand Kosovo Region Zambia Trentino-South Tyrol
Brazil Netherlands Zambia
action approx
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type legislature
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action count
action filter_multi_types
action find_reverse
entity Friesland
relation applies to jurisdiction
type legislature
type ministry
[[{'concept': 'legislature'}, {'concept': 'ministry'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?w ) WHERE { { ?m property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:legislature } UNION { ?m property:applies_to_jurisdiction ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:ministry } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?l ) WHERE { { ?x rdf:type ?q . VALUES ( ?q ) { ( ontology:ministry ) ( ontology:legislature ) } } . ?x property:applies_to_jurisdiction resource:Friesland } } . FILTER ( ?w = ?l ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q183
P530
Q1048835
USER
Are Germany known to have diplomatic connections with those administrative territories ?
(Q183,P530,Q155) (Q183,P530,Q55) (Q183,P530,Q953)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q55'] ['Q183', 'P530', 'Q953']
ASK WHERE { resource:Q183 property:P530 ?i . VALUES ( ?i ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Netherlands'] ['Germany', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Germany property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q155) (Q183,P530,Q55) (Q183,P530,Q953)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q55'] ['Q183', 'P530', 'Q953']
ASK WHERE { resource:Q183 property:P530 ?i . VALUES ( ?i ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Netherlands'] ['Germany', 'diplomatic relation', 'Zambia']
ASK WHERE { resource:Germany property:diplomatic_relation ?i . VALUES ( ?i ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q13131846 Q155
P530 P27
Q15617994
USER
Which administrative territories have a diplomatic relationship with Brazil or are Thomas Baddy an inhabitant of ?
OR((Q155,P530,c(Q15617994)), (Q13131846,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q13131846
relation P27
type Q15617994
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q13131846', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q155 property:P530 ?i } UNION { resource:Q13131846 property:P27 ?i } } }
Thomas Baddy Brazil
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Thomas Baddy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Thomas Baddy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Brazil property:diplomatic_relation ?i } UNION { resource:Thomas_Baddy property:country_of_citizenship ?i } } }
[]
designation for an administrative territorial entity
Q419 Q733 Q244 Q717 Q958 Q843 Q1033 Q145 Q736 Q1029
SYSTEM
Some of them are Peru, Paraguay, Barbados, Venezuela, South Sudan, Pakistan, Nigeria, United Kingdom, Ecuador, Mozambique
Q783 Q801 Q800 Q843 Q1029 Q822 Q241 Q419 Q244 Q668 Q414 Q574 Q142 Q145 Q148 Q96 Q17 Q30 Q36 Q79 Q77 Q38 Q1016 Q739 Q423 Q717 Q983 Q733 Q1011 Q962 Q736 Q298 Q252 Q399 Q403 Q258 Q750 Q212 Q213 Q45 Q159 Q43 Q41 Q734 Q790 Q796 Q794 Q917 Q1033 Q29 Q958 Q1049 Q916
OR((Q155,P530,c(Q15617994)), (Q13131846,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q155
relation P530
action find
entity Q13131846
relation P27
type Q15617994
[ANSWERS] have a diplomatic relationship with Brazil or are Thomas Baddy an inhabitant of
{'OR': [['Q155', 'P530', {'concept': 'Q15617994'}], ['Q13131846', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . { { resource:Q155 property:P530 ?i } UNION { resource:Q13131846 property:P27 ?i } } }
Honduras Israel Costa Rica Pakistan Mozambique Lebanon Cuba Peru Barbados India Argentina East Timor France United Kingdom People's Republic of China Mexico Japan United States of America Poland Egypt Uruguay Italy Libya Colombia North Korea Venezuela Equatorial Guinea Paraguay Cape Verde Benin Ecuador Chile Indonesia Armenia Serbia South Africa Bolivia Ukraine Czech Republic Portugal Russia Turkey Greece Guyana Haiti Iraq Iran Bhutan Nigeria Spain South Sudan Sudan Angola
Peru, Paraguay, Barbados, Venezuela, South Sudan, Pakistan, Nigeria, United Kingdom, Ecuador and Mozambique have a diplomatic relationship with Brazil or are Thomas Baddy an inhabitant of
Peru Paraguay Barbados Venezuela South Sudan Pakistan Nigeria United Kingdom Ecuador Mozambique
action filter_type
action union
action find
entity Brazil
relation diplomatic relation
action find
entity Thomas Baddy
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Brazil', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Thomas Baddy', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Brazil property:diplomatic_relation ?i } UNION { resource:Thomas_Baddy property:country_of_citizenship ?i } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q1048835
USER
How many administrative territories or political territories holds diplomatic relationship with that administrative territory ?
(Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q733,P530,c(Q15617994)) (Q733,P530,c(Q1048835)) (Q244,P530,c(Q15617994)) (Q244,P530,c(Q1048835)) (Q717,P530,c(Q15617994)) (Q717,P530,c(Q1048835)) (Q958,P530,c(Q15617994)) (Q958,P530,c(Q1048835)) (Q843,P530,c(Q15617994)) (Q843,P530,c(Q1048835)) (Q1033,P530,c(Q15617994)) (Q1033,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q736,P530,c(Q15617994)) (Q736,P530,c(Q1048835)) (Q1029,P530,c(Q15617994)) (Q1029,P530,c(Q1048835))
['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q733', 'P530', {'concept': 'Q15617994'}] ['Q733', 'P530', {'concept': 'Q1048835'}] ['Q244', 'P530', {'concept': 'Q15617994'}] ['Q244', 'P530', {'concept': 'Q1048835'}] ['Q717', 'P530', {'concept': 'Q15617994'}] ['Q717', 'P530', {'concept': 'Q1048835'}] ['Q958', 'P530', {'concept': 'Q15617994'}] ['Q958', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q15617994'}] ['Q843', 'P530', {'concept': 'Q1048835'}] ['Q1033', 'P530', {'concept': 'Q15617994'}] ['Q1033', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q736', 'P530', {'concept': 'Q15617994'}] ['Q736', 'P530', {'concept': 'Q1048835'}] ['Q1029', 'P530', {'concept': 'Q15617994'}] ['Q1029', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q417004 property:P530 ?z } UNION { resource:Q417004 property:P530 ?y } UNION { resource:Q244 property:P530 ?z } UNION { resource:Q244 property:P530 ?y } UNION { resource:Q1180667 property:P530 ?z } UNION { resource:Q1180667 property:P530 ?y } UNION { resource:Q958 property:P530 ?z } UNION { resource:Q958 property:P530 ?y } UNION { resource:Q843 property:P530 ?z } UNION { resource:Q843 property:P530 ?y } UNION { resource:Q7032790 property:P530 ?z } UNION { resource:Q7032790 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q736 property:P530 ?z } UNION { resource:Q736 property:P530 ?y } UNION { resource:Q443360 property:P530 ?z } UNION { resource:Q443360 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Paraguay property:diplomatic_relation ?z } UNION { resource:Paraguay property:diplomatic_relation ?y } UNION { resource:Barbados property:diplomatic_relation ?z } UNION { resource:Barbados property:diplomatic_relation ?y } UNION { resource:Venezuela property:diplomatic_relation ?z } UNION { resource:Venezuela property:diplomatic_relation ?y } UNION { resource:South_Sudan property:diplomatic_relation ?z } UNION { resource:South_Sudan property:diplomatic_relation ?y } UNION { resource:Pakistan property:diplomatic_relation ?z } UNION { resource:Pakistan property:diplomatic_relation ?y } UNION { resource:Nigeria property:diplomatic_relation ?z } UNION { resource:Nigeria property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Ecuador property:diplomatic_relation ?z } UNION { resource:Ecuador property:diplomatic_relation ?y } UNION { resource:Mozambique property:diplomatic_relation ?z } UNION { resource:Mozambique property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
designation for an administrative territorial entity political territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q419
SYSTEM
Did you mean Peru ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q417004 property:P530 ?z } UNION { resource:Q417004 property:P530 ?y } UNION { resource:Q244 property:P530 ?z } UNION { resource:Q244 property:P530 ?y } UNION { resource:Q1180667 property:P530 ?z } UNION { resource:Q1180667 property:P530 ?y } UNION { resource:Q958 property:P530 ?z } UNION { resource:Q958 property:P530 ?y } UNION { resource:Q843 property:P530 ?z } UNION { resource:Q843 property:P530 ?y } UNION { resource:Q7032790 property:P530 ?z } UNION { resource:Q7032790 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q736 property:P530 ?z } UNION { resource:Q736 property:P530 ?y } UNION { resource:Q443360 property:P530 ?z } UNION { resource:Q443360 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Did you mean Peru ?
Peru
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Paraguay property:diplomatic_relation ?z } UNION { resource:Paraguay property:diplomatic_relation ?y } UNION { resource:Barbados property:diplomatic_relation ?z } UNION { resource:Barbados property:diplomatic_relation ?y } UNION { resource:Venezuela property:diplomatic_relation ?z } UNION { resource:Venezuela property:diplomatic_relation ?y } UNION { resource:South_Sudan property:diplomatic_relation ?z } UNION { resource:South_Sudan property:diplomatic_relation ?y } UNION { resource:Pakistan property:diplomatic_relation ?z } UNION { resource:Pakistan property:diplomatic_relation ?y } UNION { resource:Nigeria property:diplomatic_relation ?z } UNION { resource:Nigeria property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Ecuador property:diplomatic_relation ?z } UNION { resource:Ecuador property:diplomatic_relation ?y } UNION { resource:Mozambique property:diplomatic_relation ?z } UNION { resource:Mozambique property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q733,P530,c(Q15617994)) (Q733,P530,c(Q1048835)) (Q244,P530,c(Q15617994)) (Q244,P530,c(Q1048835)) (Q717,P530,c(Q15617994)) (Q717,P530,c(Q1048835)) (Q958,P530,c(Q15617994)) (Q958,P530,c(Q1048835)) (Q843,P530,c(Q15617994)) (Q843,P530,c(Q1048835)) (Q1033,P530,c(Q15617994)) (Q1033,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q736,P530,c(Q15617994)) (Q736,P530,c(Q1048835)) (Q1029,P530,c(Q15617994)) (Q1029,P530,c(Q1048835))
['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q733', 'P530', {'concept': 'Q15617994'}] ['Q733', 'P530', {'concept': 'Q1048835'}] ['Q244', 'P530', {'concept': 'Q15617994'}] ['Q244', 'P530', {'concept': 'Q1048835'}] ['Q717', 'P530', {'concept': 'Q15617994'}] ['Q717', 'P530', {'concept': 'Q1048835'}] ['Q958', 'P530', {'concept': 'Q15617994'}] ['Q958', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q15617994'}] ['Q843', 'P530', {'concept': 'Q1048835'}] ['Q1033', 'P530', {'concept': 'Q15617994'}] ['Q1033', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q736', 'P530', {'concept': 'Q15617994'}] ['Q736', 'P530', {'concept': 'Q1048835'}] ['Q1029', 'P530', {'concept': 'Q15617994'}] ['Q1029', 'P530', {'concept': 'Q1048835'}]
['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'political territorial entity'}]
[]
SYSTEM
4
Q155 Q408 Q38 Q183
(Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q419,P530,c(Q15617994)) (Q419,P530,c(Q1048835)) (Q733,P530,c(Q15617994)) (Q733,P530,c(Q1048835)) (Q244,P530,c(Q15617994)) (Q244,P530,c(Q1048835)) (Q717,P530,c(Q15617994)) (Q717,P530,c(Q1048835)) (Q958,P530,c(Q15617994)) (Q958,P530,c(Q1048835)) (Q843,P530,c(Q15617994)) (Q843,P530,c(Q1048835)) (Q1033,P530,c(Q15617994)) (Q1033,P530,c(Q1048835)) (Q145,P530,c(Q15617994)) (Q145,P530,c(Q1048835)) (Q736,P530,c(Q15617994)) (Q736,P530,c(Q1048835)) (Q1029,P530,c(Q15617994)) (Q1029,P530,c(Q1048835))
[ANSWER]
['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q419', 'P530', {'concept': 'Q15617994'}] ['Q419', 'P530', {'concept': 'Q1048835'}] ['Q733', 'P530', {'concept': 'Q15617994'}] ['Q733', 'P530', {'concept': 'Q1048835'}] ['Q244', 'P530', {'concept': 'Q15617994'}] ['Q244', 'P530', {'concept': 'Q1048835'}] ['Q717', 'P530', {'concept': 'Q15617994'}] ['Q717', 'P530', {'concept': 'Q1048835'}] ['Q958', 'P530', {'concept': 'Q15617994'}] ['Q958', 'P530', {'concept': 'Q1048835'}] ['Q843', 'P530', {'concept': 'Q15617994'}] ['Q843', 'P530', {'concept': 'Q1048835'}] ['Q1033', 'P530', {'concept': 'Q15617994'}] ['Q1033', 'P530', {'concept': 'Q1048835'}] ['Q145', 'P530', {'concept': 'Q15617994'}] ['Q145', 'P530', {'concept': 'Q1048835'}] ['Q736', 'P530', {'concept': 'Q15617994'}] ['Q736', 'P530', {'concept': 'Q1048835'}] ['Q1029', 'P530', {'concept': 'Q15617994'}] ['Q1029', 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q1758012 property:P530 ?z } UNION { resource:Q1758012 property:P530 ?y } UNION { resource:Q417004 property:P530 ?z } UNION { resource:Q417004 property:P530 ?y } UNION { resource:Q244 property:P530 ?z } UNION { resource:Q244 property:P530 ?y } UNION { resource:Q1180667 property:P530 ?z } UNION { resource:Q1180667 property:P530 ?y } UNION { resource:Q958 property:P530 ?z } UNION { resource:Q958 property:P530 ?y } UNION { resource:Q843 property:P530 ?z } UNION { resource:Q843 property:P530 ?y } UNION { resource:Q7032790 property:P530 ?z } UNION { resource:Q7032790 property:P530 ?y } UNION { resource:Q225249 property:P530 ?z } UNION { resource:Q225249 property:P530 ?y } UNION { resource:Q736 property:P530 ?z } UNION { resource:Q736 property:P530 ?y } UNION { resource:Q443360 property:P530 ?z } UNION { resource:Q443360 property:P530 ?y } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 }
Brazil Australia Italy Germany
4
['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Peru', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Paraguay', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Barbados', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Venezuela', 'diplomatic relation', {'concept': 'political territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['South Sudan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Pakistan', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Nigeria', 'diplomatic relation', {'concept': 'political territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['United Kingdom', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Ecuador', 'diplomatic relation', {'concept': 'political territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Mozambique', 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Peru property:diplomatic_relation ?z } UNION { resource:Peru property:diplomatic_relation ?y } UNION { resource:Paraguay property:diplomatic_relation ?z } UNION { resource:Paraguay property:diplomatic_relation ?y } UNION { resource:Barbados property:diplomatic_relation ?z } UNION { resource:Barbados property:diplomatic_relation ?y } UNION { resource:Venezuela property:diplomatic_relation ?z } UNION { resource:Venezuela property:diplomatic_relation ?y } UNION { resource:South_Sudan property:diplomatic_relation ?z } UNION { resource:South_Sudan property:diplomatic_relation ?y } UNION { resource:Pakistan property:diplomatic_relation ?z } UNION { resource:Pakistan property:diplomatic_relation ?y } UNION { resource:Nigeria property:diplomatic_relation ?z } UNION { resource:Nigeria property:diplomatic_relation ?y } UNION { resource:United_Kingdom property:diplomatic_relation ?z } UNION { resource:United_Kingdom property:diplomatic_relation ?y } UNION { resource:Ecuador property:diplomatic_relation ?z } UNION { resource:Ecuador property:diplomatic_relation ?y } UNION { resource:Mozambique property:diplomatic_relation ?z } UNION { resource:Mozambique property:diplomatic_relation ?y } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18982923 Q1033
P47 P17
Q15617994
USER
Which administrative territories have a shared border with Nigeria or are Coolsedwarsstraat located in ?
OR((Q1033,P47,c(Q15617994)), (Q18982923,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1033
relation P47
action find
entity Q18982923
relation P17
type Q15617994
{'OR': [['Q1033', 'P47', {'concept': 'Q15617994'}], ['Q18982923', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q18982923 property:P17 ?w } UNION { resource:Q1033 property:P47 ?w } } . ?w rdf:type ontology:Q15617994 }
Coolsedwarsstraat Nigeria
action filter_type
action union
action find
entity Nigeria
relation shares border with
action find
entity Coolsedwarsstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Nigeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Coolsedwarsstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Coolsedwarsstraat property:country ?w } UNION { resource:Nigeria property:shares_border_with ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1032 Q1009 Q55 Q657 Q962
SYSTEM
Niger, Cameroon, Netherlands, Chad, Benin
Q1032 Q1009 Q55 Q657 Q962
OR((Q1033,P47,c(Q15617994)), (Q18982923,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1033
relation P47
action find
entity Q18982923
relation P17
type Q15617994
[ANSWERS] have a shared border with Nigeria or are Coolsedwarsstraat located in
{'OR': [['Q1033', 'P47', {'concept': 'Q15617994'}], ['Q18982923', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q18982923 property:P17 ?w } UNION { resource:Q1033 property:P47 ?w } } . ?w rdf:type ontology:Q15617994 }
Niger Cameroon Netherlands Chad Benin
Niger, Cameroon, Netherlands, Chad and Benin have a shared border with Nigeria or are Coolsedwarsstraat located in
Niger Cameroon Netherlands Chad Benin
action filter_type
action union
action find
entity Nigeria
relation shares border with
action find
entity Coolsedwarsstraat
relation country
type designation for an administrative territorial entity
{'OR': [['Nigeria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Coolsedwarsstraat', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Coolsedwarsstraat property:country ?w } UNION { resource:Nigeria property:shares_border_with ?w } } . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2064895
P530
Q1048835
USER
Are Skytka known to have diplomatic connections with those administrative territories ?
(Q2064895,P530,Q1032) (Q2064895,P530,Q1009) (Q2064895,P530,Q55) (Q2064895,P530,Q657) (Q2064895,P530,Q962)
action is_in
entity prev_answer
action find
entity Q2064895
relation P530
['Q2064895', 'P530', 'Q1032'] ['Q2064895', 'P530', 'Q1009'] ['Q2064895', 'P530', 'Q55'] ['Q2064895', 'P530', 'Q657'] ['Q2064895', 'P530', 'Q962']
ASK WHERE { resource:Q2064895 property:P530 ?w . VALUES ( ?w ) { ( resource:Q1032 ) ( resource:Q1009 ) ( resource:Q55 ) } }
Skytka
action is_in
entity prev_answer
action find
entity Skytka
relation diplomatic relation
['Skytka', 'diplomatic relation', 'Niger'] ['Skytka', 'diplomatic relation', 'Cameroon'] ['Skytka', 'diplomatic relation', 'Netherlands'] ['Skytka', 'diplomatic relation', 'Chad'] ['Skytka', 'diplomatic relation', 'Benin']
ASK WHERE { resource:Skytka property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Niger ) ( resource:Cameroon ) ( resource:Netherlands ) } }
[]
political territorial entity
SYSTEM
NO
(Q2064895,P530,Q1032) (Q2064895,P530,Q1009) (Q2064895,P530,Q55) (Q2064895,P530,Q657) (Q2064895,P530,Q962)
action is_in
entity prev_answer
action find
entity Q2064895
relation P530
[ANSWER]
['Q2064895', 'P530', 'Q1032'] ['Q2064895', 'P530', 'Q1009'] ['Q2064895', 'P530', 'Q55'] ['Q2064895', 'P530', 'Q657'] ['Q2064895', 'P530', 'Q962']
ASK WHERE { resource:Q2064895 property:P530 ?w . VALUES ( ?w ) { ( resource:Q1032 ) ( resource:Q1009 ) ( resource:Q55 ) } }
No
action is_in
entity prev_answer
action find
entity Skytka
relation diplomatic relation
['Skytka', 'diplomatic relation', 'Niger'] ['Skytka', 'diplomatic relation', 'Cameroon'] ['Skytka', 'diplomatic relation', 'Netherlands'] ['Skytka', 'diplomatic relation', 'Chad'] ['Skytka', 'diplomatic relation', 'Benin']
ASK WHERE { resource:Skytka property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Niger ) ( resource:Cameroon ) ( resource:Netherlands ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q53167
P19
Q502895
USER
Which people were born at Erto e Casso ?
(c(Q502895),P19,Q53167)
action filter_type
action find_reverse
entity Q53167
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q53167']
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q53167 . ?u rdf:type ontology:Q502895 }
Erto e Casso
action filter_type
action find_reverse
entity Erto e Casso
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Erto e Casso']
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Erto_e_Casso . ?u rdf:type ontology:common_name }
[]
common name
Q3949307 Q3921845
SYSTEM
Sante Della Putta, Primo Martinelli
Q3949307 Q3921845
(c(Q502895),P19,Q53167)
action filter_type
action find_reverse
entity Q53167
relation P19
type Q502895
[ANSWERS] were born at Erto e Casso
[{'concept': 'Q502895'}, 'P19', 'Q53167']
SELECT DISTINCT ?u WHERE { ?u property:P19 resource:Q53167 . ?u rdf:type ontology:Q502895 }
Sante Della Putta Primo Martinelli
Sante Della Putta and Primo Martinelli were born at Erto e Casso
Sante Della Putta Primo Martinelli
action filter_type
action find_reverse
entity Erto e Casso
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Erto e Casso']
SELECT DISTINCT ?u WHERE { ?u property:place_of_birth resource:Erto_e_Casso . ?u rdf:type ontology:common_name }
[]