Simple Question (Direct)
Simple Question
Q61911
P7
Q502895
USER
Who has Princess Therese of Saxe-Altenburg as their sibling ?
(Q61911,P7,c(Q502895))
action filter_type
action find
entity Q61911
relation P7
type Q502895
['Q61911', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q61911 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Princess Therese of Saxe-Altenburg
action filter_type
action find
entity Princess Therese of Saxe-Altenburg
relation brother
type common name
['Princess Therese of Saxe-Altenburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Princess_Therese_of_Saxe-Altenburg property:brother ?y . ?y rdf:type ontology:common_name }
[]
common name
Q65509
SYSTEM
Prince Albert of Saxe-Altenburg
Q65509
(Q61911,P7,c(Q502895))
action filter_type
action find
entity Q61911
relation P7
type Q502895
[ANSWER] has Princess Therese of Saxe-Altenburg as their sibling
['Q61911', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q61911 property:P7 ?y . ?y rdf:type ontology:Q502895 }
Prince Albert of Saxe-Altenburg
Prince Albert of Saxe-Altenburg has Princess Therese of Saxe-Altenburg as their sibling
Prince Albert of Saxe-Altenburg
action filter_type
action find
entity Princess Therese of Saxe-Altenburg
relation brother
type common name
['Princess Therese of Saxe-Altenburg', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:Princess_Therese_of_Saxe-Altenburg property:brother ?y . ?y rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61911
P20
Q56061
USER
Which administrative territory is the place of death of Princess Therese of Saxe-Altenburg ?
(Q61911,P20,c(Q56061))
action filter_type
action find
entity Q61911
relation P20
type Q56061
['Q61911', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q61911 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Princess Therese of Saxe-Altenburg
action filter_type
action find
entity Princess Therese of Saxe-Altenburg
relation place of death
type administrative territorial entity
['Princess Therese of Saxe-Altenburg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Princess_Therese_of_Saxe-Altenburg property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q61911,P20,c(Q56061))
action filter_type
action find
entity Q61911
relation P20
type Q56061
[ANSWER] is the place of death of Princess Therese of Saxe-Altenburg
['Q61911', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { resource:Q61911 property:P20 ?p . ?p rdf:type ontology:Q56061 }
Stockholm
Stockholm is the place of death of Princess Therese of Saxe-Altenburg
Stockholm
action filter_type
action find
entity Princess Therese of Saxe-Altenburg
relation place of death
type administrative territorial entity
['Princess Therese of Saxe-Altenburg', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { resource:Princess_Therese_of_Saxe-Altenburg property:place_of_death ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1754
P190
Q515
USER
Which cities are partner towns of that administrative territory ?
(Q1754,P190,c(Q515))
action filter_type
action find
entity Q1754
relation P190
type Q515
['Q1754', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q1754 property:P190 ?v . ?v rdf:type ontology:Q515 }
Stockholm
action filter_type
action find
entity Stockholm
relation sister city
type city
['Stockholm', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Stockholm property:sister_city ?v . ?v rdf:type ontology:city }
[]
city
Q1773 Q1899 Q11194
SYSTEM
Riga, Kyiv, Sarajevo
Q3624 Q3572 Q19689 Q1899 Q1773 Q11194
(Q1754,P190,c(Q515))
action filter_type
action find
entity Q1754
relation P190
type Q515
[ANSWERS] are partner towns of that administrative territory
['Q1754', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?v WHERE { resource:Q1754 property:P190 ?v . ?v rdf:type ontology:Q515 }
Addis Ababa Tunis Tirana Kyiv Riga Sarajevo
Riga, Kyiv and Sarajevo are partner towns of that administrative territory
Riga Kyiv Sarajevo
action filter_type
action find
entity Stockholm
relation sister city
type city
['Stockholm', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?v WHERE { resource:Stockholm property:sister_city ?v . ?v rdf:type ontology:city }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1773 Q1899 Q11194
P190
Q515
USER
Which cities are twin cities of those ones ?
(Q1773,P190,c(Q515)) (Q1899,P190,c(Q515)) (Q11194,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
['Q1773', 'P190', {'concept': 'Q515'}] ['Q1899', 'P190', {'concept': 'Q515'}] ['Q11194', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { ?x property:P190 ?f . ?f rdf:type ontology:Q515 . VALUES ( ?x ) { ( resource:Q3624 ) ( resource:Q3572 ) ( resource:Q19689 ) } }
Riga Kyiv Sarajevo
action filter_type
action find
entity prev_answer
relation sister city
type city
['Riga', 'sister city', {'concept': 'city'}] ['Kyiv', 'sister city', {'concept': 'city'}] ['Sarajevo', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { ?x property:sister_city ?f . ?f rdf:type ontology:city . VALUES ( ?x ) { ( resource:Addis_Ababa ) ( resource:Tunis ) ( resource:Tirana ) } }
[]
city
Q1486 Q1773 Q1899
SYSTEM
Buenos Aires, Riga, Kyiv
Q42622 Q2887 Q1899 Q1773 Q42622 Q2079 Q19689 Q1486 Q2887 Q1953 Q3926 Q3014 Q19689 Q11736
(Q1773,P190,c(Q515)) (Q1899,P190,c(Q515)) (Q11194,P190,c(Q515))
action filter_type
action find
entity prev_answer
relation P190
type Q515
[ANSWERS] are twin cities of those ones
['Q1773', 'P190', {'concept': 'Q515'}] ['Q1899', 'P190', {'concept': 'Q515'}] ['Q11194', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?f WHERE { ?x property:P190 ?f . ?f rdf:type ontology:Q515 . VALUES ( ?x ) { ( resource:Q3624 ) ( resource:Q3572 ) ( resource:Q19689 ) } }
Suzhou Santiago Kyiv Riga Suzhou Leipzig Tirana Buenos Aires Santiago Yerevan Pretoria Wolfsburg Tirana Tianjin
Buenos Aires, Riga and Kyiv are twin cities of those ones
Buenos Aires Riga Kyiv
action filter_type
action find
entity prev_answer
relation sister city
type city
['Riga', 'sister city', {'concept': 'city'}] ['Kyiv', 'sister city', {'concept': 'city'}] ['Sarajevo', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?f WHERE { ?x property:sister_city ?f . ?f rdf:type ontology:city . VALUES ( ?x ) { ( resource:Addis_Ababa ) ( resource:Tunis ) ( resource:Tirana ) } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1486 Q1773 Q1899
P190
Q56061
USER
Which administrative territories are sister towns of those cities ?
(Q1486,P190,c(Q56061)) (Q1773,P190,c(Q56061)) (Q1899,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q1486', 'P190', {'concept': 'Q56061'}] ['Q1773', 'P190', {'concept': 'Q56061'}] ['Q1899', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . ?m property:P190 ?o . VALUES ( ?m ) { ( resource:Q42622 ) ( resource:Q2887 ) ( resource:Q1899 ) } }
Buenos Aires Riga Kyiv
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}] ['Riga', 'sister city', {'concept': 'administrative territorial entity'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . ?m property:sister_city ?o . VALUES ( ?m ) { ( resource:Suzhou ) ( resource:Santiago ) ( resource:Kyiv ) } }
[]
administrative territorial entity
Q1085 Q649 Q649
SYSTEM
Moscow for 2nd, 3rd, Prague for 1st
Q3766 Q628 Q649 Q8745 Q270 Q3820 Q14314 Q13678 Q34820 Q25395 Q15695 Q1524 Q406 Q2634 Q1489 Q71 Q8717 Q8692 Q518431 Q3711 Q1085 Q33935 Q2656 Q84 Q85 Q34370 Q7880 Q1449 Q40269 Q1492 Q1930 Q10400 Q174 Q244324 Q2868 Q8678 Q15682 Q490 Q2807 Q597 Q956 Q1335 Q64 Q1218 Q5465 Q1897 Q1754 Q727 Q649 Q1867 Q1770 Q11959 Q35493 Q1479 Q16635 Q1520 Q48320 Q211907 Q180233 Q25724 Q2861 Q216 Q189133 Q270 Q25410 Q956 Q2280 Q2044 Q13972 Q1026270 Q16557 Q1757 Q994 Q727 Q9248 Q472 Q1754 Q1770 Q1297 Q5168 Q40840 Q23436 Q1520 Q1524 Q3711 Q1780 Q1781 Q25331 Q1741 Q1489 Q2044 Q206954 Q1726 Q21197 Q7880 Q216 Q172 Q270 Q8678 Q239 Q956 Q2280 Q3640
(Q1486,P190,c(Q56061)) (Q1773,P190,c(Q56061)) (Q1899,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS]
['Q1486', 'P190', {'concept': 'Q56061'}] ['Q1773', 'P190', {'concept': 'Q56061'}] ['Q1899', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q56061 . ?m property:P190 ?o . VALUES ( ?m ) { ( resource:Q42622 ) ( resource:Q2887 ) ( resource:Q1899 ) } }
Damascus Bergamo Moscow Vigo Warsaw Beirut Santiago de Compostela Agrigento Santo Domingo Newark Salamanca Athens Istanbul Naples Mexico City Geneva Seville Bilbao Chimbote Belgrade Prague Tel Aviv Palermo London Cairo Rotterdam Toulouse Genoa Porto Alegre Barcelona Ottawa Almería São Paulo Guadix Lima Rio de Janeiro Cádiz Milan Madrid Lisbon Beijing Montevideo Berlin Jerusalem Cape Town Cagliari Stockholm Amsterdam Moscow Taipei Tallinn Alicante Almaty Bordeaux Guam Astana Kōbe Slough Pori Norrköping Rostock Vilnius Cairns Warsaw Aalborg Beijing Minsk Florence Tartu Paita Dallas Helsinki Tbilisi Amsterdam Baku Sofia Stockholm Tallinn Chicago Makhachkala Tampere Edinburgh Astana Athens Belgrade Bratislava Budapest Odense Vienna Mexico City Florence Kastoria Munich Chișinău Toulouse Vilnius Toronto Warsaw Rio de Janeiro Brussels Beijing Minsk Ankara
Prague, Moscow and Moscow are sister towns of those cities
Prague Moscow Moscow
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Buenos Aires', 'sister city', {'concept': 'administrative territorial entity'}] ['Riga', 'sister city', {'concept': 'administrative territorial entity'}] ['Kyiv', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:administrative_territorial_entity . ?m property:sister_city ?o . VALUES ( ?m ) { ( resource:Suzhou ) ( resource:Santiago ) ( resource:Kyiv ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P30
Q2221906
USER
Which geographic location is Moscow a part of ?
(Q649,P30,c(Q2221906))
action filter_type
action find
entity Q649
relation P30
type Q2221906
['Q649', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { resource:Q649 property:P30 ?l . ?l rdf:type ontology:Q2221906 }
Moscow
action filter_type
action find
entity Moscow
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { resource:Moscow property:continent ?l . ?l rdf:type ontology:geographic_location }
[]
geographic location
Q46
SYSTEM
Europe
Q46
(Q649,P30,c(Q2221906))
action filter_type
action find
entity Q649
relation P30
type Q2221906
Which geographic location is Moscow a part of
['Q649', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ?l WHERE { resource:Q649 property:P30 ?l . ?l rdf:type ontology:Q2221906 }
Europe
Which geographic location is Moscow a part of
Europe
action filter_type
action find
entity Moscow
relation continent
type geographic location
['Moscow', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ?l WHERE { resource:Moscow property:continent ?l . ?l rdf:type ontology:geographic_location }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1899
P47
Q1048835
USER
Which political territory is bordered by Kyiv ?
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1899 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Kyiv
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kyiv property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q170036
SYSTEM
Kiev Oblast
Q170036
(Q1899,P47,c(Q1048835))
action filter_type
action find
entity Q1899
relation P47
type Q1048835
Ukraine [ANSWER] is bordered by Kyiv
['Q1899', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q1899 property:P47 ?a . ?a rdf:type ontology:Q1048835 }
Kiev Oblast
Ukraine Kiev Oblast is bordered by Kyiv
Kiev Oblast
action filter_type
action find
entity Kyiv
relation shares border with
type political territorial entity
['Kyiv', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kyiv property:shares_border_with ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1770869
Q1048835
USER
And how about Albesa?
(Q1770869,P47,c(Q1048835))
action filter_type
action find
entity Q1770869
relation P47
type Q1048835
['Q1770869', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1770869 property:P47 ?b }
Albesa
action filter_type
action find
entity Albesa
relation shares border with
type political territorial entity
['Albesa', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Albesa property:shares_border_with ?b }
[]
political territorial entity
Q1646570 Q1133160 Q1770837
SYSTEM
Almenar, Alguaire, Algerri
Q1769588 Q1133160 Q1770851 Q1765384 Q1902101 Q1770837 Q1646570
(Q1770869,P47,c(Q1048835))
action filter_type
action find
entity Q1770869
relation P47
type Q1048835
[ANSWERS]
['Q1770869', 'P47', {'concept': 'Q1048835'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q1048835 . resource:Q1770869 property:P47 ?b }
Menàrguens Alguaire Castelló de Farfanya Torrelameu La Portella Algerri Almenar
Almenar Alguaire Algerri
action filter_type
action find
entity Albesa
relation shares border with
type political territorial entity
['Albesa', 'shares border with', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:political_territorial_entity . resource:Albesa property:shares_border_with ?b }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q1770869
P47
Q1048835
USER
Do those ones share a border with Albesa ?
(Q1770869,P47,Q1646570) (Q1770869,P47,Q1133160) (Q1770869,P47,Q1770837)
action is_in
entity prev_answer
action find
entity Q1770869
relation P47
['Q1770869', 'P47', 'Q1646570'] ['Q1770869', 'P47', 'Q1133160'] ['Q1770869', 'P47', 'Q1770837']
ASK WHERE { VALUES ( ?z ) { ( resource:Q1769588 ) ( resource:Q1133160 ) ( resource:Q1770851 ) } . resource:Q1770869 property:P47 ?z }
Albesa
action is_in
entity prev_answer
action find
entity Albesa
relation shares border with
['Albesa', 'shares border with', 'Almenar'] ['Albesa', 'shares border with', 'Alguaire'] ['Albesa', 'shares border with', 'Algerri']
ASK WHERE { VALUES ( ?z ) { ( resource:Menàrguens ) ( resource:Alguaire ) ( resource:Castelló_de_Farfanya ) } . resource:Albesa property:shares_border_with ?z }
[]
political territorial entity
SYSTEM
YES
(Q1770869,P47,Q1646570) (Q1770869,P47,Q1133160) (Q1770869,P47,Q1770837)
action is_in
entity prev_answer
action find
entity Q1770869
relation P47
[ANSWER]
['Q1770869', 'P47', 'Q1646570'] ['Q1770869', 'P47', 'Q1133160'] ['Q1770869', 'P47', 'Q1770837']
ASK WHERE { VALUES ( ?z ) { ( resource:Q1769588 ) ( resource:Q1133160 ) ( resource:Q1770851 ) } . resource:Q1770869 property:P47 ?z }
Yes
action is_in
entity prev_answer
action find
entity Albesa
relation shares border with
['Albesa', 'shares border with', 'Almenar'] ['Albesa', 'shares border with', 'Alguaire'] ['Albesa', 'shares border with', 'Algerri']
ASK WHERE { VALUES ( ?z ) { ( resource:Menàrguens ) ( resource:Alguaire ) ( resource:Castelló_de_Farfanya ) } . resource:Albesa property:shares_border_with ?z }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q170036 Q52664 Q212
P17
Q15617994
USER
Is Kiev Oblast present in San Paolo Albanese and Ukraine ?
(Q170036,P17,Q52664) (Q170036,P17,Q212)
action is_in
entity Q170036
action intersection
action find_reverse
entity Q52664
relation P17
action find_reverse
entity Q212
relation P17
['Q170036', 'P17', 'Q52664'] ['Q170036', 'P17', 'Q212']
ASK WHERE { resource:Q170036 property:P17 resource:Q52664 . resource:Q170036 property:P17 resource:Q212 }
Kiev Oblast San Paolo Albanese Ukraine
action is_in
entity Kiev Oblast
action intersection
action find_reverse
entity San Paolo Albanese
relation country
action find_reverse
entity Ukraine
relation country
['Kiev Oblast', 'country', 'San Paolo Albanese'] ['Kiev Oblast', 'country', 'Ukraine']
ASK WHERE { resource:Kiev_Oblast property:country resource:San_Paolo_Albanese . resource:Kiev_Oblast property:country resource:Ukraine }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q170036,P17,Q52664) (Q170036,P17,Q212)
action is_in
entity Q170036
action intersection
action find_reverse
entity Q52664
relation P17
action find_reverse
entity Q212
relation P17
[ANSWER]
['Q170036', 'P17', 'Q52664'] ['Q170036', 'P17', 'Q212']
ASK WHERE { resource:Q170036 property:P17 resource:Q52664 . resource:Q170036 property:P17 resource:Q212 }
NO and YES respectively
action is_in
entity Kiev Oblast
action intersection
action find_reverse
entity San Paolo Albanese
relation country
action find_reverse
entity Ukraine
relation country
['Kiev Oblast', 'country', 'San Paolo Albanese'] ['Kiev Oblast', 'country', 'Ukraine']
ASK WHERE { resource:Kiev_Oblast property:country resource:San_Paolo_Albanese . resource:Kiev_Oblast property:country resource:Ukraine }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q65509
P21 P7
Q502895
USER
Which people are Prince Albert of Saxe-Altenburg a brother of and have the gender as male ?
AND((c(Q502895),P7,Q65509), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q65509
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q65509'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q65509 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
male Prince Albert of Saxe-Altenburg
action filter_type
action intersection
action find_reverse
entity Prince Albert of Saxe-Altenburg
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Prince Albert of Saxe-Altenburg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Prince_Albert_of_Saxe-Altenburg . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
common name
Q874627
SYSTEM
Prince Heinrich XXIV Reuss of Köstritz
Q874627
AND((c(Q502895),P7,Q65509), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q65509
relation P7
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is Prince Albert of Saxe-Altenburg a brother of and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P7', 'Q65509'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p property:P7 resource:Q65509 . ?p property:P21 resource:Q6581097 . ?p rdf:type ontology:Q502895 }
Prince Heinrich XXIV Reuss of Köstritz
Prince Heinrich XXIV Reuss of Köstritz is Prince Albert of Saxe-Altenburg a brother of and have the gender as male
Prince Heinrich XXIV Reuss of Köstritz
action filter_type
action intersection
action find_reverse
entity Prince Albert of Saxe-Altenburg
relation brother
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'brother', 'Prince Albert of Saxe-Altenburg'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p property:brother resource:Prince_Albert_of_Saxe-Altenburg . ?p property:gender resource:male . ?p rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11955318 Q649
P190 P551
Q56061
USER
Which administrative territories are partner towns of Moscow or did Xavier Salomó reside ?
OR((Q649,P190,c(Q56061)), (Q11955318,P551,c(Q56061)))
action filter_type
action union
action find
entity Q649
relation P190
action find
entity Q11955318
relation P551
type Q56061
{'OR': [['Q649', 'P190', {'concept': 'Q56061'}], ['Q11955318', 'P551', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q11955318 property:P551 ?h } UNION { resource:Q649 property:P190 ?h } } . ?h rdf:type ontology:Q56061 }
Xavier Salomó Moscow
action filter_type
action union
action find
entity Moscow
relation sister city
action find
entity Xavier Salomó
relation residence
type administrative territorial entity
{'OR': [['Moscow', 'sister city', {'concept': 'administrative territorial entity'}], ['Xavier Salomó', 'residence', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Xavier_Salomó property:residence ?h } UNION { resource:Moscow property:sister_city ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q3820 Q3630 Q1718 Q12258 Q131290 Q19566 Q1491 Q239 Q1085 Q1741
SYSTEM
Some of them are Beirut, Jakarta, Düsseldorf, Sabadell, Ganja, Simferopol, La Paz, Brussels, Prague, Vienna
Q807 Q41572 Q131290 Q994 Q437 Q1353 Q727 Q472 Q23564 Q179830 Q13498 Q178373 Q42308 Q1770 Q1718 Q18808 Q1297 Q1490 Q196678 Q1524 Q1780 Q1520 Q1741 Q12258 Q3630 Q140147 Q25409 Q33935 Q3561 Q3805 Q84 Q85 Q486282 Q19566 Q1861 Q3820 Q216 Q43070 Q270 Q987 Q239 Q2807 Q956 Q3640 Q64 Q1491 Q1218 Q133026 Q186576 Q1085
OR((Q649,P190,c(Q56061)), (Q11955318,P551,c(Q56061)))
action filter_type
action union
action find
entity Q649
relation P190
action find
entity Q11955318
relation P551
type Q56061
[ANSWERS] are partner towns of Moscow or did Xavier Salomó reside
{'OR': [['Q649', 'P190', {'concept': 'Q56061'}], ['Q11955318', 'P551', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q11955318 property:P551 ?h } UNION { resource:Q649 property:P190 ?h } } . ?h rdf:type ontology:Q56061 }
Lausanne Mykolaiv Ganja Tbilisi Ljubljana Delhi Amsterdam Sofia Podgorica Jelgava Taranto Rasht Kharkiv Tallinn Düsseldorf Pyongyang Chicago Tokyo Torzhok Athens Bratislava Astana Vienna Sabadell Jakarta Brest Košice Tel Aviv Algiers Amman London Cairo Pavlodar Simferopol Bangkok Beirut Vilnius Donetsk Warsaw New Delhi Brussels Madrid Beijing Ankara Berlin La Paz Jerusalem Kolomna Pazardzhik Prague
Beirut, Jakarta, Düsseldorf, Sabadell, Ganja, Simferopol, La Paz, Brussels, Prague and Vienna are partner towns of Moscow or did Xavier Salomó reside
Beirut Jakarta Düsseldorf Sabadell Ganja Simferopol La Paz Brussels Prague Vienna
action filter_type
action union
action find
entity Moscow
relation sister city
action find
entity Xavier Salomó
relation residence
type administrative territorial entity
{'OR': [['Moscow', 'sister city', {'concept': 'administrative territorial entity'}], ['Xavier Salomó', 'residence', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Xavier_Salomó property:residence ?h } UNION { resource:Moscow property:sister_city ?h } } . ?h rdf:type ontology:administrative_territorial_entity }
[]