Simple Question (Direct)
Simple Question
Q1790930
P1412
Q34770
USER
Which language does Juan Carlos Colombres speak in ?
(Q1790930,P1412,c(Q34770))
action filter_type
action find
entity Q1790930
relation P1412
type Q34770
['Q1790930', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q1790930 property:P1412 ?y }
Juan Carlos Colombres
action filter_type
action find
entity Juan Carlos Colombres
relation languages spoken, written or signed
type language
['Juan Carlos Colombres', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Juan_Carlos_Colombres property:languages_spoken,_written_or_signed ?y }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q1790930,P1412,c(Q34770))
action filter_type
action find
entity Q1790930
relation P1412
type Q34770
Juan Carlos Colombres speaks in [ANSWER]
['Q1790930', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q34770 . resource:Q1790930 property:P1412 ?y }
Spanish
Juan Carlos Colombres speaks in Spanish
Spanish
action filter_type
action find
entity Juan Carlos Colombres
relation languages spoken, written or signed
type language
['Juan Carlos Colombres', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:language . resource:Juan_Carlos_Colombres property:languages_spoken,_written_or_signed ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1790930
P166
Q618779
USER
What was won by that person ?
(Q1321,P166,c(Q618779))
action filter_type
action find
entity Q1790930
relation P166
type Q618779
['Q1321', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?e WHERE { resource:Q1790930 property:P166 ?e . ?e rdf:type ontology:Q618779 }
Juan Carlos Colombres
action filter_type
action find
entity Juan Carlos Colombres
relation award received
type award
['Spanish', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?e WHERE { resource:Juan_Carlos_Colombres property:award_received ?e . ?e rdf:type ontology:award }
[]
award
Q2113
SYSTEM
Maria Moors Cabot Prizes
Q2113
(Q1321,P166,c(Q618779))
action filter_type
action find
entity Q1790930
relation P166
type Q618779
[ANSWER] was won by that person
['Q1321', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?e WHERE { resource:Q1790930 property:P166 ?e . ?e rdf:type ontology:Q618779 }
Maria Moors Cabot Prizes
Maria Moors Cabot Prizes was won by that person
Maria Moors Cabot Prizes
action filter_type
action find
entity Juan Carlos Colombres
relation award received
type award
['Spanish', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?e WHERE { resource:Juan_Carlos_Colombres property:award_received ?e . ?e rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1790930
P21
Q290
USER
Which sex does that person belong to ?
(Q2113,P21,c(Q290))
action filter_type
action find
entity Q1790930
relation P21
type Q290
['Q2113', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q1790930 property:P21 ?v }
Juan Carlos Colombres
action filter_type
action find
entity Juan Carlos Colombres
relation gender
type sex
['Maria Moors Cabot Prizes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Juan_Carlos_Colombres property:gender ?v }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2113,P21,c(Q290))
action filter_type
action find
entity Q1790930
relation P21
type Q290
That person belongs to [ANSWER]
['Q2113', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q290 . resource:Q1790930 property:P21 ?v }
male
That person belongs to male
male
action filter_type
action find
entity Juan Carlos Colombres
relation gender
type sex
['Maria Moors Cabot Prizes', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:sex . resource:Juan_Carlos_Colombres property:gender ?v }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2113
P17
Q15617994
USER
Which administrative territory is Maria Moors Cabot Prizes present in ?
(Q2113,P17,c(Q15617994))
action filter_type
action find
entity Q2113
relation P17
type Q15617994
['Q2113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q2113 property:P17 ?i }
Maria Moors Cabot Prizes
action filter_type
action find
entity Maria Moors Cabot Prizes
relation country
type designation for an administrative territorial entity
['Maria Moors Cabot Prizes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maria_Moors_Cabot_Prizes property:country ?i }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q2113,P17,c(Q15617994))
action filter_type
action find
entity Q2113
relation P17
type Q15617994
Maria Moors Cabot Prizes is the [ANSWER]
['Q2113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q15617994 . resource:Q2113 property:P17 ?i }
United States of America
Maria Moors Cabot Prizes is the United States of America
United States of America
action filter_type
action find
entity Maria Moors Cabot Prizes
relation country
type designation for an administrative territorial entity
['Maria Moors Cabot Prizes', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Maria_Moors_Cabot_Prizes property:country ?i }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4861113
Q15617994
USER
And how about Barksdale, Texas?
(Q4861113,P17,c(Q15617994))
action filter_type
action find
entity Q4861113
relation P17
type Q15617994
['Q4861113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q4861113 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
Barksdale, Texas
action filter_type
action find
entity Barksdale, Texas
relation country
type designation for an administrative territorial entity
['Barksdale, Texas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Barksdale,_Texas property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q4861113,P17,c(Q15617994))
action filter_type
action find
entity Q4861113
relation P17
type Q15617994
[ANSWER]
['Q4861113', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { resource:Q4861113 property:P17 ?t . ?t rdf:type ontology:Q15617994 }
United States of America
United States of America
action filter_type
action find
entity Barksdale, Texas
relation country
type designation for an administrative territorial entity
['Barksdale, Texas', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Barksdale,_Texas property:country ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q967
P530
Q15617994 Q15617994
USER
Which administrative territories are known to have diplomatic connections with around the same number of administrative territories as Burundi ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?g ) WHERE { ?h property:P530 ?i . ?h rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q967 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?q ) }
Burundi
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Burundi
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?g ) WHERE { ?h property:diplomatic_relation ?i . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Burundi property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?q ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 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 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 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 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q967
relation P530
type Q15617994
[ANSWERS] are known to have diplomatic connections with around the same number of administrative territories as Burundi
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?g ) WHERE { ?h property:P530 ?i . ?h rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Q967 property:P530 ?w . ?w rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?q ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines 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 Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia 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 United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands, Poland and People's Republic of China are known to have diplomatic connections with around the same number of administrative territories as Burundi
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Burundi
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?i ) AS ?g ) WHERE { ?h property:diplomatic_relation ?i . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?q ) WHERE { resource:Burundi property:diplomatic_relation ?w . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?q ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q822
P530
Q15617994 Q15617994
USER
And what about Lebanon?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?n ) WHERE { ?l property:P530 ?v . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Q822 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?a ) }
Lebanon
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?n ) WHERE { ?l property:diplomatic_relation ?v . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Lebanon property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?a ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q55 Q36 Q148
SYSTEM
Netherlands, Poland, People's Republic of China
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 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 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 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 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q822
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?n ) WHERE { ?l property:P530 ?v . ?l rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Q822 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?a ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines 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 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 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 United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
Netherlands Poland People's Republic of China
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Lebanon
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?v ) AS ?n ) WHERE { ?l property:diplomatic_relation ?v . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Lebanon property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?a ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P941
Q15617994 Q3895768
USER
How many administrative territories inspired approximately the same number of fictional locations as that administrative territory ?
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity fictional location
Comparative|Count over More/Less|Single entity type|Clarification
Q55
SYSTEM
Did you mean Netherlands ?
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
Did you mean Netherlands ?
Netherlands
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
USER
Yes
(c(Q3895768),P941,c(Q15617994))
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
9
Q142 Q159 Q424 Q794 Q33 Q954 Q31 Q889 Q55
(c(Q3895768),P941,c(Q15617994))
[ANSWER]
[{'concept': 'Q3895768'}, 'P941', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:P941 ?y . ?z rdf:type ontology:Q3895768 . ?y rdf:type ontology:Q15617994 }
France Russia Cambodia Iran Finland Zimbabwe Belgium Afghanistan Netherlands
9
[{'concept': 'fictional location'}, 'inspired by', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { ?z property:inspired_by ?y . ?z rdf:type ontology:fictional_location . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q668583 Q822
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Lebanon or do Tschingel Glacier belong to ?
OR((Q822,P530,c(Q15617994)), (Q668583,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q822
relation P530
action find
entity Q668583
relation P17
type Q15617994
{'OR': [['Q822', 'P530', {'concept': 'Q15617994'}], ['Q668583', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q822 property:P530 ?r } UNION { resource:Q668583 property:P17 ?r } } }
Tschingel Glacier Lebanon
action filter_type
action union
action find
entity Lebanon
relation diplomatic relation
action find
entity Tschingel Glacier
relation country
type designation for an administrative territorial entity
{'OR': [['Lebanon', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tschingel Glacier', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Lebanon property:diplomatic_relation ?r } UNION { resource:Tschingel_Glacier property:country ?r } } }
[]
designation for an administrative territorial entity
Q155 Q39 Q38 Q801
SYSTEM
Brazil, Switzerland, Italy, Israel
Q155 Q39 Q38 Q801
OR((Q822,P530,c(Q15617994)), (Q668583,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q822
relation P530
action find
entity Q668583
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Lebanon or do Tschingel Glacier belong to
{'OR': [['Q822', 'P530', {'concept': 'Q15617994'}], ['Q668583', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q15617994 . { { resource:Q822 property:P530 ?r } UNION { resource:Q668583 property:P17 ?r } } }
Brazil Switzerland Italy Israel
Brazil, Switzerland, Italy and Israel have diplomatic relationships with Lebanon or do Tschingel Glacier belong to
Brazil Switzerland Italy Israel
action filter_type
action union
action find
entity Lebanon
relation diplomatic relation
action find
entity Tschingel Glacier
relation country
type designation for an administrative territorial entity
{'OR': [['Lebanon', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Tschingel Glacier', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Lebanon property:diplomatic_relation ?r } UNION { resource:Tschingel_Glacier property:country ?r } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1023907
P530
Q15617994
USER
Do Conghua District have tactful political relations with those ones ?
(Q1023907,P530,Q155) (Q1023907,P530,Q39) (Q1023907,P530,Q38) (Q1023907,P530,Q801)
action is_in
entity prev_answer
action find
entity Q1023907
relation P530
['Q1023907', 'P530', 'Q155'] ['Q1023907', 'P530', 'Q39'] ['Q1023907', 'P530', 'Q38'] ['Q1023907', 'P530', 'Q801']
ASK WHERE { resource:Q1023907 property:P530 ?n . VALUES ( ?n ) { ( resource:Q155 ) ( resource:Q39 ) ( resource:Q38 ) } }
Conghua District
action is_in
entity prev_answer
action find
entity Conghua District
relation diplomatic relation
['Conghua District', 'diplomatic relation', 'Brazil'] ['Conghua District', 'diplomatic relation', 'Switzerland'] ['Conghua District', 'diplomatic relation', 'Italy'] ['Conghua District', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Conghua_District property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Brazil ) ( resource:Switzerland ) ( resource:Italy ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q1023907,P530,Q155) (Q1023907,P530,Q39) (Q1023907,P530,Q38) (Q1023907,P530,Q801)
action is_in
entity prev_answer
action find
entity Q1023907
relation P530
[ANSWER]
['Q1023907', 'P530', 'Q155'] ['Q1023907', 'P530', 'Q39'] ['Q1023907', 'P530', 'Q38'] ['Q1023907', 'P530', 'Q801']
ASK WHERE { resource:Q1023907 property:P530 ?n . VALUES ( ?n ) { ( resource:Q155 ) ( resource:Q39 ) ( resource:Q38 ) } }
No
action is_in
entity prev_answer
action find
entity Conghua District
relation diplomatic relation
['Conghua District', 'diplomatic relation', 'Brazil'] ['Conghua District', 'diplomatic relation', 'Switzerland'] ['Conghua District', 'diplomatic relation', 'Italy'] ['Conghua District', 'diplomatic relation', 'Israel']
ASK WHERE { resource:Conghua_District property:diplomatic_relation ?n . VALUES ( ?n ) { ( resource:Brazil ) ( resource:Switzerland ) ( resource:Italy ) } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P88
Q502895 Q178706 Q811430
USER
How many people commissioned atmost 1 institutions and constructions ?
(c(Q178706)|c(Q811430),P88,c(Q502895))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q178706
action find_reverse_tuple_counts
relation P88
type Q502895
type Q811430
value 1
[[{'concept': 'Q178706'}, {'concept': 'Q811430'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q811430 ) } . ?i rdf:type ?r } GROUP BY ?g } . FILTER ( ?p <= 1 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type institution
action find_reverse_tuple_counts
relation commissioned by
type common name
type construction
value 1
[[{'concept': 'institution'}, {'concept': 'construction'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:institution ) ( ontology:construction ) } . ?i rdf:type ?r } GROUP BY ?g } . FILTER ( ?p <= 1 ) }
[]
common name institution construction
SYSTEM
429
Q314384 Q21583236 Q128019 Q1679943 Q312637 Q67281 Q16029902 Q18546605 Q3388274 Q2597227 Q34417 Q5007 Q15118669 Q316736 Q646191 Q8423 Q48544 Q48547 Q1434742 Q1869372 Q7758 Q1790464 Q7750 Q36234 Q5482808 Q105013 Q1391982 Q1699250 Q66112 Q658756 Q83672 Q214207 Q1261435 Q2960520 Q459684 Q337630 Q7811659 Q4444804 Q12591 Q2663888 Q923438 Q1397788 Q2854144 Q8019380 Q6260307 Q5602471 Q170398 Q163514 Q41834 Q2161266 Q143319 Q63502 Q16328562 Q937 Q3180455 Q979358 Q506415 Q1360930 Q2138565 Q7790099 Q2002136 Q130221 Q44139 Q3158324 Q95946 Q348183 Q13422636 Q5344847 Q978999 Q114424 Q169305 Q19635621 Q18526360 Q5052103 Q935329 Q2976800 Q448169 Q5973918 Q2573414 Q335489 Q99915 Q938624 Q3291384 Q560746 Q230677 Q130822 Q60568 Q152245 Q535618 Q1408805 Q318089 Q157812 Q18175809 Q702308 Q127318 Q452570 Q3553429 Q57628 Q76555 Q96499 Q205779 Q299663 Q1419 Q358348 Q20875 Q289527 Q349243 Q44961 Q5542604 Q33550 Q37594 Q150726 Q1523 Q650906 Q32500 Q273849 Q545140 Q19660038 Q2714587 Q38200 Q21583204 Q788163 Q691894 Q164823 Q5481257 Q182021 Q2113530 Q2033868 Q1871840 Q2094034 Q170863 Q344454 Q60438 Q3768246 Q168261 Q443559 Q336990 Q9439 Q37134 Q3678126 Q209579 Q211513 Q71578 Q7742 Q437543 Q15839391 Q7296915 Q487488 Q38370 Q2976709 Q3765384 Q4725780 Q115738 Q15454222 Q3022849 Q140106 Q83680 Q192958 Q1395822 Q16004457 Q6228322 Q236853 Q152782 Q2615527 Q5498834 Q2082616 Q7788054 Q244852 Q434252 Q49237 Q153815 Q8032483 Q3340360 Q183226 Q36788 Q298877 Q446077 Q2129556 Q3428813 Q506933 Q170467 Q3381859 Q151173 Q5576725 Q436126 Q297194 Q6853636 Q8343904 Q3784903 Q2507378 Q257286 Q114749 Q6292807 Q129857 Q737533 Q2381189 Q158504 Q470978 Q6897746 Q8005725 Q2871482 Q81506 Q237149 Q534683 Q178004 Q6376590 Q83159 Q1088180 Q19403561 Q177854 Q74936 Q7732 Q760909 Q5379610 Q201143 Q7738 Q152727 Q29179 Q57206 Q435501 Q593626 Q1399 Q102140 Q36620 Q16846394 Q1396340 Q378483 Q188346 Q101266 Q2542756 Q65933 Q167782 Q3524371 Q3132908 Q21529483 Q974863 Q691402 Q351339 Q334108 Q51056 Q53437 Q8743 Q378870 Q52927 Q8019995 Q452580 Q869981 Q19930898 Q86957 Q311879 Q15927253 Q2400568 Q60936 Q1542046 Q795117 Q434730 Q44361 Q7771 Q188971 Q343576 Q541300 Q316110 Q460215 Q3262230 Q3802446 Q18507655 Q77233 Q3817341 Q3766950 Q8474 Q131552 Q16011488 Q152229 Q213533 Q708011 Q134588 Q41919 Q436117 Q131706 Q65351 Q2565824 Q3048093 Q2271150 Q61307 Q715054 Q1414020 Q95563 Q349267 Q43107 Q128664 Q520493 Q10382335 Q171185 Q316654 Q1066012 Q1379797 Q157781 Q930796 Q1002546 Q3159990 Q222390 Q587283 Q450160 Q717289 Q149062 Q2149954 Q458688 Q6224954 Q1233361 Q783595 Q2483541 Q336580 Q3261400 Q168691 Q160353 Q2607550 Q969797 Q2714575 Q8008060 Q82823 Q8012806 Q5703335 Q24278767 Q3635399 Q105378 Q3048511 Q1377579 Q591851 Q3340239 Q102605 Q2644136 Q6138693 Q7526169 Q335667 Q1557363 Q540802 Q231764 Q5928444 Q346761 Q153586 Q2768005 Q338480 Q19837 Q590218 Q2935138 Q586063 Q267483 Q2898749 Q250732 Q2298732 Q298892 Q7324802 Q23691658 Q19853482 Q354309 Q16745596 Q1897093 Q62594 Q289104 Q104190 Q2551650 Q538960 Q740642 Q196055 Q111354 Q54022 Q1213943 Q26702 Q465269 Q366066 Q132692 Q19973598 Q36450 Q1048333 Q517 Q921075 Q53457 Q1527009 Q130734 Q711845 Q922667 Q1354579 Q395635 Q233224 Q321492 Q18572555 Q365823 Q37085 Q62673 Q971215 Q7343203 Q130834 Q1289992 Q336657 Q1385734 Q12971 Q3351435 Q6861922 Q692291 Q23647555 Q57180 Q170348 Q932200 Q20741624 Q80516 Q2389145 Q968484 Q215086 Q4889906 Q299675 Q704506 Q8597 Q731799 Q23688963 Q1405 Q969770 Q7259727 Q3742116 Q10975505 Q692189 Q127010 Q289149 Q187447 Q25690 Q729743 Q137934 Q329753 Q255809 Q47595
(c(Q178706)|c(Q811430),P88,c(Q502895))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P88
type Q502895
type Q178706
action find_reverse_tuple_counts
relation P88
type Q502895
type Q811430
value 1
[ANSWER]
[[{'concept': 'Q178706'}, {'concept': 'Q811430'}], 'P88', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:Q178706 ) ( ontology:Q811430 ) } . ?i rdf:type ?r } GROUP BY ?g } . FILTER ( ?p <= 1 ) }
Huey Long Metello Vari Pius VI James Pourtales-Gorgier Curzio Malaparte Friedrich Karl von Schönborn Julius Drewe John Johnson Pigello Portinari Sikandar Lodi Philip II of Spain Emperor Daozong of Liao Jean de Sedano Pierre Louis Jean Casimir de Blacas Junius Annius Bassus Cyrus the Great Cosimo de' Medici Cosimo I de' Medici, Grand Duke of Tuscany Ludwig Schneller Alfred Mosselman Charles X of France Krzysztof Wojciechowski Louis XVIII of France Charles III of Spain Francis Willoughby Frederick William I of Prussia Robbie Ross John Banister Siegfried Bing Alof de Wignacourt Shah Jahan William Steinway Sunenphaa Charles de Beauvau, Prince of Beauvau Kunigunde of Bohemia George Howard, 9th Earl of Carlisle Tobias Rustat Leicester Stanhope, 5th Earl of Harrington Nebuchadnezzar II Jan Gildemeester John Petty, 2nd Marquess of Lansdowne Guidobaldo II della Rovere, Duke of Urbino Antoine Le Viste William Thompson Walters John Tayloe III Gustaf Carlberg William I of Württemberg Sixtus IV Romanos IV Diogenes Rodolphe d'Erlanger Bhupinder Singh of Patiala Charles II, Duke of Brunswick Leonidas Deligiorgis Albert Einstein Johan Sederholm Roger de Montgomerie, 1st Earl of Shrewsbury Francesco I d'Este, Duke of Modena Ernst von Stubenrauch Nicolae Crețulescu Thomas Gold Appleton Gheorghe Grigore Cantacuzino Frederick II, Holy Roman Emperor Georges Petit Jacques Bordier Ferdinand Mülhens Louis Philippe I, Duke of Orléans Willy Bleissem Edward Phelips Pierre-Hector Coullié Franz Joseph von Dietrichstein Urban IV Gábor Patachich Alessandro Scaglia Catharine Lorillard Wolfe Francesco I Gonzaga Claude-Marius Vaïsse Alva Belmont Ture Malmgren Wilhelm Jacob Wimpf Abu Yaqub Yusuf Jakob Heller Margaret of Burgundy, Dauphine of France Mariano Guadalupe Vallejo Constantijn Huygens Madame du Barry William IV of the United Kingdom William V, Duke of Bavaria Albert, Prince Consort Sophie de Marbois-Lebrun, Duchess of Plaisance John II of Glymes Anselm Franz, 2nd Prince of Thurn and Taxis Frederick III of Denmark Giorgio Contarini Bernward of Hildesheim George III of Great Britain Scipione Borghese Asdrubale Mattei Maximilian II Emanuel, Elector of Bavaria Joseph II Christoph Franz von Hutten Camillo Borghese, 6th Prince of Sulmona Piero di Cosimo de' Medici Vespasian Bartolommeo Bandinelli Edward VII Étienne Chevalier Seiwa Charles Theodore, Elector of Bavaria George Moore Frederick II of Prussia William I of England Maximilian I, Holy Roman Emperor Ramesses II Giovanni della Casa Charles V André Le Nôtre Peter II, Duke of Brittany Benedek Himfy Girvan Yuddha Bikram Shah Deva John Thynne Pietro Paolo Castellani Mary Curzon, Baroness Curzon of Kedleston Pietro Aldobrandini Girolamo Savonarola Francis Hay, 9th Earl of Erroll Marie de' Medici William Bingham Sir Richard Wallace, 1st Baronet Louis Mantin Edward Woyniłłowicz Clement VI Charles de Rémusat Ferdinand Maria, Elector of Bavaria Giovanni Tornabuoni Ptolemy I Soter Elizabeth Sprague Coolidge Abu Inan Faris Queen Victoria Frederick William III of Prussia Ciriaco Mattei Victor Amadeus II of Sardinia Sergei Diaghilev Johannes Noviforensis Louis XIV of France Paolo Giovio Dittmar Finkler Rawal Jaisal Anatoly Nikolaievich Demidov, 1st Prince of San Donato Henry VIII Claude-François de Montboissier de Canillac de Beaufort Gregorio Correr Alice Claypoole Gwynne Suzanne Curchod Josef Neven DuMont Denis O'Brien Francesco Maria del Monte Sher Shah Suri Carlo Gesualdo Francesco del Giocondo Jonathan Tyers John D. Spreckels Ludovico Sforza Caroline Bonaparte Pieter van Ruijven Frederick Tatham Thomas Percy, 1st Earl of Worcester Thomas Burgh of Gainsborough Gediminas Mihailo Obrenović III Leo X Princess Margaret, Countess of Snowdon Woodbury Langdon Nicholas Girod Charles IV of Spain Abd al-Malik ibn Marwan Giuliano de' Medici Léon Carvalho Ralph de Cromwell, 3rd Baron Cromwell Larz Anderson Halil Şerif Paşa Philip V of Spain Phyllis Lambert Joachim Murat Wandalin Puslovsky Reinhard Keiser Valdemar I of Denmark Nicholas III of Saint Omer Anatole Bartholoni Henry Percy, 5th Earl of Northumberland Walter Buller Meagan Good Ahmed I José Luis Munárriz Francis I of France Louis XIII of France James Beaton Clement of Ohrid Alaungpaya Mona von Bismarck William Borthwick, 1st Lord Borthwick Auguste de Morlhon Charles I of England Ida Rubinstein Francesco Barberini Marcian Katheryn of Berain Clement VII Niccolò Ridolfi Alfons Mauser Lorenzo de' Medici William Hayley Louis XVI of France August Belmont, Jr. Enrico degli Scrovegni Anne of Brittany Louis XV of France Frederick William, Elector of Brandenburg Francisco Franco Maximilian I, Elector of Bavaria Federico da Montefeltro Isabella d'Este Niccolò Machiavelli Henry II of England Tycho Brahe Idia William Hastings, 1st Baron Hastings Taejo of Joseon Alfonso I d'Este, Duke of Ferrara Innocent X Odoardo Farnese Sophia Dorothea of Schleswig-Holstein-Sonderburg-Glücksburg Charles V of France Thierry Le Jeune Henry Le Tonnelier de Breteuil Atalanta Baglioni George Burt Philip IV of Spain Lincoln Kirstein John Ward, 1st Earl of Dudley Franz Joseph I of Austria Augustus II the Strong Thomas Edison Daniele Barbaro Charles XIV John of Sweden William Ward, 1st Earl of Dudley Vincenzo Gonzaga, Duke of Mantua Jakob Meyer zum Hasen Peter de Salis Johann Philipp Franz von Schönborn Herodes Atticus Maurice Aubry Nikolaas Rockox William IV, Duke of Bavaria Wilhelm Girardet Christian Louis de Montmorency-Luxembourg Gabriel García Moreno Ludwig I of Bavaria Louis Philippe I Jean-Baptiste Colbert Eugene Allen Gilmore Quintino Sella Manuel de Godoy, Prince of the Peace Charles I, Duke of Savoy Louis Phélypeaux, marquis de La Vrillière Iseppo da Porto John Pratt Frederick III, Elector of Saxony Taddeo Barberini Giovanni Carandente Suleiman the Magnificent Catherine of Medici Charles Marcotte d'Argenteuil Frederick William II of Prussia Karl August, Grand Duke of Saxe-Weimar-Eisenach Jean-Antoine Chaptal Nicholas V George Frederick, Margrave of Brandenburg-Ansbach Redfield Proctor, Jr. Maria Theresa of Austria Paul Cassirer Cees van der Leeuw Edmund Dummer Louis-Joseph Papineau Ulla Schmidt Borso d'Este, Duke of Ferrara Filippo di Piero Strozzi Johann Schweikhard von Kronberg Uda Diocletian Wilfrid Laurier Michael Tilson Thomas Tiago Gregório Homem da Costa Noronha Ivan III of Russia Emperor Saga Charles Saatchi Leonello d'Este, Marquis of Ferrara Christian VIII of Denmark Jean Le Maingre Margaret of Foix Jacques Seligmann David Garrick Antoine de Paule Marjorie Merriweather Post Claude-Philibert Barthelot, comte de Rambuteau Samuel Morton Peto Antonius Triest Prince Ferdinand Philippe, Duke of Orléans John Campbell, 1st Baron Cawdor Jean-François Cail Diego Gelmírez Giovanni Michiel Gerald Grosvenor, 6th Duke of Westminster Louis Raphaël Cahen d'Anvers Victor Emmanuel II of Savoy Theodosius II Aleksander Michał Sapieha Guidobaldo da Montefeltro Rana Bahadur Shah William Duff, 1st Earl Fife Johan Frederik Classen William Imrie Helen Vincent, Viscountess D'Abernon Jacob Trip Bartolomeo Panciatichi Henry the Lion Edward Francis Hutton Konstantin von Kaufman Ralph von Merle Nicolas de Launay Paul II Pieter van Os James Mackay, 1st Earl of Inchcape Sir Charles Asgill, 1st Baronet Henry Bathurst, 2nd Earl Bathurst Herbert W. Liaunig Frederick III, Prince of Salm-Kyrburg Sophie Amalie of Brunswick-Lüneburg Robert John Thornton John, Duke of Berry Christian IV of Denmark Mahmud Begada Nicolas Rolin Steve Jobs Ferenc Esterházy Camillo Francesco Maria Pamphili Antoine-Adolphe Dupuch Catherine of Brandenburg-Küstrin Su Shunqin John Linnell Sante Bentivoglio Philip the Bold Richard Clough Elizabeth Ilive Anna van Ewsum William Cecil, 1st Baron Burghley Jacopo Pesaro Marie-Alain Couturier Charles III Philip, Elector Palatine Piero Soderini Robert Walpole Alberto d'Este, Marquis of Ferrara Tommaso dei Cavalieri Nicolas de Neufville de Villeroy Edward James August Julius Albert Borsig Stanisław Leszczyński Karl Heinrich von Hornstein Cardinal Richelieu Uluç Ali Reis John Flaxman Gregory XV Gubert Abraham von Salis Catherine II of Russia Cassiano dal Pozzo Napoleon René de Birague Casimir III the Great Albert von Bardewik Nicholas I of Russia Marcantonio Barbaro James Mayer de Rothschild Kazimierz Leon Sapieha Agostino Chigi Gemmei John Maurice, Prince of Nassau-Siegen Charles Ireland Adolphe Stoclet Solomon Klaus von Dohnanyi Catulle Mendès Robert Cromek Francis I of Austria Chavundaraya Alexander Hamilton, 10th Duke of Hamilton Francesco Pisani Leopold I Olivier Voutier Nicholas II of Saint Omer Charles I, Duke of Bourbon Thomas Butts Frederick William IV of Prussia Paul Wittgenstein Federico II Gonzaga, Duke of Mantua Vincenzo Natoli Julius II Bogdan Petriceicu Hasdeu Mikołaj Krzysztof "the Orphan" Radziwiłł Clemens August of Bavaria Benno C. Schmidt, Jr. Francesco I de' Medici, Grand Duke of Tuscany Michał Kazimierz Ogiński Akbar Giovanni Ricci Joseph Thomas Augustus Ludovico III Gonzaga, Marquis of Mantua Pulteney Malcolm Felice Brancacci Li Yuanying Guillaume de Menthonay Sir Thomas Metcalfe, 4th Baronet Étienne François, duc de Choiseul Pablo Escobar John Russell, 6th Duke of Bedford Georges d'Amboise Abbot Suger Daigo Roxelana Alfonso X of Castile
429
action count
action atmost
action union
action find_reverse_tuple_counts
relation commissioned by
type common name
type institution
action find_reverse_tuple_counts
relation commissioned by
type common name
type construction
value 1
[[{'concept': 'institution'}, {'concept': 'construction'}], 'commissioned by', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?l ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?i ) AS ?p ) WHERE { VALUES ( ?r ) { ( ontology:institution ) ( ontology:construction ) } . ?i rdf:type ?r } GROUP BY ?g } . FILTER ( ?p <= 1 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with max number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?v ) WHERE { ?l property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } } . FILTER ( ?o = ?i ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?o ) WHERE { ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?n property:P530 ?r } GROUP BY ?n } }
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?v ) WHERE { ?l property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . FILTER ( ?o = ?i ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?o ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?r } GROUP BY ?n } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(c(Q15617994),P530,Q953)
action argmax
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWER] have diplomatic relationships with max number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?v ) WHERE { ?l property:P530 ?s . ?s rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15617994 } GROUP BY ?l } } . FILTER ( ?o = ?i ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?o ) WHERE { ?n rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?n property:P530 ?r } GROUP BY ?n } }
Italy
Italy have diplomatic relationships with max number of administrative territories
Italy
action argmax
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?i ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?v ) WHERE { ?l property:diplomatic_relation ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } } . FILTER ( ?o = ?i ) . { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?o ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n property:diplomatic_relation ?r } GROUP BY ?n } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P122
Q4164871 Q22676587 Q15617994
USER
Which administrative territories have around 1 positions or monarchic systems as the form of government ?
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
value 1
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:Q4164871 ) ( ontology:Q22676587 ) } . ?o rdf:type ?y } GROUP BY ?h } . FILTER ( ?q = 1 ) }
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:position ) ( ontology:monarchic_system ) } . ?o rdf:type ?y } GROUP BY ?h } . FILTER ( ?q = 1 ) }
[]
position monarchic system designation for an administrative territorial entity
Q17 Q833 Q878
SYSTEM
Japan, Malaysia, United Arab Emirates
Q833 Q313175 Q17 Q696651 Q878
(c(Q15617994),P122,c(Q4164871)|c(Q22676587))
action approx
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q22676587
value 1
[ANSWERS] have around 1 positions or monarchic systems as the form of government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q22676587'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:Q4164871 ) ( ontology:Q22676587 ) } . ?o rdf:type ?y } GROUP BY ?h } . FILTER ( ?q = 1 ) }
Malaysia Saxe-Lauenburg Japan Saxe-Eisenach United Arab Emirates
Japan, Malaysia and United Arab Emirates have around 1 positions or monarchic systems as the form of government
Japan Malaysia United Arab Emirates
action approx
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type monarchic system
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'monarchic system'}]]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?o ) AS ?q ) WHERE { VALUES ( ?y ) { ( ontology:position ) ( ontology:monarchic_system ) } . ?o rdf:type ?y } GROUP BY ?h } . FILTER ( ?q = 1 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q230 Q801
P530
Q15617994
USER
Which administrative territories holds diplomatic relationship with Israel and Georgia ?
AND((Q801,P530,c(Q15617994)), (Q230,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q801
relation P530
action find
entity Q230
relation P530
type Q15617994
{'AND': [['Q801', 'P530', {'concept': 'Q15617994'}], ['Q230', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q801 property:P530 ?x . resource:Q230 property:P530 ?x }
Georgia Israel
action filter_type
action intersection
action find
entity Israel
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Israel property:diplomatic_relation ?x . resource:Georgia property:diplomatic_relation ?x }
[]
designation for an administrative territorial entity
Q155 Q38 Q30 Q668 Q794 Q79 Q145 Q822 Q884 Q805
SYSTEM
Some of them are Brazil, Italy, United States of America, India, Iran, Egypt, United Kingdom, Lebanon, South Korea, Yemen
Q805 Q884 Q810 Q43 Q145 Q155 Q794 Q822 Q17 Q30 Q79 Q668 Q38
AND((Q801,P530,c(Q15617994)), (Q230,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q801
relation P530
action find
entity Q230
relation P530
type Q15617994
[ANSWERS] hold diplomatic relationship with Israel and Georgia
{'AND': [['Q801', 'P530', {'concept': 'Q15617994'}], ['Q230', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q15617994 . resource:Q801 property:P530 ?x . resource:Q230 property:P530 ?x }
Yemen South Korea Jordan Turkey United Kingdom Brazil Iran Lebanon Japan United States of America Egypt India Italy
Brazil, Italy, United States of America, India, Iran, Egypt, United Kingdom, Lebanon, South Korea and Yemen hold diplomatic relationship with Israel and Georgia
Brazil Italy United States of America India Iran Egypt United Kingdom Lebanon South Korea Yemen
action filter_type
action intersection
action find
entity Israel
relation diplomatic relation
action find
entity Georgia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Israel', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Georgia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Israel property:diplomatic_relation ?x . resource:Georgia property:diplomatic_relation ?x }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q230
P530
Q56061 Q183366
USER
How many administrative territories or territories have a diplomatic relationship with Georgia ?
(Q230,P530,c(Q56061)) (Q230,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q230
relation P530
type Q56061
action filter_type
action find
entity Q230
relation P530
type Q183366
['Q230', 'P530', {'concept': 'Q56061'}] ['Q230', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q183366 ) ( ontology:Q56061 ) } }
Georgia
action count
action union
action filter_type
action find
entity Georgia
relation diplomatic relation
type administrative territorial entity
action filter_type
action find
entity Georgia
relation diplomatic relation
type territory
['Georgia', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:territory ) ( ontology:administrative_territorial_entity ) } }
[]
administrative territorial entity territory
SYSTEM
2
Q237 Q846
(Q230,P530,c(Q56061)) (Q230,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q230
relation P530
type Q56061
action filter_type
action find
entity Q230
relation P530
type Q183366
[ANSWER]
['Q230', 'P530', {'concept': 'Q56061'}] ['Q230', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:Q183366 ) ( ontology:Q56061 ) } }
Vatican City Qatar
2
action count
action union
action filter_type
action find
entity Georgia
relation diplomatic relation
type administrative territorial entity
action filter_type
action find
entity Georgia
relation diplomatic relation
type territory
['Georgia', 'diplomatic relation', {'concept': 'administrative territorial entity'}] ['Georgia', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?k ) WHERE { ?e rdf:type ?c . VALUES ( ?c ) { ( ontology:territory ) ( ontology:administrative_territorial_entity ) } }
[]