Simple Question (Direct)
Simple Question
Q1031600
P21
Q290
USER
What is the sex of Kornél Görgey ?
(Q1031600,P21,c(Q290))
action filter_type
action find
entity Q1031600
relation P21
type Q290
['Q1031600', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1031600 property:P21 ?l . ?l rdf:type ontology:Q290 }
Kornél Görgey
action filter_type
action find
entity Kornél Görgey
relation gender
type sex
['Kornél Görgey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Kornél_Görgey property:gender ?l . ?l rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1031600,P21,c(Q290))
action filter_type
action find
entity Q1031600
relation P21
type Q290
The sex of Kornél Görgey is the [ANSWER]
['Q1031600', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { resource:Q1031600 property:P21 ?l . ?l rdf:type ontology:Q290 }
male
The sex of Kornél Görgey is the male
male
action filter_type
action find
entity Kornél Görgey
relation gender
type sex
['Kornél Görgey', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { resource:Kornél_Görgey property:gender ?l . ?l rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1031600
P27
Q15617994
USER
Which administrative territory is Kornél Görgey a civilian of ?
(Q1031600,P27,c(Q15617994))
action filter_type
action find
entity Q1031600
relation P27
type Q15617994
['Q1031600', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1031600 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Kornél Görgey
action filter_type
action find
entity Kornél Görgey
relation country of citizenship
type designation for an administrative territorial entity
['Kornél Görgey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Kornél_Görgey property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q28
SYSTEM
Hungary
Q28
(Q1031600,P27,c(Q15617994))
action filter_type
action find
entity Q1031600
relation P27
type Q15617994
[ANSWER] is Kornél Görgey a civilian of
['Q1031600', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q1031600 property:P27 ?m . ?m rdf:type ontology:Q15617994 }
Hungary
Hungary is Kornél Görgey a civilian of
Hungary
action filter_type
action find
entity Kornél Görgey
relation country of citizenship
type designation for an administrative territorial entity
['Kornél Görgey', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Kornél_Görgey property:country_of_citizenship ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q9323797
Q15617994
USER
And what about Rudolf Kornke?
(Q9323797,P27,c(Q15617994))
action filter_type
action find
entity Q9323797
relation P27
type Q15617994
['Q9323797', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q9323797 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Rudolf Kornke
action filter_type
action find
entity Rudolf Kornke
relation country of citizenship
type designation for an administrative territorial entity
['Rudolf Kornke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Rudolf_Kornke property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q36
SYSTEM
Poland
Q36
(Q9323797,P27,c(Q15617994))
action filter_type
action find
entity Q9323797
relation P27
type Q15617994
[ANSWER]
['Q9323797', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?w WHERE { resource:Q9323797 property:P27 ?w . ?w rdf:type ontology:Q15617994 }
Poland
Poland
action filter_type
action find
entity Rudolf Kornke
relation country of citizenship
type designation for an administrative territorial entity
['Rudolf Kornke', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Rudolf_Kornke property:country_of_citizenship ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
How many political territories have diplomatic associations with approximately 38 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b property:P530 ?r . ?b rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?l = 38 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b property:diplomatic_relation ?r . ?b rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?l = 38 ) }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
11
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q1048835),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 38
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b property:P530 ?r . ?b rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q15617994 } GROUP BY ?b } . FILTER ( ?l = 38 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
11
action count
action approx
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 38
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?x ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { ?b property:diplomatic_relation ?r . ?b rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?b } . FILTER ( ?l = 38 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q517333
P17
Q15617994 Q337567 Q15617994
USER
Which administrative territories are around the same number of still waterss and administrative territories a part of as Principality of Polotsk ?
(c(Q337567)|c(Q15617994),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q517333
relation P17
type Q337567
type Q15617994
[[{'concept': 'Q337567'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } . ?y rdf:type ?t } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P17 resource:Q517333 . { { ?c rdf:type ontology:Q337567 } UNION { ?c rdf:type ontology:Q15617994 } } } } . FILTER ( ?x = ?r ) }
Principality of Polotsk
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Principality of Polotsk
relation country
type still waters
type designation for an administrative territorial entity
[[{'concept': 'still waters'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?t } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:country resource:Principality_of_Polotsk . { { ?c rdf:type ontology:still_waters } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?x = ?r ) }
[]
designation for an administrative territorial entity still waters designation for an administrative territorial entity
Q155 Q230 Q55
SYSTEM
Brazil, Georgia, Netherlands
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q337567)|c(Q15617994),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q517333
relation P17
type Q337567
type Q15617994
[ANSWERS] are around the same number of still waterss and administrative territories a part of as Principality of Polotsk
[[{'concept': 'Q337567'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } . ?y rdf:type ?t } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:P17 resource:Q517333 . { { ?c rdf:type ontology:Q337567 } UNION { ?c rdf:type ontology:Q15617994 } } } } . FILTER ( ?x = ?r ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon 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 Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar 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 Tajikistan Sudan Thailand Duchy of Savoy Zambia
Brazil, Georgia and Netherlands are around the same number of still waterss and administrative territories a part of as Principality of Polotsk
Brazil Georgia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Principality of Polotsk
relation country
type still waters
type designation for an administrative territorial entity
[[{'concept': 'still waters'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?y ) AS ?x ) WHERE { VALUES ( ?t ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?y rdf:type ?t } GROUP BY ?e } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { ?c property:country resource:Principality_of_Polotsk . { { ?c rdf:type ontology:still_waters } UNION { ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . FILTER ( ?x = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1007
P17
Q15617994 Q337567 Q15617994
USER
And how about Guinea-Bissau?
(c(Q337567)|c(Q15617994),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1007
relation P17
type Q337567
type Q15617994
[[{'concept': 'Q337567'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?k WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } . ?s rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P17 resource:Q1007 . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?i = ?w ) }
Guinea-Bissau
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Guinea-Bissau
relation country
type still waters
type designation for an administrative territorial entity
[[{'concept': 'still waters'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?k WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:country resource:Guinea-Bissau . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?i = ?w ) }
[]
designation for an administrative territorial entity still waters designation for an administrative territorial entity
Q155 Q230 Q55
SYSTEM
Brazil, Georgia, Netherlands
Q702 Q804 Q801 Q800 Q1256 Q709 Q398 Q805 Q339952 Q419 Q270508 Q668 Q684030 Q2172530 Q414 Q142 Q55 Q12536 Q262 Q783 Q784 Q265 Q214 Q640426 Q36678 Q736029 Q712 Q711 Q710 Q717 Q837 Q565812 Q187035 Q252 Q399 Q1462 Q403 Q657 Q258 Q45 Q43 Q41 Q155 Q792 Q790 Q517333 Q796 Q794 Q954 Q889 Q2001966 Q326029 Q884 Q958 Q881 Q986 Q219 Q153529 Q695316 Q4628 Q826 Q165040 Q822 Q241 Q242 Q244 Q315667 Q811 Q736 Q153136 Q1210 Q33 Q921 Q31 Q924 Q36 Q34 Q928 Q155019 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q107426 Q424 Q730 Q1282 Q159626 Q236 Q230 Q232 Q233 Q238 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q177323 Q313175 Q149621 Q1025 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q836 Q34762 Q1458 Q786 Q32 Q228 Q3462133 Q227 Q225 Q224 Q223 Q222 Q221 Q815731 Q47261 Q96 Q229 Q347 Q1050 Q977 Q17 Q704288 Q10957559 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q389004 Q754 Q750 Q212 Q213 Q211 Q217 Q1013 Q215 Q218 Q160307 Q164092 Q1483510 Q912 Q2662372 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q829700 Q1009 Q1008 Q971 Q970 Q239502 Q683 Q15581 Q34020 Q2380910 Q686 Q193152 Q760 Q29 Q574 Q655621 Q2502354 Q154849 Q159856 Q2621010 Q874 Q79 Q696651 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q148499 Q1011 Q945 Q678 Q8575586 Q529605 Q1039 Q672 Q33788 Q929 Q11024667 Q863 Q1049 Q869 Q426025 Q953
(c(Q337567)|c(Q15617994),P17,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q337567
action find_reverse_tuple_counts
relation P17
type Q15617994
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q1007
relation P17
type Q337567
type Q15617994
[ANSWERS]
[[{'concept': 'Q337567'}, {'concept': 'Q15617994'}], 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?k WHERE { VALUES ( ?r ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } . ?s rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:P17 resource:Q1007 . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:Q337567 ) ( ontology:Q15617994 ) } } } } . FILTER ( ?i = ?w ) }
Federated States of Micronesia Panama Israel Costa Rica Liguria Marshall Islands Bahrain Yemen Principality of Orange-Nassau Peru Andora India Principality of Serbia Electorate of Württemberg Argentina France Netherlands Abbasid caliphate Algeria Honduras Dominica Uzbekistan Slovakia Stahnsdorf West Bank Nassau-Siegen Fiji Mongolia Kiribati Venezuela Nepal Principality of Calenberg Principality of Albania Indonesia Armenia Sardinia Serbia Chad South Africa Portugal Turkey Greece Brazil El Salvador Haiti Principality of Polotsk Iraq Iran Zimbabwe Afghanistan Company rule in India Duchy of Brunswick South Korea South Sudan Vietnam Eritrea Bulgaria Duchy of Milan Schwarzburg-Rudolstadt Faroe Islands Maldives Duchy of Parma Lebanon Cuba Belize Barbados Saxe-Weimar Nicaragua Ecuador Habsburg Empire Lombardy Finland Brunei Belgium Tanzania Poland Sweden Philippines Duchy of Lorraine Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Anjou Cambodia Suriname Lazio Württemberg Montenegro Georgia Kazakhstan Malta San Marino Somalia Sierra Leone Seychelles Senegal Ireland Hungary developing country Saxe-Lauenburg district Mauritania Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Myanmar Principality of Bayreuth Calabria Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Principality of Bulgaria Duchy of Bavaria Mexico Cyprus Liechtenstein Swaziland Djibouti Japan Duchy of Holstein Moldavia Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Wallachia Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Lesotho Slovenia Romania Fatimid caliphate Duchy of Saxony Principality of Wales Mali Principality of Minsk Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Saxe-Jena Cameroon 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 Spain East Timor Principality of Transylvania Principality of Goroden Grand Duchy of Tuscany Duchy of Brabant Principality of Vitebsk Turkmenistan Egypt Saxe-Eisenach Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar 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 Tajikistan Sudan Thailand Duchy of Savoy Zambia
Brazil Georgia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type still waters
action find_reverse_tuple_counts
relation country
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Guinea-Bissau
relation country
type still waters
type designation for an administrative territorial entity
[[{'concept': 'still waters'}, {'concept': 'designation for an administrative territorial entity'}], 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?i ) ?k WHERE { VALUES ( ?r ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?s rdf:type ?r } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?w ) WHERE { ?u property:country resource:Guinea-Bissau . { ?u rdf:type ?q . VALUES ( ?q ) { ( ontology:still_waters ) ( ontology:designation_for_an_administrative_territorial_entity ) } } } } . FILTER ( ?i = ?w ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have diplomatic relations with those ones ?
(Q38,P530,Q155) (Q38,P530,Q230) (Q38,P530,Q55)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q155'] ['Q38', 'P530', 'Q230'] ['Q38', 'P530', 'Q55']
ASK WHERE { resource:Q38 property:P530 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Brazil'] ['Italy', 'diplomatic relation', 'Georgia'] ['Italy', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Italy property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q155) (Q38,P530,Q230) (Q38,P530,Q55)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q155'] ['Q38', 'P530', 'Q230'] ['Q38', 'P530', 'Q55']
ASK WHERE { resource:Q38 property:P530 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q801 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', 'Brazil'] ['Italy', 'diplomatic relation', 'Georgia'] ['Italy', 'diplomatic relation', 'Netherlands']
ASK WHERE { resource:Italy property:diplomatic_relation ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Israel ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q36 Q566397
P463
Q484652
USER
Was Poland a member of Weimar Triangle ?
(Q36,P463,Q566397)
action is_in
entity Q566397
action find
entity Q36
relation P463
['Q36', 'P463', 'Q566397']
ASK WHERE { resource:Q36 property:P463 resource:Q566397 }
Poland Weimar Triangle
action is_in
entity Weimar Triangle
action find
entity Poland
relation member of
['Poland', 'member of', 'Weimar Triangle']
ASK WHERE { resource:Poland property:member_of resource:Weimar_Triangle }
[]
international organization
SYSTEM
YES
(Q36,P463,Q566397)
action is_in
entity Q566397
action find
entity Q36
relation P463
[ANSWER]
['Q36', 'P463', 'Q566397']
ASK WHERE { resource:Q36 property:P463 resource:Q566397 }
Yes
action is_in
entity Weimar Triangle
action find
entity Poland
relation member of
['Poland', 'member of', 'Weimar Triangle']
ASK WHERE { resource:Poland property:member_of resource:Weimar_Triangle }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q155 Q801
P530
Q15617994
USER
Does Israel hold diplomatic relationship with Brazil ?
(Q155,P530,Q801)
action is_in
entity Q801
action find
entity Q155
relation P530
['Q155', 'P530', 'Q801']
ASK WHERE { resource:Q155 property:P530 resource:Q801 }
Brazil Israel
action is_in
entity Israel
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Israel }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q155,P530,Q801)
action is_in
entity Q801
action find
entity Q155
relation P530
[ANSWER]
['Q155', 'P530', 'Q801']
ASK WHERE { resource:Q155 property:P530 resource:Q801 }
Yes
action is_in
entity Israel
action find
entity Brazil
relation diplomatic relation
['Brazil', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Brazil property:diplomatic_relation resource:Israel }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P276
Q161243
USER
Which dependent territory has its location as Brazil ?
action filter_type
action find_reverse
entity Q155
relation P276
type Q161243
SELECT DISTINCT ?c WHERE { ?c property:P276 resource:Q155 . ?c rdf:type ontology:Q161243 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation location
type dependent territory
SELECT DISTINCT ?c WHERE { ?c property:location resource:Brazil . ?c rdf:type ontology:dependent_territory }
[]
dependent territory
Q221357
SYSTEM
Dutch Brazil
Q221357
action filter_type
action find_reverse
entity Q155
relation P276
type Q161243
[ANSWER] has its location as Brazil
SELECT DISTINCT ?c WHERE { ?c property:P276 resource:Q155 . ?c rdf:type ontology:Q161243 }
Dutch Brazil
Dutch Brazil has its location as Brazil
Dutch Brazil
action filter_type
action find_reverse
entity Brazil
relation location
type dependent territory
SELECT DISTINCT ?c WHERE { ?c property:location resource:Brazil . ?c rdf:type ontology:dependent_territory }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q12304715 Q155
P530 P17
Q1048835
USER
Which political territories have diplomatic relationships with Brazil and are not BYG-ERFA present in ?
AND((Q155,P530,c(Q1048835)), NOT((Q12304715,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q155
relation P530
action find
entity Q12304715
relation P17
type Q1048835
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q12304715', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?t WHERE { FILTER NOT EXISTS { resource:Q12304715 property:P17 ?t } . resource:Q155 property:P530 ?t . ?t rdf:type ontology:Q1048835 }
BYG-ERFA Brazil
action filter_type
action difference
action find
entity Brazil
relation diplomatic relation
action find
entity BYG-ERFA
relation country
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['BYG-ERFA', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { FILTER NOT EXISTS { resource:BYG-ERFA property:country ?t } . resource:Brazil property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q408 Q766 Q183
SYSTEM
Canada, Australia, Jamaica, Germany
Q16 Q408 Q766 Q183
AND((Q155,P530,c(Q1048835)), NOT((Q12304715,P17,c(Q1048835))))
action filter_type
action difference
action find
entity Q155
relation P530
action find
entity Q12304715
relation P17
type Q1048835
[ANSWERS] have diplomatic relationships with Brazil and are not BYG-ERFA present in
{'AND': [['Q155', 'P530', {'concept': 'Q1048835'}], {'NOT': [['Q12304715', 'P17', {'concept': 'Q1048835'}]]}]}
SELECT DISTINCT ?t WHERE { FILTER NOT EXISTS { resource:Q12304715 property:P17 ?t } . resource:Q155 property:P530 ?t . ?t rdf:type ontology:Q1048835 }
Canada Australia Jamaica Germany
Canada, Australia, Jamaica and Germany have diplomatic relationships with Brazil and are not BYG-ERFA present in
Canada Australia Jamaica Germany
action filter_type
action difference
action find
entity Brazil
relation diplomatic relation
action find
entity BYG-ERFA
relation country
type political territorial entity
{'AND': [['Brazil', 'diplomatic relation', {'concept': 'political territorial entity'}], {'NOT': [['BYG-ERFA', 'country', {'concept': 'political territorial entity'}]]}]}
SELECT DISTINCT ?t WHERE { FILTER NOT EXISTS { resource:BYG-ERFA property:country ?t } . resource:Brazil property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1427
Q1048835 Q31629 Q2912397
USER
Which political territories gives the origination point of greater number of types of sport or single-day races than that political territory ?
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?t ) { ( ?z ) ( ?x ) } . ?t property:P1427 ?y } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?t ) { ( ?z ) ( ?x ) } . ?t property:start_point ?y } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
political territorial entity type of sport single-day race
Comparative|More/Less|Mult. entity type|Clarification
Q408
SYSTEM
Did you mean Australia ?
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[ANSWER]
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?t ) { ( ?z ) ( ?x ) } . ?t property:P1427 ?y } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Did you mean Australia ?
Australia
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?t ) { ( ?z ) ( ?x ) } . ?t property:start_point ?y } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Comparative Reasoning (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
Q183
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
[]
Q12647 Q1552975 Q15486
SYSTEM
Vielha e Mijaran, Sabiñánigo, Bagà
Q572800 Q15907 Q1443867 Q593620 Q615841 Q1552975 Q496424 Q1628353 Q1607762 Q641221 Q1647365 Q671341 Q848172 Q847329 Q1605692 Q11492 Q430454 Q1646362 Q1641632 Q371748 Q1649616 Q634078 Q1186888 Q15486 Q851020 Q846153 Q12540 Q15640 Q492748 Q1617896 Q12686 Q533277 Q636467 Q648921 Q818341 Q221749 Q13614 Q12647 Q976528 Q492420 Q672483 Q693913 Q1605993 Q604810 Q592747
(c(Q31629)|c(Q2912397),P1427,c(Q1048835))
[ANSWERS] give the origination point of greater number of types of sport or single-day races than that political territory
[[{'concept': 'Q31629'}, {'concept': 'Q2912397'}], 'P1427', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1427 ?y } UNION { ?x property:P1427 ?y } } . ?z rdf:type ontology:Q31629 . ?y rdf:type ontology:Q1048835 . ?x rdf:type ontology:Q2912397 }
Alcañiz Rota Los Corrales de Buelna Monachil Puebla de Don Fadrique Sabiñánigo Calatayud Sasamón Cenlle Viveiro Urdazubi/Urdax Betanzos Caleruega Comillas Palomares del Río Mataró Roa, Burgos Villalpando Jódar San Lorenzo de El Escorial Orio Marín, Pontevedra Denbigh Bagà Xàbia San Roque Calella Sant Joan Despí Estepona Maceda Rialp Almonaster la Real Benicàssim Etxebarria Monforte de Lemos Torrevieja Banyoles Vielha e Mijaran Alhaurín de la Torre Getxo Ordizia Medina del Campo Cistierna Markina-Xemein Las Rozas de Madrid
Vielha e Mijaran, Sabiñánigo and Bagà give the origination point of greater number of types of sport or single-day races than that political territory
Vielha e Mijaran Sabiñánigo Bagà
[[{'concept': 'type of sport'}, {'concept': 'single-day race'}], 'start point', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:start_point ?y } UNION { ?x property:start_point ?y } } . ?z rdf:type ontology:type_of_sport . ?y rdf:type ontology:political_territorial_entity . ?x rdf:type ontology:single-day_race }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q142 Q155
P27
Q502895
USER
Which people are a native of Brazil and France ?
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?g WHERE { ?g property:P27 resource:Q155 . ?g property:P27 resource:Q142 . ?g rdf:type ontology:Q502895 }
France Brazil
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?g WHERE { ?g property:country_of_citizenship resource:Brazil . ?g property:country_of_citizenship resource:France . ?g rdf:type ontology:common_name }
[]
common name
Q3092622 Q190697 Q1240579 Q451724 Q434573 Q2829421 Q3134653 Q10319904 Q4257704 Q715333
SYSTEM
Some of them are Félix Taunay, Baron of Taunay, Claude Cohen-Tannoudji, Alfred Agache, Diane, Duchess of Württemberg, Véra Clouzot, Alain Voss, Hervé Théry, Louis-Auguste Moreaux, Paul Le Cointe, Florent Amodio
Q3417269 Q578097 Q3099162 Q705516 Q10319904 Q312895 Q10289954 Q10263971 Q2585665 Q2701468 Q1606182 Q3106259 Q21121408 Q1450977 Q371957 Q821528 Q1240579 Q973306 Q10271845 Q310697 Q4257704 Q715333 Q434573 Q185105 Q715043 Q203451 Q462318 Q12348263 Q3386317 Q679718 Q451724 Q3372836 Q10285675 Q2825274 Q10366317 Q323232 Q49452 Q128126 Q2562588 Q1447135 Q2829421 Q3092622 Q793823 Q10304817 Q1372533 Q190697 Q3134653 Q171770 Q6291724 Q3124102 Q472206
AND((c(Q502895),P27,Q155), (c(Q502895),P27,Q142))
action filter_type
action intersection
action find_reverse
entity Q155
relation P27
action find_reverse
entity Q142
relation P27
type Q502895
[ANSWERS] are a native of Brazil and France
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q155'], [{'concept': 'Q502895'}, 'P27', 'Q142']]}
SELECT DISTINCT ?g WHERE { ?g property:P27 resource:Q155 . ?g property:P27 resource:Q142 . ?g rdf:type ontology:Q502895 }
Rafael Redwitz Camille Cabral Gaston Simoes de Fonseca Gil de Ferran Louis-Auguste Moreaux Raí Giselle Cossard Daniel Lins Hércules Florence Prince Antônio Gastão of Orléans-Braganza Henriette Morineau Gilles-Gaston Granger Dimitri Sensaud de Lavaud François Châtelet Jean Dieudonné Constantine Andreou Alfred Agache Roger Bastide Eliane Lage Michel Bastos Paul Le Cointe Florent Amodio Véra Clouzot Fernand Braudel Artur Avila Juninho Pernambucano Cristiana Reali Gilbert Ledon Pierre Monbeig Michael Löwy Diane, Duchess of Württemberg Paulo do Rio Branco François-René Moreau Adrien Taunay the Younger Sébastien Auguste Sisson André Weil Pierre Clostermann Claude Lévi-Strauss Martial Gueroult Adolf Franz Heep Alain Voss Félix Taunay, Baron of Taunay Jacqueline Laurence Jacques Pilon Prince Pedro Gastão of Orléans-Braganza Claude Cohen-Tannoudji Hervé Théry Hermano da Silva Ramos José Bonifácio the Younger Gérard Lebrun Jean-Pierre Vernant
Félix Taunay, Baron of Taunay, Claude Cohen-Tannoudji, Alfred Agache, Diane, Duchess of Württemberg, Véra Clouzot, Alain Voss, Hervé Théry, Louis-Auguste Moreaux, Paul Le Cointe and Florent Amodio are a native of Brazil and France
Félix Taunay, Baron of Taunay Claude Cohen-Tannoudji Alfred Agache Diane, Duchess of Württemberg Véra Clouzot Alain Voss Hervé Théry Louis-Auguste Moreaux Paul Le Cointe Florent Amodio
action filter_type
action intersection
action find_reverse
entity Brazil
relation country of citizenship
action find_reverse
entity France
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Brazil'], [{'concept': 'common name'}, 'country of citizenship', 'France']]}
SELECT DISTINCT ?g WHERE { ?g property:country_of_citizenship resource:Brazil . ?g property:country_of_citizenship resource:France . ?g rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q29
P530
Q15617994 Q15617994 Q1048835
USER
Which administrative territories holds diplomatic relationship with greater number of administrative territories or political territories than Spain ?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q29
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?l > ?e ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P530 resource:Q29 . { { ?k rdf:type ontology:Q1048835 } UNION { ?k rdf:type ontology:Q15617994 } } } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?p WHERE { ?u rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?p } }
Spain
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?l > ?e ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:diplomatic_relation resource:Spain . { { ?k rdf:type ontology:political_territorial_entity } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?p WHERE { ?u rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?p } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q252 Q403 Q258 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q31 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q27 Q843 Q222 Q347 Q17 Q1033 Q115 Q114 Q212 Q213 Q916 Q79 Q1016 Q1011 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q29
relation P530
type Q15617994
type Q1048835
[ANSWERS] hold diplomatic relationship with greater number of administrative territories or political territories than Spain
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?l > ?e ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:P530 resource:Q29 . { { ?k rdf:type ontology:Q1048835 } UNION { ?k rdf:type ontology:Q15617994 } } } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?p WHERE { ?u rdf:type ?w . VALUES ( ?w ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } } GROUP BY ?p } }
Israel Yemen India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Indonesia Serbia South Africa Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Belgium United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Ireland Pakistan Albania Liechtenstein Japan Nigeria Ethiopia Kenya Ukraine Czech Republic Angola Egypt Libya Cape Verde Zambia
Italy, Brazil and United States of America hold diplomatic relationship with greater number of administrative territories or political territories than Spain
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Spain
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { FILTER ( ?l > ?e ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?e ) WHERE { ?k property:diplomatic_relation resource:Spain . { { ?k rdf:type ontology:political_territorial_entity } UNION { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } } } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?l ) ?p WHERE { ?u rdf:type ?w . VALUES ( ?w ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } } GROUP BY ?p } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q717
P530
Q15617994 Q15617994 Q1048835
USER
And how about Venezuela?
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q717
relation P530
type Q15617994
type Q1048835
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?v ) WHERE { VALUES ( ?j ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?w rdf:type ?j } GROUP BY ?n } . FILTER ( ?v > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P530 resource:Q717 . { { ?q rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q1048835 } } } } }
Venezuela
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Venezuela
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?v ) WHERE { VALUES ( ?j ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?j } GROUP BY ?n } . FILTER ( ?v > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:diplomatic_relation resource:Venezuela . { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:political_territorial_entity } } } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q27 Q1049 Q843 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994)|c(Q1048835),P530,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_multi_types
action find_reverse
entity Q717
relation P530
type Q15617994
type Q1048835
[ANSWERS]
[[{'concept': 'Q15617994'}, {'concept': 'Q1048835'}], 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?v ) WHERE { VALUES ( ?j ) { ( ontology:Q15617994 ) ( ontology:Q1048835 ) } . ?w rdf:type ?j } GROUP BY ?n } . FILTER ( ?v > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:P530 resource:Q717 . { { ?q rdf:type ontology:Q15617994 } UNION { ?q rdf:type ontology:Q1048835 } } } } }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Ireland Sudan Pakistan Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
action union
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_multi_types
action find_reverse
entity Venezuela
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
[[{'concept': 'designation for an administrative territorial entity'}, {'concept': 'political territorial entity'}], 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?v ) WHERE { VALUES ( ?j ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?j } GROUP BY ?n } . FILTER ( ?v > ?o ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?o ) WHERE { ?q property:diplomatic_relation resource:Venezuela . { { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { ?q rdf:type ontology:political_territorial_entity } } } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q451724
P40
Q502895
USER
How many people have Diane, Duchess of Württemberg as an offspring ?
(c(Q502895),P40,Q451724)
action count
action filter_type
action find_reverse
entity Q451724
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q451724']
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P40 resource:Q451724 . ?y rdf:type ontology:Q502895 }
Diane, Duchess of Württemberg
action count
action filter_type
action find_reverse
entity Diane, Duchess of Württemberg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Diane, Duchess of Württemberg']
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:child resource:Diane,_Duchess_of_Württemberg . ?y rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q261284 Q538411
(c(Q502895),P40,Q451724)
action count
action filter_type
action find_reverse
entity Q451724
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q451724']
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:P40 resource:Q451724 . ?y rdf:type ontology:Q502895 }
Princess Isabelle of Orléans-Braganza Henri, Count of Paris
2
action count
action filter_type
action find_reverse
entity Diane, Duchess of Württemberg
relation child
type common name
[{'concept': 'common name'}, 'child', 'Diane, Duchess of Württemberg']
SELECT DISTINCT ( COUNT ( ?y ) AS ?i ) WHERE { ?y property:child resource:Diane,_Duchess_of_Württemberg . ?y rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q497460
P40
Q502895
USER
And how about Saban?
(c(Q502895),P40,Q497460)
action count
action filter_type
action find_reverse
entity Q497460
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q497460']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P40 resource:Q497460 . ?s rdf:type ontology:Q502895 }
Saban
action count
action filter_type
action find_reverse
entity Saban
relation child
type common name
[{'concept': 'common name'}, 'child', 'Saban']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:child resource:Saban . ?s rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q497432
(c(Q502895),P40,Q497460)
action count
action filter_type
action find_reverse
entity Q497460
relation P40
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P40', 'Q497460']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:P40 resource:Q497460 . ?s rdf:type ontology:Q502895 }
Gusu
1
action count
action filter_type
action find_reverse
entity Saban
relation child
type common name
[{'concept': 'common name'}, 'child', 'Saban']
SELECT DISTINCT ( COUNT ( ?s ) AS ?h ) WHERE { ?s property:child resource:Saban . ?s rdf:type ontology:common_name }
[]