Simple Question (Direct)
Simple Question
Q5362566
P19
Q56061
USER
Which administrative territory was Elizabeth Charles born in ?
(Q5362566,P19,c(Q56061))
action filter_type
action find
entity Q5362566
relation P19
type Q56061
['Q5362566', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5362566 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Elizabeth Charles
action filter_type
action find
entity Elizabeth Charles
relation place of birth
type administrative territorial entity
['Elizabeth Charles', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Elizabeth_Charles property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q668262
SYSTEM
Tavistock
Q668262
(Q5362566,P19,c(Q56061))
action filter_type
action find
entity Q5362566
relation P19
type Q56061
Elizabeth Charles was born in [ANSWER]
['Q5362566', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5362566 property:P19 ?b . ?b rdf:type ontology:Q56061 }
Tavistock
Elizabeth Charles was born in Tavistock
Tavistock
action filter_type
action find
entity Elizabeth Charles
relation place of birth
type administrative territorial entity
['Elizabeth Charles', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Elizabeth_Charles property:place_of_birth ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5362566
P921
Q191067
USER
Which article has that person as its principal topic ?
(c(Q191067),P921,Q668262)
action filter_type
action find_reverse
entity Q5362566
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q668262']
SELECT DISTINCT ?c WHERE { ?c property:P921 resource:Q5362566 . ?c rdf:type ontology:Q191067 }
Elizabeth Charles
action filter_type
action find_reverse
entity Elizabeth Charles
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Tavistock']
SELECT DISTINCT ?c WHERE { ?c property:main_subject resource:Elizabeth_Charles . ?c rdf:type ontology:article }
[]
article
Q19031130
SYSTEM
Charles, Elizabeth (DNB01)
Q19031130
(c(Q191067),P921,Q668262)
action filter_type
action find_reverse
entity Q5362566
relation P921
type Q191067
[ANSWER] has that person as its principal topic
[{'concept': 'Q191067'}, 'P921', 'Q668262']
SELECT DISTINCT ?c WHERE { ?c property:P921 resource:Q5362566 . ?c rdf:type ontology:Q191067 }
Charles, Elizabeth (DNB01)
Charles, Elizabeth (DNB01) has that person as its principal topic
Charles, Elizabeth (DNB01)
action filter_type
action find_reverse
entity Elizabeth Charles
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Tavistock']
SELECT DISTINCT ?c WHERE { ?c property:main_subject resource:Elizabeth_Charles . ?c rdf:type ontology:article }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668262
P17
Q15617994
USER
Which administrative territory is Tavistock located in ?
(Q668262,P17,c(Q15617994))
action filter_type
action find
entity Q668262
relation P17
type Q15617994
['Q668262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q668262 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
Tavistock
action filter_type
action find
entity Tavistock
relation country
type designation for an administrative territorial entity
['Tavistock', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tavistock property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q668262,P17,c(Q15617994))
action filter_type
action find
entity Q668262
relation P17
type Q15617994
Tavistock is located in [ANSWER]
['Q668262', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { resource:Q668262 property:P17 ?p . ?p rdf:type ontology:Q15617994 }
United Kingdom
Tavistock is located in United Kingdom
United Kingdom
action filter_type
action find
entity Tavistock
relation country
type designation for an administrative territorial entity
['Tavistock', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Tavistock property:country ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with around 29 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 29
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?c ) WHERE { ?x rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?x property:P530 ?w } GROUP BY ?x } . FILTER ( ?c = 29 ) }
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?c ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?w } GROUP BY ?x } . FILTER ( ?c = 29 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
2
Q159 Q30
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 29
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?c ) WHERE { ?x rdf:type ontology:Q15617994 . ?w rdf:type ontology:Q15617994 . ?x property:P530 ?w } GROUP BY ?x } . FILTER ( ?c = 29 ) }
Russia United States of America
2
action count
action approx
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 29
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?y ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?w ) AS ?c ) WHERE { ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?w rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x property:diplomatic_relation ?w } GROUP BY ?x } . FILTER ( ?c = 29 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q398
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with approximately the same number of administrative territories as Bahrain ?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q398 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?i ) }
Bahrain
action approx
action find_reverse_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 Bahrain
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Bahrain property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?i ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 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 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q398
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with approximately the same number of administrative territories as Bahrain
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P530 ?t . ?t rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Q398 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?n = ?i ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain 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 Central African Republic Switzerland Colombia 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 Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia, Netherlands and Poland have diplomatic relations with approximately the same number of administrative territories as Bahrain
Georgia Netherlands Poland
action approx
action find_reverse_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 Bahrain
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:diplomatic_relation ?t . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?i ) WHERE { resource:Bahrain property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?n = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q217
P530
Q15617994 Q15617994
USER
And also tell me about Republic of Moldova?
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q217
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { resource:Q217 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?t ) }
Republic of Moldova
action approx
action find_reverse_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 Republic of Moldova
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { resource:Republic_of_Moldova property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?t ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q230 Q55 Q36
SYSTEM
Georgia, Netherlands, Poland
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 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 Q929 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 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 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q217
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:P530 ?x . ?x rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { resource:Q217 property:P530 ?u . ?u rdf:type ontology:Q15617994 } } . FILTER ( ?g = ?t ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal Indonesia Armenia Bahrain 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 Central African Republic Switzerland Colombia 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 Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Ecuador 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 Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Togo Tonga Spain New Caledonia Thailand Zambia
Georgia Netherlands Poland
action approx
action find_reverse_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 Republic of Moldova
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 ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?k ) AS ?g ) WHERE { ?k property:diplomatic_relation ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?x } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?t ) WHERE { resource:Republic_of_Moldova property:diplomatic_relation ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?g = ?t ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q57744
P530
Q15617994
USER
Are Deutschneudorf known to have diplomatic connections with those ones ?
(Q57744,P530,Q230) (Q57744,P530,Q55) (Q57744,P530,Q36)
action is_in
entity prev_answer
action find
entity Q57744
relation P530
['Q57744', 'P530', 'Q230'] ['Q57744', 'P530', 'Q55'] ['Q57744', 'P530', 'Q36']
ASK WHERE { resource:Q57744 property:P530 ?o . VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } }
Deutschneudorf
action is_in
entity prev_answer
action find
entity Deutschneudorf
relation diplomatic relation
['Deutschneudorf', 'diplomatic relation', 'Georgia'] ['Deutschneudorf', 'diplomatic relation', 'Netherlands'] ['Deutschneudorf', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Deutschneudorf property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q57744,P530,Q230) (Q57744,P530,Q55) (Q57744,P530,Q36)
action is_in
entity prev_answer
action find
entity Q57744
relation P530
[ANSWER]
['Q57744', 'P530', 'Q230'] ['Q57744', 'P530', 'Q55'] ['Q57744', 'P530', 'Q36']
ASK WHERE { resource:Q57744 property:P530 ?o . VALUES ( ?o ) { ( resource:Q702 ) ( resource:Q804 ) ( resource:Q800 ) } }
No
action is_in
entity prev_answer
action find
entity Deutschneudorf
relation diplomatic relation
['Deutschneudorf', 'diplomatic relation', 'Georgia'] ['Deutschneudorf', 'diplomatic relation', 'Netherlands'] ['Deutschneudorf', 'diplomatic relation', 'Poland']
ASK WHERE { resource:Deutschneudorf property:diplomatic_relation ?o . VALUES ( ?o ) { ( resource:Federated_States_of_Micronesia ) ( resource:Panama ) ( resource:Costa_Rica ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q36
P194
Q1752346
USER
Which assembly governs Poland ?
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q36 property:P194 ?l . ?l rdf:type ontology:Q1752346 }
Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:Poland property:legislative_body ?l . ?l rdf:type ontology:assembly }
[]
assembly
Q2102558
SYSTEM
Parliament of Poland
Q2102558
(Q36,P194,c(Q1752346))
action filter_type
action find
entity Q36
relation P194
type Q1752346
The [ANSWER] governs Poland
['Q36', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?l WHERE { resource:Q36 property:P194 ?l . ?l rdf:type ontology:Q1752346 }
Parliament of Poland
The Parliament of Poland governs Poland
Parliament of Poland
action filter_type
action find
entity Poland
relation legislative body
type assembly
['Poland', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?l WHERE { resource:Poland property:legislative_body ?l . ?l rdf:type ontology:assembly }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q869
Q1752346
USER
And what about Thailand?
(Q869,P194,c(Q1752346))
action filter_type
action find
entity Q869
relation P194
type Q1752346
['Q869', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q869 property:P194 ?r . ?r rdf:type ontology:Q1752346 }
Thailand
action filter_type
action find
entity Thailand
relation legislative body
type assembly
['Thailand', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Thailand property:legislative_body ?r . ?r rdf:type ontology:assembly }
[]
assembly
Q1368318
SYSTEM
National Assembly
Q1368318
(Q869,P194,c(Q1752346))
action filter_type
action find
entity Q869
relation P194
type Q1752346
[ANSWER]
['Q869', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?r WHERE { resource:Q869 property:P194 ?r . ?r rdf:type ontology:Q1752346 }
National Assembly
National Assembly
action filter_type
action find
entity Thailand
relation legislative body
type assembly
['Thailand', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?r WHERE { resource:Thailand property:legislative_body ?r . ?r rdf:type ontology:assembly }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P194
Q1752346 Q515
USER
Which cities have exactly 1 assembly as their legislative body ?
(c(Q515),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q515
type Q1752346
value 1
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:P194 ?q . ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q1752346 } GROUP BY ?d } . FILTER ( ?e = 1 ) }
action equal
action find_tuple_counts
relation legislative body
type city
type assembly
value 1
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:legislative_body ?q . ?d rdf:type ontology:city . ?q rdf:type ontology:assembly } GROUP BY ?d } . FILTER ( ?e = 1 ) }
[]
assembly city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q1410 Q3616 Q43199 Q2096 Q1899 Q1486 Q1209 Q1773
(c(Q515),P194,c(Q1752346))
action equal
action find_tuple_counts
relation P194
type Q515
type Q1752346
value 1
[ANSWERS] have exactly 1 assembly as their legislative body
[{'concept': 'Q515'}, 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:P194 ?q . ?d rdf:type ontology:Q515 . ?q rdf:type ontology:Q1752346 } GROUP BY ?d } . FILTER ( ?e = 1 ) }
Gibraltar Tehran Omaha Edmonton Kyiv Buenos Aires Free Hanseatic City of Bremen Riga
Buenos Aires, Riga and Kyiv have exactly 1 assembly as their legislative body
Buenos Aires Riga Kyiv
action equal
action find_tuple_counts
relation legislative body
type city
type assembly
value 1
[{'concept': 'city'}, 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?q ) AS ?e ) WHERE { ?d property:legislative_body ?q . ?d rdf:type ontology:city . ?q rdf:type ontology:assembly } GROUP BY ?d } . FILTER ( ?e = 1 ) }
[]