Simple Question (Direct)
Simple Question
Q1065240
P20
Q56061
USER
Where did the expiration of Charles L. Underhill occur ?
(Q1065240,P20,c(Q56061))
action filter_type
action find
entity Q1065240
relation P20
type Q56061
['Q1065240', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q1065240 property:P20 ?f }
Charles L. Underhill
action filter_type
action find
entity Charles L. Underhill
relation place of death
type administrative territorial entity
['Charles L. Underhill', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Charles_L._Underhill property:place_of_death ?f }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q1065240,P20,c(Q56061))
action filter_type
action find
entity Q1065240
relation P20
type Q56061
The expiration of Charles L. did in [ANSWER]
['Q1065240', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q1065240 property:P20 ?f }
New York City
The expiration of Charles L. did in New York City
New York City
action filter_type
action find
entity Charles L. Underhill
relation place of death
type administrative territorial entity
['Charles L. Underhill', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Charles_L._Underhill property:place_of_death ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1065240
P21
Q290
USER
Which sex does Charles L. Underhill have ?
(Q1065240,P21,c(Q290))
action filter_type
action find
entity Q1065240
relation P21
type Q290
['Q1065240', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1065240 property:P21 ?h . ?h rdf:type ontology:Q290 }
Charles L. Underhill
action filter_type
action find
entity Charles L. Underhill
relation gender
type sex
['Charles L. Underhill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Charles_L._Underhill property:gender ?h . ?h rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1065240,P21,c(Q290))
action filter_type
action find
entity Q1065240
relation P21
type Q290
Charles L. Underhill has 1 [ANSWER]
['Q1065240', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { resource:Q1065240 property:P21 ?h . ?h rdf:type ontology:Q290 }
male
Charles L. Underhill has 1 male
male
action filter_type
action find
entity Charles L. Underhill
relation gender
type sex
['Charles L. Underhill', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { resource:Charles_L._Underhill property:gender ?h . ?h rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P138
Q1936581 Q2088357
USER
How many mineral groups and musical ensembles come from that sex ?
(c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q2088357 } UNION { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q1936581 } }
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:named_after resource:male . ?k rdf:type ontology:musical_ensemble } UNION { ?k property:named_after resource:male . ?k rdf:type ontology:mineral_group } }
[]
mineral group musical ensemble
SYSTEM
1 mineral groups and 1 musical ensembles
Q15181127 Q3844522
(c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097) (c(Q1936581),P138,Q6581097) (c(Q2088357),P138,Q6581097)
action count
action union
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q1936581
action filter_type
action find_reverse
entity Q6581097
relation P138
type Q2088357
[ANSWER]
[{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097'] [{'concept': 'Q1936581'}, 'P138', 'Q6581097'] [{'concept': 'Q2088357'}, 'P138', 'Q6581097']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q2088357 } UNION { ?k property:P138 resource:Q6581097 . ?k rdf:type ontology:Q1936581 } }
Ausekarane tweddillite
1 mineral groups and 1 musical ensembles
action count
action union
action filter_type
action find_reverse
entity male
relation named after
type mineral group
action filter_type
action find_reverse
entity male
relation named after
type musical ensemble
[{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male'] [{'concept': 'mineral group'}, 'named after', 'male'] [{'concept': 'musical ensemble'}, 'named after', 'male']
SELECT DISTINCT ( COUNT ( ?k ) AS ?v ) WHERE { { ?k property:named_after resource:male . ?k rdf:type ontology:musical_ensemble } UNION { ?k property:named_after resource:male . ?k rdf:type ontology:mineral_group } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q641011 Q1065240
P27
Q15617994
USER
Which administrative territories do Charles L. Underhill or Fuat Sezgin belong to ?
OR((Q1065240,P27,c(Q15617994)), (Q641011,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1065240
relation P27
action find
entity Q641011
relation P27
type Q15617994
{'OR': [['Q1065240', 'P27', {'concept': 'Q15617994'}], ['Q641011', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1065240 property:P27 ?b } UNION { resource:Q641011 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
Fuat Sezgin Charles L. Underhill
action filter_type
action union
action find
entity Charles L. Underhill
relation country of citizenship
action find
entity Fuat Sezgin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charles L. Underhill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fuat Sezgin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Charles_L._Underhill property:country_of_citizenship ?b } UNION { resource:Fuat_Sezgin property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q43
SYSTEM
United States of America, Turkey
Q30 Q43
OR((Q1065240,P27,c(Q15617994)), (Q641011,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1065240
relation P27
action find
entity Q641011
relation P27
type Q15617994
Charles L. Underhill or Fuat Sezgin belong to the [ANSWERS]
{'OR': [['Q1065240', 'P27', {'concept': 'Q15617994'}], ['Q641011', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q1065240 property:P27 ?b } UNION { resource:Q641011 property:P27 ?b } } . ?b rdf:type ontology:Q15617994 }
United States of America Turkey
Charles L. Underhill or Fuat Sezgin belong to the United States of America and Turkey
United States of America Turkey
action filter_type
action union
action find
entity Charles L. Underhill
relation country of citizenship
action find
entity Fuat Sezgin
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Charles L. Underhill', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fuat Sezgin', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Charles_L._Underhill property:country_of_citizenship ?b } UNION { resource:Fuat_Sezgin property:country_of_citizenship ?b } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q265
P17
Q15617994 Q3914 Q83620
USER
How many administrative territories are less number of schools or thoroughfares located in than Uzbekistan ?
(c(Q3914)|c(Q83620),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q265
relation P17
type Q3914
type Q83620
[[{'concept': 'Q3914'}, {'concept': 'Q83620'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?o WHERE { { ?g property:P17 ?o . ?g rdf:type ontology:Q3914 . ?o rdf:type ontology:Q15617994 } UNION { ?g property:P17 ?o . ?o rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q83620 } } GROUP BY ?o } . FILTER ( ?f < ?c ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { { ?m rdf:type ontology:Q83620 } UNION { ?m rdf:type ontology:Q3914 } } . ?m property:P17 resource:Q265 } } }
Uzbekistan
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation country
type school
type thoroughfare
[[{'concept': 'school'}, {'concept': 'thoroughfare'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?o WHERE { { ?g property:country ?o . ?g rdf:type ontology:school . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:thoroughfare } } GROUP BY ?o } . FILTER ( ?f < ?c ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { { ?m rdf:type ontology:thoroughfare } UNION { ?m rdf:type ontology:school } } . ?m property:country resource:Uzbekistan } } }
[]
designation for an administrative territorial entity school thoroughfare
SYSTEM
145
Q702 Q804 Q800 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q262 Q783 Q784 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q565812 Q187035 Q1462 Q657 Q792 Q790 Q517333 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q153136 Q1210 Q921 Q924 Q155019 Q983 Q733 Q29999 Q734 Q819 Q107426 Q730 Q1282 Q159626 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q1029 Q34762 Q1458 Q786 Q228 Q3462133 Q223 Q815731 Q47261 Q347 Q1050 Q977 Q704288 Q10957559 Q1037 Q1032 Q965 Q967 Q963 Q697 Q695 Q115 Q389004 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q829700 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q696651 Q858 Q878 Q774 Q948 Q817 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q1049 Q426025 Q953
(c(Q3914)|c(Q83620),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q265
relation P17
type Q3914
type Q83620
[ANSWER]
[[{'concept': 'Q3914'}, {'concept': 'Q83620'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?o WHERE { { ?g property:P17 ?o . ?g rdf:type ontology:Q3914 . ?o rdf:type ontology:Q15617994 } UNION { ?g property:P17 ?o . ?o rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q83620 } } GROUP BY ?o } . FILTER ( ?f < ?c ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { { ?m rdf:type ontology:Q83620 } UNION { ?m rdf:type ontology:Q3914 } } . ?m property:P17 resource:Q265 } } }
Federated States of Micronesia Panama Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Algeria Honduras Dominica Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Principality of Calenberg Principality of Albania Sardinia Chad El Salvador Haiti Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Habsburg Empire Lombardy Brunei Tanzania Duchy of Lorraine Equatorial Guinea Paraguay Kingdom of the Netherlands Guyana Laos Anjou Suriname Lazio Württemberg Malta San Marino Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Mozambique Principality of Bayreuth Calabria Dominican Republic Andorra Saxe-Coburg and Gotha Greenland Principality of Bulgaria Duchy of Bavaria Liechtenstein Swaziland Djibouti Duchy of Holstein Moldavia Rwanda Niger Burkina Faso Burundi Botswana Nauru Palau Ethiopia Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Saxe-Jena Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Saxe-Eisenach Syria United Arab Emirates Guatemala Tunisia Kuwait Kyrgyzstan Liberia Libya Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Sudan Duchy of Savoy Zambia
145
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Uzbekistan
relation country
type school
type thoroughfare
[[{'concept': 'school'}, {'concept': 'thoroughfare'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?f ) ?o WHERE { { ?g property:country ?o . ?g rdf:type ontology:school . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?g property:country ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:thoroughfare } } GROUP BY ?o } . FILTER ( ?f < ?c ) . { SELECT DISTINCT ( COUNT ( ?m ) AS ?c ) WHERE { { { ?m rdf:type ontology:thoroughfare } UNION { ?m rdf:type ontology:school } } . ?m property:country resource:Uzbekistan } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q924
P17
Q15617994 Q3914 Q83620
USER
And also tell me about Tanzania?
(c(Q3914)|c(Q83620),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q924
relation P17
type Q3914
type Q83620
[[{'concept': 'Q3914'}, {'concept': 'Q83620'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:Q3914 ) ( ontology:Q83620 ) } . ?h rdf:type ?w } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P17 resource:Q924 . { { ?c rdf:type ontology:Q3914 } UNION { ?c rdf:type ontology:Q83620 } } } } . FILTER ( ?t < ?j ) }
Tanzania
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Tanzania
relation country
type school
type thoroughfare
[[{'concept': 'school'}, {'concept': 'thoroughfare'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:school ) ( ontology:thoroughfare ) } . ?h rdf:type ?w } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:country resource:Tanzania . { { ?c rdf:type ontology:school } UNION { ?c rdf:type ontology:thoroughfare } } } } . FILTER ( ?t < ?j ) }
[]
designation for an administrative territorial entity school thoroughfare
SYSTEM
127
Q702 Q1256 Q709 Q398 Q805 Q339952 Q270508 Q684030 Q2172530 Q12536 Q783 Q784 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q565812 Q187035 Q1462 Q657 Q792 Q790 Q517333 Q2001966 Q326029 Q958 Q986 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q153136 Q1210 Q155019 Q983 Q29999 Q734 Q107426 Q730 Q1282 Q159626 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q34762 Q1458 Q3462133 Q223 Q815731 Q47261 Q347 Q1050 Q704288 Q10957559 Q1037 Q1032 Q965 Q967 Q697 Q695 Q115 Q389004 Q1013 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q829700 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q696651 Q858 Q774 Q948 Q817 Q1014 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q1049 Q426025
(c(Q3914)|c(Q83620),P17,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q3914
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q83620
action count
action filter_multi_types
action find_reverse
entity Q924
relation P17
type Q3914
type Q83620
[ANSWER]
[[{'concept': 'Q3914'}, {'concept': 'Q83620'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:Q3914 ) ( ontology:Q83620 ) } . ?h rdf:type ?w } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:P17 resource:Q924 . { { ?c rdf:type ontology:Q3914 } UNION { ?c rdf:type ontology:Q83620 } } } } . FILTER ( ?t < ?j ) }
Federated States of Micronesia Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Andora Principality of Serbia Electorate of Württemberg Abbasid caliphate Honduras Dominica Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Principality of Calenberg Principality of Albania Sardinia Chad El Salvador Haiti Principality of Polotsk Company rule in India Duchy of Brunswick South Sudan Eritrea Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Habsburg Empire Lombardy Duchy of Lorraine Equatorial Guinea Kingdom of the Netherlands Guyana Anjou Suriname Lazio Württemberg Malta San Marino Somalia Sierra Leone Seychelles Senegal developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Principality of Bayreuth Calabria Saxe-Coburg and Gotha Greenland Principality of Bulgaria Duchy of Bavaria Liechtenstein Swaziland Duchy of Holstein Moldavia Rwanda Niger Burkina Faso Burundi Nauru Palau Ethiopia Wallachia Lesotho Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Saxe-Jena Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Samoa Principality of Catalonia Niue Duchy of Zaslawye Vanuatu Great Moravia Saint Lucia East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Saxe-Eisenach Syria Guatemala Tunisia Kuwait Liberia Margraviate of Brandenburg Cape Verde Togo Tonga Umayyad Caliphate Electorate of Hesse Sao Tomé and Príncipe Tuvalu New Caledonia Central African Republic Duchy of Mecklenburg-Schwerin Sudan Duchy of Savoy
127
action count
action less
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type school
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type thoroughfare
action count
action filter_multi_types
action find_reverse
entity Tanzania
relation country
type school
type thoroughfare
[[{'concept': 'school'}, {'concept': 'thoroughfare'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?e ) WHERE { { SELECT DISTINCT ?z ( COUNT ( ?h ) AS ?t ) WHERE { VALUES ( ?w ) { ( ontology:school ) ( ontology:thoroughfare ) } . ?h rdf:type ?w } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c property:country resource:Tanzania . { { ?c rdf:type ontology:school } UNION { ?c rdf:type ontology:thoroughfare } } } } . FILTER ( ?t < ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
Which administrative territories have diplomatic associations with atleast 27 political territories or administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 27
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?y ) WHERE { { ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 . ?m property:P530 ?n } UNION { ?m property:P530 ?n . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?m } . FILTER ( ?y >= 27 ) }
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?y ) WHERE { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?n } UNION { ?m property:diplomatic_relation ?n . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } . FILTER ( ?y >= 27 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q155 Q38 Q230 Q184
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action atleast
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 27
[ANSWERS] have diplomatic associations with atleast 27 political territories or administrative territories
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?y ) WHERE { { ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q1048835 . ?m property:P530 ?n } UNION { ?m property:P530 ?n . ?m rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 } } GROUP BY ?m } . FILTER ( ?y >= 27 ) }
Brazil Italy Georgia Belarus
Italy, Brazil and Georgia have diplomatic associations with atleast 27 political territories or administrative territories
Italy Brazil Georgia
action atleast
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 27
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ?m ( COUNT ( ?n ) AS ?y ) WHERE { { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:political_territorial_entity . ?m property:diplomatic_relation ?n } UNION { ?m property:diplomatic_relation ?n . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?m } . FILTER ( ?y >= 27 ) }
[]
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,Q38) (Q183,P530,Q155) (Q183,P530,Q230)
action is_in
entity prev_answer
action find
entity Q183
relation P530
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q230']
ASK WHERE { resource:Q183 property:P530 ?b . VALUES ( ?b ) { ( resource:Q155 ) ( resource:Q38 ) ( resource:Q230 ) } }
Germany
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Germany property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Brazil ) ( resource:Italy ) ( resource:Georgia ) } }
[]
political territorial entity
SYSTEM
YES
(Q183,P530,Q38) (Q183,P530,Q155) (Q183,P530,Q230)
action is_in
entity prev_answer
action find
entity Q183
relation P530
[ANSWER]
['Q183', 'P530', 'Q38'] ['Q183', 'P530', 'Q155'] ['Q183', 'P530', 'Q230']
ASK WHERE { resource:Q183 property:P530 ?b . VALUES ( ?b ) { ( resource:Q155 ) ( resource:Q38 ) ( resource:Q230 ) } }
Yes
action is_in
entity prev_answer
action find
entity Germany
relation diplomatic relation
['Germany', 'diplomatic relation', 'Italy'] ['Germany', 'diplomatic relation', 'Brazil'] ['Germany', 'diplomatic relation', 'Georgia']
ASK WHERE { resource:Germany property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Brazil ) ( resource:Italy ) ( resource:Georgia ) } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1037
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with around the same number of administrative territories as Rwanda ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q1037 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?o ) }
Rwanda
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Rwanda
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Rwanda property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?o ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q657 Q258 Q45 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1037
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with around the same number of administrative territories as Rwanda
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:P530 ?e . ?e rdf:type ontology:Q15617994 . ?u rdf:type ontology:Q15617994 } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Q1037 property:P530 ?z . ?z rdf:type ontology:Q15617994 } } . FILTER ( ?m = ?o ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Chad South Africa Portugal 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 Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relationships with around the same number of administrative territories as Rwanda
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Rwanda
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 ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?u ) AS ?m ) WHERE { ?u property:diplomatic_relation ?e . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?o ) WHERE { resource:Rwanda property:diplomatic_relation ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?m = ?o ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q211
P530
Q15617994 Q15617994
USER
And how about Latvia?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q211 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P530 ?g . ?w rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } }
Latvia
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Latvia property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:diplomatic_relation ?g . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 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 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q211
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q211 property:P530 ?c . ?c rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:P530 ?g . ?w rdf:type ontology:Q15617994 . ?g rdf:type ontology:Q15617994 } GROUP BY ?g } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati 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 Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya 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 Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
Georgia Netherlands Poland
action approx
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Latvia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Latvia property:diplomatic_relation ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?s ) . { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?y ) WHERE { ?w property:diplomatic_relation ?g . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?g } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have tactful political 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 ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?m ) WHERE { ?j rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?j property:P530 ?s } GROUP BY ?j } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?q ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?q = ?g ) }
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 ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?m ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?s } GROUP BY ?j } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?q ) 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 ( ?q = ?g ) }
[]
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 tactful political relations with max number of administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?m ) WHERE { ?j rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q15617994 . ?j property:P530 ?s } GROUP BY ?j } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?q ) WHERE { ?t property:P530 ?c . ?t rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q15617994 } GROUP BY ?t } . FILTER ( ?q = ?g ) }
Germany
Germany have tactful political 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 ( MAX ( ?m ) AS ?g ) { SELECT DISTINCT ?j ( COUNT ( ?s ) AS ?m ) WHERE { ?j rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j property:diplomatic_relation ?s } GROUP BY ?j } } . { SELECT DISTINCT ?t ( COUNT ( ?c ) AS ?q ) 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 ( ?q = ?g ) }
[]