Simple Question (Direct)
Simple Question
Q3625180
P735
Q82799
USER
What the name that Asmir Kajević is known by ?
(Q3625180,P735,c(Q82799))
action filter_type
action find
entity Q3625180
relation P735
type Q82799
['Q3625180', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q3625180 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Asmir Kajević
action filter_type
action find
entity Asmir Kajević
relation given name
type name
['Asmir Kajević', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Asmir_Kajević property:given_name ?a . ?a rdf:type ontology:name }
[]
name
Q4807435
SYSTEM
Asmir
Q4807435
(Q3625180,P735,c(Q82799))
action filter_type
action find
entity Q3625180
relation P735
type Q82799
Known 1 [ANSWER]
['Q3625180', 'P735', {'concept': 'Q82799'}]
SELECT DISTINCT ?a WHERE { resource:Q3625180 property:P735 ?a . ?a rdf:type ontology:Q82799 }
Asmir
Known 1 Asmir
Asmir
action filter_type
action find
entity Asmir Kajević
relation given name
type name
['Asmir Kajević', 'given name', {'concept': 'name'}]
SELECT DISTINCT ?a WHERE { resource:Asmir_Kajević property:given_name ?a . ?a rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3625180
P19
Q56061
USER
Which administrative territory was that person born in ?
(Q4807435,P19,c(Q56061))
action filter_type
action find
entity Q3625180
relation P19
type Q56061
['Q4807435', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3625180 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Asmir Kajević
action filter_type
action find
entity Asmir Kajević
relation place of birth
type administrative territorial entity
['Asmir', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Asmir_Kajević property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q506775
SYSTEM
Rožaje
Q506775
(Q4807435,P19,c(Q56061))
action filter_type
action find
entity Q3625180
relation P19
type Q56061
That person was born in [ANSWER]
['Q4807435', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3625180 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Rožaje
That person was born in Rožaje
Rožaje
action filter_type
action find
entity Asmir Kajević
relation place of birth
type administrative territorial entity
['Asmir', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Asmir_Kajević property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2929061 Q506775
P17
Q15617994
USER
Which administrative territories are Rožaje or Buzić Mahala situated in ?
OR((Q506775,P17,c(Q15617994)), (Q2929061,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q506775
relation P17
action find
entity Q2929061
relation P17
type Q15617994
{'OR': [['Q506775', 'P17', {'concept': 'Q15617994'}], ['Q2929061', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q506775 property:P17 ?t } UNION { resource:Q2929061 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Buzić Mahala Rožaje
action filter_type
action union
action find
entity Rožaje
relation country
action find
entity Buzić Mahala
relation country
type designation for an administrative territorial entity
{'OR': [['Rožaje', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Buzić Mahala', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Rožaje property:country ?t } UNION { resource:Buzić_Mahala property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q236 Q225
SYSTEM
Montenegro, Bosnia and Herzegovina
Q236 Q225
OR((Q506775,P17,c(Q15617994)), (Q2929061,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q506775
relation P17
action find
entity Q2929061
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q506775', 'P17', {'concept': 'Q15617994'}], ['Q2929061', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q506775 property:P17 ?t } UNION { resource:Q2929061 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Montenegro Bosnia and Herzegovina
Which administrative territories are Rožaje or Buzić Mahala situated in
Montenegro Bosnia and Herzegovina
action filter_type
action union
action find
entity Rožaje
relation country
action find
entity Buzić Mahala
relation country
type designation for an administrative territorial entity
{'OR': [['Rožaje', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Buzić Mahala', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Rožaje property:country ?t } UNION { resource:Buzić_Mahala property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q201658 Q2088357
USER
How many administrative territories are the countries of origin of around the same number of film genres or musical ensembles as that administrative territory ?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], '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:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
designation for an administrative territorial entity film genre musical ensemble
Comparative|Count over More/Less|Mult. entity type|Clarification
Q225
SYSTEM
Did you mean Bosnia and Herzegovina ?
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Did you mean Bosnia and Herzegovina ?
Bosnia and Herzegovina
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], '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:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q201658)|c(Q2088357),P495,c(Q15617994))
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
168
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 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(Q201658)|c(Q2088357),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q201658'}, {'concept': 'Q2088357'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q201658 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2088357 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom 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
168
[[{'concept': 'film genre'}, {'concept': 'musical ensemble'}], '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:film_genre . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:musical_ensemble }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q17
P122
Q22676587 Q43229 Q15617994
USER
Which administrative territories have lesser number of monarchic systems or organizations as the type of government than Japan ?
(c(Q15617994),P122,c(Q22676587)|c(Q43229))
action less
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q17
relation P122
type Q22676587
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?s ) WHERE { { ?n property:P122 ?y . ?n rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q22676587 } UNION { ?n property:P122 ?y . ?n rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q43229 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q17 property:P122 ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q22676587 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s < ?u ) }
Japan
action less
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Japan
relation basic form of government
type monarchic system
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'organization'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?s ) WHERE { { ?n property:basic_form_of_government ?y . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:monarchic_system } UNION { ?n property:basic_form_of_government ?y . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:organization } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Japan property:basic_form_of_government ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:monarchic_system ) ( ontology:organization ) } } } } . FILTER ( ?s < ?u ) }
[]
monarchic system organization designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q22676587)|c(Q43229))
action less
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q17
relation P122
type Q22676587
type Q43229
[ANSWERS] have lesser number of monarchic systems or organizations as the type of government than Japan
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?s ) WHERE { { ?n property:P122 ?y . ?n rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q22676587 } UNION { ?n property:P122 ?y . ?n rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q43229 } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Q17 property:P122 ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:Q22676587 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s < ?u ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have lesser number of monarchic systems or organizations as the type of government than Japan
Italy Brazil United States of America
action less
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Japan
relation basic form of government
type monarchic system
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'organization'}]]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?s ) WHERE { { ?n property:basic_form_of_government ?y . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:monarchic_system } UNION { ?n property:basic_form_of_government ?y . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:organization } } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?c ) AS ?u ) WHERE { resource:Japan property:basic_form_of_government ?c . { ?c rdf:type ?p . VALUES ( ?p ) { ( ontology:monarchic_system ) ( ontology:organization ) } } } } . FILTER ( ?s < ?u ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q833
P122
Q22676587 Q43229 Q15617994
USER
And what about Malaysia?
(c(Q15617994),P122,c(Q22676587)|c(Q43229))
action less
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q833
relation P122
type Q22676587
type Q43229
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f property:P122 ?q . ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q43229 } UNION { ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q22676587 . ?f property:P122 ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q833 property:P122 ?l . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:Q22676587 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s < ?p ) }
Malaysia
action less
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Malaysia
relation basic form of government
type monarchic system
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'organization'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f property:basic_form_of_government ?q . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:organization } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:monarchic_system . ?f property:basic_form_of_government ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Malaysia property:basic_form_of_government ?l . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:monarchic_system ) ( ontology:organization ) } } } } . FILTER ( ?s < ?p ) }
[]
monarchic system organization designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q889 Q884 Q958 Q689837 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q20 Q1045 Q27 Q28 Q29 Q313175 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q815731 Q96 Q228 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q1483510 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q696651 Q77 Q199688 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q22676587)|c(Q43229))
action less
action union
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
action find_tuple_counts
relation P122
type Q15617994
type Q43229
action count
action filter_multi_types
action find
entity Q833
relation P122
type Q22676587
type Q43229
[ANSWERS]
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q22676587'}, {'concept': 'Q43229'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f property:P122 ?q . ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q43229 } UNION { ?f rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q22676587 . ?f property:P122 ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Q833 property:P122 ?l . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:Q22676587 ) ( ontology:Q43229 ) } } } } . FILTER ( ?s < ?p ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran Afghanistan South Korea South Sudan Spanish Sahara Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan Norway Somalia Ireland Hungary Spain Saxe-Lauenburg Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Principality of Bulgaria Mexico Andorra Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Principality of Wales Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Saxe-Eisenach Uruguay Almohad Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy Brazil United States of America
action less
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type organization
action count
action filter_multi_types
action find
entity Malaysia
relation basic form of government
type monarchic system
type organization
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'monarchic system'}, {'concept': 'organization'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) ?f WHERE { { ?f property:basic_form_of_government ?q . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:organization } UNION { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:monarchic_system . ?f property:basic_form_of_government ?q } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?p ) WHERE { resource:Malaysia property:basic_form_of_government ?l . { ?l rdf:type ?a . VALUES ( ?a ) { ( ontology:monarchic_system ) ( ontology:organization ) } } } } . FILTER ( ?s < ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q15617994 Q3305213 Q2342494
USER
Which administrative territories are expressed in exactly 1 paintings or collectables ?
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } . ?j rdf:type ?q } GROUP BY ?a } }
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:collectable ) } . ?j rdf:type ?q } GROUP BY ?a } }
[]
designation for an administrative territorial entity painting collectable
Q1011 Q79 Q298
SYSTEM
Cape Verde, Egypt, Chile
Q3883 Q712 Q532 Q80644 Q1028 Q298 Q79 Q772 Q1273 Q1011 Q913434
(c(Q3305213)|c(Q2342494),P180,c(Q15617994))
action equal
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
value 1
[ANSWERS] are expressed in exactly 1 paintings or collectables
[[{'concept': 'Q3305213'}, {'concept': 'Q2342494'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?q ) { ( ontology:Q3305213 ) ( ontology:Q2342494 ) } . ?j rdf:type ?q } GROUP BY ?a } }
Catanzaro Fiji village Köngen Morocco Chile Egypt Drenthe Tuscany Cape Verde Les Halles
Cape Verde, Egypt and Chile are expressed in exactly 1 paintings or collectables
Cape Verde Egypt Chile
action equal
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
value 1
[[{'concept': 'painting'}, {'concept': 'collectable'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { FILTER ( ?z = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?z ) WHERE { VALUES ( ?q ) { ( ontology:painting ) ( ontology:collectable ) } . ?j rdf:type ?q } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q225
P30
Q2221906
USER
Where is Bosnia and Herzegovina situated ?
(Q225,P30,c(Q2221906))
action filter_type
action find
entity Q225
relation P30
type Q2221906
['Q225', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { resource:Q225 property:P30 ?b . ?b rdf:type ontology:Q2221906 }
Bosnia and Herzegovina
action filter_type
action find
entity Bosnia and Herzegovina
relation continent
type geographic location
['Bosnia and Herzegovina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { resource:Bosnia_and_Herzegovina property:continent ?b . ?b rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q225,P30,c(Q2221906))
action filter_type
action find
entity Q225
relation P30
type Q2221906
Bosnia and Herzegovina is situated in [ANSWER]
['Q225', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { resource:Q225 property:P30 ?b . ?b rdf:type ontology:Q2221906 }
Europe
Bosnia and Herzegovina is situated in Europe
Europe
action filter_type
action find
entity Bosnia and Herzegovina
relation continent
type geographic location
['Bosnia and Herzegovina', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { resource:Bosnia_and_Herzegovina property:continent ?b . ?b rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q225
P47
Q15617994
USER
Which administrative territories are bordered by that one ?
(Q46,P47,c(Q15617994))
action filter_type
action find
entity Q225
relation P47
type Q15617994
['Q46', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q225 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Bosnia and Herzegovina
action filter_type
action find
entity Bosnia and Herzegovina
relation shares border with
type designation for an administrative territorial entity
['Europe', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bosnia_and_Herzegovina property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q236 Q224
SYSTEM
Serbia, Montenegro, Croatia
Q403 Q236 Q224
(Q46,P47,c(Q15617994))
action filter_type
action find
entity Q225
relation P47
type Q15617994
And [ANSWERS] are bordered by that one
['Q46', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q225 property:P47 ?u . ?u rdf:type ontology:Q15617994 }
Serbia Montenegro Croatia
And Serbia, Montenegro and Croatia are bordered by that one
Serbia Montenegro Croatia
action filter_type
action find
entity Bosnia and Herzegovina
relation shares border with
type designation for an administrative territorial entity
['Europe', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Bosnia_and_Herzegovina property:shares_border_with ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]