Simple Question (Direct)
Simple Question
Q1048059
P6
Q502895
USER
Which person has Beauregard-l'Évêque as its head of government ?
(Q1048059,P6,c(Q502895))
action filter_type
action find
entity Q1048059
relation P6
type Q502895
['Q1048059', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1048059 property:P6 ?l . ?l rdf:type ontology:Q502895 }
Beauregard-l'Évêque
action filter_type
action find
entity Beauregard-l'Évêque
relation head of government
type common name
["Beauregard-l'Évêque", 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Beauregard-l'Évêque property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]
common name
Q2830133
SYSTEM
Alain Néri
Q2830133
(Q1048059,P6,c(Q502895))
action filter_type
action find
entity Q1048059
relation P6
type Q502895
[ANSWER] has Beauregard-l'Évêque as its head of government
['Q1048059', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { resource:Q1048059 property:P6 ?l . ?l rdf:type ontology:Q502895 }
Alain Néri
Alain Néri has Beauregard-l'Évêque as its head of government
Alain Néri
action filter_type
action find
entity Beauregard-l'Évêque
relation head of government
type common name
["Beauregard-l'Évêque", 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { resource:Beauregard-l'Évêque property:head_of_government ?l . ?l rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1048059
P47
Q20667921
USER
Which french administrative divisions are bordered by that one ?
(Q2830133,P47,c(Q20667921))
action filter_type
action find
entity Q1048059
relation P47
type Q20667921
['Q2830133', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q1048059 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Beauregard-l'Évêque
action filter_type
action find
entity Beauregard-l'Évêque
relation shares border with
type type of french administrative division
['Alain Néri', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Beauregard-l'Évêque property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q375535 Q1215048 Q925392
SYSTEM
Pont-du-Château, Vertaizon, Joze
Q1215048 Q375535 Q1046753 Q647654 Q429665 Q637950 Q1159259 Q925392
(Q2830133,P47,c(Q20667921))
action filter_type
action find
entity Q1048059
relation P47
type Q20667921
[ANSWERS] are bordered by that one
['Q2830133', 'P47', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q1048059 property:P47 ?l . ?l rdf:type ontology:Q20667921 }
Vertaizon Pont-du-Château Bouzel Culhat Seychalles Lempty Les Martres-d'Artière Joze
Pont-du-Château, Vertaizon and Joze are bordered by that one
Pont-du-Château Vertaizon Joze
action filter_type
action find
entity Beauregard-l'Évêque
relation shares border with
type type of french administrative division
['Alain Néri', 'shares border with', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Beauregard-l'Évêque property:shares_border_with ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q375535 Q1215048 Q925392
P19
Q502895
USER
Which people have birthplace at those french administrative divisions ?
(c(Q502895),P19,Q375535) (c(Q502895),P19,Q1215048) (c(Q502895),P19,Q925392)
action filter_type
action find_reverse
entity prev_answer
relation P19
type Q502895
[{'concept': 'Q502895'}, 'P19', 'Q375535'] [{'concept': 'Q502895'}, 'P19', 'Q1215048'] [{'concept': 'Q502895'}, 'P19', 'Q925392']
SELECT DISTINCT ?w WHERE { VALUES ( ?c ) { ( resource:Q1215048 ) ( resource:Q375535 ) ( resource:Q1046753 ) } . ?w rdf:type ontology:Q502895 . ?w property:P19 ?c }
Pont-du-Château Vertaizon Joze
action filter_type
action find_reverse
entity prev_answer
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Pont-du-Château'] [{'concept': 'common name'}, 'place of birth', 'Vertaizon'] [{'concept': 'common name'}, 'place of birth', 'Joze']
SELECT DISTINCT ?w WHERE { VALUES ( ?c ) { ( resource:Vertaizon ) ( resource:Pont-du-Château ) ( resource:Bouzel ) } . ?w rdf:type ontology:common_name . ?w property:place_of_birth ?c }
[]
common name
Q966628 Q921774 Q3270812
SYSTEM
Henri de La Tour d'Auvergne, Duke of Bouillon, Alain Rey, Léon Chambige
Q3270812 Q3184763 Q921774 Q3171129 Q355990 Q3059871 Q16026570 Q2848312 Q966628
(c(Q502895),P19,Q375535) (c(Q502895),P19,Q1215048) (c(Q502895),P19,Q925392)
action filter_type
action find_reverse
entity prev_answer
relation P19
type Q502895
[ANSWERS] have birthplace at those french administrative divisions
[{'concept': 'Q502895'}, 'P19', 'Q375535'] [{'concept': 'Q502895'}, 'P19', 'Q1215048'] [{'concept': 'Q502895'}, 'P19', 'Q925392']
SELECT DISTINCT ?w WHERE { VALUES ( ?c ) { ( resource:Q1215048 ) ( resource:Q375535 ) ( resource:Q1046753 ) } . ?w rdf:type ontology:Q502895 . ?w property:P19 ?c }
Léon Chambige Joseph Claussat Alain Rey Jean Carlier Prosper Marilhat Eugène Fourvel Antoine Trincard-Moyat André Moinier Henri de La Tour d'Auvergne, Duke of Bouillon
Henri de La Tour d'Auvergne, Duke of Bouillon, Alain Rey and Léon Chambige have birthplace at those french administrative divisions
Henri de La Tour d'Auvergne, Duke of Bouillon Alain Rey Léon Chambige
action filter_type
action find_reverse
entity prev_answer
relation place of birth
type common name
[{'concept': 'common name'}, 'place of birth', 'Pont-du-Château'] [{'concept': 'common name'}, 'place of birth', 'Vertaizon'] [{'concept': 'common name'}, 'place of birth', 'Joze']
SELECT DISTINCT ?w WHERE { VALUES ( ?c ) { ( resource:Vertaizon ) ( resource:Pont-du-Château ) ( resource:Bouzel ) } . ?w rdf:type ontology:common_name . ?w property:place_of_birth ?c }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q966628 Q921774 Q3270812
P21
Q290
USER
What are the sex of Henri de La Tour d'Auvergne, Duke of Bouillon, Alain Rey and Léon Chambige ?
(Q966628,P21,c(Q290)) (Q921774,P21,c(Q290)) (Q3270812,P21,c(Q290))
action union
action filter_type
action find
entity Q966628
relation P21
type Q290
action filter_type
action find
entity Q921774
relation P21
type Q290
action filter_type
action find
entity Q3270812
relation P21
type Q290
['Q966628', 'P21', {'concept': 'Q290'}] ['Q921774', 'P21', {'concept': 'Q290'}] ['Q3270812', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { { ?c rdf:type ontology:Q290 . resource:Q921774 property:P21 ?c } UNION { ?c rdf:type ontology:Q290 . resource:Q966628 property:P21 ?c } }
Henri de La Tour d'Auvergne, Duke of Bouillon Alain Rey Léon Chambige
action union
action filter_type
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation gender
type sex
action filter_type
action find
entity Alain Rey
relation gender
type sex
action filter_type
action find
entity Léon Chambige
relation gender
type sex
["Henri de La Tour d'Auvergne, Duke of Bouillon", 'gender', {'concept': 'sex'}] ['Alain Rey', 'gender', {'concept': 'sex'}] ['Léon Chambige', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { { ?c rdf:type ontology:sex . resource:Alain_Rey property:gender ?c } UNION { ?c rdf:type ontology:sex . resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:gender ?c } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q966628,P21,c(Q290)) (Q921774,P21,c(Q290)) (Q3270812,P21,c(Q290))
action union
action filter_type
action find
entity Q966628
relation P21
type Q290
action filter_type
action find
entity Q921774
relation P21
type Q290
action filter_type
action find
entity Q3270812
relation P21
type Q290
The sex of Henri de La Tour d' Auvergne , Duke of Bouillon , Alain Rey and Léon Chambige are the [ANSWER], [ANSWER] and [ANSWER]
['Q966628', 'P21', {'concept': 'Q290'}] ['Q921774', 'P21', {'concept': 'Q290'}] ['Q3270812', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { { ?c rdf:type ontology:Q290 . resource:Q921774 property:P21 ?c } UNION { ?c rdf:type ontology:Q290 . resource:Q966628 property:P21 ?c } }
male male male
The sex of Henri de La Tour d' Auvergne , Duke of Bouillon , Alain Rey and Léon Chambige are the male, male and male
male male male
action union
action filter_type
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation gender
type sex
action filter_type
action find
entity Alain Rey
relation gender
type sex
action filter_type
action find
entity Léon Chambige
relation gender
type sex
["Henri de La Tour d'Auvergne, Duke of Bouillon", 'gender', {'concept': 'sex'}] ['Alain Rey', 'gender', {'concept': 'sex'}] ['Léon Chambige', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { { ?c rdf:type ontology:sex . resource:Alain_Rey property:gender ?c } UNION { ?c rdf:type ontology:sex . resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:gender ?c } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1048059
P17
Q15617994
USER
Which administrative territory is Beauregard-l'Évêque located in ?
(Q1048059,P17,c(Q15617994))
action filter_type
action find
entity Q1048059
relation P17
type Q15617994
['Q1048059', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1048059 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Beauregard-l'Évêque
action filter_type
action find
entity Beauregard-l'Évêque
relation country
type designation for an administrative territorial entity
["Beauregard-l'Évêque", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Beauregard-l'Évêque property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q1048059,P17,c(Q15617994))
action filter_type
action find
entity Q1048059
relation P17
type Q15617994
Which administrative territory is Beauregard-l'Évêque located in
['Q1048059', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { resource:Q1048059 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
France
Which administrative territory is Beauregard-l'Évêque located in
France
action filter_type
action find
entity Beauregard-l'Évêque
relation country
type designation for an administrative territorial entity
["Beauregard-l'Évêque", 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Beauregard-l'Évêque property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q966628
P97
Q4164871
USER
What were the titles held by Henri de La Tour d'Auvergne, Duke of Bouillon ?
(Q966628,P97,c(Q4164871))
action filter_type
action find
entity Q966628
relation P97
type Q4164871
['Q966628', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?m WHERE { resource:Q966628 property:P97 ?m . ?m rdf:type ontology:Q4164871 }
Henri de La Tour d'Auvergne, Duke of Bouillon
action filter_type
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation noble title
type position
["Henri de La Tour d'Auvergne, Duke of Bouillon", 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?m WHERE { resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:noble_title ?m . ?m rdf:type ontology:position }
[]
position
Q185902 Q1338119 Q3519259
SYSTEM
viscount, Freiherr, count
Q185902 Q1338119 Q3519259 Q18244
(Q966628,P97,c(Q4164871))
action filter_type
action find
entity Q966628
relation P97
type Q4164871
The titles held by Henri de La Tour d' Auvergne , Duke of Bouillon were the [ANSWERS]
['Q966628', 'P97', {'concept': 'Q4164871'}]
SELECT DISTINCT ?m WHERE { resource:Q966628 property:P97 ?m . ?m rdf:type ontology:Q4164871 }
viscount Freiherr count Fürst
The titles held by Henri de La Tour d' Auvergne , Duke of Bouillon were the viscount, Freiherr and count
viscount Freiherr count
action filter_type
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation noble title
type position
["Henri de La Tour d'Auvergne, Duke of Bouillon", 'noble title', {'concept': 'position'}]
SELECT DISTINCT ?m WHERE { resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:noble_title ?m . ?m rdf:type ontology:position }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q90409 Q966628
P97
Q4164871
USER
Or Philip of Hachberg-Sausenberg?
OR((Q966628,P97,c(Q4164871)), (Q90409,P97,c(Q4164871)))
action filter_type
action union
action find
entity Q966628
relation P97
action find
entity Q90409
relation P97
type Q4164871
{'OR': [['Q966628', 'P97', {'concept': 'Q4164871'}], ['Q90409', 'P97', {'concept': 'Q4164871'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q4164871 . { { resource:Q966628 property:P97 ?m } UNION { resource:Q90409 property:P97 ?m } } }
Philip of Hachberg-Sausenberg Henri de La Tour d'Auvergne, Duke of Bouillon
action filter_type
action union
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation noble title
action find
entity Philip of Hachberg-Sausenberg
relation noble title
type position
{'OR': [["Henri de La Tour d'Auvergne, Duke of Bouillon", 'noble title', {'concept': 'position'}], ['Philip of Hachberg-Sausenberg', 'noble title', {'concept': 'position'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:position . { { resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:noble_title ?m } UNION { resource:Philip_of_Hachberg-Sausenberg property:noble_title ?m } } }
[]
position
Q185902 Q1338119 Q209726 Q3519259 Q18244
SYSTEM
viscount, Freiherr, marquess, count, Fürst
Q185902 Q1338119 Q209726 Q3519259 Q18244
OR((Q966628,P97,c(Q4164871)), (Q90409,P97,c(Q4164871)))
action filter_type
action union
action find
entity Q966628
relation P97
action find
entity Q90409
relation P97
type Q4164871
[ANSWERS]
{'OR': [['Q966628', 'P97', {'concept': 'Q4164871'}], ['Q90409', 'P97', {'concept': 'Q4164871'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q4164871 . { { resource:Q966628 property:P97 ?m } UNION { resource:Q90409 property:P97 ?m } } }
viscount Freiherr marquess count Fürst
viscount Freiherr marquess count Fürst
action filter_type
action union
action find
entity Henri de La Tour d'Auvergne, Duke of Bouillon
relation noble title
action find
entity Philip of Hachberg-Sausenberg
relation noble title
type position
{'OR': [["Henri de La Tour d'Auvergne, Duke of Bouillon", 'noble title', {'concept': 'position'}], ['Philip of Hachberg-Sausenberg', 'noble title', {'concept': 'position'}]]}
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:position . { { resource:Henri_de_La_Tour_d'Auvergne,_Duke_of_Bouillon property:noble_title ?m } UNION { resource:Philip_of_Hachberg-Sausenberg property:noble_title ?m } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q223
P1001
Q15617994 Q4164871
USER
Which administrative territories belong to jurisdiction of lesser number of positions than Greenland ?
(c(Q4164871),P1001,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action count
action filter_type
action find_reverse
entity Q223
relation P1001
type Q4164871
[{'concept': 'Q4164871'}, 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?m ) WHERE { ?w property:P1001 ?g . ?w rdf:type ontology:Q4164871 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ontology:Q4164871 . ?x property:P1001 resource:Q223 } } . FILTER ( ?m < ?i ) }
Greenland
action less
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action count
action filter_type
action find_reverse
entity Greenland
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?m ) WHERE { ?w property:applies_to_jurisdiction ?g . ?w rdf:type ontology:position . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ontology:position . ?x property:applies_to_jurisdiction resource:Greenland } } . FILTER ( ?m < ?i ) }
[]
designation for an administrative territorial entity position
Q155 Q230 Q55
SYSTEM
Brazil, Georgia, Netherlands
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q22273061 Q55 Q2871 Q262 Q784 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q710 Q717 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q6465 Q1979 Q43 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q241 Q1965 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q813 Q218 Q921 Q4712 Q924 Q34 Q928 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q1101 Q1029 Q2003 Q736 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q1050 Q17 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q22274534 Q11337 Q11331 Q217 Q215 Q12642 Q219 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q953 Q1237
(c(Q4164871),P1001,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action count
action filter_type
action find_reverse
entity Q223
relation P1001
type Q4164871
[ANSWERS] belong to jurisdiction of lesser number of positions than Greenland
[{'concept': 'Q4164871'}, 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?m ) WHERE { ?w property:P1001 ?g . ?w rdf:type ontology:Q4164871 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ontology:Q4164871 . ?x property:P1001 resource:Q223 } } . FILTER ( ?m < ?i ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina Duchy of Nemours Netherlands Hagen Algeria Dominica Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad department of France Prince Edward Island Turkey Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Cuba New Brunswick Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Romania Brunei Duchy of Burgundy Tanzania Sweden Philippines 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 Georgia Manitoba Kazakhstan Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Swaziland Japan 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 Gevelsberg Republic of Moldova Slovenia Morbihan Bulgaria Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia 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 Tunisia 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 Quebec New Caledonia Central African Republic Beloostrov Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Zambia Trentino-South Tyrol
Brazil, Georgia and Netherlands belong to jurisdiction of lesser number of positions than Greenland
Brazil Georgia Netherlands
action less
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action count
action filter_type
action find_reverse
entity Greenland
relation applies to jurisdiction
type position
[{'concept': 'position'}, 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?m ) WHERE { ?w property:applies_to_jurisdiction ?g . ?w rdf:type ontology:position . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x rdf:type ontology:position . ?x property:applies_to_jurisdiction resource:Greenland } } . FILTER ( ?m < ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q30
P1001
Q15617994 Q4164871
USER
And also tell me about United States of America?
(c(Q4164871),P1001,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action count
action filter_type
action find_reverse
entity Q30
relation P1001
type Q15617994
[{'concept': 'Q4164871'}, 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?k ) WHERE { ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q4164871 . ?o property:P1001 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P1001 resource:Q30 . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?k < ?m ) }
United States of America
action less
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action count
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type designation for an administrative territorial entity
[{'concept': 'position'}, 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?k ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:position . ?o property:applies_to_jurisdiction ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:applies_to_jurisdiction resource:United_States_of_America . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k < ?m ) }
[]
designation for an administrative territorial entity position
Q155 Q230 Q55
SYSTEM
Brazil, Georgia, Netherlands
Q701 Q702 Q804 Q705 Q801 Q707 Q709 Q811 Q706679 Q805 Q2765 Q419 Q668 Q163012 Q414 Q22273061 Q55 Q2871 Q262 Q784 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q710 Q717 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q403 Q657 Q6465 Q1979 Q43 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q7688 Q739 Q3097 Q826 Q158893 Q2942 Q241 Q1965 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q813 Q218 Q921 Q4712 Q924 Q34 Q928 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q163966 Q769680 Q3068 Q730 Q1013 Q11323 Q236 Q230 Q1948 Q232 Q1093 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q28 Q2667658 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q843 Q2007 Q1101 Q1029 Q2003 Q736 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q222 Q221 Q96 Q347 Q1050 Q17 Q1989 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q697 Q694 Q695 Q115 Q114 Q117 Q754 Q752 Q750 Q22274534 Q11337 Q11331 Q217 Q215 Q12642 Q219 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q917 Q916 Q2107 Q1007 Q1006 Q1005 Q977 Q1951 Q1009 Q1008 Q971 Q970 Q1438 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q79 Q77 Q858 Q878 Q775 Q774 Q948 Q776 Q810 Q770 Q773 Q772 Q1014 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q129003 Q800 Q1039 Q672 Q176 Q33788 Q929 Q1267638 Q298 Q329609 Q863 Q2938 Q2023 Q869 Q953 Q1237
(c(Q4164871),P1001,c(Q15617994))
action less
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q4164871
action count
action filter_type
action find_reverse
entity Q30
relation P1001
type Q15617994
[ANSWERS]
[{'concept': 'Q4164871'}, 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?k ) WHERE { ?a rdf:type ontology:Q15617994 . ?o rdf:type ontology:Q4164871 . ?o property:P1001 ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P1001 resource:Q30 . ?t rdf:type ontology:Q15617994 } } . FILTER ( ?k < ?m ) }
North Holland Federated States of Micronesia Panama Zeeland Israel Flevoland Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Peru India Pankow Argentina Duchy of Nemours Netherlands Hagen Algeria Dominica Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Serbia Chad department of France Prince Edward Island Turkey Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam raion Colombia Remscheid Maldives Friedrichshain-Kreuzberg Solingen Cuba New Brunswick Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Kyrgyzstan Romania Brunei Duchy of Burgundy Tanzania Sweden Philippines 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 Georgia Manitoba Kazakhstan Limburg San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Hungary Shushary, Saint Petersburg Sudan Mauritania Mauritius Honduras Malawi Yukon Pakistan Northwest Territories North Brabant Mozambique Newfoundland and Labrador Ecuador Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Liechtenstein Swaziland Japan 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 Gevelsberg Republic of Moldova Slovenia Morbihan Bulgaria Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Bhutan Angola Wuppertal Guinea-Bissau Guinea Gambia 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 Tunisia 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 Quebec New Caledonia Central African Republic Beloostrov Chile Lichtenberg Tajikistan Leverkusen Nunavut Thailand Zambia Trentino-South Tyrol
Brazil Georgia Netherlands
action less
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type position
action count
action filter_type
action find_reverse
entity United States of America
relation applies to jurisdiction
type designation for an administrative territorial entity
[{'concept': 'position'}, 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?o ) AS ?k ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?o rdf:type ontology:position . ?o property:applies_to_jurisdiction ?a } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:applies_to_jurisdiction resource:United_States_of_America . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k < ?m ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q184
P530
Q15617994
USER
Are Belarus known to have diplomatic connections with those ones ?
(Q184,P530,Q155) (Q184,P530,Q230) (Q184,P530,Q55)
action is_in
entity prev_answer
action find
entity Q184
relation P530
['Q184', 'P530', 'Q155'] ['Q184', 'P530', 'Q230'] ['Q184', 'P530', 'Q55']
ASK WHERE { resource:Q184 property:P530 ?p . VALUES ( ?p ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Belarus
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Brazil'] ['Belarus', 'diplomatic relation', 'Georgia'] ['Belarus', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Belarus property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q184,P530,Q155) (Q184,P530,Q230) (Q184,P530,Q55)
action is_in
entity prev_answer
action find
entity Q184
relation P530
[ANSWER]
['Q184', 'P530', 'Q155'] ['Q184', 'P530', 'Q230'] ['Q184', 'P530', 'Q55']
ASK WHERE { resource:Q184 property:P530 ?p . VALUES ( ?p ) { ( resource:Q701 ) ( resource:Q702 ) ( resource:Q804 ) } }
Yes
action is_in
entity prev_answer
action find
entity Belarus
relation diplomatic relation
['Belarus', 'diplomatic relation', 'Brazil'] ['Belarus', 'diplomatic relation', 'Georgia'] ['Belarus', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Belarus property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:North_Holland ) ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q115
P530
Q15617994 Q15617994
USER
How many administrative territories have ambassadorial relations with approximately the same number of administrative territories as Ethiopia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q115
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?m ) WHERE { ?h property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Q115 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?w ) }
Ethiopia
action count
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 Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?m ) WHERE { ?h property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Ethiopia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?w ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
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 count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q115
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?m ) WHERE { ?h property:P530 ?q . ?q rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Q115 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?w ) }
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
147
action count
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 Ethiopia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?c ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?q ) AS ?m ) WHERE { ?h property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?w ) WHERE { resource:Ethiopia property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?w ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q398
P530
Q15617994 Q15617994
USER
And what about Bahrain?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q398 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?d = ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?d ) WHERE { ?z property:P530 ?e . ?z rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?z } }
Bahrain
action count
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 Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Bahrain property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d = ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?d ) WHERE { ?z property:diplomatic_relation ?e . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
148
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 count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Q398 property:P530 ?h . ?h rdf:type ontology:Q15617994 } } . FILTER ( ?d = ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?d ) WHERE { ?z property:P530 ?e . ?z rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?z } }
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
148
action count
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 Bahrain
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?m ) WHERE { resource:Bahrain property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?d = ?m ) . { SELECT DISTINCT ?z ( COUNT ( ?e ) AS ?d ) WHERE { ?z property:diplomatic_relation ?e . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q47379 Q230
P47 P530
Q15617994
USER
Which administrative territories have diplomatic relationships with Georgia or are adjacent to Senna Comasco ?
OR((Q230,P530,c(Q15617994)), (Q47379,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q47379
relation P47
type Q15617994
{'OR': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q47379', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q230 property:P530 ?h } UNION { resource:Q47379 property:P47 ?h } } . ?h rdf:type ontology:Q15617994 }
Senna Comasco Georgia
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Senna Comasco
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Senna Comasco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Georgia property:diplomatic_relation ?h } UNION { resource:Senna_Comasco property:shares_border_with ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q796 Q115 Q17 Q145 Q668 Q784 Q155 Q710 Q902 Q398
SYSTEM
Some of them are Iraq, Ethiopia, Japan, United Kingdom, India, Dominica, Brazil, Kiribati, Bangladesh, Bahrain
Q986 Q805 Q244353 Q1007 Q399 Q801 Q800 Q184 Q974 Q36295 Q971 Q970 Q241 Q736 Q786 Q668 Q347 Q414 Q1006 Q227 Q225 Q29 Q686 Q222 Q1005 Q145 Q262 Q189 Q784 Q874 Q229 Q228 Q1016 Q32 Q17 Q30 Q37 Q252 Q79 Q31 Q1011 Q38 Q902 Q1009 Q878 Q739 Q774 Q423 Q710 Q810 Q983 Q1013 Q191 Q965 Q851 Q967 Q734 Q963 Q424 Q115 Q114 Q117 Q398 Q822 Q750 Q244224 Q211 Q1008 Q43 Q155 Q792 Q219 Q47354 Q796 Q794 Q954 Q889 Q27 Q921 Q819 Q884 Q953 Q881 Q916
OR((Q230,P530,c(Q15617994)), (Q47379,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q230
relation P530
action find
entity Q47379
relation P47
type Q15617994
[ANSWERS] have diplomatic relationships with Georgia or are adjacent to Senna Comasco
{'OR': [['Q230', 'P530', {'concept': 'Q15617994'}], ['Q47379', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q230 property:P530 ?h } UNION { resource:Q47379 property:P47 ?h } } . ?h rdf:type ontology:Q15617994 }
Eritrea Yemen Casnate con Bernate Guinea-Bissau Armenia Israel Costa Rica Belarus Democratic Republic of the Congo Cantù Republic of the Congo Comoros Cuba Ecuador Dominican Republic India Liechtenstein Argentina Guinea Azerbaijan Bosnia and Herzegovina Spain Vanuatu Albania Gambia United Kingdom Algeria Iceland Dominica Turkmenistan Cyprus Andorra Libya Luxembourg Japan United States of America Lithuania Indonesia Egypt Belgium Cape Verde Italy Bangladesh Cameroon United Arab Emirates Colombia Guatemala North Korea Kiribati Jordan Equatorial Guinea Lesotho Estonia Burkina Faso Saudi Arabia Burundi Guyana Botswana Cambodia Ethiopia Kenya Ghana Bahrain Lebanon Bolivia Capiago Intimiano Latvia Côte d'Ivoire Turkey Brazil El Salvador Bulgaria Cucciago Iraq Iran Zimbabwe Afghanistan Ireland Brunei Laos South Korea Zambia Vietnam Angola
Iraq, Ethiopia, Japan, United Kingdom, India, Dominica, Brazil, Kiribati, Bangladesh and Bahrain have diplomatic relationships with Georgia or are adjacent to Senna Comasco
Iraq Ethiopia Japan United Kingdom India Dominica Brazil Kiribati Bangladesh Bahrain
action filter_type
action union
action find
entity Georgia
relation diplomatic relation
action find
entity Senna Comasco
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Senna Comasco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Georgia property:diplomatic_relation ?h } UNION { resource:Senna_Comasco property:shares_border_with ?h } } . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q47379
P47
Q15617994
USER
How many administrative territories share the border with Senna Comasco ?
(Q47379,P47,c(Q15617994))
action count
action filter_type
action find
entity Q47379
relation P47
type Q15617994
['Q47379', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q47379 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Senna Comasco
action count
action filter_type
action find
entity Senna Comasco
relation shares border with
type designation for an administrative territorial entity
['Senna Comasco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Senna_Comasco property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q36295 Q244224 Q47354 Q244353
(Q47379,P47,c(Q15617994))
action count
action filter_type
action find
entity Q47379
relation P47
type Q15617994
[ANSWER]
['Q47379', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Q47379 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Cantù Capiago Intimiano Cucciago Casnate con Bernate
4
action count
action filter_type
action find
entity Senna Comasco
relation shares border with
type designation for an administrative territorial entity
['Senna Comasco', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?r ) WHERE { resource:Senna_Comasco property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q100149
P47
Q15617994
USER
And what about Carobbio degli Angeli?
(Q100149,P47,c(Q15617994))
action count
action filter_type
action find
entity Q100149
relation P47
type Q15617994
['Q100149', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Q100149 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Carobbio degli Angeli
action count
action filter_type
action find
entity Carobbio degli Angeli
relation shares border with
type designation for an administrative territorial entity
['Carobbio degli Angeli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Carobbio_degli_Angeli property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
6
Q101663 Q101115 Q99970 Q101142 Q100365 Q101161
(Q100149,P47,c(Q15617994))
action count
action filter_type
action find
entity Q100149
relation P47
type Q15617994
[ANSWER]
['Q100149', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Q100149 property:P47 ?t . ?t rdf:type ontology:Q15617994 }
Trescore Balneario Gandosso Bolgare Gorlago Chiuduno Grumello del Monte
6
action count
action filter_type
action find
entity Carobbio degli Angeli
relation shares border with
type designation for an administrative territorial entity
['Carobbio degli Angeli', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?a ) WHERE { resource:Carobbio_degli_Angeli property:shares_border_with ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q1751518
Q15617994
USER
And what about Vejprty?
(Q1751518,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1751518
relation P47
type Q15617994
['Q1751518', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q1751518 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Vejprty
action count
action filter_type
action find
entity Vejprty
relation shares border with
type designation for an administrative territorial entity
['Vejprty', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Vejprty property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
2
(Q1751518,P47,c(Q15617994))
action count
action filter_type
action find
entity Q1751518
relation P47
type Q15617994
[ANSWER]
['Q1751518', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Q1751518 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
2
action count
action filter_type
action find
entity Vejprty
relation shares border with
type designation for an administrative territorial entity
['Vejprty', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?x ) WHERE { resource:Vejprty property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with max number of administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?s ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?s = ?e ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?a } GROUP BY ?y } } }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?s ) WHERE { ?t property:diplomatic_relation ?c . ?t rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?s = ?e ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?a } GROUP BY ?y } } }
[]
designation for an administrative territorial entity political territorial entity
Q183
SYSTEM
Germany
Q183
(c(Q1048835),P530,c(Q15617994))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
[ANSWER] have diplomatic relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?s ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?s = ?e ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q1048835 . ?y property:P530 ?a } GROUP BY ?y } } }
Germany
Germany have diplomatic relations with max number of administrative territories
Germany
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?s ) WHERE { ?t property:diplomatic_relation ?c . ?t rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . FILTER ( ?s = ?e ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?e ) { SELECT DISTINCT ?y ( COUNT ( ?a ) AS ?g ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:political_territorial_entity . ?y property:diplomatic_relation ?a } GROUP BY ?y } } }
[]