Simple Question (Direct)
Simple Question
Q13561
P734
Q82799
USER
Who is associated with Katariina Tuohimaa ?
(Q13561,P734,c(Q82799))
action filter_type
action find
entity Q13561
relation P734
type Q82799
['Q13561', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q13561 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Katariina Tuohimaa
action filter_type
action find
entity Katariina Tuohimaa
relation family name
type name
['Katariina Tuohimaa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Katariina_Tuohimaa property:family_name ?f . ?f rdf:type ontology:name }
[]
name
Q16297305
SYSTEM
Tuohimaa
Q16297305
(Q13561,P734,c(Q82799))
action filter_type
action find
entity Q13561
relation P734
type Q82799
[ANSWER] is associated with Katariina [ANSWER]
['Q13561', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?f WHERE { resource:Q13561 property:P734 ?f . ?f rdf:type ontology:Q82799 }
Tuohimaa
Tuohimaa is associated with Katariina Tuohimaa
Tuohimaa
action filter_type
action find
entity Katariina Tuohimaa
relation family name
type name
['Katariina Tuohimaa', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?f WHERE { resource:Katariina_Tuohimaa property:family_name ?f . ?f rdf:type ontology:name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2418234 Q13561
P106
Q12737077
USER
Which occupations are the job of Katariina Tuohimaa or Theodor Schmalenbach ?
OR((Q13561,P106,c(Q12737077)), (Q2418234,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q13561
relation P106
action find
entity Q2418234
relation P106
type Q12737077
{'OR': [['Q13561', 'P106', {'concept': 'Q12737077'}], ['Q2418234', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?g WHERE { { ?s property:P106 ?g . VALUES ( ?s ) { ( resource:Q13561 ) ( resource:Q2418234 ) } } . ?g rdf:type ontology:Q12737077 }
Theodor Schmalenbach Katariina Tuohimaa
action filter_type
action union
action find
entity Katariina Tuohimaa
relation occupation
action find
entity Theodor Schmalenbach
relation occupation
type occupation
{'OR': [['Katariina Tuohimaa', 'occupation', {'concept': 'occupation'}], ['Theodor Schmalenbach', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?g WHERE { { ?s property:occupation ?g . VALUES ( ?s ) { ( resource:Katariina_Tuohimaa ) ( resource:Theodor_Schmalenbach ) } } . ?g rdf:type ontology:occupation }
[]
occupation
Q10833314 Q1234713
SYSTEM
tennis player, theologian
Q10833314 Q1234713
OR((Q13561,P106,c(Q12737077)), (Q2418234,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q13561
relation P106
action find
entity Q2418234
relation P106
type Q12737077
The [ANSWERS] are the job of Katariina Tuohimaa or Theodor Schmalenbach
{'OR': [['Q13561', 'P106', {'concept': 'Q12737077'}], ['Q2418234', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?g WHERE { { ?s property:P106 ?g . VALUES ( ?s ) { ( resource:Q13561 ) ( resource:Q2418234 ) } } . ?g rdf:type ontology:Q12737077 }
tennis player theologian
The tennis player and theologian are the job of Katariina Tuohimaa or Theodor Schmalenbach
tennis player theologian
action filter_type
action union
action find
entity Katariina Tuohimaa
relation occupation
action find
entity Theodor Schmalenbach
relation occupation
type occupation
{'OR': [['Katariina Tuohimaa', 'occupation', {'concept': 'occupation'}], ['Theodor Schmalenbach', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?g WHERE { { ?s property:occupation ?g . VALUES ( ?s ) { ( resource:Katariina_Tuohimaa ) ( resource:Theodor_Schmalenbach ) } } . ?g rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1234713
P425
Q1047113
USER
Who is associated with the field of occupation that one ?
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q1234713 property:P425 ?b . ?b rdf:type ontology:Q1047113 }
theologian
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:theologian property:field_of_this_occupation ?b . ?b rdf:type ontology:special_field }
[]
special field
Clarification for simple ques.
Q10833314
SYSTEM
Did you mean tennis player ?
Q10833314 Q1234713
(Q10833314,P425,c(Q1047113)) (Q1234713,P425,c(Q1047113))
[ANSWER]
['Q10833314', 'P425', {'concept': 'Q1047113'}] ['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q1234713 property:P425 ?b . ?b rdf:type ontology:Q1047113 }
tennis player theologian
Did you mean tennis player ?
tennis player
['tennis player', 'field of this occupation', {'concept': 'special field'}] ['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:theologian property:field_of_this_occupation ?b . ?b rdf:type ontology:special_field }
[]
Simple Question (Coreferenced)
USER
No, I meant theologian. Could you tell me the answer for that?
(Q1234713,P425,c(Q1047113))
Q1234713
['Q1234713', 'P425', {'concept': 'Q1047113'}]
['theologian', 'field of this occupation', {'concept': 'special field'}]
[]
Q34178
SYSTEM
theology
Q34178
(Q1234713,P425,c(Q1047113))
action filter_type
action find
entity Q1234713
relation P425
type Q1047113
[ANSWER] is associated with the field of occupation that one
['Q1234713', 'P425', {'concept': 'Q1047113'}]
SELECT DISTINCT ?b WHERE { resource:Q1234713 property:P425 ?b . ?b rdf:type ontology:Q1047113 }
theology
Theology is associated with the field of occupation that one
theology
action filter_type
action find
entity theologian
relation field of this occupation
type special field
['theologian', 'field of this occupation', {'concept': 'special field'}]
SELECT DISTINCT ?b WHERE { resource:theologian property:field_of_this_occupation ?b . ?b rdf:type ontology:special_field }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2790091
P19
Q15617994
USER
Which administrative territory is the place of birth of Hamza Dahmane ?
(Q2790091,P19,c(Q15617994))
action filter_type
action find
entity Q2790091
relation P19
type Q15617994
['Q2790091', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2790091 property:P19 ?v . ?v rdf:type ontology:Q15617994 }
Hamza Dahmane
action filter_type
action find
entity Hamza Dahmane
relation place of birth
type designation for an administrative territorial entity
['Hamza Dahmane', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Hamza_Dahmane property:place_of_birth ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262
SYSTEM
Algeria
Q262
(Q2790091,P19,c(Q15617994))
action filter_type
action find
entity Q2790091
relation P19
type Q15617994
[ANSWER] is the place of birth of Hamza Dahmane
['Q2790091', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q2790091 property:P19 ?v . ?v rdf:type ontology:Q15617994 }
Algeria
Algeria is the place of birth of Hamza Dahmane
Algeria
action filter_type
action find
entity Hamza Dahmane
relation place of birth
type designation for an administrative territorial entity
['Hamza Dahmane', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Hamza_Dahmane property:place_of_birth ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q262 Q5106574
P27
Q502895
USER
Is Chris Foreman a citizen of that administrative territory ?
(Q5106574,P27,Q262)
action is_in
entity Q5106574
action find
entity Q262
relation P27
['Q5106574', 'P27', 'Q262']
ASK WHERE { resource:Q262 property:P27 resource:Q5106574 }
Algeria Chris Foreman
action is_in
entity Chris Foreman
action find
entity Algeria
relation country of citizenship
['Chris Foreman', 'country of citizenship', 'Algeria']
ASK WHERE { resource:Algeria property:country_of_citizenship resource:Chris_Foreman }
[]
common name
SYSTEM
NO
(Q5106574,P27,Q262)
action is_in
entity Q5106574
action find
entity Q262
relation P27
[ANSWER]
['Q5106574', 'P27', 'Q262']
ASK WHERE { resource:Q262 property:P27 resource:Q5106574 }
No
action is_in
entity Chris Foreman
action find
entity Algeria
relation country of citizenship
['Chris Foreman', 'country of citizenship', 'Algeria']
ASK WHERE { resource:Algeria property:country_of_citizenship resource:Chris_Foreman }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q10833314 Q1186732 Q847
P425
Q349
USER
Does racketlon and tennis belong to tennis player ?
(Q10833314,P425,Q1186732) (Q10833314,P425,Q847)
action is_in
entity Q10833314
action intersection
action find_reverse
entity Q1186732
relation P425
action find_reverse
entity Q847
relation P425
['Q10833314', 'P425', 'Q1186732'] ['Q10833314', 'P425', 'Q847']
ASK WHERE { resource:Q10833314 property:P425 resource:Q1186732 . resource:Q10833314 property:P425 resource:Q847 }
tennis player racketlon tennis
action is_in
entity tennis player
action intersection
action find_reverse
entity racketlon
relation field of this occupation
action find_reverse
entity tennis
relation field of this occupation
['tennis player', 'field of this occupation', 'racketlon'] ['tennis player', 'field of this occupation', 'tennis']
ASK WHERE { resource:tennis_player property:field_of_this_occupation resource:racketlon . resource:tennis_player property:field_of_this_occupation resource:tennis }
[]
sport
SYSTEM
NO and YES respectively
(Q10833314,P425,Q1186732) (Q10833314,P425,Q847)
action is_in
entity Q10833314
action intersection
action find_reverse
entity Q1186732
relation P425
action find_reverse
entity Q847
relation P425
[ANSWER]
['Q10833314', 'P425', 'Q1186732'] ['Q10833314', 'P425', 'Q847']
ASK WHERE { resource:Q10833314 property:P425 resource:Q1186732 . resource:Q10833314 property:P425 resource:Q847 }
NO and YES respectively
action is_in
entity tennis player
action intersection
action find_reverse
entity racketlon
relation field of this occupation
action find_reverse
entity tennis
relation field of this occupation
['tennis player', 'field of this occupation', 'racketlon'] ['tennis player', 'field of this occupation', 'tennis']
ASK WHERE { resource:tennis_player property:field_of_this_occupation resource:racketlon . resource:tennis_player property:field_of_this_occupation resource:tennis }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q984623 Q2418234
P47 P27
Q1048835
USER
Which political territories are the native countriesof Theodor Schmalenbach or are adjacent to Isábena ?
OR((Q2418234,P27,c(Q1048835)), (Q984623,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2418234
relation P27
action find
entity Q984623
relation P47
type Q1048835
{'OR': [['Q2418234', 'P27', {'concept': 'Q1048835'}], ['Q984623', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { resource:Q2418234 property:P27 ?q } UNION { resource:Q984623 property:P47 ?q } } }
Isábena Theodor Schmalenbach
action filter_type
action union
action find
entity Theodor Schmalenbach
relation country of citizenship
action find
entity Isábena
relation shares border with
type political territorial entity
{'OR': [['Theodor Schmalenbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Isábena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { resource:Theodor_Schmalenbach property:country_of_citizenship ?q } UNION { resource:Isábena property:shares_border_with ?q } } }
[]
political territorial entity
Q719174 Q984617 Q984625 Q984631 Q984621 Q183 Q1020564 Q937763 Q984593 Q987456
SYSTEM
Arén, Foradada del Toscar, Torre la Ribera, Lascuarre, Valle de Lierp, Germany, Beranuy, Graus, Monesma y Cajigar, Castigaleu
Q719174 Q984617 Q984625 Q984631 Q984621 Q183 Q1020564 Q937763 Q984593 Q987456
OR((Q2418234,P27,c(Q1048835)), (Q984623,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q2418234
relation P27
action find
entity Q984623
relation P47
type Q1048835
[ANSWERS] are the native countriesof Theodor Schmalenbach or are adjacent to Isábena
{'OR': [['Q2418234', 'P27', {'concept': 'Q1048835'}], ['Q984623', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1048835 . { { resource:Q2418234 property:P27 ?q } UNION { resource:Q984623 property:P47 ?q } } }
Arén Foradada del Toscar Torre la Ribera Lascuarre Valle de Lierp Germany Beranuy Graus Monesma y Cajigar Castigaleu
Arén, Foradada del Toscar, Torre la Ribera, Lascuarre, Valle de Lierp, Germany, Beranuy, Graus, Monesma y Cajigar and Castigaleu are the native countriesof Theodor Schmalenbach or are adjacent to Isábena
Arén Foradada del Toscar Torre la Ribera Lascuarre Valle de Lierp Germany Beranuy Graus Monesma y Cajigar Castigaleu
action filter_type
action union
action find
entity Theodor Schmalenbach
relation country of citizenship
action find
entity Isábena
relation shares border with
type political territorial entity
{'OR': [['Theodor Schmalenbach', 'country of citizenship', {'concept': 'political territorial entity'}], ['Isábena', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:political_territorial_entity . { { resource:Theodor_Schmalenbach property:country_of_citizenship ?q } UNION { resource:Isábena property:shares_border_with ?q } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3450388 Q183
P530 P17
Q15617994
USER
Which administrative territories have diplomatic relationships with Germany or are rue Waldeck-Rousseau present in ?
OR((Q183,P530,c(Q15617994)), (Q3450388,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q3450388
relation P17
type Q15617994
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3450388', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q183 property:P530 ?g } UNION { resource:Q3450388 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
rue Waldeck-Rousseau Germany
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity rue Waldeck-Rousseau
relation country
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['rue Waldeck-Rousseau', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Germany property:diplomatic_relation ?g } UNION { resource:rue_Waldeck-Rousseau property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q1029 Q962 Q265 Q115 Q1028 Q258 Q184 Q224 Q28 Q833
SYSTEM
Some of them are Mozambique, Benin, Uzbekistan, Ethiopia, Morocco, South Africa, Belarus, Croatia, Hungary, Malaysia
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q833 Q711 Q717 Q252 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q739 Q241 Q242 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q929 Q39 Q38 Q986 Q423 Q983 Q851 Q733 Q734 Q736 Q730 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q29 Q1049 Q189 Q843 Q184 Q1029 Q1028 Q786 Q347 Q227 Q225 Q224 Q222 Q96 Q229 Q228 Q17 Q902 Q1036 Q1037 Q1008 Q1032 Q1033 Q1030 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q1009 Q974 Q971 Q79 Q77 Q878 Q774 Q948 Q810 Q1019 Q1016 Q1011 Q945 Q869 Q953
OR((Q183,P530,c(Q15617994)), (Q3450388,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q183
relation P530
action find
entity Q3450388
relation P17
type Q15617994
[ANSWERS] have diplomatic relationships with Germany or are rue Waldeck-Rousseau present in
{'OR': [['Q183', 'P530', {'concept': 'Q15617994'}], ['Q3450388', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q183 property:P530 ?g } UNION { resource:Q3450388 property:P17 ?g } } . ?g rdf:type ontology:Q15617994 }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Malaysia Mongolia Venezuela Indonesia Serbia Chad South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Colombia Cuba Belize Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Central African Republic Switzerland Italy Eritrea North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Ecuador Suriname Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Spain Sudan Iceland Pakistan Belarus Mozambique Morocco Dominican Republic Liechtenstein Azerbaijan Bosnia and Herzegovina Croatia Albania Mexico Cyprus Andorra Japan Bangladesh Uganda Rwanda Côte d'Ivoire Niger Nigeria Namibia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Cameroon Democratic Republic of the Congo Republic of the Congo Egypt Uruguay United Arab Emirates Guatemala Tunisia Jordan Madagascar Libya Cape Verde Togo Thailand Zambia
Mozambique, Benin, Uzbekistan, Ethiopia, Morocco, South Africa, Belarus, Croatia, Hungary and Malaysia have diplomatic relationships with Germany or are rue Waldeck-Rousseau present in
Mozambique Benin Uzbekistan Ethiopia Morocco South Africa Belarus Croatia Hungary Malaysia
action filter_type
action union
action find
entity Germany
relation diplomatic relation
action find
entity rue Waldeck-Rousseau
relation country
type designation for an administrative territorial entity
{'OR': [['Germany', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['rue Waldeck-Rousseau', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Germany property:diplomatic_relation ?g } UNION { resource:rue_Waldeck-Rousseau property:country ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Single entity type|Indirect
P495
Q15617994 Q2031291
USER
Which administrative territories are the countries of origin of approximately the same number of releases as that administrative territory ?
(c(Q2031291),P495,c(Q15617994))
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity release
Comparative|More/Less|Single entity type|Clarification
Q115
SYSTEM
Did you mean Ethiopia ?
(c(Q2031291),P495,c(Q15617994))
[ANSWER]
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Did you mean Ethiopia ?
Ethiopia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
USER
No, I meant Malaysia. Could you tell me the answer for that?
(c(Q2031291),P495,c(Q15617994))
Q833
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q38 Q155 Q230
SYSTEM
Italy, Brazil, Georgia
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q142 Q55 Q145 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the countries of origin of approximately the same number of releases as that administrative territory
[{'concept': 'Q2031291'}, 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT * WHERE { ?z property:P495 ?y . ?z rdf:type ontology:Q2031291 . ?y rdf:type ontology:Q15617994 }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina France Netherlands United Kingdom Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland 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 Chile 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 Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
Italy, Brazil and Georgia are the countries of origin of approximately the same number of releases as that administrative territory
Italy Brazil Georgia
[{'concept': 'release'}, 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT * WHERE { ?z property:country_of_origin ?y . ?z rdf:type ontology:release . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q38
P127
Q33506 Q3947
USER
How many museums or houses are owned by Italy ?
(c(Q33506),P127,Q38) (c(Q3947),P127,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P127
type Q33506
action filter_type
action find_reverse
entity Q38
relation P127
type Q3947
[{'concept': 'Q33506'}, 'P127', 'Q38'] [{'concept': 'Q3947'}, 'P127', 'Q38']
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:Q33506 ) ( ontology:Q3947 ) } }
Italy
action count
action union
action filter_type
action find_reverse
entity Italy
relation owned by
type museum
action filter_type
action find_reverse
entity Italy
relation owned by
type house
[{'concept': 'museum'}, 'owned by', 'Italy'] [{'concept': 'house'}, 'owned by', 'Italy']
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:museum ) ( ontology:house ) } }
[]
museum house
SYSTEM
5
Q774654 Q4012532 Q1952743 Q841506 Q6567344
(c(Q33506),P127,Q38) (c(Q3947),P127,Q38)
action count
action union
action filter_type
action find_reverse
entity Q38
relation P127
type Q33506
action filter_type
action find_reverse
entity Q38
relation P127
type Q3947
[ANSWER]
[{'concept': 'Q33506'}, 'P127', 'Q38'] [{'concept': 'Q3947'}, 'P127', 'Q38']
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:Q33506 ) ( ontology:Q3947 ) } }
Villa Doria Pamphili Villa Schifanoia Hôtel de Galliffet Galleria Borghese Rolandstraße 43
5
action count
action union
action filter_type
action find_reverse
entity Italy
relation owned by
type museum
action filter_type
action find_reverse
entity Italy
relation owned by
type house
[{'concept': 'museum'}, 'owned by', 'Italy'] [{'concept': 'house'}, 'owned by', 'Italy']
SELECT DISTINCT ( COUNT ( ?l ) AS ?s ) WHERE { ?l rdf:type ?w . VALUES ( ?w ) { ( ontology:museum ) ( ontology:house ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q13767
P17
Q1048835 Q811979 Q699405
USER
How many political territories are greater number of architectural structures or dwellings situated in than Camarines Sur ?
(c(Q811979)|c(Q699405),P17,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q699405
action count
action filter_multi_types
action find_reverse
entity Q13767
relation P17
type Q811979
type Q699405
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q699405 ) ( ontology:Q811979 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P17 resource:Q13767 . { { ?b rdf:type ontology:Q699405 } UNION { ?b rdf:type ontology:Q811979 } } } } . FILTER ( ?f > ?m ) }
Camarines Sur
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type dwelling
action count
action filter_multi_types
action find_reverse
entity Camarines Sur
relation country
type architectural structure
type dwelling
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:dwelling ) ( ontology:architectural_structure ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:country resource:Camarines_Sur . { { ?b rdf:type ontology:dwelling } UNION { ?b rdf:type ontology:architectural_structure } } } } . FILTER ( ?f > ?m ) }
[]
political territorial entity architectural structure dwelling
SYSTEM
18
Q183 Q785 Q685 Q9676 Q664 Q766 Q16 Q5785 Q35 Q18221 Q778 Q408 Q781 Q691 Q40 Q23635 Q192184 Q25305
(c(Q811979)|c(Q699405),P17,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q699405
action count
action filter_multi_types
action find_reverse
entity Q13767
relation P17
type Q811979
type Q699405
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:Q699405 ) ( ontology:Q811979 ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:P17 resource:Q13767 . { { ?b rdf:type ontology:Q699405 } UNION { ?b rdf:type ontology:Q811979 } } } } . FILTER ( ?f > ?m ) }
Germany Jersey Solomon Islands Isle of Man New Zealand Jamaica Canada Cayman Islands Denmark Turks and Caicos Islands The Bahamas Australia Antigua and Barbuda Papua New Guinea Austria Bermuda Saint Helena, Ascension and Tristan da Cunha British Virgin Islands
18
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type dwelling
action count
action filter_multi_types
action find_reverse
entity Camarines Sur
relation country
type architectural structure
type dwelling
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?y ) WHERE { { SELECT DISTINCT ?c ( COUNT ( ?x ) AS ?f ) WHERE { ?x rdf:type ?i . VALUES ( ?i ) { ( ontology:dwelling ) ( ontology:architectural_structure ) } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { ?b property:country resource:Camarines_Sur . { { ?b rdf:type ontology:dwelling } UNION { ?b rdf:type ontology:architectural_structure } } } } . FILTER ( ?f > ?m ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q5785
P17
Q1048835 Q811979 Q699405
USER
And what about Cayman Islands?
(c(Q811979)|c(Q699405),P17,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q699405
action count
action filter_multi_types
action find_reverse
entity Q5785
relation P17
type Q811979
type Q699405
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?t WHERE { VALUES ( ?y ) { ( ontology:Q811979 ) ( ontology:Q699405 ) } . ?q rdf:type ?y } GROUP BY ?t } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { { ?f rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q699405 } } . ?f property:P17 resource:Q5785 } } }
Cayman Islands
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type dwelling
action count
action filter_multi_types
action find_reverse
entity Cayman Islands
relation country
type architectural structure
type dwelling
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?t WHERE { VALUES ( ?y ) { ( ontology:architectural_structure ) ( ontology:dwelling ) } . ?q rdf:type ?y } GROUP BY ?t } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { { ?f rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:dwelling } } . ?f property:country resource:Cayman_Islands } } }
[]
political territorial entity architectural structure dwelling
SYSTEM
12
Q183 Q785 Q664 Q766 Q16 Q35 Q18221 Q778 Q408 Q781 Q691 Q40
(c(Q811979)|c(Q699405),P17,c(Q1048835))
action count
action greater
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q811979
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q699405
action count
action filter_multi_types
action find_reverse
entity Q5785
relation P17
type Q811979
type Q699405
[ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q699405'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?t WHERE { VALUES ( ?y ) { ( ontology:Q811979 ) ( ontology:Q699405 ) } . ?q rdf:type ?y } GROUP BY ?t } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { { ?f rdf:type ontology:Q811979 } UNION { ?f rdf:type ontology:Q699405 } } . ?f property:P17 resource:Q5785 } } }
Germany Jersey New Zealand Jamaica Canada Denmark Turks and Caicos Islands The Bahamas Australia Antigua and Barbuda Papua New Guinea Austria
12
action count
action greater
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type architectural structure
action find_reverse_tuple_counts
relation country
type political territorial entity
type dwelling
action count
action filter_multi_types
action find_reverse
entity Cayman Islands
relation country
type architectural structure
type dwelling
[[{'concept': 'architectural structure'}, {'concept': 'dwelling'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?l ) ?t WHERE { VALUES ( ?y ) { ( ontology:architectural_structure ) ( ontology:dwelling ) } . ?q rdf:type ?y } GROUP BY ?t } . FILTER ( ?l > ?o ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?o ) WHERE { { { ?f rdf:type ontology:architectural_structure } UNION { ?f rdf:type ontology:dwelling } } . ?f property:country resource:Cayman_Islands } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories holds diplomatic relationship with atmost 60 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 60
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?c ) WHERE { ?t rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?t } GROUP BY ?t } . FILTER ( ?c <= 60 ) }
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 60
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?c ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?t } GROUP BY ?t } . FILTER ( ?c <= 60 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q155 Q30 Q230
SYSTEM
Brazil, United States of America, Georgia
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q784 Q265 Q37 Q712 Q711 Q710 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 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 atmost
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
value 60
[ANSWERS] hold diplomatic relationship with atmost 60 administrative territories
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?c ) WHERE { ?t rdf:type ontology:Q15617994 . ?i rdf:type ontology:Q15617994 . ?i property:P530 ?t } GROUP BY ?t } . FILTER ( ?c <= 60 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Dominica Uzbekistan Lithuania Fiji Mongolia Kiribati Venezuela Nepal 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 Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America 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
Brazil, United States of America and Georgia hold diplomatic relationship with atmost 60 administrative territories
Brazil United States of America Georgia
action atmost
action find_reverse_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 60
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?i ) AS ?c ) WHERE { ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?i property:diplomatic_relation ?t } GROUP BY ?t } . FILTER ( ?c <= 60 ) }
[]