Simple Question (Direct)
Simple Question
Q21002449
P21
Q290
USER
Which sex does Fritz Kaindl have ?
(Q21002449,P21,c(Q290))
action filter_type
action find
entity Q21002449
relation P21
type Q290
['Q21002449', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q21002449 property:P21 ?l }
Fritz Kaindl
action filter_type
action find
entity Fritz Kaindl
relation gender
type sex
['Fritz Kaindl', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Fritz_Kaindl property:gender ?l }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21002449,P21,c(Q290))
action filter_type
action find
entity Q21002449
relation P21
type Q290
Fritz Kaindl has a [ANSWER]
['Q21002449', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q290 . resource:Q21002449 property:P21 ?l }
male
Fritz Kaindl has a male
male
action filter_type
action find
entity Fritz Kaindl
relation gender
type sex
['Fritz Kaindl', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:sex . resource:Fritz_Kaindl property:gender ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21002449
P19
Q486972
USER
Which human settlement is the birthplace of that person ?
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q21002449
relation P19
type Q486972
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q21002449 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Fritz Kaindl
action filter_type
action find
entity Fritz Kaindl
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Fritz_Kaindl property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
human settlement
Q494283
SYSTEM
Stockerau
Q494283
(Q6581097,P19,c(Q486972))
action filter_type
action find
entity Q21002449
relation P19
type Q486972
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?n WHERE { resource:Q21002449 property:P19 ?n . ?n rdf:type ontology:Q486972 }
Stockerau
Stockerau is the birthplace of that person
Stockerau
action filter_type
action find
entity Fritz Kaindl
relation place of birth
type human settlement
['male', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?n WHERE { resource:Fritz_Kaindl property:place_of_birth ?n . ?n rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q21002449
P27
Q1048835
USER
Which political territory is that person a civilian of ?
(Q494283,P27,c(Q1048835))
action filter_type
action find
entity Q21002449
relation P27
type Q1048835
['Q494283', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q21002449 property:P27 ?f }
Fritz Kaindl
action filter_type
action find
entity Fritz Kaindl
relation country of citizenship
type political territorial entity
['Stockerau', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Fritz_Kaindl property:country_of_citizenship ?f }
[]
political territorial entity
Q40
SYSTEM
Austria
Q40
(Q494283,P27,c(Q1048835))
action filter_type
action find
entity Q21002449
relation P27
type Q1048835
[ANSWER] is that person a civilian of
['Q494283', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1048835 . resource:Q21002449 property:P27 ?f }
Austria
Austria is that person a civilian of
Austria
action filter_type
action find
entity Fritz Kaindl
relation country of citizenship
type political territorial entity
['Stockerau', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:political_territorial_entity . resource:Fritz_Kaindl property:country_of_citizenship ?f }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q424
P530
Q1048835 Q15617994
USER
Which administrative territories have ambassadorial relations with greater number of political territories than Cambodia ?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?z ) WHERE { ?l property:P530 ?f . ?l rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { resource:Q424 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?y ) }
Cambodia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?z ) WHERE { ?l property:diplomatic_relation ?f . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { resource:Cambodia property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?y ) }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q424
relation P530
type Q15617994
[ANSWERS] have ambassadorial relations with greater number of political territories than Cambodia
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?z ) WHERE { ?l property:P530 ?f . ?l rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q1048835 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { resource:Q424 property:P530 ?g . ?g rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?y ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy, Brazil and United States of America have ambassadorial relations with greater number of political territories than Cambodia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Cambodia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?f ) AS ?z ) WHERE { ?l property:diplomatic_relation ?f . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:political_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?y ) WHERE { resource:Cambodia property:diplomatic_relation ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?y ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q1005
P530
Q1048835 Q15617994
USER
And also tell me about Gambia?
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1005
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?z ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?z > ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Q1005 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Gambia
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?z ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?z > ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Gambia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
political territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q736 Q230 Q233 Q20 Q1041 Q27 Q843 Q184 Q1029 Q1028 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q15617994),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q1005
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?z ) WHERE { ?k property:P530 ?t . ?k rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q1048835 } GROUP BY ?k } . FILTER ( ?z > ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Q1005 property:P530 ?i . ?i rdf:type ontology:Q15617994 } } }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Ecuador Georgia Malta Norway Senegal Ireland Pakistan Belarus Mozambique Morocco Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Gambia
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?t ) AS ?z ) WHERE { ?k property:diplomatic_relation ?t . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:political_territorial_entity } GROUP BY ?k } . FILTER ( ?z > ?y ) . { SELECT DISTINCT ( COUNT ( ?i ) AS ?y ) WHERE { resource:Gambia property:diplomatic_relation ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q7275 Q56061 Q1048835
USER
How many political territories have approximately 1 states and administrative territories as the form of government ?
(c(Q1048835),P122,c(Q7275)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q56061
value 1
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { { ?h property:P122 ?r . ?h rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q56061 } UNION { ?h property:P122 ?r . ?h rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q7275 } } GROUP BY ?h } }
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { { ?h property:basic_form_of_government ?r . ?h rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?h property:basic_form_of_government ?r . ?h rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:state } } GROUP BY ?h } }
[]
state administrative territorial entity political territorial entity
SYSTEM
3
Q38610 Q151938 Q129286
(c(Q1048835),P122,c(Q7275)|c(Q56061))
action count
action approx
action union
action find_tuple_counts
relation P122
type Q1048835
type Q7275
action find_tuple_counts
relation P122
type Q1048835
type Q56061
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q7275'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { { ?h property:P122 ?r . ?h rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q56061 } UNION { ?h property:P122 ?r . ?h rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q7275 } } GROUP BY ?h } }
Dominion of Newfoundland Neutral Moresnet British Raj
3
action count
action approx
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type state
action find_tuple_counts
relation basic form of government
type political territorial entity
type administrative territorial entity
value 1
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'state'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?h ) AS ?u ) WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ?h ( COUNT ( ?r ) AS ?x ) WHERE { { ?h property:basic_form_of_government ?r . ?h rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } UNION { ?h property:basic_form_of_government ?r . ?h rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:state } } GROUP BY ?h } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3569216 Q21002449
P20
Q56061
USER
Which administrative territories did Fritz Kaindl or Wilson Katiyo expire ?
OR((Q21002449,P20,c(Q56061)), (Q3569216,P20,c(Q56061)))
action filter_type
action union
action find
entity Q21002449
relation P20
action find
entity Q3569216
relation P20
type Q56061
{'OR': [['Q21002449', 'P20', {'concept': 'Q56061'}], ['Q3569216', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?l ) { ( resource:Q21002449 ) ( resource:Q3569216 ) } . ?l property:P20 ?w } . ?w rdf:type ontology:Q56061 }
Wilson Katiyo Fritz Kaindl
action filter_type
action union
action find
entity Fritz Kaindl
relation place of death
action find
entity Wilson Katiyo
relation place of death
type administrative territorial entity
{'OR': [['Fritz Kaindl', 'place of death', {'concept': 'administrative territorial entity'}], ['Wilson Katiyo', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?l ) { ( resource:Fritz_Kaindl ) ( resource:Wilson_Katiyo ) } . ?l property:place_of_death ?w } . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1741 Q84
SYSTEM
Vienna, London
Q1741 Q84
OR((Q21002449,P20,c(Q56061)), (Q3569216,P20,c(Q56061)))
action filter_type
action union
action find
entity Q21002449
relation P20
action find
entity Q3569216
relation P20
type Q56061
Fritz Kaindl or Wilson Katiyo expired in [ANSWERS]
{'OR': [['Q21002449', 'P20', {'concept': 'Q56061'}], ['Q3569216', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?l ) { ( resource:Q21002449 ) ( resource:Q3569216 ) } . ?l property:P20 ?w } . ?w rdf:type ontology:Q56061 }
Vienna London
Fritz Kaindl or Wilson Katiyo expired in Vienna and London
Vienna London
action filter_type
action union
action find
entity Fritz Kaindl
relation place of death
action find
entity Wilson Katiyo
relation place of death
type administrative territorial entity
{'OR': [['Fritz Kaindl', 'place of death', {'concept': 'administrative territorial entity'}], ['Wilson Katiyo', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { VALUES ( ?l ) { ( resource:Fritz_Kaindl ) ( resource:Wilson_Katiyo ) } . ?l property:place_of_death ?w } . ?w rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q786
P37
Q34770 Q5962346 Q15617994
USER
Which administrative territories have their official language as less number of languages and classification schemes than Dominican Republic ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q786
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?d ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?u rdf:type ?d } GROUP BY ?b } . FILTER ( ?p < ?a ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q786 property:P37 ?w . { { ?w rdf:type ontology:Q34770 } UNION { ?w rdf:type ontology:Q5962346 } } } } }
Dominican Republic
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Dominican Republic
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?d ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?u rdf:type ?d } GROUP BY ?b } . FILTER ( ?p < ?a ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Dominican_Republic property:official_language ?w . { { ?w rdf:type ontology:language } UNION { ?w rdf:type ontology:classification_scheme } } } } }
[]
language classification scheme designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q786
relation P37
type Q34770
type Q5962346
[ANSWERS] have their official language as less number of languages and classification schemes than Dominican Republic
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?d ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?u rdf:type ?d } GROUP BY ?b } . FILTER ( ?p < ?a ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Q786 property:P37 ?w . { { ?w rdf:type ontology:Q34770 } UNION { ?w rdf:type ontology:Q5962346 } } } } }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
Brazil, United States of America and Georgia have their official language as less number of languages and classification schemes than Dominican Republic
Brazil United States of America Georgia
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Dominican Republic
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?u ) AS ?p ) WHERE { VALUES ( ?d ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?u rdf:type ?d } GROUP BY ?b } . FILTER ( ?p < ?a ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?a ) WHERE { resource:Dominican_Republic property:official_language ?w . { { ?w rdf:type ontology:language } UNION { ?w rdf:type ontology:classification_scheme } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1989
P37
Q34770 Q5962346 Q15617994
USER
And also tell me about Saskatchewan?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q1989
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q1989 property:P37 ?m . { VALUES ( ?w ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?m rdf:type ?w } } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?u ) WHERE { { ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q34770 . ?k property:P37 ?b } UNION { ?k property:P37 ?b . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q5962346 } } GROUP BY ?k } }
Saskatchewan
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Saskatchewan
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Saskatchewan property:official_language ?m . { VALUES ( ?w ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?m rdf:type ?w } } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?u ) WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:language . ?k property:official_language ?b } UNION { ?k property:official_language ?b . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:classification_scheme } } GROUP BY ?k } }
[]
language classification scheme designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q805 Q801 Q473259 Q398 Q142 Q1039 Q21671144 Q32 Q12536 Q262 Q148 Q265 Q30 Q37 Q16006 Q711 Q837 Q252 Q2068764 Q21850324 Q403 Q657 Q45 Q159 Q43 Q41 Q155 Q673813 Q790 Q4628 Q796 Q794 Q669945 Q884 Q881 Q503181 Q219 Q826 Q247613 Q603392 Q33 Q921 Q31 Q36 Q929 Q165934 Q423 Q889 Q851 Q29999 Q854 Q819 Q253445 Q424 Q730 Q236 Q230 Q232 Q1045 Q1041 Q28 Q21853467 Q189 Q842 Q184 Q1029 Q1028 Q228 Q227 Q225 Q224 Q223 Q222 Q221 Q229 Q347 Q17 Q10957559 Q902 Q974 Q1032 Q191 Q965 Q967 Q962 Q697 Q115 Q59118 Q212 Q211 Q217 Q214 Q215 Q218 Q160307 Q1483510 Q912 Q917 Q916 Q1007 Q1006 Q977 Q1008 Q971 Q970 Q836 Q574 Q637451 Q874 Q3365904 Q79 Q858 Q199688 Q878 Q948 Q817 Q810 Q770 Q813 Q1016 Q1011 Q945 Q8575586 Q21848848 Q176 Q61698 Q822 Q863 Q869 Q1230929
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action less
action union
action find_tuple_counts
relation P37
type Q15617994
type Q34770
action find_tuple_counts
relation P37
type Q15617994
type Q5962346
action count
action filter_multi_types
action find
entity Q1989
relation P37
type Q34770
type Q5962346
[ANSWERS]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Q1989 property:P37 ?m . { VALUES ( ?w ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?m rdf:type ?w } } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?u ) WHERE { { ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q34770 . ?k property:P37 ?b } UNION { ?k property:P37 ?b . ?k rdf:type ontology:Q15617994 . ?b rdf:type ontology:Q5962346 } } GROUP BY ?k } }
Yemen Israel Ammerthal Bahrain France Sao Tomé and Príncipe Mezhetchina Luxembourg Abbasid caliphate Algeria People's Republic of China Uzbekistan United States of America Lithuania Goch Mongolia Nepal Indonesia Archa Darugha Gireyevo Serbia Chad Portugal Russia Turkey Greece Brazil Euratsfeld Haiti Faroe Islands Iraq Iran Vorau South Korea Vietnam Herzberg am Harz Bulgaria Maldives Bernese Jura Schönwalde Finland Brunei Belgium Poland Central African Republic Bokensdorf North Korea Afghanistan Saudi Arabia Kingdom of the Netherlands Sri Lanka Laos Kolbermoor Cambodia Suriname Montenegro Georgia Kazakhstan Somalia Senegal Hungary Romanovo Iceland Oman Belarus Mozambique Morocco Andorra Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Cyprus Liechtenstein Japan Moldavia Bangladesh Democratic Republic of the Congo Niger Estonia Burkina Faso Burundi Benin Nauru Ethiopia Aappilattoq Ukraine Latvia Republic of Moldova Slovakia Slovenia Romania Fatimid caliphate Principality of Wales Mali Bhutan Angola Guinea-Bissau Guinea Djibouti Côte d'Ivoire Republic of the Congo Comoros Myanmar East Timor Rohrbach Turkmenistan Saint-Léonard Parish, New Brunswick Egypt Syria Almohad United Arab Emirates Tunisia Kuwait Jordan Friesland Kyrgyzstan Libya Cape Verde Togo Umayyad Caliphate Lyskovo Quebec Büsingen Lebanon Tajikistan Thailand Kesklinn
Brazil United States of America Georgia
action less
action union
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type language
action find_tuple_counts
relation official language
type designation for an administrative territorial entity
type classification scheme
action count
action filter_multi_types
action find
entity Saskatchewan
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?f ) WHERE { resource:Saskatchewan property:official_language ?m . { VALUES ( ?w ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?m rdf:type ?w } } } . FILTER ( ?u < ?f ) . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?u ) WHERE { { ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:language . ?k property:official_language ?b } UNION { ?k property:official_language ?b . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b rdf:type ontology:classification_scheme } } GROUP BY ?k } }
[]