Simple Question (Direct)
Simple Question
Q4955048
P106
Q151885
USER
What does Bradley Thomas do for a living ?
(Q4955048,P106,c(Q151885))
action filter_type
action find
entity Q4955048
relation P106
type Q151885
['Q4955048', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q151885 . resource:Q4955048 property:P106 ?x }
Bradley Thomas
action filter_type
action find
entity Bradley Thomas
relation occupation
type concept
['Bradley Thomas', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:concept . resource:Bradley_Thomas property:occupation ?x }
[]
concept
Q11513337
SYSTEM
athletics competitor
Q11513337
(Q4955048,P106,c(Q151885))
action filter_type
action find
entity Q4955048
relation P106
type Q151885
Bradley Thomas does an [ANSWER] for a living
['Q4955048', 'P106', {'concept': 'Q151885'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q151885 . resource:Q4955048 property:P106 ?x }
athletics competitor
Bradley Thomas does an athletics competitor for a living
athletics competitor
action filter_type
action find
entity Bradley Thomas
relation occupation
type concept
['Bradley Thomas', 'occupation', {'concept': 'concept'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:concept . resource:Bradley_Thomas property:occupation ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4955048
P19
Q56061
USER
Where was that person born ?
(Q11513337,P19,c(Q56061))
action filter_type
action find
entity Q4955048
relation P19
type Q56061
['Q11513337', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q4955048 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Bradley Thomas
action filter_type
action find
entity Bradley Thomas
relation place of birth
type administrative territorial entity
['athletics competitor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bradley_Thomas property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q40191
SYSTEM
Hobart
Q40191
(Q11513337,P19,c(Q56061))
action filter_type
action find
entity Q4955048
relation P19
type Q56061
That person was born in [ANSWER]
['Q11513337', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q4955048 property:P19 ?p . ?p rdf:type ontology:Q56061 }
Hobart
That person was born in Hobart
Hobart
action filter_type
action find
entity Bradley Thomas
relation place of birth
type administrative territorial entity
['athletics competitor', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Bradley_Thomas property:place_of_birth ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q40191 Q408 Q6319081
P17
Q1048835
USER
Is that administrative territory present in Australia and Sanagorán District ?
(Q40191,P17,Q408) (Q40191,P17,Q6319081)
action is_in
entity Q40191
action intersection
action find_reverse
entity Q408
relation P17
action find_reverse
entity Q6319081
relation P17
['Q40191', 'P17', 'Q408'] ['Q40191', 'P17', 'Q6319081']
ASK WHERE { resource:Q40191 property:P17 resource:Q408 . resource:Q40191 property:P17 resource:Q6319081 }
Hobart Australia Sanagorán District
action is_in
entity Hobart
action intersection
action find_reverse
entity Australia
relation country
action find_reverse
entity Sanagorán District
relation country
['Hobart', 'country', 'Australia'] ['Hobart', 'country', 'Sanagorán District']
ASK WHERE { resource:Hobart property:country resource:Australia . resource:Hobart property:country resource:Sanagorán_District }
[]
political territorial entity
SYSTEM
YES and NO respectively
(Q40191,P17,Q408) (Q40191,P17,Q6319081)
action is_in
entity Q40191
action intersection
action find_reverse
entity Q408
relation P17
action find_reverse
entity Q6319081
relation P17
[ANSWER]
['Q40191', 'P17', 'Q408'] ['Q40191', 'P17', 'Q6319081']
ASK WHERE { resource:Q40191 property:P17 resource:Q408 . resource:Q40191 property:P17 resource:Q6319081 }
YES and NO respectively
action is_in
entity Hobart
action intersection
action find_reverse
entity Australia
relation country
action find_reverse
entity Sanagorán District
relation country
['Hobart', 'country', 'Australia'] ['Hobart', 'country', 'Sanagorán District']
ASK WHERE { resource:Hobart property:country resource:Australia . resource:Hobart property:country resource:Sanagorán_District }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1648554 Q40191
P47 P17
Q1048835
USER
Which political territories are Hobart present in or are bordered by Mendavia ?
OR((Q40191,P17,c(Q1048835)), (Q1648554,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q40191
relation P17
action find
entity Q1648554
relation P47
type Q1048835
{'OR': [['Q40191', 'P17', {'concept': 'Q1048835'}], ['Q1648554', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q40191 property:P17 ?r } UNION { resource:Q1648554 property:P47 ?r } } . ?r rdf:type ontology:Q1048835 }
Mendavia Hobart
action filter_type
action union
action find
entity Hobart
relation country
action find
entity Mendavia
relation shares border with
type political territorial entity
{'OR': [['Hobart', 'country', {'concept': 'political territorial entity'}], ['Mendavia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Hobart property:country ?r } UNION { resource:Mendavia property:shares_border_with ?r } } . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1757471 Q1770483 Q782995 Q408 Q1647643 Q1606725 Q1767933 Q1648031 Q742713
SYSTEM
Bargota, Alcanadre, Torres Del Río, Australia, Arrúbal, Agoncillo, La Rioja, Sesma, Lazagurría, Los Arcos - Urantzia
Q1757471 Q1770483 Q782995 Q408 Q1647643 Q1606725 Q1767933 Q1648031 Q742713
OR((Q40191,P17,c(Q1048835)), (Q1648554,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q40191
relation P17
action find
entity Q1648554
relation P47
type Q1048835
[ANSWERS]
{'OR': [['Q40191', 'P17', {'concept': 'Q1048835'}], ['Q1648554', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q40191 property:P17 ?r } UNION { resource:Q1648554 property:P47 ?r } } . ?r rdf:type ontology:Q1048835 }
Bargota Alcanadre Torres Del Río Australia Arrúbal Agoncillo, La Rioja Sesma Lazagurría Los Arcos - Urantzia
Hobart are bordered by Bargota, Alcanadre, Torres Del Río, Australia, Arrúbal, Agoncillo, La Rioja, Sesma, Lazagurría and Los Arcos-Urantzia
Bargota Alcanadre Torres Del Río Australia Arrúbal Agoncillo, La Rioja Sesma Lazagurría Los Arcos - Urantzia
action filter_type
action union
action find
entity Hobart
relation country
action find
entity Mendavia
relation shares border with
type political territorial entity
{'OR': [['Hobart', 'country', {'concept': 'political territorial entity'}], ['Mendavia', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Hobart property:country ?r } UNION { resource:Mendavia property:shares_border_with ?r } } . ?r rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q4702993 Q408
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Australia and are not Kawagoeshi Station present in ?
AND((Q408,P530,c(Q15617994)), NOT((Q4702993,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q408
relation P530
action find
entity Q4702993
relation P17
type Q15617994
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4702993', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Q408 property:P530 ?c . MINUS { resource:Q4702993 property:P17 ?c } . ?c rdf:type ontology:Q15617994 }
Kawagoeshi Station Australia
action filter_type
action difference
action find
entity Australia
relation diplomatic relation
action find
entity Kawagoeshi Station
relation country
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Kawagoeshi Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Australia property:diplomatic_relation ?c . MINUS { resource:Kawagoeshi_Station property:country ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q977 Q817 Q36 Q851 Q837 Q796 Q114 Q148 Q736 Q811
SYSTEM
Some of them are Djibouti, Kuwait, Poland, Saudi Arabia, Nepal, Iraq, Kenya, People's Republic of China, Ecuador, Nicaragua
Q702 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q786 Q924 Q712 Q711 Q836 Q837 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q244 Q33 Q921 Q31 Q30 Q37 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q424 Q851 Q733 Q854 Q734 Q736 Q233 Q20 Q1041 Q27 Q29 Q1027 Q1020 Q843 Q1029 Q225 Q224 Q221 Q96 Q229 Q902 Q1036 Q1033 Q1030 Q191 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q215 Q218 Q219 Q916 Q833 Q977 Q1009 Q683 Q686 Q574 Q79 Q77 Q878 Q774 Q817 Q810 Q811 Q819 Q678 Q33788 Q869 Q953
AND((Q408,P530,c(Q15617994)), NOT((Q4702993,P17,c(Q15617994))))
action filter_type
action difference
action find
entity Q408
relation P530
action find
entity Q4702993
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Australia and are not Kawagoeshi Station present in
{'AND': [['Q408', 'P530', {'concept': 'Q15617994'}], {'NOT': [['Q4702993', 'P17', {'concept': 'Q15617994'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Q408 property:P530 ?c . MINUS { resource:Q4702993 property:P17 ?c } . ?c rdf:type ontology:Q15617994 }
Federated States of Micronesia Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Dominican Republic Tanzania Fiji Mongolia Myanmar Nepal Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil El Salvador Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Barbados Finland Brunei Belgium United States of America Lithuania Poland Sweden Philippines Switzerland Italy Colombia North Korea Cambodia Saudi Arabia Paraguay Sri Lanka Guyana Ecuador Malta Norway Senegal Ireland Spain Mauritius Malawi Pakistan Mozambique Bosnia and Herzegovina Croatia Republic of Macedonia Mexico Cyprus Bangladesh Uganda Nigeria Namibia Estonia Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Slovenia Romania Bulgaria Angola Malaysia Djibouti Cameroon Samoa Vanuatu East Timor Egypt Uruguay United Arab Emirates Guatemala Kuwait Jordan Nicaragua Laos Tonga New Caledonia Thailand Zambia
Djibouti, Kuwait, Poland, Saudi Arabia, Nepal, Iraq, Kenya, People's Republic of China, Ecuador and Nicaragua hold diplomatic relationship with Australia and are not Kawagoeshi Station present in
Djibouti Kuwait Poland Saudi Arabia Nepal Iraq Kenya People's Republic of China Ecuador Nicaragua
action filter_type
action difference
action find
entity Australia
relation diplomatic relation
action find
entity Kawagoeshi Station
relation country
type designation for an administrative territorial entity
{'AND': [['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], {'NOT': [['Kawagoeshi Station', 'country', {'concept': 'designation for an administrative territorial entity'}]]}]}
SELECT DISTINCT ?c WHERE { resource:Australia property:diplomatic_relation ?c . MINUS { resource:Kawagoeshi_Station property:country ?c } . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q977 Q817 Q36 Q851 Q837 Q796 Q114 Q148 Q736 Q811
P1001
Q1292279
USER
Which political borders have control over the jurisdiction of those administrative territories ?
(c(Q1292279),P1001,Q977) (c(Q1292279),P1001,Q817) (c(Q1292279),P1001,Q36) (c(Q1292279),P1001,Q851) (c(Q1292279),P1001,Q837) (c(Q1292279),P1001,Q796) (c(Q1292279),P1001,Q114) (c(Q1292279),P1001,Q148) (c(Q1292279),P1001,Q736) (c(Q1292279),P1001,Q811)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q1292279
[{'concept': 'Q1292279'}, 'P1001', 'Q977'] [{'concept': 'Q1292279'}, 'P1001', 'Q817'] [{'concept': 'Q1292279'}, 'P1001', 'Q36'] [{'concept': 'Q1292279'}, 'P1001', 'Q851'] [{'concept': 'Q1292279'}, 'P1001', 'Q837'] [{'concept': 'Q1292279'}, 'P1001', 'Q796'] [{'concept': 'Q1292279'}, 'P1001', 'Q114'] [{'concept': 'Q1292279'}, 'P1001', 'Q148'] [{'concept': 'Q1292279'}, 'P1001', 'Q736'] [{'concept': 'Q1292279'}, 'P1001', 'Q811']
SELECT DISTINCT ?f WHERE { ?f property:P1001 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q801 ) ( resource:Q800 ) } . ?f rdf:type ontology:Q1292279 }
Djibouti Kuwait Poland Saudi Arabia Nepal Iraq Kenya People's Republic of China Ecuador Nicaragua
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Djibouti'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Kuwait'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Poland'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Saudi Arabia'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Nepal'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Iraq'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Kenya'] [{'concept': 'political border'}, 'applies to jurisdiction', "People's Republic of China"] [{'concept': 'political border'}, 'applies to jurisdiction', 'Ecuador'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Nicaragua']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Israel ) ( resource:Costa_Rica ) } . ?f rdf:type ontology:political_border }
[]
political border
Q3089177 Q2629888 Q3089177
SYSTEM
China–Russia border for 2nd, China–Nepal border for 1st, 3rd
Q2364598 Q3088652 Q740278 Q3088649 Q3088785 Q3088715 Q17351780 Q2499730 Q782109 Q9275849 Q15214996 Q1991994 Q2708432 Q14905346 Q2453834 Q16025260 Q1992001 Q3088714 Q3088712 Q3088706 Q3088723 Q17351832 Q3088720 Q3088715 Q3088713 Q3088719 Q17351754 Q17351751 Q17351783 Q3089177 Q3088768 Q3088785 Q3088782 Q3088788 Q3088786 Q3088713 Q2682071 Q3089102 Q3089106 Q3089104 Q26833470 Q3088827 Q3089101 Q2629888 Q3089177 Q3089113 Q3089112 Q1992790 Q376744 Q3088844 Q3089099 Q3088985 Q3088988 Q3089001 Q935227 Q17351726 Q17351727 Q17351725 Q3088665 Q1993836 Q927228 Q17351732 Q3089085 Q3088879 Q3089062 Q17351752
(c(Q1292279),P1001,Q977) (c(Q1292279),P1001,Q817) (c(Q1292279),P1001,Q36) (c(Q1292279),P1001,Q851) (c(Q1292279),P1001,Q837) (c(Q1292279),P1001,Q796) (c(Q1292279),P1001,Q114) (c(Q1292279),P1001,Q148) (c(Q1292279),P1001,Q736) (c(Q1292279),P1001,Q811)
action filter_type
action find_reverse
entity prev_answer
relation P1001
type Q1292279
[ANSWERS]
[{'concept': 'Q1292279'}, 'P1001', 'Q977'] [{'concept': 'Q1292279'}, 'P1001', 'Q817'] [{'concept': 'Q1292279'}, 'P1001', 'Q36'] [{'concept': 'Q1292279'}, 'P1001', 'Q851'] [{'concept': 'Q1292279'}, 'P1001', 'Q837'] [{'concept': 'Q1292279'}, 'P1001', 'Q796'] [{'concept': 'Q1292279'}, 'P1001', 'Q114'] [{'concept': 'Q1292279'}, 'P1001', 'Q148'] [{'concept': 'Q1292279'}, 'P1001', 'Q736'] [{'concept': 'Q1292279'}, 'P1001', 'Q811']
SELECT DISTINCT ?f WHERE { ?f property:P1001 ?u . VALUES ( ?u ) { ( resource:Q702 ) ( resource:Q801 ) ( resource:Q800 ) } . ?f rdf:type ontology:Q1292279 }
Djibouti–Yemen border Djibouti–Ethiopia border Djibouti–Somalia border Djibouti–Eritrea border Iraq–Kuwait border Kuwait–Saudi Arabia border Iran–Kuwait border Belarus–Poland border Poland–Russia border Latvia–Poland border Germany–Poland border Poland–Slovakia border Poland–Ukraine border Denmark–Poland border Lithuania–Poland border Poland–Sweden border Czech Republic–Poland border Jordan–Saudi Arabia border Oman–Saudi Arabia border Bahrain–Saudi Arabia border Qatar–Saudi Arabia border Saudi Arabia–Sudan border Saudi Arabia–United Arab Emirates border Kuwait–Saudi Arabia border Iraq–Saudi Arabia border Saudi Arabia–Yemen border Eritrea–Saudi Arabia border Egypt–Saudi Arabia border Iran–Saudi Arabia border China–Nepal border India–Nepal border Iraq–Kuwait border Iraq–Syria border Iraq–Turkey border Iraq–Jordan border Iraq–Saudi Arabia border Iran–Iraq border Kenya–Somalia border Kenya–South Sudan border Kenya–Tanzania border Kenya–Sudan border Ethiopia–Kenya border Kenya–Uganda border China–Russia border China–Nepal border China–Laos border China–Kyrgyzstan border China–India border China–Mongolia border China–Myanmar border China–Kazakhstan border China–Tajikistan border China–Vietnam border Bhutan–China border China–Pakistan border China–Philippines border China–South Korea border China–Japan border Afghanistan–China border Ecuador–Peru border Colombia–Ecuador border Costa Rica–Ecuador border Honduras–Nicaragua border Colombia–Nicaragua border Costa Rica–Nicaragua border El Salvador–Nicaragua border
China–Nepal border, China–Russia border and China–Nepal border have control over the jurisdiction of those administrative territories
China–Nepal border China–Russia border China–Nepal border
action filter_type
action find_reverse
entity prev_answer
relation applies to jurisdiction
type political border
[{'concept': 'political border'}, 'applies to jurisdiction', 'Djibouti'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Kuwait'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Poland'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Saudi Arabia'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Nepal'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Iraq'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Kenya'] [{'concept': 'political border'}, 'applies to jurisdiction', "People's Republic of China"] [{'concept': 'political border'}, 'applies to jurisdiction', 'Ecuador'] [{'concept': 'political border'}, 'applies to jurisdiction', 'Nicaragua']
SELECT DISTINCT ?f WHERE { ?f property:applies_to_jurisdiction ?u . VALUES ( ?u ) { ( resource:Federated_States_of_Micronesia ) ( resource:Israel ) ( resource:Costa_Rica ) } . ?f rdf:type ontology:political_border }
[]
Clarification
Simple Question|Single Entity|Indirect
Q977
P36
Q56061
USER
Which administrative territory is the capital of that administrative territory ?
(Q977,P36,c(Q56061))
action filter_type
action find
entity Q977
relation P36
type Q56061
['Q977', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q977 property:P36 ?v }
Djibouti
action filter_type
action find
entity Djibouti
relation capital
type administrative territorial entity
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?v }
[]
administrative territorial entity
Clarification for simple ques.
Q977
SYSTEM
Did you mean Djibouti ?
Q3089177 Q2629888 Q3089177
(Q3089177,P36,c(Q56061)) (Q2629888,P36,c(Q56061)) (Q3089177,P36,c(Q56061))
[ANSWER]
['Q3089177', 'P36', {'concept': 'Q56061'}] ['Q2629888', 'P36', {'concept': 'Q56061'}] ['Q3089177', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q977 property:P36 ?v }
China–Nepal border China–Russia border China–Nepal border
Did you mean Djibouti ?
Djibouti
['China–Nepal border', 'capital', {'concept': 'administrative territorial entity'}] ['China–Russia border', 'capital', {'concept': 'administrative territorial entity'}] ['China–Nepal border', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?v }
[]
Simple Question (Coreferenced)
USER
Yes
(Q977,P36,c(Q56061))
['Q977', 'P36', {'concept': 'Q56061'}]
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
[]
Q3604
SYSTEM
Djibouti
Q3604
(Q977,P36,c(Q56061))
action filter_type
action find
entity Q977
relation P36
type Q56061
[ANSWER] is the capital of that administrative territory
['Q977', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q56061 . resource:Q977 property:P36 ?v }
Djibouti
Djibouti is the capital of that administrative territory
Djibouti
action filter_type
action find
entity Djibouti
relation capital
type administrative territorial entity
['Djibouti', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:administrative_territorial_entity . resource:Djibouti property:capital ?v }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P495
Q15617994 Q2342494 Q838948
USER
How many administrative territories are the countries of origin of atmost 32476 collectables or works of art ?
(c(Q2342494)|c(Q838948),P495,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 32476
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?b <= 32476 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?e WHERE { { ?e rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2342494 . ?k property:P495 ?e } UNION { ?k rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15617994 . ?k property:P495 ?e } } GROUP BY ?e } }
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 32476
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?b <= 32476 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?e WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:collectable . ?k property:country_of_origin ?e } UNION { ?k rdf:type ontology:work_of_art . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:country_of_origin ?e } } GROUP BY ?e } }
[]
designation for an administrative territorial entity collectable work of art
SYSTEM
168
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(Q2342494)|c(Q838948),P495,c(Q15617994))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q838948
value 32476
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?b <= 32476 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?e WHERE { { ?e rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q2342494 . ?k property:P495 ?e } UNION { ?k rdf:type ontology:Q838948 . ?e rdf:type ontology:Q15617994 . ?k property:P495 ?e } } GROUP BY ?e } }
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
168
action count
action atmost
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type work of art
value 32476
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?r ) WHERE { FILTER ( ?b <= 32476 ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?e WHERE { { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:collectable . ?k property:country_of_origin ?e } UNION { ?k rdf:type ontology:work_of_art . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k property:country_of_origin ?e } } GROUP BY ?e } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1342777 Q796
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with Iraq or are National Order of Merit a part of ?
OR((Q796,P530,c(Q15617994)), (Q1342777,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q796
relation P530
action find
entity Q1342777
relation P17
type Q15617994
{'OR': [['Q796', 'P530', {'concept': 'Q15617994'}], ['Q1342777', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q796 property:P530 ?t } UNION { resource:Q1342777 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
National Order of Merit Iraq
action filter_type
action union
action find
entity Iraq
relation diplomatic relation
action find
entity National Order of Merit
relation country
type designation for an administrative territorial entity
{'OR': [['Iraq', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Iraq property:diplomatic_relation ?t } UNION { resource:National_Order_of_Merit property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q155 Q805 Q30 Q38 Q233
SYSTEM
Brazil, Yemen, United States of America, Italy, Malta
Q155 Q805 Q30 Q38 Q233
OR((Q796,P530,c(Q15617994)), (Q1342777,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q796
relation P530
action find
entity Q1342777
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with Iraq or are National Order of Merit a part of
{'OR': [['Q796', 'P530', {'concept': 'Q15617994'}], ['Q1342777', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q796 property:P530 ?t } UNION { resource:Q1342777 property:P17 ?t } } . ?t rdf:type ontology:Q15617994 }
Brazil Yemen United States of America Italy Malta
Brazil, Yemen, United States of America, Italy and Malta hold diplomatic relationship with Iraq or are National Order of Merit a part of
Brazil Yemen United States of America Italy Malta
action filter_type
action union
action find
entity Iraq
relation diplomatic relation
action find
entity National Order of Merit
relation country
type designation for an administrative territorial entity
{'OR': [['Iraq', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['National Order of Merit', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Iraq property:diplomatic_relation ?t } UNION { resource:National_Order_of_Merit property:country ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]