Simple Question (Direct)
Simple Question
Q3845909
P106
Q12737077
USER
What is the job of Marco Baldi ?
(Q3845909,P106,c(Q12737077))
action filter_type
action find
entity Q3845909
relation P106
type Q12737077
['Q3845909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3845909 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
Marco Baldi
action filter_type
action find
entity Marco Baldi
relation occupation
type occupation
['Marco Baldi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Marco_Baldi property:occupation ?o . ?o rdf:type ontology:occupation }
[]
occupation
Q3665646
SYSTEM
basketball player
Q3665646
(Q3845909,P106,c(Q12737077))
action filter_type
action find
entity Q3845909
relation P106
type Q12737077
The job of Marco Baldi is a [ANSWER]
['Q3845909', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { resource:Q3845909 property:P106 ?o . ?o rdf:type ontology:Q12737077 }
basketball player
The job of Marco Baldi is a basketball player
basketball player
action filter_type
action find
entity Marco Baldi
relation occupation
type occupation
['Marco Baldi', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { resource:Marco_Baldi property:occupation ?o . ?o rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3845909
P21
Q290
USER
Which sex does that person have ?
(Q3665646,P21,c(Q290))
action filter_type
action find
entity Q3845909
relation P21
type Q290
['Q3665646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q3845909 property:P21 ?g . ?g rdf:type ontology:Q290 }
Marco Baldi
action filter_type
action find
entity Marco Baldi
relation gender
type sex
['basketball player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Marco_Baldi property:gender ?g . ?g rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q3665646,P21,c(Q290))
action filter_type
action find
entity Q3845909
relation P21
type Q290
That person has a [ANSWER]
['Q3665646', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { resource:Q3845909 property:P21 ?g . ?g rdf:type ontology:Q290 }
male
That person has a male
male
action filter_type
action find
entity Marco Baldi
relation gender
type sex
['basketball player', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { resource:Marco_Baldi property:gender ?g . ?g rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q7756500 Q3845909
P27 P495
Q15617994
USER
Which administrative territories are the countries of citizenship of Marco Baldi and are the origins of The Peking Medallion ?
AND((Q3845909,P27,c(Q15617994)), (Q7756500,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3845909
relation P27
action find
entity Q7756500
relation P495
type Q15617994
{'AND': [['Q3845909', 'P27', {'concept': 'Q15617994'}], ['Q7756500', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { resource:Q3845909 property:P27 ?t . resource:Q7756500 property:P495 ?t . ?t rdf:type ontology:Q15617994 }
The Peking Medallion Marco Baldi
action filter_type
action intersection
action find
entity Marco Baldi
relation country of citizenship
action find
entity The Peking Medallion
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Marco Baldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['The Peking Medallion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Marco_Baldi property:country_of_citizenship ?t . resource:The_Peking_Medallion property:country_of_origin ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q3845909,P27,c(Q15617994)), (Q7756500,P495,c(Q15617994)))
action filter_type
action intersection
action find
entity Q3845909
relation P27
action find
entity Q7756500
relation P495
type Q15617994
[ANSWER] is the countries of citizenship of Marco Baldi and is the origins of The Peking Medallion
{'AND': [['Q3845909', 'P27', {'concept': 'Q15617994'}], ['Q7756500', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { resource:Q3845909 property:P27 ?t . resource:Q7756500 property:P495 ?t . ?t rdf:type ontology:Q15617994 }
Italy
Italy is the countries of citizenship of Marco Baldi and is the origins of The Peking Medallion
Italy
action filter_type
action intersection
action find
entity Marco Baldi
relation country of citizenship
action find
entity The Peking Medallion
relation country of origin
type designation for an administrative territorial entity
{'AND': [['Marco Baldi', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['The Peking Medallion', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { resource:Marco_Baldi property:country_of_citizenship ?t . resource:The_Peking_Medallion property:country_of_origin ?t . ?t 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 Q15617994
USER
How many administrative territories have ambassadorial relations with atmost 55 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 55
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?m property:P530 ?t } GROUP BY ?m } . FILTER ( ?r <= 55 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation ?t } GROUP BY ?m } . FILTER ( ?r <= 55 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
159
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 55
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?m property:P530 ?t } GROUP BY ?m } . FILTER ( ?r <= 55 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
159
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 55
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?t ) AS ?r ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m property:diplomatic_relation ?t } GROUP BY ?m } . FILTER ( ?r <= 55 ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have a diplomatic relationship with atleast 51 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 51
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?z ) WHERE { ?u property:P530 ?t . ?u rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?z >= 51 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?z ) WHERE { ?u property:diplomatic_relation ?t . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?z >= 51 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38
SYSTEM
Brazil, Italy
Q155 Q38
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 51
[ANSWERS] have a diplomatic relationship with atleast 51 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?z ) WHERE { ?u property:P530 ?t . ?u rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?z >= 51 ) }
Brazil Italy
Brazil and Italy have a diplomatic relationship with atleast 51 administrative territories
Brazil Italy
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 51
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?z ) WHERE { ?u property:diplomatic_relation ?t . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?z >= 51 ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q7725634
USER
How many administrative territories are the countries of origin of approximately the same number of television programs or literary works as that administrative territory ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
designation for an administrative territorial entity television program literary work
Comparative|Count over More/Less|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Did you mean Brazil ?
Brazil
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Italy. Could you tell me the answer for that?
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
Q38
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
167
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q15416)|c(Q7725634),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q7725634 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
167
[[{'concept': 'television program'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:literary_work }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with atleast 52 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 52
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?q ) WHERE { ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?t property:P530 ?a } GROUP BY ?t } . FILTER ( ?q >= 52 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?q ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?a } GROUP BY ?t } . FILTER ( ?q >= 52 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q38 Q230
SYSTEM
Brazil, Italy, Georgia
Q155 Q38 Q230
(c(Q15617994),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 52
[ANSWERS] are known to have diplomatic connections with atleast 52 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?q ) WHERE { ?t rdf:type ontology:Q15617994 . ?a rdf:type ontology:Q15617994 . ?t property:P530 ?a } GROUP BY ?t } . FILTER ( ?q >= 52 ) }
Brazil Italy Georgia
Brazil, Italy and Georgia are known to have diplomatic connections with atleast 52 administrative territories
Brazil Italy Georgia
action atleast
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 52
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?a ) AS ?q ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?a } GROUP BY ?t } . FILTER ( ?q >= 52 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1904
P1001
Q15617994 Q192350 Q17335294
USER
How many administrative territories are judicially linked to less number of ministries and coats of arms than Ontario ?
(c(Q192350)|c(Q17335294),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q1904
relation P1001
type Q192350
type Q17335294
[[{'concept': 'Q192350'}, {'concept': 'Q17335294'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q192350 } UNION { ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q17335294 . ?r property:P1001 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P1001 resource:Q1904 . { { ?n rdf:type ontology:Q192350 } UNION { ?n rdf:type ontology:Q17335294 } } } } . FILTER ( ?l < ?c ) }
Ontario
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Ontario
relation applies to jurisdiction
type ministry
type flag or coat of arms
[[{'concept': 'ministry'}, {'concept': 'flag or coat of arms'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:ministry } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:flag_or_coat_of_arms . ?r property:applies_to_jurisdiction ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:applies_to_jurisdiction resource:Ontario . { { ?n rdf:type ontology:ministry } UNION { ?n rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?l < ?c ) }
[]
designation for an administrative territorial entity ministry flag or coat of arms
SYSTEM
172
Q702 Q804 Q709 Q811 Q706679 Q805 Q2765 Q163012 Q22273061 Q55 Q2871 Q784 Q265 Q24764 Q2742 Q842 Q398 Q874 Q712 Q711 Q710 Q717 Q443815 Q50198 Q1028 Q187035 Q252 Q22274206 Q399 Q1462 Q657 Q258 Q6465 Q1979 Q792 Q790 Q4628 Q881 Q7688 Q3097 Q826 Q158893 Q2942 Q822 Q241 Q817 Q11340 Q244 Q11343 Q1142326 Q1974 Q1019 Q2899 Q2758 Q1952 Q921 Q4712 Q155019 Q39 Q3389 Q986 Q423 Q983 Q851 Q733 Q734 Q163966 Q3068 Q730 Q1013 Q11323 Q236 Q1948 Q233 Q238 Q119284 Q1045 Q3403547 Q1042 Q1041 Q27 Q1049 Q1025 Q1027 Q783 Q1020 Q2009 Q2007 Q184 Q1029 Q2003 Q736 Q786 Q32 Q228 Q3462133 Q223 Q221 Q229 Q347 Q1050 Q2838 Q902 Q1036 Q1037 Q974 Q1032 Q965 Q967 Q963 Q697 Q695 Q114 Q754 Q750 Q22274534 Q11337 Q11331 Q214 Q215 Q12642 Q154547 Q683 Q242 Q1216 Q12753 Q912 Q2805 Q916 Q2107 Q1007 Q1006 Q1005 Q833 Q977 Q1951 Q1009 Q971 Q970 Q34020 Q2380910 Q686 Q760 Q574 Q11301 Q2904 Q158095 Q1044 Q77 Q878 Q774 Q810 Q1016 Q158083 Q1011 Q1243 Q945 Q72449 Q12549 Q22273285 Q678 Q800 Q1039 Q672 Q929 Q329609 Q863 Q2938 Q2023 Q1231 Q953 Q1237
(c(Q192350)|c(Q17335294),P1001,c(Q15617994))
action count
action less
action union
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q192350
action find_reverse_tuple_counts
relation P1001
type Q15617994
type Q17335294
action count
action filter_multi_types
action find_reverse
entity Q1904
relation P1001
type Q192350
type Q17335294
[ANSWER]
[[{'concept': 'Q192350'}, {'concept': 'Q17335294'}], 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:P1001 ?b . ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q192350 } UNION { ?b rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q17335294 . ?r property:P1001 ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:P1001 resource:Q1904 . { { ?n rdf:type ontology:Q192350 } UNION { ?n rdf:type ontology:Q17335294 } } } } . FILTER ( ?l < ?c ) }
Federated States of Micronesia Panama Marshall Islands Nicaragua Duchy of Bar Yemen Gelsenkirchen Pankow Duchy of Nemours Netherlands Hagen Dominica Uzbekistan municipality of the Philippines Münster Oman Bahrain Turkmenistan Fiji Mongolia Kiribati Venezuela Altomünster province of Thailand Morocco Principality of Albania Indonesia Duchy of Mercoeur Armenia Sardinia Chad South Africa department of France Prince Edward Island El Salvador Haiti Faroe Islands Vietnam raion Remscheid Maldives Friedrichshain-Kreuzberg Solingen Lebanon Cuba Kuwait Sprockhövel Barbados Wetter (Ruhr) Seine British Columbia Madagascar Mülheim an der Ruhr Mönchengladbach Nova Scotia Brunei Duchy of Burgundy Duchy of Lorraine Switzerland Finistère Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Mitte Loire-Atlantique Suriname Lesotho Breckerfeld Montenegro Manitoba Malta San Marino Marzahn-Hellersdorf Somalia principality of Phalsbourg and Lixheim Seychelles Senegal Ireland Sudan Mauritania Mauritius Honduras Malawi Yukon Northwest Territories Belarus Mozambique Newfoundland and Labrador Ecuador Dominican Republic Luxembourg Andorra Saxe-Coburg and Gotha Greenland Republic of Macedonia Cyprus Liechtenstein Swaziland Oberhausen Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Burkina Faso Burundi Botswana Nauru Palau Kenya Trinidad and Tobago Bolivia Duchy of Elbeuf Herdecke Gevelsberg Slovakia Slovenia Morbihan duchy Samoa Belize Piedmont Seine-et-Marne Mali Krefeld Angola Wuppertal Guinea-Bissau Guinea Gambia Malaysia Djibouti Alberta Cameroon Republic of the Congo Comoros Niue Duchy of Zaslawye Vanuatu Saint Lucia East Timor Ennepetal Herne Charlottenburg-Wilmersdorf Sierra Leone Uruguay United Arab Emirates Guatemala Jordan Libya Spandau Cape Verde Veneto Togo Roccarainola Ille-et-Vilaine Duchy of Guise Tonga Costa Rica Sao Tomé and Príncipe Tuvalu Central African Republic Lichtenberg Tajikistan Leverkusen Nunavut Kosovo Region Zambia Trentino-South Tyrol
172
action count
action less
action union
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type ministry
action find_reverse_tuple_counts
relation applies to jurisdiction
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_multi_types
action find_reverse
entity Ontario
relation applies to jurisdiction
type ministry
type flag or coat of arms
[[{'concept': 'ministry'}, {'concept': 'flag or coat of arms'}], 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?w ) WHERE { { SELECT DISTINCT ?b ( COUNT ( ?r ) AS ?l ) WHERE { { ?r property:applies_to_jurisdiction ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:ministry } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:flag_or_coat_of_arms . ?r property:applies_to_jurisdiction ?b } } GROUP BY ?b } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?c ) WHERE { ?n property:applies_to_jurisdiction resource:Ontario . { { ?n rdf:type ontology:ministry } UNION { ?n rdf:type ontology:flag_or_coat_of_arms } } } } . FILTER ( ?l < ?c ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6410660 Q38
P530 P17
Q15617994
USER
Which administrative territories have a diplomatic relationship with Italy and are Kindunguni present in ?
AND((Q38,P530,c(Q15617994)), (Q6410660,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q6410660
relation P17
type Q15617994
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q6410660', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q38 property:P530 ?l . resource:Q6410660 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Kindunguni Italy
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Kindunguni
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kindunguni', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Italy property:diplomatic_relation ?l . resource:Kindunguni property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q114
SYSTEM
Kenya
Q114
AND((Q38,P530,c(Q15617994)), (Q6410660,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q38
relation P530
action find
entity Q6410660
relation P17
type Q15617994
[ANSWER] have a diplomatic relationship with Italy and are Kindunguni present in
{'AND': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q6410660', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q38 property:P530 ?l . resource:Q6410660 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Kenya
Kenya have a diplomatic relationship with Italy and are Kindunguni present in
Kenya
action filter_type
action intersection
action find
entity Italy
relation diplomatic relation
action find
entity Kindunguni
relation country
type designation for an administrative territorial entity
{'AND': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Kindunguni', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Italy property:diplomatic_relation ?l . resource:Kindunguni property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q18346365 Q38
P530 P495
Q15617994
USER
Which administrative territories have diplomatic relationships with Italy or did Modern Girls originate ?
OR((Q38,P530,c(Q15617994)), (Q18346365,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q18346365
relation P495
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q18346365', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q38 property:P530 ?t } UNION { resource:Q18346365 property:P495 ?t } } . ?t rdf:type ontology:Q15617994 }
Modern Girls Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Modern Girls
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Modern Girls', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Italy property:diplomatic_relation ?t } UNION { resource:Modern_Girls property:country_of_origin ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q822 Q28 Q881 Q32 Q189 Q214 Q20 Q733 Q55 Q213
SYSTEM
Some of them are Lebanon, Hungary, Vietnam, Luxembourg, Iceland, Slovakia, Norway, Paraguay, Netherlands, Czech Republic
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q18346365,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q18346365
relation P495
type Q15617994
[ANSWERS] have diplomatic relationships with Italy or did Modern Girls originate
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q18346365', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q38 property:P530 ?t } UNION { resource:Q18346365 property:P495 ?t } } . ?t rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Lebanon, Hungary, Vietnam, Luxembourg, Iceland, Slovakia, Norway, Paraguay, Netherlands and Czech Republic have diplomatic relationships with Italy or did Modern Girls originate
Lebanon Hungary Vietnam Luxembourg Iceland Slovakia Norway Paraguay Netherlands Czech Republic
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Modern Girls
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Modern Girls', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Italy property:diplomatic_relation ?t } UNION { resource:Modern_Girls property:country_of_origin ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q213
P47
Q15617994 Q1048835
USER
How many administrative territories or political territories share border with Czech Republic ?
(Q213,P47,c(Q15617994)) (Q213,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q213
relation P47
type Q15617994
action filter_type
action find
entity Q213
relation P47
type Q1048835
['Q213', 'P47', {'concept': 'Q15617994'}] ['Q213', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Q213 property:P47 ?c . ?c rdf:type ontology:Q15617994 } UNION { resource:Q213 property:P47 ?c . ?c rdf:type ontology:Q1048835 } }
Czech Republic
action count
action union
action filter_type
action find
entity Czech Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Czech Republic
relation shares border with
type political territorial entity
['Czech Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Czech Republic', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Czech_Republic property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Czech_Republic property:shares_border_with ?c . ?c rdf:type ontology:political_territorial_entity } }
[]
designation for an administrative territorial entity political territorial entity
SYSTEM
4
Q40 Q36 Q214 Q183
(Q213,P47,c(Q15617994)) (Q213,P47,c(Q1048835))
action count
action union
action filter_type
action find
entity Q213
relation P47
type Q15617994
action filter_type
action find
entity Q213
relation P47
type Q1048835
[ANSWER]
['Q213', 'P47', {'concept': 'Q15617994'}] ['Q213', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Q213 property:P47 ?c . ?c rdf:type ontology:Q15617994 } UNION { resource:Q213 property:P47 ?c . ?c rdf:type ontology:Q1048835 } }
Austria Poland Slovakia Germany
4
action count
action union
action filter_type
action find
entity Czech Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Czech Republic
relation shares border with
type political territorial entity
['Czech Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Czech Republic', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?f ) WHERE { { resource:Czech_Republic property:shares_border_with ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Czech_Republic property:shares_border_with ?c . ?c rdf:type ontology:political_territorial_entity } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q55
P194
Q1752346
USER
Which assembly represents Netherlands ?
(Q55,P194,c(Q1752346))
action filter_type
action find
entity Q55
relation P194
type Q1752346
['Q55', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1752346 . resource:Q55 property:P194 ?k }
Netherlands
action filter_type
action find
entity Netherlands
relation legislative body
type assembly
['Netherlands', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:assembly . resource:Netherlands property:legislative_body ?k }
[]
assembly
Q1371388
SYSTEM
States General
Q1371388
(Q55,P194,c(Q1752346))
action filter_type
action find
entity Q55
relation P194
type Q1752346
Netherlands [ANSWER] represents Netherlands
['Q55', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q1752346 . resource:Q55 property:P194 ?k }
States General
Netherlands States General represents Netherlands
States General
action filter_type
action find
entity Netherlands
relation legislative body
type assembly
['Netherlands', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:assembly . resource:Netherlands property:legislative_body ?k }
[]