Simple Question (Direct)
Simple Question
Q5953795
P69
Q163740
USER
Which nonprofit organization is the alma mater of Hyder Akbar ?
(Q5953795,P69,c(Q163740))
action filter_type
action find
entity Q5953795
relation P69
type Q163740
['Q5953795', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q5953795 property:P69 ?b . ?b rdf:type ontology:Q163740 }
Hyder Akbar
action filter_type
action find
entity Hyder Akbar
relation educated at
type nonprofit organization
['Hyder Akbar', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:Hyder_Akbar property:educated_at ?b . ?b rdf:type ontology:nonprofit_organization }
[]
nonprofit organization
Q49112
SYSTEM
Yale University
Q49112
(Q5953795,P69,c(Q163740))
action filter_type
action find
entity Q5953795
relation P69
type Q163740
[ANSWER] is the alma mater of Hyder Akbar
['Q5953795', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { resource:Q5953795 property:P69 ?b . ?b rdf:type ontology:Q163740 }
Yale University
Yale University is the alma mater of Hyder Akbar
Yale University
action filter_type
action find
entity Hyder Akbar
relation educated at
type nonprofit organization
['Hyder Akbar', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { resource:Hyder_Akbar property:educated_at ?b . ?b rdf:type ontology:nonprofit_organization }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5953795
P40
Q502895
USER
Which person has that one as a child ?
(c(Q502895),P40,Q49112)
action filter_type
action find_reverse
entity Q5953795
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q49112']
SELECT DISTINCT ?m WHERE { ?m property:P40 resource:Q5953795 . ?m rdf:type ontology:Q502895 }
Hyder Akbar
action filter_type
action find_reverse
entity Hyder Akbar
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yale University']
SELECT DISTINCT ?m WHERE { ?m property:child resource:Hyder_Akbar . ?m rdf:type ontology:common_name }
[]
common name
Q7399892
SYSTEM
Said Fazal Akbar
Q7399892
(c(Q502895),P40,Q49112)
action filter_type
action find_reverse
entity Q5953795
relation P40
type Q502895
[ANSWER] has that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q49112']
SELECT DISTINCT ?m WHERE { ?m property:P40 resource:Q5953795 . ?m rdf:type ontology:Q502895 }
Said Fazal Akbar
Said Fazal Akbar has that one as a child
Said Fazal Akbar
action filter_type
action find_reverse
entity Hyder Akbar
relation child
type common name
[{'concept': 'common name'}, 'child', 'Yale University']
SELECT DISTINCT ?m WHERE { ?m property:child resource:Hyder_Akbar . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7399892 Q5953795
P40
Q502895
USER
Is Hyder Akbar a child of Said Fazal Akbar ?
(Q7399892,P40,Q5953795)
action is_in
entity Q5953795
action find
entity Q7399892
relation P40
['Q7399892', 'P40', 'Q5953795']
ASK WHERE { resource:Q7399892 property:P40 resource:Q5953795 }
Said Fazal Akbar Hyder Akbar
action is_in
entity Hyder Akbar
action find
entity Said Fazal Akbar
relation child
['Said Fazal Akbar', 'child', 'Hyder Akbar']
ASK WHERE { resource:Said_Fazal_Akbar property:child resource:Hyder_Akbar }
[]
common name
SYSTEM
YES
(Q7399892,P40,Q5953795)
action is_in
entity Q5953795
action find
entity Q7399892
relation P40
[ANSWER]
['Q7399892', 'P40', 'Q5953795']
ASK WHERE { resource:Q7399892 property:P40 resource:Q5953795 }
Yes
action is_in
entity Hyder Akbar
action find
entity Said Fazal Akbar
relation child
['Said Fazal Akbar', 'child', 'Hyder Akbar']
ASK WHERE { resource:Said_Fazal_Akbar property:child resource:Hyder_Akbar }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q950615 Q5953795
P27 P17
Q15617994
USER
Which administrative territories are Hyder Akbar a civilian of or do Zagaj, West Pomeranian Voivodeship belong to ?
OR((Q5953795,P27,c(Q15617994)), (Q950615,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5953795
relation P27
action find
entity Q950615
relation P17
type Q15617994
{'OR': [['Q5953795', 'P27', {'concept': 'Q15617994'}], ['Q950615', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q950615 property:P17 ?g } UNION { resource:Q5953795 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Zagaj, West Pomeranian Voivodeship Hyder Akbar
action filter_type
action union
action find
entity Hyder Akbar
relation country of citizenship
action find
entity Zagaj, West Pomeranian Voivodeship
relation country
type designation for an administrative territorial entity
{'OR': [['Hyder Akbar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zagaj, West Pomeranian Voivodeship', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Zagaj,_West_Pomeranian_Voivodeship property:country ?g } UNION { resource:Hyder_Akbar property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q36 Q889
SYSTEM
United States of America, Poland, Afghanistan
Q30 Q36 Q889
OR((Q5953795,P27,c(Q15617994)), (Q950615,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5953795
relation P27
action find
entity Q950615
relation P17
type Q15617994
[ANSWERS] are Hyder Akbar a civilian of or do Zagaj, West Pomeranian Voivodeship belong to
{'OR': [['Q5953795', 'P27', {'concept': 'Q15617994'}], ['Q950615', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q950615 property:P17 ?g } UNION { resource:Q5953795 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
United States of America Poland Afghanistan
United States of America, Poland and Afghanistan are Hyder Akbar a civilian of or do Zagaj, West Pomeranian Voivodeship belong to
United States of America Poland Afghanistan
action filter_type
action union
action find
entity Hyder Akbar
relation country of citizenship
action find
entity Zagaj, West Pomeranian Voivodeship
relation country
type designation for an administrative territorial entity
{'OR': [['Hyder Akbar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Zagaj, West Pomeranian Voivodeship', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Zagaj,_West_Pomeranian_Voivodeship property:country ?g } UNION { resource:Hyder_Akbar property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P495
Q15617994 Q838948 Q2031291
USER
Which administrative territories are the countries of origin of approximately the same number of works of art or releases as that administrative territory ?
(c(Q838948)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
designation for an administrative territorial entity work of art release
Comparative|More/Less|Mult. entity type|Clarification
Q889
SYSTEM
Did you mean Afghanistan ?
(c(Q838948)|c(Q2031291),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Did you mean Afghanistan ?
Afghanistan
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Comparative Reasoning (All)
USER
Yes
(c(Q838948)|c(Q2031291),P495,c(Q15617994))
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
Q155 Q230 Q159
SYSTEM
Brazil, Georgia, Russia
Q805 Q804 Q801 Q800 Q1462 Q419 Q414 Q55 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 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(Q838948)|c(Q2031291),P495,c(Q15617994))
[ANSWERS] are the countries of origin of approximately the same number of works of art or releases as that administrative territory
[[{'concept': 'Q838948'}, {'concept': 'Q2031291'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2031291 }
Yemen Panama Israel Costa Rica Sardinia Peru Argentina Netherlands 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 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
Brazil, Georgia and Russia are the countries of origin of approximately the same number of works of art or releases as that administrative territory
Brazil Georgia Russia
[[{'concept': 'work of art'}, {'concept': 'release'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P706
Q1267889 Q355304 Q15617994
USER
Which administrative territories are located in min number of waterways and watercourses ?
(c(Q15617994),P706,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action find_tuple_counts
relation P706
type Q15617994
type Q355304
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { { ?q property:P706 ?c . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1267889 } UNION { ?q property:P706 ?c . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q355304 } } GROUP BY ?q } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?m } }
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { { ?q property:located_on_terrain_feature ?c . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:waterway } UNION { ?q property:located_on_terrain_feature ?c . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:watercourse } } GROUP BY ?q } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?m } }
[]
waterway watercourse designation for an administrative territorial entity
Q148 Q145 Q805
SYSTEM
People's Republic of China, United Kingdom, Yemen
Q805 Q1070686 Q695445 Q2712111 Q489215 Q5101419 Q682072 Q6685870 Q4692591 Q525879 Q24846 Q267993 Q3172 Q922342 Q637400 Q21042 Q632868 Q148 Q784 Q21049 Q786 Q25129 Q7042 Q312335 Q21160 Q525945 Q5382040 Q252320 Q3003231 Q505665 Q1462 Q15744129 Q4692611 Q521132 Q790 Q508054 Q1721440 Q5517964 Q496389 Q555609 Q267005 Q128230 Q27332 Q1619957 Q1093572 Q6350324 Q204529 Q244 Q4789577 Q501683 Q582690 Q20789 Q16642582 Q33 Q921 Q633162 Q3146 Q520347 Q851 Q845396 Q15213143 Q598754 Q252772 Q21074475 Q81306 Q771971 Q1778088 Q3942 Q145 Q333149 Q27 Q494305 Q4770750 Q20836 Q20837 Q769680 Q5420482 Q19906291 Q192129 Q502662 Q47821 Q20019215 Q503693 Q4692647 Q3038 Q3068 Q331886 Q15244035 Q6472577 Q25130 Q588957 Q25135 Q229 Q3218 Q4769813 Q112019 Q704288 Q21008 Q7916724 Q660806 Q25125 Q29931 Q28091 Q754 Q507258 Q25082 Q5275507 Q28013 Q558787 Q14892 Q180271 Q262684 Q6353095 Q628095 Q3923 Q27649869 Q5283827 Q3193 Q522992 Q15744111 Q23968 Q760 Q6835962 Q489865 Q518171 Q2119591 Q46870 Q72432 Q504134 Q625747 Q2585085 Q20754 Q8147649 Q153969 Q481758 Q8043694 Q55416 Q31640 Q3559483 Q376823 Q3559279 Q3559271
(c(Q15617994),P706,c(Q1267889)|c(Q355304))
action argmin
action union
action find_tuple_counts
relation P706
type Q15617994
type Q1267889
action find_tuple_counts
relation P706
type Q15617994
type Q355304
[ANSWERS] are located in min number of waterways and watercourses
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q1267889'}, {'concept': 'Q355304'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { { ?q property:P706 ?c . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q1267889 } UNION { ?q property:P706 ?c . ?q rdf:type ontology:Q15617994 . ?c rdf:type ontology:Q355304 } } GROUP BY ?q } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:Q1267889 ) ( ontology:Q355304 ) } } GROUP BY ?m } }
Yemen Leivathos Langen Zagori Oberhof Chionata Rankwitz Loucha Agioi Pantes Haundorf Juist Muhr am See Fehmarn Sithonia Hohenwarte Nebel Sasbach People's Republic of China Dominica Norddorf auf Amrum Dominican Republic Langeoog Amberg Spalt List auf Sylt Pfofeld Epanochori, Cephalonia Pleinfeld Croisset Bergen Sardinia Oberscheuren Agios Dimitrios, Cephalonia Hilpoltstein Haiti Neu Wulmstorf Kaimig Galaro Lipari Magdala Moneglia Ventotene Kampen Hippelsbach Trøllanes Kalamaki, Zakynthos Zingst Barbados Arginia Rosengarten Neuenhagen bei Berlin Wenningstedt-Braderup Hydra Finland Brunei Drestedt Pellworm Röttenbach, Roth Saudi Arabia Pyramiden Davgata Undeloh Eichstätt Nenndorf Forbach Avlida Kochenbach Aschaffenburg United Kingdom Abstatt Ireland Kelheim Ansons Bay Hallig Hooge Fanø Bornholm Exo Chora Western New Guinea Ustica Bad Salzungen Malcesine Natal Riedenburg Agios Nikolaos, Cephalonia Helgoland Loire-Atlantique Absberg Makryotika Lagopodo Spiekeroog Allersberg Wangerooge Cyprus Insel Hiddensee Ano Gerakari Sirmione Duchy of Holstein Sylt Vasilikades Karlshagen Baltrum Langeneß Wittdün auf Amrum Trinidad and Tobago Kipfenberg Borkum Digaleto Hörnum Südeichsfeld Buchholz in der Nordheide Vetralla Füssen Kalipado Nürburg Bayreuth Teglkås Divarata Ostseebad Insel Poel Braunlage Niederscheuren Norderney Saint Lucia Michata Isola delle Femmine Ellhofen Pylaros Bardolino Procida Kirchlinteln Rangsdorf Wintersberg Gröde Ba District Lindau Pantelleria Xenopoulo Chioggia Unterschwaningen Elatia Wenzendorf Artemisia Arkadioi
People's Republic of China, United Kingdom and Yemen are located in min number of waterways and watercourses
People's Republic of China United Kingdom Yemen
action argmin
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type waterway
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type watercourse
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'waterway'}, {'concept': 'watercourse'}]]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( MIN ( ?r ) AS ?z ) { SELECT DISTINCT ?q ( COUNT ( ?c ) AS ?r ) WHERE { { ?q property:located_on_terrain_feature ?c . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:waterway } UNION { ?q property:located_on_terrain_feature ?c . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c rdf:type ontology:watercourse } } GROUP BY ?q } } . FILTER ( ?u = ?z ) . { SELECT DISTINCT ?m ( COUNT ( ?s ) AS ?u ) WHERE { ?s rdf:type ?d . VALUES ( ?d ) { ( ontology:waterway ) ( ontology:watercourse ) } } GROUP BY ?m } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q38
P530
Q15617994
USER
Do Italy have ambassadorial relations with those ones ?
(Q38,P530,Q148) (Q38,P530,Q145) (Q38,P530,Q805)
action is_in
entity prev_answer
action find
entity Q38
relation P530
['Q38', 'P530', 'Q148'] ['Q38', 'P530', 'Q145'] ['Q38', 'P530', 'Q805']
ASK WHERE { resource:Q38 property:P530 ?b . VALUES ( ?b ) { ( resource:Q805 ) ( resource:Q1070686 ) ( resource:Q695445 ) } }
Italy
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', "People's Republic of China"] ['Italy', 'diplomatic relation', 'United Kingdom'] ['Italy', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Italy property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Yemen ) ( resource:Leivathos ) ( resource:Langen ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q38,P530,Q148) (Q38,P530,Q145) (Q38,P530,Q805)
action is_in
entity prev_answer
action find
entity Q38
relation P530
[ANSWER]
['Q38', 'P530', 'Q148'] ['Q38', 'P530', 'Q145'] ['Q38', 'P530', 'Q805']
ASK WHERE { resource:Q38 property:P530 ?b . VALUES ( ?b ) { ( resource:Q805 ) ( resource:Q1070686 ) ( resource:Q695445 ) } }
Yes
action is_in
entity prev_answer
action find
entity Italy
relation diplomatic relation
['Italy', 'diplomatic relation', "People's Republic of China"] ['Italy', 'diplomatic relation', 'United Kingdom'] ['Italy', 'diplomatic relation', 'Yemen']
ASK WHERE { resource:Italy property:diplomatic_relation ?b . VALUES ( ?b ) { ( resource:Yemen ) ( resource:Leivathos ) ( resource:Langen ) } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q9267 Q5953795
P27 P17
Q15617994
USER
Which administrative territories are Hyder Akbar an inhabitant of and are Turkmen present in ?
AND((Q5953795,P27,c(Q15617994)), (Q9267,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5953795
relation P27
action find
entity Q9267
relation P17
type Q15617994
{'AND': [['Q5953795', 'P27', {'concept': 'Q15617994'}], ['Q9267', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q5953795 property:P27 ?g . resource:Q9267 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Turkmen Hyder Akbar
action filter_type
action intersection
action find
entity Hyder Akbar
relation country of citizenship
action find
entity Turkmen
relation country
type designation for an administrative territorial entity
{'AND': [['Hyder Akbar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Turkmen', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Hyder_Akbar property:country_of_citizenship ?g . resource:Turkmen property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q889
SYSTEM
Afghanistan
Q889
AND((Q5953795,P27,c(Q15617994)), (Q9267,P17,c(Q15617994)))
action filter_type
action intersection
action find
entity Q5953795
relation P27
action find
entity Q9267
relation P17
type Q15617994
[ANSWER] is Hyder Akbar an inhabitant of and is Turkmen present in
{'AND': [['Q5953795', 'P27', {'concept': 'Q15617994'}], ['Q9267', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { resource:Q5953795 property:P27 ?g . resource:Q9267 property:P17 ?g . ?g rdf:type ontology:Q15617994 }
Afghanistan
Afghanistan is Hyder Akbar an inhabitant of and is Turkmen present in
Afghanistan
action filter_type
action intersection
action find
entity Hyder Akbar
relation country of citizenship
action find
entity Turkmen
relation country
type designation for an administrative territorial entity
{'AND': [['Hyder Akbar', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Turkmen', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { resource:Hyder_Akbar property:country_of_citizenship ?g . resource:Turkmen property:country ?g . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]