Simple Question (Direct)
Simple Question
Q3057006
P102
Q7210356
USER
Which party does Ernest Howard Armstrong belong to ?
(Q3057006,P102,c(Q7210356))
action filter_type
action find
entity Q3057006
relation P102
type Q7210356
['Q3057006', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3057006 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Ernest Howard Armstrong
action filter_type
action find
entity Ernest Howard Armstrong
relation member of political party
type political organization
['Ernest Howard Armstrong', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Ernest_Howard_Armstrong property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
political organization
Q3366494
SYSTEM
Nova Scotia Liberal Party
Q3366494
(Q3057006,P102,c(Q7210356))
action filter_type
action find
entity Q3057006
relation P102
type Q7210356
Ernest Howard Armstrong belongs to [ANSWER]
['Q3057006', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?o WHERE { resource:Q3057006 property:P102 ?o . ?o rdf:type ontology:Q7210356 }
Nova Scotia Liberal Party
Ernest Howard Armstrong belongs to Nova Scotia Liberal Party
Nova Scotia Liberal Party
action filter_type
action find
entity Ernest Howard Armstrong
relation member of political party
type political organization
['Ernest Howard Armstrong', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?o WHERE { resource:Ernest_Howard_Armstrong property:member_of_political_party ?o . ?o rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3366494
P488
Q502895
USER
Who was the chairperson of that political organization ?
(Q3366494,P488,c(Q502895))
action filter_type
action find
entity Q3366494
relation P488
type Q502895
['Q3366494', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3366494 property:P488 ?s . ?s rdf:type ontology:Q502895 }
Nova Scotia Liberal Party
action filter_type
action find
entity Nova Scotia Liberal Party
relation chairperson
type common name
['Nova Scotia Liberal Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Nova_Scotia_Liberal_Party property:chairperson ?s . ?s rdf:type ontology:common_name }
[]
common name
Q3498613
SYSTEM
Stephen McNeil
Q3498613
(Q3366494,P488,c(Q502895))
action filter_type
action find
entity Q3366494
relation P488
type Q502895
The chairperson of that political organization was Bishop [ANSWER]
['Q3366494', 'P488', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q3366494 property:P488 ?s . ?s rdf:type ontology:Q502895 }
Stephen McNeil
The chairperson of that political organization was Bishop Stephen McNeil
Stephen McNeil
action filter_type
action find
entity Nova Scotia Liberal Party
relation chairperson
type common name
['Nova Scotia Liberal Party', 'chairperson', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Nova_Scotia_Liberal_Party property:chairperson ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3498613
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q3498613,P19,c(Q56061))
action filter_type
action find
entity Q3498613
relation P19
type Q56061
['Q3498613', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3498613 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Stephen McNeil
action filter_type
action find
entity Stephen McNeil
relation place of birth
type administrative territorial entity
['Stephen McNeil', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stephen_McNeil property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q564536
SYSTEM
Annapolis Royal
Q564536
(Q3498613,P19,c(Q56061))
action filter_type
action find
entity Q3498613
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q3498613', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { resource:Q3498613 property:P19 ?l . ?l rdf:type ontology:Q56061 }
Annapolis Royal
Annapolis Royal is the place of birth of that person
Annapolis Royal
action filter_type
action find
entity Stephen McNeil
relation place of birth
type administrative territorial entity
['Stephen McNeil', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Stephen_McNeil property:place_of_birth ?l . ?l rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q449030
Q56061
USER
And how about Hal David?
(Q449030,P19,c(Q56061))
action filter_type
action find
entity Q449030
relation P19
type Q56061
['Q449030', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q449030 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Hal David
action filter_type
action find
entity Hal David
relation place of birth
type administrative territorial entity
['Hal David', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Hal_David property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60
SYSTEM
New York City
Q60
(Q449030,P19,c(Q56061))
action filter_type
action find
entity Q449030
relation P19
type Q56061
[ANSWER]
['Q449030', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q449030 property:P19 ?t . ?t rdf:type ontology:Q56061 }
New York City
New York City
action filter_type
action find
entity Hal David
relation place of birth
type administrative territorial entity
['Hal David', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Hal_David property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P163
Q14660
USER
What is associated with that administrative territory ?
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?w WHERE { resource:Q60 property:P163 ?w . ?w rdf:type ontology:Q14660 }
New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?w WHERE { resource:New_York_City property:flag ?w . ?w rdf:type ontology:flag }
[]
flag
Q1414813
SYSTEM
Flag of New York City
Q1414813
(Q60,P163,c(Q14660))
action filter_type
action find
entity Q60
relation P163
type Q14660
City [ANSWER] is associated with that administrative territory
['Q60', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?w WHERE { resource:Q60 property:P163 ?w . ?w rdf:type ontology:Q14660 }
Flag of New York City
City Flag of New York City is associated with that administrative territory
Flag of New York City
action filter_type
action find
entity New York City
relation flag
type flag
['New York City', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?w WHERE { resource:New_York_City property:flag ?w . ?w rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q60
P17
Q15617994
USER
Which administrative territory is that administrative territory situated in ?
(Q1414813,P17,c(Q15617994))
action filter_type
action find
entity Q60
relation P17
type Q15617994
['Q1414813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q60 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
New York City
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['Flag of New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:New_York_City property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q1414813,P17,c(Q15617994))
action filter_type
action find
entity Q60
relation P17
type Q15617994
That administrative territory is situated the [ANSWER]
['Q1414813', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q60 property:P17 ?m . ?m rdf:type ontology:Q15617994 }
United States of America
That administrative territory is situated the United States of America
United States of America
action filter_type
action find
entity New York City
relation country
type designation for an administrative territorial entity
['Flag of New York City', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:New_York_City property:country ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q22975804
P495
Q838948
USER
Did Miss Madame originate in that administrative territory ?
(Q22975804,P495,Q30)
action is_in
entity Q22975804
action find
entity Q30
relation P495
['Q22975804', 'P495', 'Q30']
ASK WHERE { resource:Q30 property:P495 resource:Q22975804 }
United States of America Miss Madame
action is_in
entity Miss Madame
action find
entity United States of America
relation country of origin
['Miss Madame', 'country of origin', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_origin resource:Miss_Madame }
[]
work of art
SYSTEM
NO
(Q22975804,P495,Q30)
action is_in
entity Q22975804
action find
entity Q30
relation P495
[ANSWER]
['Q22975804', 'P495', 'Q30']
ASK WHERE { resource:Q30 property:P495 resource:Q22975804 }
No
action is_in
entity Miss Madame
action find
entity United States of America
relation country of origin
['Miss Madame', 'country of origin', 'United States of America']
ASK WHERE { resource:United_States_of_America property:country_of_origin resource:Miss_Madame }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3057006 Q1789305
P27
Q1048835
USER
Is Ernest Howard Armstrong a civilian of Resende Costa ?
(Q3057006,P27,Q1789305)
action is_in
entity Q1789305
action find
entity Q3057006
relation P27
['Q3057006', 'P27', 'Q1789305']
ASK WHERE { resource:Q3057006 property:P27 resource:Q1789305 }
Ernest Howard Armstrong Resende Costa
action is_in
entity Resende Costa
action find
entity Ernest Howard Armstrong
relation country of citizenship
['Ernest Howard Armstrong', 'country of citizenship', 'Resende Costa']
ASK WHERE { resource:Ernest_Howard_Armstrong property:country_of_citizenship resource:Resende_Costa }
[]
political territorial entity
SYSTEM
NO
(Q3057006,P27,Q1789305)
action is_in
entity Q1789305
action find
entity Q3057006
relation P27
[ANSWER]
['Q3057006', 'P27', 'Q1789305']
ASK WHERE { resource:Q3057006 property:P27 resource:Q1789305 }
No
action is_in
entity Resende Costa
action find
entity Ernest Howard Armstrong
relation country of citizenship
['Ernest Howard Armstrong', 'country of citizenship', 'Resende Costa']
ASK WHERE { resource:Ernest_Howard_Armstrong property:country_of_citizenship resource:Resende_Costa }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5994841 Q1789305
P17
Q15617994
USER
Which administrative territories are Resende Costa or Ihua present in ?
OR((Q1789305,P17,c(Q15617994)), (Q5994841,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1789305
relation P17
action find
entity Q5994841
relation P17
type Q15617994
{'OR': [['Q1789305', 'P17', {'concept': 'Q15617994'}], ['Q5994841', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P17 ?v . VALUES ( ?j ) { ( resource:Q1789305 ) ( resource:Q5994841 ) } } . ?v rdf:type ontology:Q15617994 }
Ihua Resende Costa
action filter_type
action union
action find
entity Resende Costa
relation country
action find
entity Ihua
relation country
type designation for an administrative territorial entity
{'OR': [['Resende Costa', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ihua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:country ?v . VALUES ( ?j ) { ( resource:Resende_Costa ) ( resource:Ihua ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q114
SYSTEM
Brazil, Kenya
Q155 Q114
OR((Q1789305,P17,c(Q15617994)), (Q5994841,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q1789305
relation P17
action find
entity Q5994841
relation P17
type Q15617994
[ANSWERS]
{'OR': [['Q1789305', 'P17', {'concept': 'Q15617994'}], ['Q5994841', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:P17 ?v . VALUES ( ?j ) { ( resource:Q1789305 ) ( resource:Q5994841 ) } } . ?v rdf:type ontology:Q15617994 }
Brazil Kenya
Which administrative territories are Resende Costa or Ihua present in
Brazil Kenya
action filter_type
action union
action find
entity Resende Costa
relation country
action find
entity Ihua
relation country
type designation for an administrative territorial entity
{'OR': [['Resende Costa', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Ihua', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { ?j property:country ?v . VALUES ( ?j ) { ( resource:Resende_Costa ) ( resource:Ihua ) } } . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q13441
P530
Q1048835
USER
Are Madremanya known to have diplomatic connections with those administrative territories ?
(Q13441,P530,Q155) (Q13441,P530,Q114)
action is_in
entity prev_answer
action find
entity Q13441
relation P530
['Q13441', 'P530', 'Q155'] ['Q13441', 'P530', 'Q114']
ASK WHERE { VALUES ( ?k ) { ( resource:Q155 ) ( resource:Q114 ) } . resource:Q13441 property:P530 ?k }
Madremanya
action is_in
entity prev_answer
action find
entity Madremanya
relation diplomatic relation
['Madremanya', 'diplomatic relation', 'Brazil'] ['Madremanya', 'diplomatic relation', 'Kenya']
ASK WHERE { VALUES ( ?k ) { ( resource:Brazil ) ( resource:Kenya ) } . resource:Madremanya property:diplomatic_relation ?k }
[]
political territorial entity
SYSTEM
NO
(Q13441,P530,Q155) (Q13441,P530,Q114)
action is_in
entity prev_answer
action find
entity Q13441
relation P530
[ANSWER]
['Q13441', 'P530', 'Q155'] ['Q13441', 'P530', 'Q114']
ASK WHERE { VALUES ( ?k ) { ( resource:Q155 ) ( resource:Q114 ) } . resource:Q13441 property:P530 ?k }
No
action is_in
entity prev_answer
action find
entity Madremanya
relation diplomatic relation
['Madremanya', 'diplomatic relation', 'Brazil'] ['Madremanya', 'diplomatic relation', 'Kenya']
ASK WHERE { VALUES ( ?k ) { ( resource:Brazil ) ( resource:Kenya ) } . resource:Madremanya property:diplomatic_relation ?k }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q953
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with approximately the same number of administrative territories as Zambia ?
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q953
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:P530 ?f . ?o rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q953 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } }
Zambia
action count
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 Zambia
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 ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:diplomatic_relation ?f . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Zambia property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
158
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q783 Q784 Q265 Q37 Q712 Q711 Q710 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 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 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action approx
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q953
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:P530 ?f . ?o rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?f } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Q953 property:P530 ?q . ?q rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati 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 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 Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
158
action count
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 Zambia
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 ( COUNT ( ?f ) AS ?d ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?o ) AS ?m ) WHERE { ?o property:diplomatic_relation ?f . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?f } . FILTER ( ?m = ?r ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?r ) WHERE { resource:Zambia property:diplomatic_relation ?q . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]