Simple Question (Direct)
Simple Question
Q95586
P21
Q290
USER
What is the sex of Hans Hollmann ?
(Q95586,P21,c(Q290))
action filter_type
action find
entity Q95586
relation P21
type Q290
['Q95586', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q95586 property:P21 ?s . ?s rdf:type ontology:Q290 }
Hans Hollmann
action filter_type
action find
entity Hans Hollmann
relation gender
type sex
['Hans Hollmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Hollmann property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q95586,P21,c(Q290))
action filter_type
action find
entity Q95586
relation P21
type Q290
The sex of Hans Hollmann is the [ANSWER]
['Q95586', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q95586 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
The sex of Hans Hollmann is the male
male
action filter_type
action find
entity Hans Hollmann
relation gender
type sex
['Hans Hollmann', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Hans_Hollmann property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q95586
P20
Q56061
USER
Where did the expiration of Hans Hollmann occur ?
(Q95586,P20,c(Q56061))
action filter_type
action find
entity Q95586
relation P20
type Q56061
['Q95586', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q95586 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Hans Hollmann
action filter_type
action find
entity Hans Hollmann
relation place of death
type administrative territorial entity
['Hans Hollmann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Hans_Hollmann property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q65
SYSTEM
Los Angeles
Q65
(Q95586,P20,c(Q56061))
action filter_type
action find
entity Q95586
relation P20
type Q56061
The expiration of Hans Hollmann occurred in [ANSWER]
['Q95586', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { resource:Q95586 property:P20 ?r . ?r rdf:type ontology:Q56061 }
Los Angeles
The expiration of Hans Hollmann occurred in Los Angeles
Los Angeles
action filter_type
action find
entity Hans Hollmann
relation place of death
type administrative territorial entity
['Hans Hollmann', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:Hans_Hollmann property:place_of_death ?r . ?r rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P532
Q56061 Q2235308
USER
Which ship types have max number of administrative territories as their base harbour ?
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?m ) WHERE { ?e property:P532 ?o . ?e rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?e } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?z ) { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?g ) WHERE { ?d property:P532 ?j . ?d rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 } GROUP BY ?d } } }
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?m ) WHERE { ?e property:port_of_registry ?o . ?e rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?z ) { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?g ) WHERE { ?d property:port_of_registry ?j . ?d rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } } }
[]
administrative territorial entity ship type
Q11707059
SYSTEM
MS Arrow
Q11707059
(c(Q2235308),P532,c(Q56061))
action argmax
action find_tuple_counts
relation P532
type Q2235308
type Q56061
[ANSWER] have max number of administrative territories as their base harbour
[{'concept': 'Q2235308'}, 'P532', {'concept': 'Q56061'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?m ) WHERE { ?e property:P532 ?o . ?e rdf:type ontology:Q2235308 . ?o rdf:type ontology:Q56061 } GROUP BY ?e } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?z ) { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?g ) WHERE { ?d property:P532 ?j . ?d rdf:type ontology:Q2235308 . ?j rdf:type ontology:Q56061 } GROUP BY ?d } } }
MS Arrow
MS Arrow have max number of administrative territories as their base harbour
MS Arrow
action argmax
action find_tuple_counts
relation port of registry
type ship type
type administrative territorial entity
[{'concept': 'ship type'}, 'port of registry', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ?e ( COUNT ( ?o ) AS ?m ) WHERE { ?e property:port_of_registry ?o . ?e rdf:type ontology:ship_type . ?o rdf:type ontology:administrative_territorial_entity } GROUP BY ?e } . FILTER ( ?m = ?z ) . { SELECT DISTINCT ( MAX ( ?g ) AS ?z ) { SELECT DISTINCT ?d ( COUNT ( ?j ) AS ?g ) WHERE { ?d property:port_of_registry ?j . ?d rdf:type ontology:ship_type . ?j rdf:type ontology:administrative_territorial_entity } GROUP BY ?d } } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q11707059 Q18569 Q1770
P532
Q56061
USER
Does that ship type have Douglas and Tallinn as registry port ?
(Q11707059,P532,Q18569) (Q11707059,P532,Q1770)
action is_in
entity Q11707059
action intersection
action find_reverse
entity Q18569
relation P532
action find_reverse
entity Q1770
relation P532
['Q11707059', 'P532', 'Q18569'] ['Q11707059', 'P532', 'Q1770']
ASK WHERE { resource:Q11707059 property:P532 resource:Q1770 . resource:Q11707059 property:P532 resource:Q18569 }
MS Arrow Douglas Tallinn
action is_in
entity MS Arrow
action intersection
action find_reverse
entity Douglas
relation port of registry
action find_reverse
entity Tallinn
relation port of registry
['MS Arrow', 'port of registry', 'Douglas'] ['MS Arrow', 'port of registry', 'Tallinn']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Tallinn . resource:MS_Arrow property:port_of_registry resource:Douglas }
[]
administrative territorial entity
SYSTEM
YES
(Q11707059,P532,Q18569) (Q11707059,P532,Q1770)
action is_in
entity Q11707059
action intersection
action find_reverse
entity Q18569
relation P532
action find_reverse
entity Q1770
relation P532
[ANSWER]
['Q11707059', 'P532', 'Q18569'] ['Q11707059', 'P532', 'Q1770']
ASK WHERE { resource:Q11707059 property:P532 resource:Q1770 . resource:Q11707059 property:P532 resource:Q18569 }
Yes
action is_in
entity MS Arrow
action intersection
action find_reverse
entity Douglas
relation port of registry
action find_reverse
entity Tallinn
relation port of registry
['MS Arrow', 'port of registry', 'Douglas'] ['MS Arrow', 'port of registry', 'Tallinn']
ASK WHERE { resource:MS_Arrow property:port_of_registry resource:Tallinn . resource:MS_Arrow property:port_of_registry resource:Douglas }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q95586 Q988757 Q24343214
P27
Q1048835
USER
Is Hans Hollmann a native of São Miguel do Passa Quatro and Broughton and Bretton ?
(Q95586,P27,Q988757) (Q95586,P27,Q24343214)
action is_in
entity Q95586
action intersection
action find_reverse
entity Q988757
relation P27
action find_reverse
entity Q24343214
relation P27
['Q95586', 'P27', 'Q988757'] ['Q95586', 'P27', 'Q24343214']
ASK WHERE { resource:Q95586 property:P27 resource:Q988757 . resource:Q95586 property:P27 resource:Q24343214 }
Hans Hollmann São Miguel do Passa Quatro Broughton and Bretton
action is_in
entity Hans Hollmann
action intersection
action find_reverse
entity São Miguel do Passa Quatro
relation country of citizenship
action find_reverse
entity Broughton and Bretton
relation country of citizenship
['Hans Hollmann', 'country of citizenship', 'São Miguel do Passa Quatro'] ['Hans Hollmann', 'country of citizenship', 'Broughton and Bretton']
ASK WHERE { resource:Hans_Hollmann property:country_of_citizenship resource:São_Miguel_do_Passa_Quatro . resource:Hans_Hollmann property:country_of_citizenship resource:Broughton_and_Bretton }
[]
political territorial entity
SYSTEM
NO
(Q95586,P27,Q988757) (Q95586,P27,Q24343214)
action is_in
entity Q95586
action intersection
action find_reverse
entity Q988757
relation P27
action find_reverse
entity Q24343214
relation P27
[ANSWER]
['Q95586', 'P27', 'Q988757'] ['Q95586', 'P27', 'Q24343214']
ASK WHERE { resource:Q95586 property:P27 resource:Q988757 . resource:Q95586 property:P27 resource:Q24343214 }
No
action is_in
entity Hans Hollmann
action intersection
action find_reverse
entity São Miguel do Passa Quatro
relation country of citizenship
action find_reverse
entity Broughton and Bretton
relation country of citizenship
['Hans Hollmann', 'country of citizenship', 'São Miguel do Passa Quatro'] ['Hans Hollmann', 'country of citizenship', 'Broughton and Bretton']
ASK WHERE { resource:Hans_Hollmann property:country_of_citizenship resource:São_Miguel_do_Passa_Quatro . resource:Hans_Hollmann property:country_of_citizenship resource:Broughton_and_Bretton }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P417
Q502895 Q1445650 Q56061
USER
Which administrative territories are atleast 1 people and holidays a patron saint of ?
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action atleast
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c property:P417 ?n . ?c rdf:type ontology:Q56061 . ?n rdf:type ontology:Q1445650 } UNION { ?c rdf:type ontology:Q56061 . ?n rdf:type ontology:Q502895 . ?c property:P417 ?n } } GROUP BY ?c } . FILTER ( ?s >= 1 ) }
action atleast
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c property:patron_saint ?n . ?c rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:holiday } UNION { ?c rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:common_name . ?c property:patron_saint ?n } } GROUP BY ?c } . FILTER ( ?s >= 1 ) }
[]
common name holiday administrative territorial entity
Q649 Q2807 Q490
SYSTEM
Moscow, Madrid, Milan
Q5818 Q187352 Q11974 Q40801 Q212841 Q454875 Q14209773 Q34111 Q81004 Q6737 Q13364 Q46844 Q73450 Q15468 Q490 Q41329 Q495 Q2044 Q1492 Q2028 Q929022 Q641 Q46165 Q649 Q58463 Q491588 Q3395964 Q73489 Q53825 Q200908 Q15090 Q36647 Q13375 Q15088 Q10305 Q53265 Q6340 Q101229 Q50135 Q2090 Q695550 Q53850 Q6285 Q9920 Q6046 Q3739344 Q2807 Q72279 Q133123 Q139595 Q3415 Q39519 Q495798 Q82208 Q3557616 Q374108 Q3562704 Q428018 Q220 Q90 Q431389 Q5991813 Q380189 Q617 Q470461 Q733574 Q932648 Q100143 Q100065 Q13121 Q465078 Q3947670 Q100772 Q71935 Q51400 Q504216 Q51315 Q210470 Q11959 Q52215 Q15095 Q3740507 Q2634 Q51929 Q8356 Q47281 Q58581 Q119066 Q1155 Q200036 Q15487 Q244207 Q1957 Q50074 Q1897 Q433066 Q46864
(c(Q56061),P417,c(Q502895)|c(Q1445650))
action atleast
action union
action find_tuple_counts
relation P417
type Q56061
type Q502895
action find_tuple_counts
relation P417
type Q56061
type Q1445650
value 1
[ANSWERS] are atleast 1 people and holidays a patron saint of
[{'concept': 'Q56061'}, 'P417', [{'concept': 'Q502895'}, {'concept': 'Q1445650'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c property:P417 ?n . ?c rdf:type ontology:Q56061 . ?n rdf:type ontology:Q1445650 } UNION { ?c rdf:type ontology:Q56061 . ?n rdf:type ontology:Q502895 . ?c property:P417 ?n } } GROUP BY ?c } . FILTER ( ?s >= 1 ) }
Córdoba Kavala Las Palmas de Gran Canaria Borca di Cadore Drama Amarante Municipality San Lorenzo de' Picenardi Pozzallo Laviano Castellammare di Stabia Ravenna Roana Caldarola Badalona Milan Linz Turin Florence Barcelona Verona Giannitsa Venice Montecchio Maggiore Moscow Cancello e Arnone Camporeale Koufalia Camerino Altilia Rethymno Lleida Cork Pisa Tarragona Zaragoza Gemona del Friuli Castel Giorgio Martinengo Rocca di Cambio Nuremberg Huécija Cariati Varese Haarlem Novara Neokaisareia Madrid Mugnano di Napoli Patras Zacharo Ancona Brinzio Brolo Kastritsa Platres Altrei Molista Mölten Rome Paris Welsberg-Taisten Mansilla del Páramo Toblach Padua Amfilochia Istiaia Didymoteicho Caprino Bergamasco Mirandola Aalst Astorga San Mauro Mare Busseto Casamarciano Spoltore St. Martin in Passeier Villamagna Katerini Alicante Tuglie Albacete Favrio Naples Ischitella Valladolid Jesolo Curti, Campania Latera Busto Arsizio Volos Berga Campione d'Italia Vologda Castellafiume Cagliari Moos in Passeier Arcugnano
Moscow, Madrid and Milan are atleast 1 people and holidays a patron saint of
Moscow Madrid Milan
action atleast
action union
action find_tuple_counts
relation patron saint
type administrative territorial entity
type common name
action find_tuple_counts
relation patron saint
type administrative territorial entity
type holiday
value 1
[{'concept': 'administrative territorial entity'}, 'patron saint', [{'concept': 'common name'}, {'concept': 'holiday'}]]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?n ) AS ?s ) WHERE { { ?c property:patron_saint ?n . ?c rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:holiday } UNION { ?c rdf:type ontology:administrative_territorial_entity . ?n rdf:type ontology:common_name . ?c property:patron_saint ?n } } GROUP BY ?c } . FILTER ( ?s >= 1 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1770160 Q95586
P47 P27
Q1048835
USER
Which political territories are the native countriesof Hans Hollmann or are adjacent to Callosa d'en Sarrià ?
OR((Q95586,P27,c(Q1048835)), (Q1770160,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q95586
relation P27
action find
entity Q1770160
relation P47
type Q1048835
{'OR': [['Q95586', 'P27', {'concept': 'Q1048835'}], ['Q1770160', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q95586 property:P27 ?s } UNION { resource:Q1770160 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Callosa d'en Sarrià Hans Hollmann
action filter_type
action union
action find
entity Hans Hollmann
relation country of citizenship
action find
entity Callosa d'en Sarrià
relation shares border with
type political territorial entity
{'OR': [['Hans Hollmann', 'country of citizenship', {'concept': 'political territorial entity'}], ["Callosa d'en Sarrià", 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Hans_Hollmann property:country_of_citizenship ?s } UNION { resource:Callosa_d'en_Sarrià property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q984526 Q436491 Q1752098 Q984403 Q183 Q1766232 Q1768847 Q891663
SYSTEM
El Castell de Guadalest, Altea, Xaló, La Nucia, Germany, Tàrbena, Polop, Bolulla
Q984526 Q436491 Q1752098 Q984403 Q183 Q1766232 Q1768847 Q891663
OR((Q95586,P27,c(Q1048835)), (Q1770160,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q95586
relation P27
action find
entity Q1770160
relation P47
type Q1048835
[ANSWERS] are the native countriesof Hans Hollmann or are adjacent to Callosa d'en Sarrià
{'OR': [['Q95586', 'P27', {'concept': 'Q1048835'}], ['Q1770160', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q95586 property:P27 ?s } UNION { resource:Q1770160 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
El Castell de Guadalest Altea Xaló La Nucia Germany Tàrbena Polop Bolulla
El Castell de Guadalest, Altea, Xaló, La Nucia, Germany, Tàrbena, Polop and Bolulla are the native countriesof Hans Hollmann or are adjacent to Callosa d'en Sarrià
El Castell de Guadalest Altea Xaló La Nucia Germany Tàrbena Polop Bolulla
action filter_type
action union
action find
entity Hans Hollmann
relation country of citizenship
action find
entity Callosa d'en Sarrià
relation shares border with
type political territorial entity
{'OR': [['Hans Hollmann', 'country of citizenship', {'concept': 'political territorial entity'}], ["Callosa d'en Sarrià", 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Hans_Hollmann property:country_of_citizenship ?s } UNION { resource:Callosa_d'en_Sarrià property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P17
Q1048835 Q83620 Q15700808
USER
Which political territories do approximately 456 thoroughfares or urban unit definitions belong to ?
(c(Q83620)|c(Q15700808),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q83620
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15700808
value 456
[[{'concept': 'Q83620'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?z WHERE { { ?w property:P17 ?z . ?z rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15700808 } UNION { ?z rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q83620 . ?w property:P17 ?z } } GROUP BY ?z } . FILTER ( ?i = 456 ) }
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type political territorial entity
type urban unit definition
value 456
[[{'concept': 'thoroughfare'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?z WHERE { { ?w property:country ?z . ?z rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:urban_unit_definition } UNION { ?z rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:thoroughfare . ?w property:country ?z } } GROUP BY ?z } . FILTER ( ?i = 456 ) }
[]
political territorial entity thoroughfare urban unit definition
Q35 Q40 Q664
SYSTEM
Denmark, Austria, New Zealand
Q664 Q766 Q35 Q691 Q40
(c(Q83620)|c(Q15700808),P17,c(Q1048835))
action approx
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q83620
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q15700808
value 456
[ANSWERS] approximately 456 thoroughfares or urban unit definitions belong to
[[{'concept': 'Q83620'}, {'concept': 'Q15700808'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?z WHERE { { ?w property:P17 ?z . ?z rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q15700808 } UNION { ?z rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q83620 . ?w property:P17 ?z } } GROUP BY ?z } . FILTER ( ?i = 456 ) }
New Zealand Jamaica Denmark Papua New Guinea Austria
Denmark, Austria and New Zealand approximately 456 thoroughfares or urban unit definitions belong to
Denmark Austria New Zealand
action approx
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation country
type political territorial entity
type urban unit definition
value 456
[[{'concept': 'thoroughfare'}, {'concept': 'urban unit definition'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?i ) ?z WHERE { { ?w property:country ?z . ?z rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:urban_unit_definition } UNION { ?z rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:thoroughfare . ?w property:country ?z } } GROUP BY ?z } . FILTER ( ?i = 456 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q29 Q1770160
P47 P17
Q1048835
USER
Which political territories are bordered by Callosa d'en Sarrià and are present in Spain ?
AND((c(Q1048835),P47,Q1770160), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1770160
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1770160'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?w WHERE { ?w property:P47 resource:Q1770160 . ?w property:P17 resource:Q29 . ?w rdf:type ontology:Q1048835 }
Spain Callosa d'en Sarrià
action filter_type
action intersection
action find_reverse
entity Callosa d'en Sarrià
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', "Callosa d'en Sarrià"], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?w WHERE { ?w property:shares_border_with resource:Callosa_d'en_Sarrià . ?w property:country resource:Spain . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q984526 Q436491 Q1752098 Q984403 Q1766232 Q1768847 Q891663
SYSTEM
El Castell de Guadalest, Altea, Xaló, La Nucia, Tàrbena, Polop, Bolulla
Q984526 Q436491 Q1752098 Q984403 Q1766232 Q1768847 Q891663
AND((c(Q1048835),P47,Q1770160), (c(Q1048835),P17,Q29))
action filter_type
action intersection
action find_reverse
entity Q1770160
relation P47
action find_reverse
entity Q29
relation P17
type Q1048835
[ANSWERS] are bordered by Callosa d'en Sarrià and are present in Spain
{'AND': [[{'concept': 'Q1048835'}, 'P47', 'Q1770160'], [{'concept': 'Q1048835'}, 'P17', 'Q29']]}
SELECT DISTINCT ?w WHERE { ?w property:P47 resource:Q1770160 . ?w property:P17 resource:Q29 . ?w rdf:type ontology:Q1048835 }
El Castell de Guadalest Altea Xaló La Nucia Tàrbena Polop Bolulla
El Castell de Guadalest, Altea, Xaló, La Nucia, Tàrbena, Polop and Bolulla are bordered by Callosa d'en Sarrià and are present in Spain
El Castell de Guadalest Altea Xaló La Nucia Tàrbena Polop Bolulla
action filter_type
action intersection
action find_reverse
entity Callosa d'en Sarrià
relation shares border with
action find_reverse
entity Spain
relation country
type political territorial entity
{'AND': [[{'concept': 'political territorial entity'}, 'shares border with', "Callosa d'en Sarrià"], [{'concept': 'political territorial entity'}, 'country', 'Spain']]}
SELECT DISTINCT ?w WHERE { ?w property:shares_border_with resource:Callosa_d'en_Sarrià . ?w property:country resource:Spain . ?w rdf:type ontology:political_territorial_entity }
[]