Simple Question (Direct)
Simple Question
Q883222
P102
Q7210356
USER
Which political organization is Thomas Clarke Rye a member of ?
(Q883222,P102,c(Q7210356))
action filter_type
action find
entity Q883222
relation P102
type Q7210356
['Q883222', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q883222 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Thomas Clarke Rye
action filter_type
action find
entity Thomas Clarke Rye
relation member of political party
type political organization
['Thomas Clarke Rye', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Clarke_Rye property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
political organization
Q29552
SYSTEM
Democratic Party
Q29552
(Q883222,P102,c(Q7210356))
action filter_type
action find
entity Q883222
relation P102
type Q7210356
The [ANSWER] is Thomas Clarke Rye a member of
['Q883222', 'P102', {'concept': 'Q7210356'}]
SELECT DISTINCT ?h WHERE { resource:Q883222 property:P102 ?h . ?h rdf:type ontology:Q7210356 }
Democratic Party
The Democratic Party is Thomas Clarke Rye a member of
Democratic Party
action filter_type
action find
entity Thomas Clarke Rye
relation member of political party
type political organization
['Thomas Clarke Rye', 'member of political party', {'concept': 'political organization'}]
SELECT DISTINCT ?h WHERE { resource:Thomas_Clarke_Rye property:member_of_political_party ?h . ?h rdf:type ontology:political_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q883222
P39
Q12737077
USER
Which occupation was a position occupied by that person ?
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q883222
relation P39
type Q12737077
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q883222 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Thomas Clarke Rye
action filter_type
action find
entity Thomas Clarke Rye
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Thomas_Clarke_Rye property:position_held ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q5589724
SYSTEM
Governor of Tennessee
Q5589724
(Q29552,P39,c(Q12737077))
action filter_type
action find
entity Q883222
relation P39
type Q12737077
The [ANSWER] was a position occupied by that person
['Q29552', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q883222 property:P39 ?x . ?x rdf:type ontology:Q12737077 }
Governor of Tennessee
The Governor of Tennessee was a position occupied by that person
Governor of Tennessee
action filter_type
action find
entity Thomas Clarke Rye
relation position held
type occupation
['Democratic Party', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Thomas_Clarke_Rye property:position_held ?x . ?x rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1177647 Q883222
P27
Q15617994
USER
Which administrative territories are Thomas Clarke Rye or Miroslav Grumić a civilian of ?
OR((Q883222,P27,c(Q15617994)), (Q1177647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q883222
relation P27
action find
entity Q1177647
relation P27
type Q15617994
{'OR': [['Q883222', 'P27', {'concept': 'Q15617994'}], ['Q1177647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q883222 property:P27 ?c } UNION { resource:Q1177647 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Miroslav Grumić Thomas Clarke Rye
action filter_type
action union
action find
entity Thomas Clarke Rye
relation country of citizenship
action find
entity Miroslav Grumić
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas Clarke Rye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Miroslav Grumić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Thomas_Clarke_Rye property:country_of_citizenship ?c } UNION { resource:Miroslav_Grumić property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q30
SYSTEM
Serbia, United States of America
Q403 Q30
OR((Q883222,P27,c(Q15617994)), (Q1177647,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q883222
relation P27
action find
entity Q1177647
relation P27
type Q15617994
[ANSWERS] are Thomas Clarke Rye or Miroslav Grumić a civilian of
{'OR': [['Q883222', 'P27', {'concept': 'Q15617994'}], ['Q1177647', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Q883222 property:P27 ?c } UNION { resource:Q1177647 property:P27 ?c } } . ?c rdf:type ontology:Q15617994 }
Serbia United States of America
Serbia and United States of America are Thomas Clarke Rye or Miroslav Grumić a civilian of
Serbia United States of America
action filter_type
action union
action find
entity Thomas Clarke Rye
relation country of citizenship
action find
entity Miroslav Grumić
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Thomas Clarke Rye', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Miroslav Grumić', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { { resource:Thomas_Clarke_Rye property:country_of_citizenship ?c } UNION { resource:Miroslav_Grumić property:country_of_citizenship ?c } } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q697
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with greater number of administrative territories than Nauru ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q697
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q697 property:P530 ?y } } . FILTER ( ?f > ?l ) }
Nauru
action greater
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 Nauru
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nauru property:diplomatic_relation ?y } } . FILTER ( ?f > ?l ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q37 Q711 Q710 Q717 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q244 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q819 Q424 Q1013 Q236 Q230 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q736 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q34020 Q686 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q697
relation P530
type Q15617994
[ANSWERS] have diplomatic relationships with greater number of administrative territories than Nauru
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:P530 ?r . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { ?y rdf:type ontology:Q15617994 . resource:Q697 property:P530 ?y } } . FILTER ( ?f > ?l ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Lithuania Mongolia Kiribati Venezuela Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Barbados Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Laos Cambodia Lesotho Montenegro Georgia Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan 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 Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Niue Vanuatu East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Jordan Libya Cape Verde Spain Thailand Zambia
Italy, Brazil and United States of America have diplomatic relationships with greater number of administrative territories than Nauru
Italy Brazil United States of America
action greater
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 Nauru
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 ?r WHERE { { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?f ) WHERE { ?t property:diplomatic_relation ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?l ) WHERE { ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Nauru property:diplomatic_relation ?y } } . FILTER ( ?f > ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q977
P530
Q15617994 Q15617994
USER
And how about Djibouti?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q977 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?v ) }
Djibouti
action greater
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 Djibouti
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Djibouti property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?v ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q977
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:P530 ?n . ?n rdf:type ontology:Q15617994 . ?z rdf:type ontology:Q15617994 } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Q977 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?j > ?v ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
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 Djibouti
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 ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?z ) AS ?j ) WHERE { ?z property:diplomatic_relation ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?n } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?v ) WHERE { resource:Djibouti property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?j > ?v ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q557106
P530
Q15617994
USER
Do Havetoft have diplomatic relations with those ones ?
(Q557106,P530,Q38) (Q557106,P530,Q155) (Q557106,P530,Q30)
action is_in
entity prev_answer
action find
entity Q557106
relation P530
['Q557106', 'P530', 'Q38'] ['Q557106', 'P530', 'Q155'] ['Q557106', 'P530', 'Q30']
ASK WHERE { VALUES ( ?e ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q557106 property:P530 ?e }
Havetoft
action is_in
entity prev_answer
action find
entity Havetoft
relation diplomatic relation
['Havetoft', 'diplomatic relation', 'Italy'] ['Havetoft', 'diplomatic relation', 'Brazil'] ['Havetoft', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?e ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:Havetoft property:diplomatic_relation ?e }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q557106,P530,Q38) (Q557106,P530,Q155) (Q557106,P530,Q30)
action is_in
entity prev_answer
action find
entity Q557106
relation P530
[ANSWER]
['Q557106', 'P530', 'Q38'] ['Q557106', 'P530', 'Q155'] ['Q557106', 'P530', 'Q30']
ASK WHERE { VALUES ( ?e ) { ( resource:Q801 ) ( resource:Q800 ) ( resource:Q805 ) } . resource:Q557106 property:P530 ?e }
No
action is_in
entity prev_answer
action find
entity Havetoft
relation diplomatic relation
['Havetoft', 'diplomatic relation', 'Italy'] ['Havetoft', 'diplomatic relation', 'Brazil'] ['Havetoft', 'diplomatic relation', 'United States of America']
ASK WHERE { VALUES ( ?e ) { ( resource:Israel ) ( resource:Costa_Rica ) ( resource:Yemen ) } . resource:Havetoft property:diplomatic_relation ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P159
Q7210356
USER
Which political organization has headquarters located at Brazil ?
(c(Q7210356),P159,Q155)
action filter_type
action find_reverse
entity Q155
relation P159
type Q7210356
[{'concept': 'Q7210356'}, 'P159', 'Q155']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . ?d property:P159 resource:Q155 }
Brazil
action filter_type
action find_reverse
entity Brazil
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Brazil']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . ?d property:headquarters_location resource:Brazil }
[]
political organization
Q599328
SYSTEM
International Workers League
Q599328
(c(Q7210356),P159,Q155)
action filter_type
action find_reverse
entity Q155
relation P159
type Q7210356
[ANSWER] has headquarters located at Brazil
[{'concept': 'Q7210356'}, 'P159', 'Q155']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7210356 . ?d property:P159 resource:Q155 }
International Workers League
International Workers League has headquarters located at Brazil
International Workers League
action filter_type
action find_reverse
entity Brazil
relation headquarters location
type political organization
[{'concept': 'political organization'}, 'headquarters location', 'Brazil']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:political_organization . ?d property:headquarters_location resource:Brazil }
[]