Simple Question (Direct)
Simple Question
Q983449
P19
Q56061
USER
Which administrative territory is the birthplace of Przemysław Wacha ?
(Q983449,P19,c(Q56061))
action filter_type
action find
entity Q983449
relation P19
type Q56061
['Q983449', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q983449 property:P19 ?x }
Przemysław Wacha
action filter_type
action find
entity Przemysław Wacha
relation place of birth
type administrative territorial entity
['Przemysław Wacha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Przemysław_Wacha property:place_of_birth ?x }
[]
administrative territorial entity
Q717947
SYSTEM
Głubczyce
Q717947
(Q983449,P19,c(Q56061))
action filter_type
action find
entity Q983449
relation P19
type Q56061
[ANSWER] is the birthplace of Przemysław Wacha
['Q983449', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . resource:Q983449 property:P19 ?x }
Głubczyce
Głubczyce is the birthplace of Przemysław Wacha
Głubczyce
action filter_type
action find
entity Przemysław Wacha
relation place of birth
type administrative territorial entity
['Przemysław Wacha', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . resource:Przemysław_Wacha property:place_of_birth ?x }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q717947
P937
Q502895
USER
Who works at that administrative territory ?
(c(Q502895),P937,Q717947)
action filter_type
action find_reverse
entity Q717947
relation P937
type Q502895
[{'concept': 'Q502895'}, 'P937', 'Q717947']
SELECT DISTINCT ?x WHERE { ?x property:P937 resource:Q717947 . ?x rdf:type ontology:Q502895 }
Głubczyce
action filter_type
action find_reverse
entity Głubczyce
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Głubczyce']
SELECT DISTINCT ?x WHERE { ?x property:work_location resource:Głubczyce . ?x rdf:type ontology:common_name }
[]
common name
Q13424186 Q15439684
SYSTEM
Ernst Bednara, Paul Klimek
Q13424186 Q15439684
(c(Q502895),P937,Q717947)
action filter_type
action find_reverse
entity Q717947
relation P937
type Q502895
[ANSWERS] work at that administrative territory
[{'concept': 'Q502895'}, 'P937', 'Q717947']
SELECT DISTINCT ?x WHERE { ?x property:P937 resource:Q717947 . ?x rdf:type ontology:Q502895 }
Ernst Bednara Paul Klimek
Ernst Bednara and Paul Klimek work at that administrative territory
Ernst Bednara Paul Klimek
action filter_type
action find_reverse
entity Głubczyce
relation work location
type common name
[{'concept': 'common name'}, 'work location', 'Głubczyce']
SELECT DISTINCT ?x WHERE { ?x property:work_location resource:Głubczyce . ?x rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q13424186 Q15439684
P21
Q290
USER
What are the sex of those people ?
(Q13424186,P21,c(Q290)) (Q15439684,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q13424186', 'P21', {'concept': 'Q290'}] ['Q15439684', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?x property:P21 ?o . VALUES ( ?x ) { ( resource:Q13424186 ) ( resource:Q15439684 ) } . ?o rdf:type ontology:Q290 }
Ernst Bednara Paul Klimek
action filter_type
action find
entity prev_answer
relation gender
type sex
['Ernst Bednara', 'gender', {'concept': 'sex'}] ['Paul Klimek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?x property:gender ?o . VALUES ( ?x ) { ( resource:Ernst_Bednara ) ( resource:Paul_Klimek ) } . ?o rdf:type ontology:sex }
[]
sex
Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097
(Q13424186,P21,c(Q290)) (Q15439684,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
The sex of those people are both [ANSWER] and [ANSWER]
['Q13424186', 'P21', {'concept': 'Q290'}] ['Q15439684', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?o WHERE { ?x property:P21 ?o . VALUES ( ?x ) { ( resource:Q13424186 ) ( resource:Q15439684 ) } . ?o rdf:type ontology:Q290 }
male male
The sex of those people are both male and male
male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Ernst Bednara', 'gender', {'concept': 'sex'}] ['Paul Klimek', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?o WHERE { ?x property:gender ?o . VALUES ( ?x ) { ( resource:Ernst_Bednara ) ( resource:Paul_Klimek ) } . ?o rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q717947
P190
Q20667921
USER
Which french administrative division is twin town of Głubczyce ?
(Q717947,P190,c(Q20667921))
action filter_type
action find
entity Q717947
relation P190
type Q20667921
['Q717947', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q717947 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Głubczyce
action filter_type
action find
entity Głubczyce
relation sister city
type type of french administrative division
['Głubczyce', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Głubczyce property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
type of french administrative division
Q1137819
SYSTEM
Saint-Rémy-sur-Avre
Q1137819
(Q717947,P190,c(Q20667921))
action filter_type
action find
entity Q717947
relation P190
type Q20667921
[ANSWER] is twin town of Głubczyce
['Q717947', 'P190', {'concept': 'Q20667921'}]
SELECT DISTINCT ?l WHERE { resource:Q717947 property:P190 ?l . ?l rdf:type ontology:Q20667921 }
Saint-Rémy-sur-Avre
Saint-Rémy-sur-Avre is twin town of Głubczyce
Saint-Rémy-sur-Avre
action filter_type
action find
entity Głubczyce
relation sister city
type type of french administrative division
['Głubczyce', 'sister city', {'concept': 'type of french administrative division'}]
SELECT DISTINCT ?l WHERE { resource:Głubczyce property:sister_city ?l . ?l rdf:type ontology:type_of_french_administrative_division }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q717947
Q15617994
USER
And which administrative territory?
(Q717947,P190,c(Q15617994))
action filter_type
action find
entity Q717947
relation P190
type Q15617994
['Q717947', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q717947 property:P190 ?v . ?v rdf:type ontology:Q15617994 }
Głubczyce
action filter_type
action find
entity Głubczyce
relation sister city
type designation for an administrative territorial entity
['Głubczyce', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Głubczyce property:sister_city ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q22955
SYSTEM
Rockenhausen
Q22955
(Q717947,P190,c(Q15617994))
action filter_type
action find
entity Q717947
relation P190
type Q15617994
[ANSWER]
['Q717947', 'P190', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { resource:Q717947 property:P190 ?v . ?v rdf:type ontology:Q15617994 }
Rockenhausen
Rockenhausen
action filter_type
action find
entity Głubczyce
relation sister city
type designation for an administrative territorial entity
['Głubczyce', 'sister city', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Głubczyce property:sister_city ?v . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q22955 Q2417795
P190
Q56061
USER
Is Rohuneeme twin town of that administrative territory ?
(Q2417795,P190,Q22955)
action is_in
entity Q2417795
action find
entity Q22955
relation P190
['Q2417795', 'P190', 'Q22955']
ASK WHERE { resource:Q22955 property:P190 resource:Q2417795 }
Rockenhausen Rohuneeme
action is_in
entity Rohuneeme
action find
entity Rockenhausen
relation sister city
['Rohuneeme', 'sister city', 'Rockenhausen']
ASK WHERE { resource:Rockenhausen property:sister_city resource:Rohuneeme }
[]
administrative territorial entity
SYSTEM
NO
(Q2417795,P190,Q22955)
action is_in
entity Q2417795
action find
entity Q22955
relation P190
[ANSWER]
['Q2417795', 'P190', 'Q22955']
ASK WHERE { resource:Q22955 property:P190 resource:Q2417795 }
No
action is_in
entity Rohuneeme
action find
entity Rockenhausen
relation sister city
['Rohuneeme', 'sister city', 'Rockenhausen']
ASK WHERE { resource:Rockenhausen property:sister_city resource:Rohuneeme }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q15439684 Q1799 Q5619090
P937
Q486972
USER
Does Paul Klimek work at Wrocław and Perki-Mazowsze ?
(Q15439684,P937,Q1799) (Q15439684,P937,Q5619090)
action is_in
entity Q15439684
action intersection
action find_reverse
entity Q1799
relation P937
action find_reverse
entity Q5619090
relation P937
['Q15439684', 'P937', 'Q1799'] ['Q15439684', 'P937', 'Q5619090']
ASK WHERE { resource:Q15439684 property:P937 resource:Q5619090 . resource:Q15439684 property:P937 resource:Q1799 }
Paul Klimek Wrocław Perki-Mazowsze
action is_in
entity Paul Klimek
action intersection
action find_reverse
entity Wrocław
relation work location
action find_reverse
entity Perki-Mazowsze
relation work location
['Paul Klimek', 'work location', 'Wrocław'] ['Paul Klimek', 'work location', 'Perki-Mazowsze']
ASK WHERE { resource:Paul_Klimek property:work_location resource:Perki-Mazowsze . resource:Paul_Klimek property:work_location resource:Wrocław }
[]
human settlement
SYSTEM
YES and NO respectively
(Q15439684,P937,Q1799) (Q15439684,P937,Q5619090)
action is_in
entity Q15439684
action intersection
action find_reverse
entity Q1799
relation P937
action find_reverse
entity Q5619090
relation P937
[ANSWER]
['Q15439684', 'P937', 'Q1799'] ['Q15439684', 'P937', 'Q5619090']
ASK WHERE { resource:Q15439684 property:P937 resource:Q5619090 . resource:Q15439684 property:P937 resource:Q1799 }
YES and NO respectively
action is_in
entity Paul Klimek
action intersection
action find_reverse
entity Wrocław
relation work location
action find_reverse
entity Perki-Mazowsze
relation work location
['Paul Klimek', 'work location', 'Wrocław'] ['Paul Klimek', 'work location', 'Perki-Mazowsze']
ASK WHERE { resource:Paul_Klimek property:work_location resource:Perki-Mazowsze . resource:Paul_Klimek property:work_location resource:Wrocław }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q766
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relationships with lesser number of administrative territories than Jamaica ?
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 . ?c property:P530 ?f } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q766 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?r ) }
Jamaica
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?f } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Jamaica property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?r ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q691
SYSTEM
Gabon, Grenada, Papua New Guinea
Q1000 Q781 Q778 Q769 Q685 Q691
(c(Q15617994),P530,c(Q1048835))
action less
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
action count
action filter_type
action find
entity Q766
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with lesser number of administrative territories than Jamaica
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?c rdf:type ontology:Q1048835 . ?f rdf:type ontology:Q15617994 . ?c property:P530 ?f } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Q766 property:P530 ?n . ?n rdf:type ontology:Q1048835 } } . FILTER ( ?d < ?r ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea
Gabon, Grenada and Papua New Guinea have diplomatic relationships with lesser number of administrative territories than Jamaica
Gabon Grenada Papua New Guinea
action less
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Jamaica
relation diplomatic relation
type political territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?f ) AS ?d ) WHERE { ?c rdf:type ontology:political_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:diplomatic_relation ?f } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?r ) WHERE { resource:Jamaica property:diplomatic_relation ?n . ?n rdf:type ontology:political_territorial_entity } } . FILTER ( ?d < ?r ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q1048835 Q486972 Q20667921
USER
Which political territories have exactly 1 human settlements and french administrative divisions as their capital ?
(c(Q486972)|c(Q20667921),P1376,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?g WHERE { { ?e rdf:type ontology:Q486972 . ?g rdf:type ontology:Q1048835 . ?e property:P1376 ?g } UNION { ?e property:P1376 ?g . ?g rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q20667921 } } GROUP BY ?g } . FILTER ( ?h = 1 ) }
action equal
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?g WHERE { { ?e rdf:type ontology:human_settlement . ?g rdf:type ontology:political_territorial_entity . ?e property:capital_of ?g } UNION { ?e property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?g } . FILTER ( ?h = 1 ) }
[]
political territorial entity human settlement type of french administrative division
Q10485 Q170672 Q35086
SYSTEM
Deggendorf, Dnipropetrovsk Oblast, South Georgia and the South Sandwich Islands
Q7130037 Q3321945 Q10500690 Q3317759 Q1122980 Q3312902 Q2702993 Q6156 Q10469 Q2485101 Q10462 Q10466 Q971457 Q2846059 Q6319070 Q34617 Q2718534 Q6319759 Q3313430 Q5088519 Q642314 Q6318695 Q3826003 Q7258563 Q8050384 Q3314201 Q1468315 Q7414539 Q1769672 Q1229942 Q1232887 Q5444794 Q593806 Q778266 Q201697 Q7827062 Q4694508 Q170672 Q3824193 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10485 Q6013498 Q5924968 Q35086
(c(Q486972)|c(Q20667921),P1376,c(Q1048835))
action equal
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q486972
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q20667921
value 1
[ANSWERS] have exactly 1 human settlements and french administrative divisions as their capital
[[{'concept': 'Q486972'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?g WHERE { { ?e rdf:type ontology:Q486972 . ?g rdf:type ontology:Q1048835 . ?e property:P1376 ?g } UNION { ?e property:P1376 ?g . ?g rdf:type ontology:Q1048835 . ?e rdf:type ontology:Q20667921 } } GROUP BY ?g } . FILTER ( ?h = 1 ) }
Panao District Acarí District San Miguel District Putumayo District Comtat Venaissin Coya District Haquira District Oberspreewald-Lausitz Main-Spessart County of Chiny Haßberge Bad Kissingen Lunahuaná District Andahuaylillas District Magdalena de Cao District Saint Pierre and Miquelon Lurigancho Sicaya District Antioquia District Chavinillo District County of Burgundy Pimentel Chucuito District Puerto Inca District Yavari District Achoma District Pozuzo District San José de Sisa District La Sotonera La Jalca District County of Savoy Fernando Lores District Llata District County of Artois Leimebamba District Torres Causana District Aguas Verdes Dnipropetrovsk Oblast Querobamba District Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Deggendorf Inambari Huacaybamba South Georgia and the South Sandwich Islands
Deggendorf, Dnipropetrovsk Oblast and South Georgia and the South Sandwich Islands have exactly 1 human settlements and french administrative divisions as their capital
Deggendorf Dnipropetrovsk Oblast South Georgia and the South Sandwich Islands
action equal
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type human settlement
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type type of french administrative division
value 1
[[{'concept': 'human settlement'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?h ) ?g WHERE { { ?e rdf:type ontology:human_settlement . ?g rdf:type ontology:political_territorial_entity . ?e property:capital_of ?g } UNION { ?e property:capital_of ?g . ?g rdf:type ontology:political_territorial_entity . ?e rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?g } . FILTER ( ?h = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q1048835
USER
How many political territories have diplomatic relations with exactly 1 political territory ?
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?z ) WHERE { ?g property:P530 ?c . ?g rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?z = 1 ) }
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?z ) WHERE { ?g property:diplomatic_relation ?c . ?g rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?z = 1 ) }
[]
political territorial entity political territorial entity
SYSTEM
7
Q1000 Q781 Q778 Q769 Q685 Q691 Q766
(c(Q1048835),P530,c(Q1048835))
action count
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
value 1
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?z ) WHERE { ?g property:P530 ?c . ?g rdf:type ontology:Q1048835 . ?c rdf:type ontology:Q1048835 } GROUP BY ?g } . FILTER ( ?z = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada Solomon Islands Papua New Guinea Jamaica
7
action count
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
value 1
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?c ) AS ?z ) WHERE { ?g property:diplomatic_relation ?c . ?g rdf:type ontology:political_territorial_entity . ?c rdf:type ontology:political_territorial_entity } GROUP BY ?g } . FILTER ( ?z = 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7665664 Q5619090
P17
Q15617994
USER
Which administrative territories are Perki-Mazowsze or São Paulo Railway a part of ?
OR((Q5619090,P17,c(Q15617994)), (Q7665664,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5619090
relation P17
action find
entity Q7665664
relation P17
type Q15617994
{'OR': [['Q5619090', 'P17', {'concept': 'Q15617994'}], ['Q7665664', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q5619090 property:P17 ?f } UNION { resource:Q7665664 property:P17 ?f } } }
São Paulo Railway Perki-Mazowsze
action filter_type
action union
action find
entity Perki-Mazowsze
relation country
action find
entity São Paulo Railway
relation country
type designation for an administrative territorial entity
{'OR': [['Perki-Mazowsze', 'country', {'concept': 'designation for an administrative territorial entity'}], ['São Paulo Railway', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Perki-Mazowsze property:country ?f } UNION { resource:São_Paulo_Railway property:country ?f } } }
[]
designation for an administrative territorial entity
Q155 Q36
SYSTEM
Brazil, Poland
Q155 Q36
OR((Q5619090,P17,c(Q15617994)), (Q7665664,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q5619090
relation P17
action find
entity Q7665664
relation P17
type Q15617994
[ANSWERS] are Perki-Mazowsze or São Paulo Railway a part of
{'OR': [['Q5619090', 'P17', {'concept': 'Q15617994'}], ['Q7665664', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { resource:Q5619090 property:P17 ?f } UNION { resource:Q7665664 property:P17 ?f } } }
Brazil Poland
Brazil and Poland are Perki-Mazowsze or São Paulo Railway a part of
Brazil Poland
action filter_type
action union
action find
entity Perki-Mazowsze
relation country
action find
entity São Paulo Railway
relation country
type designation for an administrative territorial entity
{'OR': [['Perki-Mazowsze', 'country', {'concept': 'designation for an administrative territorial entity'}], ['São Paulo Railway', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Perki-Mazowsze property:country ?f } UNION { resource:São_Paulo_Railway property:country ?f } } }
[]