Simple Question (Direct)
Simple Question
Q593543
P21
Q290
USER
Which sex does Karel Van Roose have ?
(Q593543,P21,c(Q290))
action filter_type
action find
entity Q593543
relation P21
type Q290
['Q593543', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q593543 property:P21 ?k . ?k rdf:type ontology:Q290 }
Karel Van Roose
action filter_type
action find
entity Karel Van Roose
relation gender
type sex
['Karel Van Roose', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Karel_Van_Roose property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q593543,P21,c(Q290))
action filter_type
action find
entity Q593543
relation P21
type Q290
Karel Van Roose has a [ANSWER]
['Q593543', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q593543 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
Karel Van Roose has a male
male
action filter_type
action find
entity Karel Van Roose
relation gender
type sex
['Karel Van Roose', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:Karel_Van_Roose property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q593543
P106
Q12737077
USER
What is the profession of Karel Van Roose ?
(Q593543,P106,c(Q12737077))
action filter_type
action find
entity Q593543
relation P106
type Q12737077
['Q593543', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q593543 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
Karel Van Roose
action filter_type
action find
entity Karel Van Roose
relation occupation
type occupation
['Karel Van Roose', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Karel_Van_Roose property:occupation ?e . ?e rdf:type ontology:occupation }
[]
occupation
Q937857
SYSTEM
association football player
Q937857
(Q593543,P106,c(Q12737077))
action filter_type
action find
entity Q593543
relation P106
type Q12737077
The profession of Karel Van Roose is an [ANSWER]
['Q593543', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?e WHERE { resource:Q593543 property:P106 ?e . ?e rdf:type ontology:Q12737077 }
association football player
The profession of Karel Van Roose is an association football player
association football player
action filter_type
action find
entity Karel Van Roose
relation occupation
type occupation
['Karel Van Roose', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?e WHERE { resource:Karel_Van_Roose property:occupation ?e . ?e rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q5444784
Q12737077
USER
And what about Fernando Lizzi?
(Q5444784,P106,c(Q12737077))
action filter_type
action find
entity Q5444784
relation P106
type Q12737077
['Q5444784', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5444784 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
Fernando Lizzi
action filter_type
action find
entity Fernando Lizzi
relation occupation
type occupation
['Fernando Lizzi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Fernando_Lizzi property:occupation ?n . ?n rdf:type ontology:occupation }
[]
occupation
Q81096 Q13582652
SYSTEM
engineer, civil engineer
Q81096 Q13582652
(Q5444784,P106,c(Q12737077))
action filter_type
action find
entity Q5444784
relation P106
type Q12737077
[ANSWERS]
['Q5444784', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { resource:Q5444784 property:P106 ?n . ?n rdf:type ontology:Q12737077 }
engineer civil engineer
engineer civil engineer
action filter_type
action find
entity Fernando Lizzi
relation occupation
type occupation
['Fernando Lizzi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { resource:Fernando_Lizzi property:occupation ?n . ?n rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1891328
P106
Q502895
USER
Do Peggy Kornegger have those occupations as his/her means of employment ?
(Q1891328,P106,Q81096) (Q1891328,P106,Q13582652)
action is_in
entity prev_answer
action find
entity Q1891328
relation P106
['Q1891328', 'P106', 'Q81096'] ['Q1891328', 'P106', 'Q13582652']
ASK WHERE { VALUES ( ?x ) { ( resource:Q81096 ) ( resource:Q13582652 ) } . resource:Q1891328 property:P106 ?x }
Peggy Kornegger
action is_in
entity prev_answer
action find
entity Peggy Kornegger
relation occupation
['Peggy Kornegger', 'occupation', 'engineer'] ['Peggy Kornegger', 'occupation', 'civil engineer']
ASK WHERE { VALUES ( ?x ) { ( resource:engineer ) ( resource:civil_engineer ) } . resource:Peggy_Kornegger property:occupation ?x }
[]
common name
SYSTEM
NO
(Q1891328,P106,Q81096) (Q1891328,P106,Q13582652)
action is_in
entity prev_answer
action find
entity Q1891328
relation P106
[ANSWER]
['Q1891328', 'P106', 'Q81096'] ['Q1891328', 'P106', 'Q13582652']
ASK WHERE { VALUES ( ?x ) { ( resource:Q81096 ) ( resource:Q13582652 ) } . resource:Q1891328 property:P106 ?x }
No
action is_in
entity prev_answer
action find
entity Peggy Kornegger
relation occupation
['Peggy Kornegger', 'occupation', 'engineer'] ['Peggy Kornegger', 'occupation', 'civil engineer']
ASK WHERE { VALUES ( ?x ) { ( resource:engineer ) ( resource:civil_engineer ) } . resource:Peggy_Kornegger property:occupation ?x }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7283204 Q1891328
P27
Q15617994
USER
Which administrative territories are the native countriesof Peggy Kornegger or Ragnvald Hvoslef ?
OR((Q1891328,P27,c(Q15617994)), (Q7283204,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1891328
relation P27
action find
entity Q7283204
relation P27
type Q15617994
{'OR': [['Q1891328', 'P27', {'concept': 'Q15617994'}], ['Q7283204', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q1891328 property:P27 ?g } UNION { resource:Q7283204 property:P27 ?g } } }
Ragnvald Hvoslef Peggy Kornegger
action filter_type
action union
action find
entity Peggy Kornegger
relation country of citizenship
action find
entity Ragnvald Hvoslef
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peggy Kornegger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ragnvald Hvoslef', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Peggy_Kornegger property:country_of_citizenship ?g } UNION { resource:Ragnvald_Hvoslef property:country_of_citizenship ?g } } }
[]
designation for an administrative territorial entity
Q20 Q30
SYSTEM
Norway, United States of America
Q20 Q30
OR((Q1891328,P27,c(Q15617994)), (Q7283204,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1891328
relation P27
action find
entity Q7283204
relation P27
type Q15617994
[ANSWERS] are the native countriesof Peggy Kornegger or Ragnvald Hvoslef
{'OR': [['Q1891328', 'P27', {'concept': 'Q15617994'}], ['Q7283204', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q15617994 . { { resource:Q1891328 property:P27 ?g } UNION { resource:Q7283204 property:P27 ?g } } }
Norway United States of America
Norway and United States of America are the native countriesof Peggy Kornegger or Ragnvald Hvoslef
Norway United States of America
action filter_type
action union
action find
entity Peggy Kornegger
relation country of citizenship
action find
entity Ragnvald Hvoslef
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Peggy Kornegger', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Ragnvald Hvoslef', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Peggy_Kornegger property:country_of_citizenship ?g } UNION { resource:Ragnvald_Hvoslef property:country_of_citizenship ?g } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7582380 Q7283204
P27
Q15617994
USER
Which administrative territories are the countries of citizenship of Ragnvald Hvoslef or Srafel Tesfamichael ?
OR((Q7283204,P27,c(Q15617994)), (Q7582380,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7283204
relation P27
action find
entity Q7582380
relation P27
type Q15617994
{'OR': [['Q7283204', 'P27', {'concept': 'Q15617994'}], ['Q7582380', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7582380 property:P27 ?x } UNION { resource:Q7283204 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Srafel Tesfamichael Ragnvald Hvoslef
action filter_type
action union
action find
entity Ragnvald Hvoslef
relation country of citizenship
action find
entity Srafel Tesfamichael
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ragnvald Hvoslef', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Srafel Tesfamichael', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Srafel_Tesfamichael property:country_of_citizenship ?x } UNION { resource:Ragnvald_Hvoslef property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q20 Q986
SYSTEM
Norway, Eritrea
Q20 Q986
OR((Q7283204,P27,c(Q15617994)), (Q7582380,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q7283204
relation P27
action find
entity Q7582380
relation P27
type Q15617994
[ANSWERS] are the countries of citizenship of Ragnvald Hvoslef or Srafel Tesfamichael
{'OR': [['Q7283204', 'P27', {'concept': 'Q15617994'}], ['Q7582380', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Q7582380 property:P27 ?x } UNION { resource:Q7283204 property:P27 ?x } } . ?x rdf:type ontology:Q15617994 }
Norway Eritrea
Norway and Eritrea are the countries of citizenship of Ragnvald Hvoslef or Srafel Tesfamichael
Norway Eritrea
action filter_type
action union
action find
entity Ragnvald Hvoslef
relation country of citizenship
action find
entity Srafel Tesfamichael
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Ragnvald Hvoslef', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Srafel Tesfamichael', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { { resource:Srafel_Tesfamichael property:country_of_citizenship ?x } UNION { resource:Ragnvald_Hvoslef property:country_of_citizenship ?x } } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q8026168
P27
Q502895
USER
Are Winta a native of those administrative territories ?
(Q8026168,P27,Q20) (Q8026168,P27,Q986)
action is_in
entity prev_answer
action find
entity Q8026168
relation P27
['Q8026168', 'P27', 'Q20'] ['Q8026168', 'P27', 'Q986']
ASK WHERE { resource:Q8026168 property:P27 ?v . VALUES ( ?v ) { ( resource:Q20 ) ( resource:Q986 ) } }
Winta
action is_in
entity prev_answer
action find
entity Winta
relation country of citizenship
['Winta', 'country of citizenship', 'Norway'] ['Winta', 'country of citizenship', 'Eritrea']
ASK WHERE { resource:Winta property:country_of_citizenship ?v . VALUES ( ?v ) { ( resource:Norway ) ( resource:Eritrea ) } }
[]
common name
SYSTEM
YES
(Q8026168,P27,Q20) (Q8026168,P27,Q986)
action is_in
entity prev_answer
action find
entity Q8026168
relation P27
[ANSWER]
['Q8026168', 'P27', 'Q20'] ['Q8026168', 'P27', 'Q986']
ASK WHERE { resource:Q8026168 property:P27 ?v . VALUES ( ?v ) { ( resource:Q20 ) ( resource:Q986 ) } }
Yes
action is_in
entity prev_answer
action find
entity Winta
relation country of citizenship
['Winta', 'country of citizenship', 'Norway'] ['Winta', 'country of citizenship', 'Eritrea']
ASK WHERE { resource:Winta property:country_of_citizenship ?v . VALUES ( ?v ) { ( resource:Norway ) ( resource:Eritrea ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q593543 Q31
P27
Q15617994
USER
Is Belgium the country of citizenship of Karel Van Roose ?
(Q593543,P27,Q31)
action is_in
entity Q31
action find
entity Q593543
relation P27
['Q593543', 'P27', 'Q31']
ASK WHERE { resource:Q593543 property:P27 resource:Q31 }
Karel Van Roose Belgium
action is_in
entity Belgium
action find
entity Karel Van Roose
relation country of citizenship
['Karel Van Roose', 'country of citizenship', 'Belgium']
ASK WHERE { resource:Karel_Van_Roose property:country_of_citizenship resource:Belgium }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q593543,P27,Q31)
action is_in
entity Q31
action find
entity Q593543
relation P27
[ANSWER]
['Q593543', 'P27', 'Q31']
ASK WHERE { resource:Q593543 property:P27 resource:Q31 }
Yes
action is_in
entity Belgium
action find
entity Karel Van Roose
relation country of citizenship
['Karel Van Roose', 'country of citizenship', 'Belgium']
ASK WHERE { resource:Karel_Van_Roose property:country_of_citizenship resource:Belgium }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q754
P37
Q34770 Q5962346 Q15617994
USER
How many administrative territories are lesser number of languages and classification schemes the official language of than Trinidad and Tobago ?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
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 Q754
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q754 property:P37 ?v . { { ?v rdf:type ontology:Q5962346 } UNION { ?v rdf:type ontology:Q34770 } } } } . FILTER ( ?x < ?s ) }
Trinidad and Tobago
action count
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 Trinidad and Tobago
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:language ) ( ontology:classification_scheme ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Trinidad_and_Tobago property:official_language ?v . { { ?v rdf:type ontology:classification_scheme } UNION { ?v rdf:type ontology:language } } } } . FILTER ( ?x < ?s ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
130
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 count
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 Q754
relation P37
type Q34770
type Q5962346
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Q754 property:P37 ?v . { { ?v rdf:type ontology:Q5962346 } UNION { ?v rdf:type ontology:Q34770 } } } } . FILTER ( ?x < ?s ) }
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
130
action count
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 Trinidad and Tobago
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?p ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?m ) AS ?x ) WHERE { ?m rdf:type ?l . VALUES ( ?l ) { ( ontology:language ) ( ontology:classification_scheme ) } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { resource:Trinidad_and_Tobago property:official_language ?v . { { ?v rdf:type ontology:classification_scheme } UNION { ?v rdf:type ontology:language } } } } . FILTER ( ?x < ?s ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1049
P37
Q34770 Q5962346 Q15617994
USER
And what about Sudan?
(c(Q15617994),P37,c(Q34770)|c(Q5962346))
action count
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 Q1049
relation P37
type Q34770
type Q5962346
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?x ) WHERE { { ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q34770 . ?u property:P37 ?a } UNION { ?a rdf:type ontology:Q5962346 . ?u rdf:type ontology:Q15617994 . ?u property:P37 ?a } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { VALUES ( ?z ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?k rdf:type ?z } . resource:Q1049 property:P37 ?k } } . FILTER ( ?x < ?w ) }
Sudan
action count
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 Sudan
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?x ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:language . ?u property:official_language ?a } UNION { ?a rdf:type ontology:classification_scheme . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:official_language ?a } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { VALUES ( ?z ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?k rdf:type ?z } . resource:Sudan property:official_language ?k } } . FILTER ( ?x < ?w ) }
[]
language classification scheme designation for an administrative territorial entity
SYSTEM
130
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 count
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 Q1049
relation P37
type Q34770
type Q5962346
[ANSWER]
[{'concept': 'Q15617994'}, 'P37', [{'concept': 'Q34770'}, {'concept': 'Q5962346'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?x ) WHERE { { ?u rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q34770 . ?u property:P37 ?a } UNION { ?a rdf:type ontology:Q5962346 . ?u rdf:type ontology:Q15617994 . ?u property:P37 ?a } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { VALUES ( ?z ) { ( ontology:Q34770 ) ( ontology:Q5962346 ) } . ?k rdf:type ?z } . resource:Q1049 property:P37 ?k } } . FILTER ( ?x < ?w ) }
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
130
action count
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 Sudan
relation official language
type language
type classification scheme
[{'concept': 'designation for an administrative territorial entity'}, 'official language', [{'concept': 'language'}, {'concept': 'classification scheme'}]]
SELECT DISTINCT ( COUNT ( ?u ) AS ?i ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?a ) AS ?x ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:language . ?u property:official_language ?a } UNION { ?a rdf:type ontology:classification_scheme . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?u property:official_language ?a } } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?w ) WHERE { { VALUES ( ?z ) { ( ontology:language ) ( ontology:classification_scheme ) } . ?k rdf:type ?z } . resource:Sudan property:official_language ?k } } . FILTER ( ?x < ?w ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P748
Q1752346 Q895526 Q12737077
USER
Which occupations are appointed by min number of assemblies or authority organs ?
(c(Q12737077),P748,c(Q1752346)|c(Q895526))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q895526
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?q WHERE { VALUES ( ?p ) { ( ontology:Q1752346 ) ( ontology:Q895526 ) } . ?l rdf:type ?p } GROUP BY ?q } . FILTER ( ?c = ?d ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?h WHERE { { ?h property:P748 ?j . ?h rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q1752346 } UNION { ?h property:P748 ?j . ?h rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q895526 } } GROUP BY ?h } } }
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?q WHERE { VALUES ( ?p ) { ( ontology:assembly ) ( ontology:authority_organ ) } . ?l rdf:type ?p } GROUP BY ?q } . FILTER ( ?c = ?d ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?h WHERE { { ?h property:appointed_by ?j . ?h rdf:type ontology:occupation . ?j rdf:type ontology:assembly } UNION { ?h property:appointed_by ?j . ?h rdf:type ontology:occupation . ?j rdf:type ontology:authority_organ } } GROUP BY ?h } } }
[]
assembly authority organ occupation
Q687075 Q1749063 Q655407
SYSTEM
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden, President of the People's Republic of China
Q15934457 Q7643465 Q27650845 Q748607 Q3253692 Q192711 Q373548 Q4011167 Q17018201 Q20748656 Q6865816 Q20890913 Q191954 Q6865958 Q3251824 Q1846384 Q11793630 Q27650822 Q21371106 Q1355456 Q2631987 Q735575 Q1507619 Q737115 Q6578215 Q1146214 Q376006 Q21013169 Q26209348 Q23906787 Q39021 Q6866004 Q20867494 Q740126 Q21013163 Q4377222 Q14984399 Q7241304 Q15304810 Q1511951 Q191827 Q910308 Q1753754 Q1476458 Q15407843 Q2484309 Q2012061 Q20890902 Q20736121 Q19190022 Q1140848 Q3251837 Q6865747 Q15730802 Q7444357 Q7444352 Q943379 Q20872382 Q3246797 Q1749063 Q1371091 Q3315116 Q20872273 Q655407 Q3477307 Q1369302 Q24636364 Q14565638 Q251724 Q27531658 Q48894 Q835586 Q12376089 Q4970706 Q27516521 Q1161813 Q20891385 Q6572133 Q6865833 Q2660943 Q1006398 Q6865770 Q20172329 Q531471 Q274948 Q21384866 Q596123 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q1476165 Q6866468 Q313465 Q2914452 Q2636053 Q15971570 Q464103 Q1430943 Q3556884 Q3058109 Q3858507 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1124265 Q1550276 Q273884 Q208487 Q4294939 Q3477306 Q866756 Q20130623 Q1054799 Q21383592 Q6866295 Q2390270 Q13527933 Q583809 Q4377230 Q7240361 Q565424 Q5195495 Q27088842 Q15731141 Q313383 Q2560704 Q3251821 Q1043568 Q912994 Q3251819 Q27531790 Q19328352 Q4294945 Q862559 Q3564227 Q475658 Q6866264 Q6865750 Q7240360 Q182762 Q20859386 Q2962001 Q16933549 Q18694351 Q500282 Q20859388 Q473984 Q73341 Q19842743 Q45369 Q8882 Q1195049 Q6865853 Q20867550 Q1060844 Q687075 Q3397406 Q467926 Q813403 Q3251775 Q1587677 Q27516596 Q691615 Q866680 Q20181946 Q21098108 Q20872296 Q839078 Q838380 Q3251779 Q5096847 Q2911019 Q4818607 Q2430415 Q6866194 Q152814 Q26000995 Q3251793 Q1192903 Q6865904 Q2741479 Q213107 Q195965 Q6123144 Q3401758 Q7240356 Q6865864 Q19364214 Q1753094 Q1975365 Q609884 Q13527909 Q2741486 Q3315112 Q3315114 Q11895063 Q1123764 Q1469153 Q2708520 Q22955080 Q12270260 Q6865789 Q7240368 Q1195270 Q3297079 Q6865995 Q319145 Q6865781 Q7013201 Q3111221 Q29558 Q1044136 Q4122271 Q2505890 Q6865756 Q13423495 Q795477 Q6866148 Q20872339 Q16009376 Q1071117 Q34071 Q25223 Q3251800 Q20872267 Q5261065 Q3315134 Q3259469 Q162754 Q1819381 Q1052201 Q7574256 Q26209358 Q5097071 Q20748654 Q19328451 Q6865981 Q217217 Q3777749 Q111784 Q20992511 Q27334799 Q634291 Q20992515 Q6468838 Q1362216 Q839139 Q3251807 Q13526082 Q1074656 Q6866016 Q735587 Q592866 Q1281611 Q1790154 Q6866422 Q81066 Q3251818 Q6866427 Q26721218 Q17058425 Q6865902 Q738695 Q20128098 Q1752225 Q687908 Q844587 Q25860233 Q20877172 Q2334076 Q541355 Q702650 Q1072341
(c(Q12737077),P748,c(Q1752346)|c(Q895526))
action argmin
action union
action find_tuple_counts
relation P748
type Q12737077
type Q1752346
action find_tuple_counts
relation P748
type Q12737077
type Q895526
[ANSWERS] are appointed by min number of assemblies or authority organs
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q1752346'}, {'concept': 'Q895526'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?q WHERE { VALUES ( ?p ) { ( ontology:Q1752346 ) ( ontology:Q895526 ) } . ?l rdf:type ?p } GROUP BY ?q } . FILTER ( ?c = ?d ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?h WHERE { { ?h property:P748 ?j . ?h rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q1752346 } UNION { ?h property:P748 ?j . ?h rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q895526 } } GROUP BY ?h } } }
Minister of Transport Superintendent of Finance of the United States member of the Provincial Executive of Utrecht Minister of International Trade President of the Treasury Board Prime Minister of India President of Bolivia Vice President of the Constitutional Court of Italy Northern Territory Government Architect municipal executive of Zoetermeer Minister for Education and Skills municipal executive of Eindhoven President of the French Republic Minister for Social Protection Minister of Natural Resources Secretary of State for Wales governor of national banks of Serbia and Yugoslavia King's Commissioner of Utrecht municipal executive of Amersfoort Lord Chamberlain Attorney General for England and Wales Prime Minister of Pakistan Deputy Prime Minister of the United Kingdom Prime Minister of Estonia Premier of Saskatchewan Tánaiste Prime Minister of Guyana municipal executive of The Hague Mayor of Warffum Bishop of Nevers President of Singapore Minister for the Environment, Community and Local Government Mayor of Gorinchem President of the European Parliament Mayor of The Hague Premier of Nunavut Secretary of State for Environment, Food and Rural Affairs President of the Australian Senate Prime Minister of Romania Prime Minister of South Africa Taoiseach Lord Privy Seal Master of the Rolls European Commissioner for the Environment Prime Minister of South Korea Secretary of State for the Home Department Leader of the House of Lords Mayor of Eindhoven Bishop of Versailles Prime Minister of Iceland President pro tempore of the United States Senate Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht Mayor of Rotterdam Secretary of State for Work and Pensions Secretary of State for International Development Lord President of the Council municipal executive of Coevorden Secretary of State for Transport Minister for Foreign Affairs of Sweden Secretary of State for Foreign and Commonwealth Affairs Minister for the Civil Service municipal executive of Boxmeer President of the People's Republic of China Secretary of State for Justice Secretary of State for Northern Ireland bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland King's Commissioner of South Holland President of Fiji Prime Minister of Serbia Prime Minister of Thailand Federal Chancellor of Germany member of the Provincial Executive of North Holland President of the United Nations General Assembly municipal executive of Deventer Governor of İstanbul Minister for Finance Minister for Foreign Affairs Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Mayor of Hoogland Chancellor of the Exchequer Prime Minister of Japan municipal executive of Rotterdam president of Bangladesh Prime Minister of Portugal municipal executive of Amsterdam Prime Minister of Latvia Premier of New South Wales Minister of Justice Prime Minister of Iraq Minister responsible for the Status of Women Minister of External Affairs President of Algeria Leader of the House of Commons President of the Generalitat Valenciana Speaker of the House of Commons Prime Minister of Jamaica Deputy Prime Minister of Canada Prime Minister of the Netherlands Secretary of State for Business, Energy and Industrial Strategy Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy List of Presidents of the Basque Autonomous Community Premier of Western Australia President of South Africa Prime Minister of Israel Minister of Agriculture Secretary of State for Education Prime Minister of Singapore Mayor of Woerden President of Poland municipal executive of Haarlem Minister of Public Services and Procurement Treasurer of Australia Premier of Tasmania Solicitor General for England and Wales Prime Minister of Greece Premier of Prince Edward Island Prime Minister of the Bahamas Minister of Economy and Finance of Peru Director of the Holy See Press Office Mayor of Almere President of India Premier of Ontario Minister of Transport Prime Minister of Vietnam speaker of the United States House of Representatives Minister of Fisheries and Oceans member of the Provincial Executive of South Holland Mayor of Leersum Minister for Finance Prime Minister of Malaysia Auditor General of Canada President of Austria Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia Prime Minister of Algeria Mayor of Mierlo Chief of the Defence Staff President of the Generalitat of Catalonia Minister of Communications President of Nigeria municipal executive of Mierlo President of Pakistan Lord Mayor of London President of the Government of Morocco Prime Minister of Slovakia President of the European Commission Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade municipal executive of Gorinchem Paymaster General Prime Minister of Sweden Secretary of State for Health Cathaoirleach King's or Queen's Commissioner Minister of the Environment Prime Minister of France King's Commissioner of North Holland Governor of the Virgin Islands President of Vietnam Mayor of Borger-Odoorn Mayor of Amersfoort municipal executive of Almere Prime Minister of Canada President of Iran Minister of Industry Chief Minister Premier of Quebec Attorney-General of Australia Prime Minister of Turkey Minister of Human Resources and Skills Development Prime Minister of Malta President of the Parliament of Catalonia Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Prime Minister of Belgium Governor of Gibraltar Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health President of Somalia United States Postmaster General Prime Minister of Georgia First Lord of the Treasury Premier of Victoria Chief Executive of Hong Kong Minister for Defence Minister of National Defence Minister of Transport and Communications Prime Minister of Armenia Prime Minister of Fiji Chairman of the Communist Party of China president of FIFA Premier of Yukon Minister for Democratic Reform Premier of the Northwest Territories Prime Minister of Croatia Secretary of State for Culture, Media and Sport Minister for the Cabinet Office Prime Minister of Australia Minister for Defence New York City Fire Commissioner Commonwealth Secretary-General President of Finland president of Tajikistan Premier of the People's Republic of China Leader of the Government in the House of Commons Minister for Children and Youth Affairs Mayor of Amsterdam Prime Minister of Denmark Minister of Foreign Affairs municipal executive of Woerden Prime Minister of Albania Prime Minister of New Zealand President of Paraguay President of Germany Minister of Health Mayor of Boxmeer Deputy Prime Minister of Australia Minister for Women and Equalities Prime Minister of Poland Chancellor of the Duchy of Lancaster President of the Czech Republic Ceann Comhairle Speaker of the House of Representatives municipal executive of Warffum Chief of the Secret Intelligence Service Mayor of Zoetermeer Mayor of Haarlem Minister for Transport, Tourism and Sport Lord Chancellor Attorney General of Ireland Secretary of State for Scotland Mayor of Utrecht Mayor of Geldermalsen High Representative of the Union for Foreign Affairs and Security Policy municipal executive of Utrecht President of Slovakia First Minister of Scotland President of Romania Minister of Veterans Affairs Premier of Queensland Prime Minister of Papua New Guinea Minister for the purposes of the Atlantic Canada Opportunities Agency Act President of the European Council Prime Minister of Tuvalu Lieutenant Governor of Jersey Chief Minister of Delhi Minister of Western Economic Diversification United Nations Secretary-General Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec municipal executive of Almere Mayor of Coevorden Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Mayor of Deventer Lord Lieutenant of Ireland Lord Chief Justice of England and Wales Prime Minister of Spain Secretary of State for Exiting the European Union bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan Chief Minister of the Northern Territory
Prime Minister of Sweden, Minister for Foreign Affairs of Sweden and President of the People's Republic of China are appointed by min number of assemblies or authority organs
Prime Minister of Sweden Minister for Foreign Affairs of Sweden President of the People's Republic of China
action argmin
action union
action find_tuple_counts
relation appointed by
type occupation
type assembly
action find_tuple_counts
relation appointed by
type occupation
type authority organ
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'assembly'}, {'concept': 'authority organ'}]]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) ?q WHERE { VALUES ( ?p ) { ( ontology:assembly ) ( ontology:authority_organ ) } . ?l rdf:type ?p } GROUP BY ?q } . FILTER ( ?c = ?d ) . { SELECT DISTINCT ( MIN ( ?f ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?f ) ?h WHERE { { ?h property:appointed_by ?j . ?h rdf:type ontology:occupation . ?j rdf:type ontology:assembly } UNION { ?h property:appointed_by ?j . ?h rdf:type ontology:occupation . ?j rdf:type ontology:authority_organ } } GROUP BY ?h } } }
[]