Simple Question (Direct)
Simple Question
Q2601
P20
Q56061
USER
Where did the expiration of Manfred Gerlach occur ?
(Q2601,P20,c(Q56061))
action filter_type
action find
entity Q2601
relation P20
type Q56061
['Q2601', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2601 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Manfred Gerlach
action filter_type
action find
entity Manfred Gerlach
relation place of death
type administrative territorial entity
['Manfred Gerlach', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Manfred_Gerlach property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64
SYSTEM
Berlin
Q64
(Q2601,P20,c(Q56061))
action filter_type
action find
entity Q2601
relation P20
type Q56061
The expiration of Manfred Gerlach occurred in [ANSWER]
['Q2601', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2601 property:P20 ?h . ?h rdf:type ontology:Q56061 }
Berlin
The expiration of Manfred Gerlach occurred in Berlin
Berlin
action filter_type
action find
entity Manfred Gerlach
relation place of death
type administrative territorial entity
['Manfred Gerlach', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Manfred_Gerlach property:place_of_death ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2601
P35
Q7275
USER
Which state is headed by Manfred Gerlach ?
(c(Q7275),P35,Q2601)
action filter_type
action find_reverse
entity Q2601
relation P35
type Q7275
[{'concept': 'Q7275'}, 'P35', 'Q2601']
SELECT DISTINCT ?s WHERE { ?s property:P35 resource:Q2601 . ?s rdf:type ontology:Q7275 }
Manfred Gerlach
action filter_type
action find_reverse
entity Manfred Gerlach
relation head of state
type state
[{'concept': 'state'}, 'head of state', 'Manfred Gerlach']
SELECT DISTINCT ?s WHERE { ?s property:head_of_state resource:Manfred_Gerlach . ?s rdf:type ontology:state }
[]
state
Q16957
SYSTEM
East Germany
Q16957
(c(Q7275),P35,Q2601)
action filter_type
action find_reverse
entity Q2601
relation P35
type Q7275
Germany [ANSWER] is headed by Manfred Gerlach
[{'concept': 'Q7275'}, 'P35', 'Q2601']
SELECT DISTINCT ?s WHERE { ?s property:P35 resource:Q2601 . ?s rdf:type ontology:Q7275 }
East Germany
Germany East Germany is headed by Manfred Gerlach
East Germany
action filter_type
action find_reverse
entity Manfred Gerlach
relation head of state
type state
[{'concept': 'state'}, 'head of state', 'Manfred Gerlach']
SELECT DISTINCT ?s WHERE { ?s property:head_of_state resource:Manfred_Gerlach . ?s rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16957
P463
Q43229
USER
What organizations were that state a member of ?
(Q16957,P463,c(Q43229))
action filter_type
action find
entity Q16957
relation P463
type Q43229
['Q16957', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?f WHERE { resource:Q16957 property:P463 ?f . ?f rdf:type ontology:Q43229 }
East Germany
action filter_type
action find
entity East Germany
relation member of
type organization
['East Germany', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?f WHERE { resource:East_Germany property:member_of ?f . ?f rdf:type ontology:organization }
[]
organization
Q41644 Q191582
SYSTEM
Warsaw Pact, Comecon
Q41644 Q191582
(Q16957,P463,c(Q43229))
action filter_type
action find
entity Q16957
relation P463
type Q43229
That state were the [ANSWERS]
['Q16957', 'P463', {'concept': 'Q43229'}]
SELECT DISTINCT ?f WHERE { resource:Q16957 property:P463 ?f . ?f rdf:type ontology:Q43229 }
Warsaw Pact Comecon
That state were the Warsaw Pact and Comecon
Warsaw Pact Comecon
action filter_type
action find
entity East Germany
relation member of
type organization
['East Germany', 'member of', {'concept': 'organization'}]
SELECT DISTINCT ?f WHERE { resource:East_Germany property:member_of ?f . ?f rdf:type ontology:organization }
[]
Clarification
Simple Question|Single Entity|Indirect
Q191582
P159
Q56061
USER
Where is the head office for that organization located ?
(Q191582,P159,c(Q56061))
action filter_type
action find
entity Q191582
relation P159
type Q56061
['Q191582', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q191582 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Comecon
action filter_type
action find
entity Comecon
relation headquarters location
type administrative territorial entity
['Comecon', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Comecon property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q191582
SYSTEM
Did you mean Comecon ?
Q41644 Q191582
(Q41644,P159,c(Q56061)) (Q191582,P159,c(Q56061))
[ANSWER]
['Q41644', 'P159', {'concept': 'Q56061'}] ['Q191582', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q191582 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Warsaw Pact Comecon
Did you mean Comecon ?
Comecon
['Warsaw Pact', 'headquarters location', {'concept': 'administrative territorial entity'}] ['Comecon', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Comecon property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q191582,P159,c(Q56061))
['Q191582', 'P159', {'concept': 'Q56061'}]
['Comecon', 'headquarters location', {'concept': 'administrative territorial entity'}]
[]
Q649
SYSTEM
Moscow
Q649
(Q191582,P159,c(Q56061))
action filter_type
action find
entity Q191582
relation P159
type Q56061
The head office for that organization is located in [ANSWER]
['Q191582', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q191582 property:P159 ?n . ?n rdf:type ontology:Q56061 }
Moscow
The head office for that organization is located in Moscow
Moscow
action filter_type
action find
entity Comecon
relation headquarters location
type administrative territorial entity
['Comecon', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Comecon property:headquarters_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P1001
Q17335294
USER
Which coat of arms applies to jurisdiction over that administrative territory ?
(c(Q17335294),P1001,Q649)
action filter_type
action find_reverse
entity Q649
relation P1001
type Q17335294
[{'concept': 'Q17335294'}, 'P1001', 'Q649']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q17335294 . ?w property:P1001 resource:Q649 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation applies to jurisdiction
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Moscow']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:flag_or_coat_of_arms . ?w property:applies_to_jurisdiction resource:Moscow }
[]
flag or coat of arms
Q1983397
SYSTEM
Flag of Moscow
Q1983397
(c(Q17335294),P1001,Q649)
action filter_type
action find_reverse
entity Q649
relation P1001
type Q17335294
The [ANSWER] applies to jurisdiction over that administrative territory
[{'concept': 'Q17335294'}, 'P1001', 'Q649']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q17335294 . ?w property:P1001 resource:Q649 }
Flag of Moscow
The Flag of Moscow applies to jurisdiction over that administrative territory
Flag of Moscow
action filter_type
action find_reverse
entity Moscow
relation applies to jurisdiction
type flag or coat of arms
[{'concept': 'flag or coat of arms'}, 'applies to jurisdiction', 'Moscow']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:flag_or_coat_of_arms . ?w property:applies_to_jurisdiction resource:Moscow }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q963
P237
Q17335294 Q15617994
USER
Which administrative territories have approximately the same number of coats of arms as their ensign as Botswana ?
(c(Q15617994),P237,c(Q17335294))
action approx
action find_tuple_counts
relation P237
type Q15617994
type Q17335294
action count
action filter_type
action find
entity Q963
relation P237
type Q15617994
[{'concept': 'Q15617994'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?z property:P237 ?q . ?z rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q17335294 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { resource:Q963 property:P237 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?c ) }
Botswana
action approx
action find_tuple_counts
relation coat of arms
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Botswana
relation coat of arms
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?z property:coat_of_arms ?q . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { resource:Botswana property:coat_of_arms ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?c ) }
[]
flag or coat of arms designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q804 Q801 Q811 Q419 Q684030 Q163012 Q414 Q142 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q511365 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q1066728 Q4628 Q796 Q794 Q954 Q884 Q958 Q881 Q739 Q790 Q826 Q822 Q241 Q817 Q244 Q546335 Q3471823 Q813 Q33 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q29 Q1049 Q1027 Q783 Q1020 Q189 Q1028 Q736 Q786 Q331886 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q1050 Q902 Q1036 Q1037 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q242 Q550719 Q15982 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q32 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q129003 Q79 Q77 Q858 Q878 Q810 Q770 Q1011 Q945 Q678 Q3105 Q1039 Q672 Q298 Q863 Q822360 Q869 Q953
(c(Q15617994),P237,c(Q17335294))
action approx
action find_tuple_counts
relation P237
type Q15617994
type Q17335294
action count
action filter_type
action find
entity Q963
relation P237
type Q15617994
[ANSWERS] have approximately the same number of coats of arms as their ensign as Botswana
[{'concept': 'Q15617994'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?z property:P237 ?q . ?z rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q17335294 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { resource:Q963 property:P237 ?k . ?k rdf:type ontology:Q15617994 } } . FILTER ( ?y = ?c ) }
Panama Israel Nicaragua Peru Principality of Serbia Pankow Argentina France Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Arvika Municipality Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Babinavichy Faroe Islands Iraq Iran Zimbabwe South Korea South Sudan Vietnam Colombia Haiti Maldives Lebanon Cuba Kuwait Barbados Langenaltheim Sandelingen Ambacht Kyrgyzstan Finland Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary Spain Sudan Mauritius Honduras Malawi Iceland Morocco Ecuador Dominican Republic Absberg Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Bangladesh Uganda Rwanda Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Belize Alesheim Wernigerode Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Luxembourg Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan French Southern and Antarctic Lands Egypt Uruguay Syria United Arab Emirates Jordan Friesland Cape Verde Togo Tonga Vosges Sao Tomé and Príncipe Tuvalu Chile Tajikistan Varacevičy Thailand Zambia
Italy, Brazil and Georgia have approximately the same number of coats of arms as their ensign as Botswana
Italy Brazil Georgia
action approx
action find_tuple_counts
relation coat of arms
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Botswana
relation coat of arms
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?y ) WHERE { ?z property:coat_of_arms ?q . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:flag_or_coat_of_arms } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { resource:Botswana property:coat_of_arms ?k . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?y = ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q41
P237
Q17335294 Q15617994
USER
And also tell me about Greece?
(c(Q15617994),P237,c(Q17335294))
action approx
action find_tuple_counts
relation P237
type Q15617994
type Q17335294
action count
action filter_type
action find
entity Q41
relation P237
type Q15617994
[{'concept': 'Q15617994'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q41 property:P237 ?l } } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?a ) WHERE { ?u property:P237 ?x . ?x rdf:type ontology:Q17335294 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
Greece
action approx
action find_tuple_counts
relation coat of arms
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Greece
relation coat of arms
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Greece property:coat_of_arms ?l } } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?a ) WHERE { ?u property:coat_of_arms ?x . ?x rdf:type ontology:flag_or_coat_of_arms . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
flag or coat of arms designation for an administrative territorial entity
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q804 Q801 Q811 Q419 Q684030 Q163012 Q414 Q142 Q55 Q145 Q262 Q148 Q800 Q784 Q265 Q37 Q511365 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q1066728 Q4628 Q796 Q794 Q954 Q884 Q958 Q881 Q739 Q790 Q826 Q822 Q241 Q817 Q244 Q546335 Q3471823 Q813 Q33 Q31 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1042 Q1041 Q27 Q28 Q29 Q1049 Q1027 Q783 Q1020 Q189 Q1028 Q736 Q786 Q331886 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q1050 Q902 Q1036 Q1037 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q242 Q550719 Q15982 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q32 Q683 Q34020 Q686 Q836 Q760 Q574 Q874 Q129003 Q79 Q77 Q858 Q878 Q810 Q770 Q1011 Q945 Q678 Q3105 Q1039 Q672 Q298 Q863 Q822360 Q869 Q953
(c(Q15617994),P237,c(Q17335294))
action approx
action find_tuple_counts
relation P237
type Q15617994
type Q17335294
action count
action filter_type
action find
entity Q41
relation P237
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ontology:Q15617994 . resource:Q41 property:P237 ?l } } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?a ) WHERE { ?u property:P237 ?x . ?x rdf:type ontology:Q17335294 . ?u rdf:type ontology:Q15617994 } GROUP BY ?u } }
Panama Israel Nicaragua Peru Principality of Serbia Pankow Argentina France Netherlands United Kingdom Algeria People's Republic of China Costa Rica Dominica Uzbekistan Lithuania Arvika Municipality Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Babinavichy Faroe Islands Iraq Iran Zimbabwe South Korea South Sudan Vietnam Colombia Haiti Maldives Lebanon Cuba Kuwait Barbados Langenaltheim Sandelingen Ambacht Kyrgyzstan Finland Belgium Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Seychelles Senegal Ireland Hungary Spain Sudan Mauritius Honduras Malawi Iceland Morocco Ecuador Dominican Republic Absberg Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Swaziland Bangladesh Uganda Rwanda Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Belize Alesheim Wernigerode Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Luxembourg Samoa Niue Vanuatu Myanmar Saint Lucia East Timor Turkmenistan French Southern and Antarctic Lands Egypt Uruguay Syria United Arab Emirates Jordan Friesland Cape Verde Togo Tonga Vosges Sao Tomé and Príncipe Tuvalu Chile Tajikistan Varacevičy Thailand Zambia
Italy Brazil Georgia
action approx
action find_tuple_counts
relation coat of arms
type designation for an administrative territorial entity
type flag or coat of arms
action count
action filter_type
action find
entity Greece
relation coat of arms
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?k ) WHERE { ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Greece property:coat_of_arms ?l } } . FILTER ( ?a = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?a ) WHERE { ?u property:coat_of_arms ?x . ?x rdf:type ontology:flag_or_coat_of_arms . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4194028
P530
Q1048835
USER
Are Zorokiv known to have diplomatic connections with those administrative territories ?
(Q4194028,P530,Q38) (Q4194028,P530,Q155) (Q4194028,P530,Q230)
action is_in
entity prev_answer
action find
entity Q4194028
relation P530
['Q4194028', 'P530', 'Q38'] ['Q4194028', 'P530', 'Q155'] ['Q4194028', 'P530', 'Q230']
ASK WHERE { VALUES ( ?c ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q811 ) } . resource:Q4194028 property:P530 ?c }
Zorokiv
action is_in
entity prev_answer
action find
entity Zorokiv
relation diplomatic relation
['Zorokiv', 'diplomatic relation', 'Italy'] ['Zorokiv', 'diplomatic relation', 'Brazil'] ['Zorokiv', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?c ) { ( resource:Panama ) ( resource:Israel ) ( resource:Nicaragua ) } . resource:Zorokiv property:diplomatic_relation ?c }
[]
political territorial entity
SYSTEM
NO
(Q4194028,P530,Q38) (Q4194028,P530,Q155) (Q4194028,P530,Q230)
action is_in
entity prev_answer
action find
entity Q4194028
relation P530
[ANSWER]
['Q4194028', 'P530', 'Q38'] ['Q4194028', 'P530', 'Q155'] ['Q4194028', 'P530', 'Q230']
ASK WHERE { VALUES ( ?c ) { ( resource:Q804 ) ( resource:Q801 ) ( resource:Q811 ) } . resource:Q4194028 property:P530 ?c }
No
action is_in
entity prev_answer
action find
entity Zorokiv
relation diplomatic relation
['Zorokiv', 'diplomatic relation', 'Italy'] ['Zorokiv', 'diplomatic relation', 'Brazil'] ['Zorokiv', 'diplomatic relation', 'Georgia']
ASK WHERE { VALUES ( ?c ) { ( resource:Panama ) ( resource:Israel ) ( resource:Nicaragua ) } . resource:Zorokiv property:diplomatic_relation ?c }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1983397 Q159
P17
Q15617994
USER
Is Flag of Moscow located in Russia ?
(Q1983397,P17,Q159)
action is_in
entity Q159
action find
entity Q1983397
relation P17
['Q1983397', 'P17', 'Q159']
ASK WHERE { resource:Q1983397 property:P17 resource:Q159 }
Flag of Moscow Russia
action is_in
entity Russia
action find
entity Flag of Moscow
relation country
['Flag of Moscow', 'country', 'Russia']
ASK WHERE { resource:Flag_of_Moscow property:country resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q1983397,P17,Q159)
action is_in
entity Q159
action find
entity Q1983397
relation P17
[ANSWER]
['Q1983397', 'P17', 'Q159']
ASK WHERE { resource:Q1983397 property:P17 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Flag of Moscow
relation country
['Flag of Moscow', 'country', 'Russia']
ASK WHERE { resource:Flag_of_Moscow property:country resource:Russia }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories holds diplomatic relationship with atmost 87 administrative territories ?
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 87
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?u property:P530 ?i . ?u rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?v <= 87 ) }
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 87
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?u property:diplomatic_relation ?i . ?u rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?v <= 87 ) }
[]
political territorial entity designation for an administrative territorial entity
Q35 Q16 Q40
SYSTEM
Denmark, Canada, Austria
Q1000 Q40 Q781 Q778 Q769 Q685 Q35 Q691 Q16 Q664 Q766
(c(Q15617994),P530,c(Q1048835))
action atmost
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 87
[ANSWERS] hold diplomatic relationship with atmost 87 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?u property:P530 ?i . ?u rdf:type ontology:Q1048835 . ?i rdf:type ontology:Q15617994 } GROUP BY ?u } . FILTER ( ?v <= 87 ) }
Gabon Austria Antigua and Barbuda The Bahamas Grenada Solomon Islands Denmark Papua New Guinea Canada New Zealand Jamaica
Denmark, Canada and Austria hold diplomatic relationship with atmost 87 administrative territories
Denmark Canada Austria
action atmost
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 87
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?i ) AS ?v ) WHERE { ?u property:diplomatic_relation ?i . ?u rdf:type ontology:political_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . FILTER ( ?v <= 87 ) }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35 Q16 Q40
P47
Q1048835
USER
Which political territories are adjacent to Denmark, Canada and Austria ?
(Q35,P47,c(Q1048835)) (Q16,P47,c(Q1048835)) (Q40,P47,c(Q1048835))
action union
action filter_type
action find
entity Q35
relation P47
type Q1048835
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q40
relation P47
type Q1048835
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Q16 ) ( resource:Q35 ) } . ?o property:P47 ?u }
Denmark Canada Austria
action union
action filter_type
action find
entity Denmark
relation shares border with
type political territorial entity
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Austria
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Canada ) ( resource:Denmark ) } . ?o property:shares_border_with ?u }
[]
political territorial entity
Q183 Q183 Q34617
SYSTEM
Saint Pierre and Miquelon for 3rd, Germany for 1st, 2nd
Q183 Q4969463 Q38610 Q34617 Q183
(Q35,P47,c(Q1048835)) (Q16,P47,c(Q1048835)) (Q40,P47,c(Q1048835))
action union
action filter_type
action find
entity Q35
relation P47
type Q1048835
action filter_type
action find
entity Q16
relation P47
type Q1048835
action filter_type
action find
entity Q40
relation P47
type Q1048835
[ANSWERS]
['Q35', 'P47', {'concept': 'Q1048835'}] ['Q16', 'P47', {'concept': 'Q1048835'}] ['Q40', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Q16 ) ( resource:Q35 ) } . ?o property:P47 ?u }
Germany British Arctic Territories Dominion of Newfoundland Saint Pierre and Miquelon Germany
Germany, Germany and Saint Pierre and Miquelon are adjacent to Denmark, Canada and Austria
Germany Germany Saint Pierre and Miquelon
action union
action filter_type
action find
entity Denmark
relation shares border with
type political territorial entity
action filter_type
action find
entity Canada
relation shares border with
type political territorial entity
action filter_type
action find
entity Austria
relation shares border with
type political territorial entity
['Denmark', 'shares border with', {'concept': 'political territorial entity'}] ['Canada', 'shares border with', {'concept': 'political territorial entity'}] ['Austria', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?o ) { ( resource:Canada ) ( resource:Denmark ) } . ?o property:shares_border_with ?u }
[]