Simple Question (Direct)
Simple Question
Q823966
P20
Q56061
USER
Where did the expiration of Christian Wilhelm von Faber du Faur occur ?
(Q823966,P20,c(Q56061))
action filter_type
action find
entity Q823966
relation P20
type Q56061
['Q823966', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q823966 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Christian Wilhelm von Faber du Faur
action filter_type
action find
entity Christian Wilhelm von Faber du Faur
relation place of death
type administrative territorial entity
['Christian Wilhelm von Faber du Faur', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Christian_Wilhelm_von_Faber_du_Faur property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1022
SYSTEM
Stuttgart
Q1022
(Q823966,P20,c(Q56061))
action filter_type
action find
entity Q823966
relation P20
type Q56061
The expiration of Christian Wilhelm von Faber du Faur occurred in [ANSWER]
['Q823966', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?d WHERE { resource:Q823966 property:P20 ?d . ?d rdf:type ontology:Q56061 }
Stuttgart
The expiration of Christian Wilhelm von Faber du Faur occurred in Stuttgart
Stuttgart
action filter_type
action find
entity Christian Wilhelm von Faber du Faur
relation place of death
type administrative territorial entity
['Christian Wilhelm von Faber du Faur', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { resource:Christian_Wilhelm_von_Faber_du_Faur property:place_of_death ?d . ?d rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1022
P610
Q14524493
USER
Which is the highest point of that administrative territory ?
(Q1022,P610,c(Q14524493))
action filter_type
action find
entity Q1022
relation P610
type Q14524493
['Q1022', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { resource:Q1022 property:P610 ?m . ?m rdf:type ontology:Q14524493 }
Stuttgart
action filter_type
action find
entity Stuttgart
relation highest point
type terrain
['Stuttgart', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { resource:Stuttgart property:highest_point ?m . ?m rdf:type ontology:terrain }
[]
terrain
Q826470
SYSTEM
Bernhartshöhe
Q826470
(Q1022,P610,c(Q14524493))
action filter_type
action find
entity Q1022
relation P610
type Q14524493
The highest point of that administrative territory is the [ANSWER]
['Q1022', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?m WHERE { resource:Q1022 property:P610 ?m . ?m rdf:type ontology:Q14524493 }
Bernhartshöhe
The highest point of that administrative territory is the Bernhartshöhe
Bernhartshöhe
action filter_type
action find
entity Stuttgart
relation highest point
type terrain
['Stuttgart', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?m WHERE { resource:Stuttgart property:highest_point ?m . ?m rdf:type ontology:terrain }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q234
P706
Q1048835 Q14524493
USER
Which political territories are the location where approximately the same number of terrains are located as Flemish Region ?
(c(Q14524493),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q14524493
action count
action filter_type
action find
entity Q234
relation P706
type Q1048835
[{'concept': 'Q14524493'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q234 property:P706 ?o . ?o rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q14524493 . ?g rdf:type ontology:Q1048835 . ?k property:P706 ?g } GROUP BY ?g } }
Flemish Region
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type terrain
action count
action filter_type
action find
entity Flemish Region
relation located on terrain feature
type political territorial entity
[{'concept': 'terrain'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Flemish_Region property:located_on_terrain_feature ?o . ?o rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:terrain . ?g rdf:type ontology:political_territorial_entity . ?k property:located_on_terrain_feature ?g } GROUP BY ?g } }
[]
political territorial entity terrain
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q2012050 Q1747689 Q188399 Q183 Q785 Q47134 Q13769 Q202023 Q9676 Q10557 Q5705 Q7166 Q5783 Q168159 Q35 Q80967 Q109128 Q190930 Q100166 Q234 Q40 Q3908 Q23635 Q25228
(c(Q14524493),P706,c(Q1048835))
action approx
action find_reverse_tuple_counts
relation P706
type Q1048835
type Q14524493
action count
action filter_type
action find
entity Q234
relation P706
type Q1048835
[ANSWERS] are the location where approximately the same number of terrains are located as Flemish Region
[{'concept': 'Q14524493'}, 'P706', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Q234 property:P706 ?o . ?o rdf:type ontology:Q1048835 } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:Q14524493 . ?g rdf:type ontology:Q1048835 . ?k property:P706 ?g } GROUP BY ?g } }
Donetsk Oblast Ancient Rome Central Bohemian Region Germany Jersey Shetland Camiguin Herm Isle of Man Swabia Catalonia Heilbronn Andalusia Anglesey Denmark Outer Hebrides Gwynedd Vysočina Region Orkney Islands Flemish Region Austria Galicia Bermuda Anguilla
Germany, Denmark and Austria are the location where approximately the same number of terrains are located as Flemish Region
Germany Denmark Austria
action approx
action find_reverse_tuple_counts
relation located on terrain feature
type political territorial entity
type terrain
action count
action filter_type
action find
entity Flemish Region
relation located on terrain feature
type political territorial entity
[{'concept': 'terrain'}, 'located on terrain feature', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { FILTER ( ?z = ?x ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) WHERE { resource:Flemish_Region property:located_on_terrain_feature ?o . ?o rdf:type ontology:political_territorial_entity } } . { SELECT DISTINCT ?g ( COUNT ( ?k ) AS ?z ) WHERE { ?k rdf:type ontology:terrain . ?g rdf:type ontology:political_territorial_entity . ?k property:located_on_terrain_feature ?g } GROUP BY ?g } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4824563 Q35
P161 P6
Q502895
USER
Which people have Denmark as their heads of government or are in Australian Pie ?
OR((Q35,P6,c(Q502895)), (Q4824563,P161,c(Q502895)))
action filter_type
action union
action find
entity Q35
relation P6
action find
entity Q4824563
relation P161
type Q502895
{'OR': [['Q35', 'P6', {'concept': 'Q502895'}], ['Q4824563', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q35 property:P6 ?a } UNION { resource:Q4824563 property:P161 ?a } } }
Australian Pie Denmark
action filter_type
action union
action find
entity Denmark
relation head of government
action find
entity Australian Pie
relation cast member
type common name
{'OR': [['Denmark', 'head of government', {'concept': 'common name'}], ['Australian Pie', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Denmark property:head_of_government ?a } UNION { resource:Australian_Pie property:cast_member ?a } } }
[]
common name
Q351178 Q1040851 Q918287 Q947911 Q1744787 Q264340 Q503087 Q947789 Q1375737 Q1375050
SYSTEM
Some of them are Adam Wilhelm Moltke, Carl Theodor Zahle, Viggo Kampmann, Christian Albrecht Bluhme, Otto Liebe, Klaus Berntsen, Hans Hedtoft, Carl Christoffer Georg Andræ, Michael Pedersen Friis, Tage Reedtz-Thott
Q441330 Q1040851 Q1037599 Q491280 Q918287 Q57652 Q503087 Q725118 Q264340 Q727237 Q1634992 Q4822867 Q1274220 Q782403 Q351178 Q367557 Q1375737 Q1343866 Q721358 Q1375094 Q966436 Q1343877 Q312881 Q46052 Q1335084 Q12858162 Q1744787 Q1576188 Q182397 Q327190 Q348901 Q572189 Q664052 Q710950 Q311063 Q1874069 Q947789 Q591189 Q1375050 Q947911 Q694093 Q731504 Q982328
OR((Q35,P6,c(Q502895)), (Q4824563,P161,c(Q502895)))
action filter_type
action union
action find
entity Q35
relation P6
action find
entity Q4824563
relation P161
type Q502895
[ANSWERS] have Denmark as their heads of government or are in Australian Pie
{'OR': [['Q35', 'P6', {'concept': 'Q502895'}], ['Q4824563', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . { { resource:Q35 property:P6 ?a } UNION { resource:Q4824563 property:P161 ?a } } }
Jens Otto Krag Carl Theodor Zahle Carl Edvard Rotwitt Anders Sandøe Ørsted Viggo Kampmann Helle Thorning-Schmidt Hans Hedtoft Carl Christian Hall Klaus Berntsen Hilmar Baunsgaard Hugo Egmont Hørring Austen Tayshus Jens Christian Christensen Christian Emil Krag-Juel-Vind-Frijs Adam Wilhelm Moltke Thorvald Stauning Michael Pedersen Friis Ludvig Holstein-Holsteinborg H. C. Hansen Niels Neergaard Christen Andreas Fonnesbech Jacob Brønnum Scavenius Estrup Anker Jørgensen Anders Fogh Rasmussen Knud Kristensen Ed Kavalee Otto Liebe Hannibal Sehested Lars Løkke Rasmussen Poul Schlüter Poul Hartling Johan Henrik Deuntzer Vilhelm Buhl Erik Eriksen Poul Nyrup Rasmussen Ludvig Holstein-Ledreborg Carl Christoffer Georg Andræ Peter Georg Bang Tage Reedtz-Thott Christian Albrecht Bluhme Ditlev Gothard Monrad Erik Scavenius Thomas Madsen-Mygdal
Adam Wilhelm Moltke, Carl Theodor Zahle, Viggo Kampmann, Christian Albrecht Bluhme, Otto Liebe, Klaus Berntsen, Hans Hedtoft, Carl Christoffer Georg Andræ, Michael Pedersen Friis and Tage Reedtz-Thott have Denmark as their heads of government or are in Australian Pie
Adam Wilhelm Moltke Carl Theodor Zahle Viggo Kampmann Christian Albrecht Bluhme Otto Liebe Klaus Berntsen Hans Hedtoft Carl Christoffer Georg Andræ Michael Pedersen Friis Tage Reedtz-Thott
action filter_type
action union
action find
entity Denmark
relation head of government
action find
entity Australian Pie
relation cast member
type common name
{'OR': [['Denmark', 'head of government', {'concept': 'common name'}], ['Australian Pie', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . { { resource:Denmark property:head_of_government ?a } UNION { resource:Australian_Pie property:cast_member ?a } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q366166 Q503087
P509
Q2057971
USER
Which health problems were the causes of death of Hans Hedtoft or Johnny Torrio ?
OR((Q503087,P509,c(Q2057971)), (Q366166,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q503087
relation P509
action find
entity Q366166
relation P509
type Q2057971
{'OR': [['Q503087', 'P509', {'concept': 'Q2057971'}], ['Q366166', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q503087 property:P509 ?h } UNION { resource:Q366166 property:P509 ?h } } . ?h rdf:type ontology:Q2057971 }
Johnny Torrio Hans Hedtoft
action filter_type
action union
action find
entity Hans Hedtoft
relation cause of death
action find
entity Johnny Torrio
relation cause of death
type health problem
{'OR': [['Hans Hedtoft', 'cause of death', {'concept': 'health problem'}], ['Johnny Torrio', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hans_Hedtoft property:cause_of_death ?h } UNION { resource:Johnny_Torrio property:cause_of_death ?h } } . ?h rdf:type ontology:health_problem }
[]
health problem
Q12152
SYSTEM
myocardial infarction
Q12152
OR((Q503087,P509,c(Q2057971)), (Q366166,P509,c(Q2057971)))
action filter_type
action union
action find
entity Q503087
relation P509
action find
entity Q366166
relation P509
type Q2057971
[ANSWER] was the causes of death of Hans Hedtoft or Johnny Torrio
{'OR': [['Q503087', 'P509', {'concept': 'Q2057971'}], ['Q366166', 'P509', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q503087 property:P509 ?h } UNION { resource:Q366166 property:P509 ?h } } . ?h rdf:type ontology:Q2057971 }
myocardial infarction
Myocardial infarction was the causes of death of Hans Hedtoft or Johnny Torrio
myocardial infarction
action filter_type
action union
action find
entity Hans Hedtoft
relation cause of death
action find
entity Johnny Torrio
relation cause of death
type health problem
{'OR': [['Hans Hedtoft', 'cause of death', {'concept': 'health problem'}], ['Johnny Torrio', 'cause of death', {'concept': 'health problem'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Hans_Hedtoft property:cause_of_death ?h } UNION { resource:Johnny_Torrio property:cause_of_death ?h } } . ?h rdf:type ontology:health_problem }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12152 Q412534 Q416701
P2176
Q8386
USER
Does myocardial infarction require carvedilol and mianserin to be prescribed ?
(Q12152,P2176,Q412534) (Q12152,P2176,Q416701)
action is_in
entity Q12152
action intersection
action find_reverse
entity Q412534
relation P2176
action find_reverse
entity Q416701
relation P2176
['Q12152', 'P2176', 'Q412534'] ['Q12152', 'P2176', 'Q416701']
ASK WHERE { resource:Q12152 property:P2176 resource:Q412534 . resource:Q12152 property:P2176 resource:Q416701 }
myocardial infarction carvedilol mianserin
action is_in
entity myocardial infarction
action intersection
action find_reverse
entity carvedilol
relation drug used for treatment
action find_reverse
entity mianserin
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'carvedilol'] ['myocardial infarction', 'drug used for treatment', 'mianserin']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:carvedilol . resource:myocardial_infarction property:drug_used_for_treatment resource:mianserin }
[]
drug
SYSTEM
YES and NO respectively
(Q12152,P2176,Q412534) (Q12152,P2176,Q416701)
action is_in
entity Q12152
action intersection
action find_reverse
entity Q412534
relation P2176
action find_reverse
entity Q416701
relation P2176
[ANSWER]
['Q12152', 'P2176', 'Q412534'] ['Q12152', 'P2176', 'Q416701']
ASK WHERE { resource:Q12152 property:P2176 resource:Q412534 . resource:Q12152 property:P2176 resource:Q416701 }
YES and NO respectively
action is_in
entity myocardial infarction
action intersection
action find_reverse
entity carvedilol
relation drug used for treatment
action find_reverse
entity mianserin
relation drug used for treatment
['myocardial infarction', 'drug used for treatment', 'carvedilol'] ['myocardial infarction', 'drug used for treatment', 'mianserin']
ASK WHERE { resource:myocardial_infarction property:drug_used_for_treatment resource:carvedilol . resource:myocardial_infarction property:drug_used_for_treatment resource:mianserin }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q503087
P991
Q1076105
USER
Which general elections were Hans Hedtoft a successful candidate from ?
(c(Q1076105),P991,Q503087)
action filter_type
action find_reverse
entity Q503087
relation P991
type Q1076105
[{'concept': 'Q1076105'}, 'P991', 'Q503087']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1076105 . ?w property:P991 resource:Q503087 }
Hans Hedtoft
action filter_type
action find_reverse
entity Hans Hedtoft
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Hans Hedtoft']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:general_election . ?w property:successful_candidate resource:Hans_Hedtoft }
[]
general election
Q3777465 Q3777561
SYSTEM
1947 Danish Folketing election, Danish parliamentary election, September 1953
Q3777465 Q3777561
(c(Q1076105),P991,Q503087)
action filter_type
action find_reverse
entity Q503087
relation P991
type Q1076105
[ANSWERS]
[{'concept': 'Q1076105'}, 'P991', 'Q503087']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:Q1076105 . ?w property:P991 resource:Q503087 }
1947 Danish Folketing election Danish parliamentary election, September 1953
The 1947 Danish Folketing election and Danish parliamentary election, September 1953 were Hans Hedtoft a successful candidate from
1947 Danish Folketing election Danish parliamentary election, September 1953
action filter_type
action find_reverse
entity Hans Hedtoft
relation successful candidate
type general election
[{'concept': 'general election'}, 'successful candidate', 'Hans Hedtoft']
SELECT DISTINCT ?w WHERE { ?w rdf:type ontology:general_election . ?w property:successful_candidate resource:Hans_Hedtoft }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q503087
P39
Q12737077
USER
Which occupations were a position held by Hans Hedtoft ?
(Q503087,P39,c(Q12737077))
action filter_type
action find
entity Q503087
relation P39
type Q12737077
['Q503087', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q503087 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
Hans Hedtoft
action filter_type
action find
entity Hans Hedtoft
relation position held
type occupation
['Hans Hedtoft', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Hans_Hedtoft property:position_held ?z . ?z rdf:type ontology:occupation }
[]
occupation
Q19185575 Q795477
SYSTEM
President of the Nordic Council, Prime Minister of Denmark
Q19185575 Q795477
(Q503087,P39,c(Q12737077))
action filter_type
action find
entity Q503087
relation P39
type Q12737077
[ANSWERS] were a position held by Hans Hedtoft
['Q503087', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?z WHERE { resource:Q503087 property:P39 ?z . ?z rdf:type ontology:Q12737077 }
President of the Nordic Council Prime Minister of Denmark
President of the Nordic Council and Prime Minister of Denmark were a position held by Hans Hedtoft
President of the Nordic Council Prime Minister of Denmark
action filter_type
action find
entity Hans Hedtoft
relation position held
type occupation
['Hans Hedtoft', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?z WHERE { resource:Hans_Hedtoft property:position_held ?z . ?z rdf:type ontology:occupation }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1377625
Q12737077
USER
And how about Paul Gerlach?
(Q1377625,P39,c(Q12737077))
action filter_type
action find
entity Q1377625
relation P39
type Q12737077
['Q1377625', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1377625 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Paul Gerlach
action filter_type
action find
entity Paul Gerlach
relation position held
type occupation
['Paul Gerlach', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Gerlach property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q1939555
SYSTEM
member of the German Bundestag
Q1939555
(Q1377625,P39,c(Q12737077))
action filter_type
action find
entity Q1377625
relation P39
type Q12737077
[ANSWER]
['Q1377625', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q1377625 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
member of the German Bundestag
member of the German Bundestag
action filter_type
action find
entity Paul Gerlach
relation position held
type occupation
['Paul Gerlach', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Paul_Gerlach property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1939555 Q1003402
P17
Q1048835
USER
Is that occupation a part of Gouvelândia ?
(Q1939555,P17,Q1003402)
action is_in
entity Q1003402
action find
entity Q1939555
relation P17
['Q1939555', 'P17', 'Q1003402']
ASK WHERE { resource:Q1939555 property:P17 resource:Q1003402 }
member of the German Bundestag Gouvelândia
action is_in
entity Gouvelândia
action find
entity member of the German Bundestag
relation country
['member of the German Bundestag', 'country', 'Gouvelândia']
ASK WHERE { resource:member_of_the_German_Bundestag property:country resource:Gouvelândia }
[]
political territorial entity
SYSTEM
NO
(Q1939555,P17,Q1003402)
action is_in
entity Q1003402
action find
entity Q1939555
relation P17
[ANSWER]
['Q1939555', 'P17', 'Q1003402']
ASK WHERE { resource:Q1939555 property:P17 resource:Q1003402 }
No
action is_in
entity Gouvelândia
action find
entity member of the German Bundestag
relation country
['member of the German Bundestag', 'country', 'Gouvelândia']
ASK WHERE { resource:member_of_the_German_Bundestag property:country resource:Gouvelândia }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12166186 Q366166
P27 P17
Q15617994
USER
Which administrative territories are Johnny Torrio a civilian of or are Fratoștița located in ?
OR((Q366166,P27,c(Q15617994)), (Q12166186,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q366166
relation P27
action find
entity Q12166186
relation P17
type Q15617994
{'OR': [['Q366166', 'P27', {'concept': 'Q15617994'}], ['Q12166186', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q366166 property:P27 ?r } UNION { resource:Q12166186 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Fratoștița Johnny Torrio
action filter_type
action union
action find
entity Johnny Torrio
relation country of citizenship
action find
entity Fratoștița
relation country
type designation for an administrative territorial entity
{'OR': [['Johnny Torrio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fratoștița', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Johnny_Torrio property:country_of_citizenship ?r } UNION { resource:Fratoștița property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q218 Q30 Q38
SYSTEM
Romania, United States of America, Italy
Q218 Q30 Q38
OR((Q366166,P27,c(Q15617994)), (Q12166186,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q366166
relation P27
action find
entity Q12166186
relation P17
type Q15617994
[ANSWERS] are Johnny Torrio a civilian of or are Fratoștița located in
{'OR': [['Q366166', 'P27', {'concept': 'Q15617994'}], ['Q12166186', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Q366166 property:P27 ?r } UNION { resource:Q12166186 property:P17 ?r } } . ?r rdf:type ontology:Q15617994 }
Romania United States of America Italy
Romania, United States of America and Italy are Johnny Torrio a civilian of or are Fratoștița located in
Romania United States of America Italy
action filter_type
action union
action find
entity Johnny Torrio
relation country of citizenship
action find
entity Fratoștița
relation country
type designation for an administrative territorial entity
{'OR': [['Johnny Torrio', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Fratoștița', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { { resource:Johnny_Torrio property:country_of_citizenship ?r } UNION { resource:Fratoștița property:country ?r } } . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q16
P530
Q1048835
USER
Do Canada have diplomatic relations with those administrative territories ?
(Q16,P530,Q218) (Q16,P530,Q30) (Q16,P530,Q38)
action is_in
entity prev_answer
action find
entity Q16
relation P530
['Q16', 'P530', 'Q218'] ['Q16', 'P530', 'Q30'] ['Q16', 'P530', 'Q38']
ASK WHERE { resource:Q16 property:P530 ?w . VALUES ( ?w ) { ( resource:Q218 ) ( resource:Q30 ) ( resource:Q38 ) } }
Canada
action is_in
entity prev_answer
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Romania'] ['Canada', 'diplomatic relation', 'United States of America'] ['Canada', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Canada property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Romania ) ( resource:United_States_of_America ) ( resource:Italy ) } }
[]
political territorial entity
SYSTEM
YES
(Q16,P530,Q218) (Q16,P530,Q30) (Q16,P530,Q38)
action is_in
entity prev_answer
action find
entity Q16
relation P530
[ANSWER]
['Q16', 'P530', 'Q218'] ['Q16', 'P530', 'Q30'] ['Q16', 'P530', 'Q38']
ASK WHERE { resource:Q16 property:P530 ?w . VALUES ( ?w ) { ( resource:Q218 ) ( resource:Q30 ) ( resource:Q38 ) } }
Yes
action is_in
entity prev_answer
action find
entity Canada
relation diplomatic relation
['Canada', 'diplomatic relation', 'Romania'] ['Canada', 'diplomatic relation', 'United States of America'] ['Canada', 'diplomatic relation', 'Italy']
ASK WHERE { resource:Canada property:diplomatic_relation ?w . VALUES ( ?w ) { ( resource:Romania ) ( resource:United_States_of_America ) ( resource:Italy ) } }
[]