Simple Question (Direct)
Simple Question
Q4895951
P1412
Q34770
USER
Which language can Empar Moliner i Ballesteros understand ?
(Q4895951,P1412,c(Q34770))
action filter_type
action find
entity Q4895951
relation P1412
type Q34770
['Q4895951', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q4895951 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Empar Moliner i Ballesteros
action filter_type
action find
entity Empar Moliner i Ballesteros
relation languages spoken, written or signed
type language
['Empar Moliner i Ballesteros', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Empar_Moliner_i_Ballesteros property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
language
Q1321
SYSTEM
Spanish
Q1321
(Q4895951,P1412,c(Q34770))
action filter_type
action find
entity Q4895951
relation P1412
type Q34770
Empar Moliner i Ballesteros can understand the [ANSWER]
['Q4895951', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?n WHERE { resource:Q4895951 property:P1412 ?n . ?n rdf:type ontology:Q34770 }
Spanish
Empar Moliner i Ballesteros can understand the Spanish
Spanish
action filter_type
action find
entity Empar Moliner i Ballesteros
relation languages spoken, written or signed
type language
['Empar Moliner i Ballesteros', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?n WHERE { resource:Empar_Moliner_i_Ballesteros property:languages_spoken,_written_or_signed ?n . ?n rdf:type ontology:language }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4895951
P19
Q1048835
USER
Which political territory was Empar Moliner i Ballesteros born in ?
(Q4895951,P19,c(Q1048835))
action filter_type
action find
entity Q4895951
relation P19
type Q1048835
['Q4895951', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q4895951 property:P19 ?w . ?w rdf:type ontology:Q1048835 }
Empar Moliner i Ballesteros
action filter_type
action find
entity Empar Moliner i Ballesteros
relation place of birth
type political territorial entity
['Empar Moliner i Ballesteros', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Empar_Moliner_i_Ballesteros property:place_of_birth ?w . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15454
SYSTEM
Santa Eulàlia de Ronçana
Q15454
(Q4895951,P19,c(Q1048835))
action filter_type
action find
entity Q4895951
relation P19
type Q1048835
Empar Moliner i Ballesteros was born in [ANSWER]
['Q4895951', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?w WHERE { resource:Q4895951 property:P19 ?w . ?w rdf:type ontology:Q1048835 }
Santa Eulàlia de Ronçana
Empar Moliner i Ballesteros was born in Santa Eulàlia de Ronçana
Santa Eulàlia de Ronçana
action filter_type
action find
entity Empar Moliner i Ballesteros
relation place of birth
type political territorial entity
['Empar Moliner i Ballesteros', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?w WHERE { resource:Empar_Moliner_i_Ballesteros property:place_of_birth ?w . ?w rdf:type ontology:political_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q2161865
Q1048835
USER
And what about Roger Roca Dalmau?
(Q2161865,P19,c(Q1048835))
action filter_type
action find
entity Q2161865
relation P19
type Q1048835
['Q2161865', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q2161865 property:P19 ?m . ?m rdf:type ontology:Q1048835 }
Roger Roca Dalmau
action filter_type
action find
entity Roger Roca Dalmau
relation place of birth
type political territorial entity
['Roger Roca Dalmau', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Roger_Roca_Dalmau property:place_of_birth ?m . ?m rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15950
SYSTEM
Igualada
Q15950
(Q2161865,P19,c(Q1048835))
action filter_type
action find
entity Q2161865
relation P19
type Q1048835
[ANSWER]
['Q2161865', 'P19', {'concept': 'Q1048835'}]
SELECT DISTINCT ?m WHERE { resource:Q2161865 property:P19 ?m . ?m rdf:type ontology:Q1048835 }
Igualada
Igualada
action filter_type
action find
entity Roger Roca Dalmau
relation place of birth
type political territorial entity
['Roger Roca Dalmau', 'place of birth', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Roger_Roca_Dalmau property:place_of_birth ?m . ?m rdf:type ontology:political_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q537483 Q15454
P47
Q1048835
USER
Which political territories are bordered by Santa Eulàlia de Ronçana or Aller ?
OR((c(Q1048835),P47,Q15454), (c(Q1048835),P47,Q537483))
action filter_type
action union
action find_reverse
entity Q15454
relation P47
action find_reverse
entity Q537483
relation P47
type Q1048835
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q15454'], [{'concept': 'Q1048835'}, 'P47', 'Q537483']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P47 resource:Q537483 } UNION { ?l property:P47 resource:Q15454 } } . ?l rdf:type ontology:Q1048835 }
Aller Santa Eulàlia de Ronçana
action filter_type
action union
action find_reverse
entity Santa Eulàlia de Ronçana
relation shares border with
action find_reverse
entity Aller
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Santa Eulàlia de Ronçana'], [{'concept': 'political territorial entity'}, 'shares border with', 'Aller']]}
SELECT DISTINCT ?l WHERE { { { ?l property:shares_border_with resource:Aller } UNION { ?l property:shares_border_with resource:Santa_Eulàlia_de_Ronçana } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q15397 Q15402 Q1615418 Q15398 Q15425 Q1635276 Q977246 Q1391449 Q15400
SYSTEM
L'Ametlla del Vallès, Canovelles, Puebla de Lillo, Bigues i Riells, Lliçà d'Amunt, Valdelugueros, Villamanín, Cármenes, Caldes de Montbui
Q15397 Q15402 Q1615418 Q15398 Q15425 Q1635276 Q977246 Q1391449 Q15400
OR((c(Q1048835),P47,Q15454), (c(Q1048835),P47,Q537483))
action filter_type
action union
action find_reverse
entity Q15454
relation P47
action find_reverse
entity Q537483
relation P47
type Q1048835
[ANSWERS] are bordered by Santa Eulàlia de Ronçana or Aller
{'OR': [[{'concept': 'Q1048835'}, 'P47', 'Q15454'], [{'concept': 'Q1048835'}, 'P47', 'Q537483']]}
SELECT DISTINCT ?l WHERE { { { ?l property:P47 resource:Q537483 } UNION { ?l property:P47 resource:Q15454 } } . ?l rdf:type ontology:Q1048835 }
L'Ametlla del Vallès Canovelles Puebla de Lillo Bigues i Riells Lliçà d'Amunt Valdelugueros Villamanín Cármenes Caldes de Montbui
L'Ametlla del Vallès, Canovelles, Puebla de Lillo, Bigues i Riells, Lliçà d'Amunt, Valdelugueros, Villamanín, Cármenes and Caldes de Montbui are bordered by Santa Eulàlia de Ronçana or Aller
L'Ametlla del Vallès Canovelles Puebla de Lillo Bigues i Riells Lliçà d'Amunt Valdelugueros Villamanín Cármenes Caldes de Montbui
action filter_type
action union
action find_reverse
entity Santa Eulàlia de Ronçana
relation shares border with
action find_reverse
entity Aller
relation shares border with
type political territorial entity
{'OR': [[{'concept': 'political territorial entity'}, 'shares border with', 'Santa Eulàlia de Ronçana'], [{'concept': 'political territorial entity'}, 'shares border with', 'Aller']]}
SELECT DISTINCT ?l WHERE { { { ?l property:shares_border_with resource:Aller } UNION { ?l property:shares_border_with resource:Santa_Eulàlia_de_Ronçana } } . ?l rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P190
Q486972 Q56061 Q1048835
USER
Which political territories are sister town of min number of human settlements or administrative territories ?
(c(Q1048835),P190,c(Q486972)|c(Q56061))
action argmin
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q56061
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?z rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?e ) WHERE { { ?v property:P190 ?r . ?v rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q486972 } UNION { ?v property:P190 ?r . ?v rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q56061 } } GROUP BY ?v } . FILTER ( ?e = ?q ) }
action argmin
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?e ) WHERE { { ?v property:sister_city ?r . ?v rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:human_settlement } UNION { ?v property:sister_city ?r . ?v rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } . FILTER ( ?e = ?q ) }
[]
human settlement administrative territorial entity political territorial entity
Q763 Q778 Q761735
SYSTEM
Saint Kitts and Nevis, The Bahamas, Montblanc
Q1442814 Q1628188 Q15471 Q13010 Q927931 Q147774 Q1765078 Q6022 Q910410 Q2101408 Q5913 Q1312844 Q2047561 Q1391501 Q207111 Q1853429 Q686837 Q476793 Q919050 Q8554 Q12590 Q433632 Q12595 Q842713 Q1649476 Q189952 Q644891 Q12153 Q496368 Q686304 Q624967 Q20937 Q13150 Q13156 Q496424 Q824651 Q8602 Q984508 Q7909 Q7902 Q7905 Q815631 Q7907 Q63004 Q1021521 Q1750915 Q542958 Q752137 Q164867 Q12647 Q1793709 Q1655081 Q376393 Q3741 Q1161455 Q34028 Q211889 Q820229 Q226009 Q427330 Q596761 Q505610 Q12110 Q13916 Q487268 Q13424 Q180200 Q1407143 Q1606055 Q787022 Q1101945 Q844784 Q1110343 Q13785 Q574340 Q161945 Q140203 Q258722 Q1614754 Q1613282 Q375925 Q254699 Q956558 Q12690 Q824122 Q1915208 Q741765 Q478818 Q102848 Q737161 Q1410782 Q583280 Q1750269 Q180981 Q695889 Q1651727 Q489839 Q740833 Q1730870 Q592747 Q913492 Q1786658 Q750968 Q12022 Q12028 Q500494 Q1771128 Q205681 Q1650316 Q33961 Q1651638 Q735759 Q583032 Q739495 Q7894 Q15553 Q1386351 Q15558 Q462218 Q937763 Q898563 Q371748 Q641221 Q167436 Q1763754 Q840373 Q1763574 Q12102 Q12101 Q761735 Q1757392 Q192370 Q847329 Q1993019 Q13922 Q604810 Q497801 Q1601699 Q385017 Q12075 Q1917834 Q1632577 Q572800 Q1754551 Q1024828 Q844038 Q1807777 Q492533 Q845424 Q491667 Q638181 Q1648251 Q622830 Q15968 Q430147 Q15639 Q427505 Q2004395 Q6178 Q13490 Q13491 Q836948 Q1641454 Q555913 Q729958 Q12034 Q2967 Q856583 Q2099330 Q122208 Q696797 Q1616138 Q1229949 Q1751908 Q763 Q502975 Q1998520 Q477311 Q207257 Q15652 Q984529 Q1228759 Q983473 Q755695 Q1312465 Q5978 Q515016 Q714538 Q825883 Q668324 Q582995 Q484981 Q1272870 Q1651692 Q1649698 Q385923 Q12534 Q501674 Q1767561 Q13804 Q741749 Q1628531 Q574869 Q919046 Q497692 Q837051 Q13936 Q2064788 Q619692 Q1641746 Q15597 Q1637309 Q1998560 Q5783 Q5785 Q1368982 Q986084 Q2244278 Q1368868 Q12711 Q1982975 Q13614 Q817302 Q6839 Q1630141 Q1757428 Q596885 Q318314 Q1646869 Q927800 Q749696 Q28301 Q1613587 Q929759 Q983433 Q15622 Q15621 Q3303729 Q15626 Q10485 Q671272 Q1657213 Q1607392 Q1605519 Q904212 Q946068 Q2044406 Q842211 Q201149 Q12335 Q229659 Q13022 Q13159 Q778 Q15408 Q1751916 Q714613 Q1768489 Q215822
(c(Q1048835),P190,c(Q486972)|c(Q56061))
action argmin
action union
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action find_tuple_counts
relation P190
type Q1048835
type Q56061
[ANSWERS] are sister town of min number of human settlements or administrative territories
[{'concept': 'Q1048835'}, 'P190', [{'concept': 'Q486972'}, {'concept': 'Q56061'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:Q486972 ) ( ontology:Q56061 ) } . ?z rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?e ) WHERE { { ?v property:P190 ?r . ?v rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q486972 } UNION { ?v property:P190 ?r . ?v rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q56061 } } GROUP BY ?v } . FILTER ( ?e = ?q ) }
Mazaricos Cangas Sant Adrià de Besòs Arbúcies Cabra Zarautz Urussanga Göttingen Tres Cantos Guimarães Lüchow-Dannenberg Alberic Cerdà Briviesca North Lanarkshire Valverde Karrantza Arévalo Molina de Aragón Rhein-Pfalz-Kreis Malgrat de Mar Santa Cruz de La Palma Palafolls Itajaí Algemesí Lääne-Viru County Ruente Vilafant Wrexham Itambé Arafo Gyeonggi Province Torrox Montilla Calatayud Parla Westerwaldkreis Sant Sadurní d'Anoia Main-Taunus-Kreis Marburg-Biedenkopf Lahn-Dill-Kreis Belinho Rheingau-Taunus-Kreis Tocina São João de Loure Callosa de Segura Torrelodones Tàrrega Rügen Vielha e Mijaran Iúna, Espírito Santo Pastrana Brieskow-Finkenheerd Special Region of Yogyakarta Macael Diamantina, Minas Gerais East Dunbartonshire Tomelloso Encantado Salobreña Malpica de Bergantiños Flintshire Arenys de Mar Barberà del Vallès Candelaria Cassà de la Selva Harju County Santa Amalia Caudete Autol Veranópolis Vale of Glamorgan Vélez-Rubio Cavite Las Gabias Torrent Zafra Canals Medina de Pomar Alcaudete Vila Nova de Cerveira Alanís Sádaba Sort Tui Torredonjimeno San Fernando São José dos Pinhais Paiporta Calanda Iznalloz Uncastillo Nova Pádua Kirovohrad Oblast Alfaro, La Rioja Pedrajas de San Esteban Torrejón de Ardoz Santa Maria Oliveira do Douro, Vila Nova de Gaia Las Rozas de Madrid Manilva Casca, Rio Grande do Sul Segorbe Montgat Teià Padrón Carcaixent Cascavel Villafeliche Aratiba Cella Collado Villalba Maracena Vilanova de Arousa Schwalm-Eder-Kreis Vilanova i la Geltrú Alcalá del Río Cubelles Governador Valadares Graus Valdepeñas San Lorenzo de El Escorial Viveiro João Pessoa Bigastro Valdemoro São Mateus, Espírito Santo Caldes d'Estrac Arenys de Munt Montblanc Ilópolis Tartu County Comillas Meliana Cerdanyola del Vallès Markina-Xemein Tolosa Villamanrique de la Condesa Valencia de Don Juan Vilassar de Dalt Albaida Benalup-Casas Viejas Alcañiz Mostardas Luso Valverde del Camino Itiúba Andorra Peniscola San Vicente del Raspeig / Sant Vicent del Raspeig Alcalá la Real Medina de Rioseco Caruaru Santa Margarita de Montbui Teror Sant Feliu de Llobregat Majadahonda Piraquara Oder-Spree Palafrugell Palamós Toro Calatorao Castril Mochola Alella Rendsburg-Eckernförde Gaspar, Santa Catarina Vicente López Partido Olocau Balaguer Pilas El Perelló San Martín de Valdeiglesias Saint Kitts and Nevis Barbastro L'Eliana Amposta East Lothian Viladecans Cariñena La Unión Novelda Fuenmayor Benifairó de la Valldigna Hildesheim Castuera Zapsonj Valls San Adrián Lanjarón Láchar Santiago de Figueiró Tudela de Duero Alaquàs Alcúdia Sant Pol de Mar Alhama de Granada Valverde de Júcar Manlleu Chipiona Quintanar de la Orden Pedrola Consuegra Arganda del Rey Mequinenza Sant Cugat del Vallès Lapa La Zubia Huelma Castelldefels Ezcaray Blanca Andalusia Cayman Islands Azuaga Bétera Tías, Las Palmas Berantevilla Vall de Boí Los Alcázares Banyoles Benicarló Figueres Sayalonga Monte Belo do Sul Blaenau Gwent County Borough Ipatinga Les Alqueries Bronniki Albalat de la Ribera Olinda Fregenal de la Sierra El Vendrell Güímar Gavà Esplugues de Llobregat Magdalena del Mar Olesa de Montserrat Deggendorf Calp Venta de Baños Madridejos Zuera Fraga Lezama L'Alcúdia San Fernando de Henares Fife Ripoll Zumaia Amer Cañete la Real The Bahamas Castellterçol Villanueva del Pardillo Serne Utrillas Puertollano
Saint Kitts and Nevis, The Bahamas and Montblanc are sister town of min number of human settlements or administrative territories
Saint Kitts and Nevis The Bahamas Montblanc
action argmin
action union
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action find_tuple_counts
relation sister city
type political territorial entity
type administrative territorial entity
[{'concept': 'political territorial entity'}, 'sister city', [{'concept': 'human settlement'}, {'concept': 'administrative territorial entity'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?c ) AS ?q ) { SELECT DISTINCT ?u ( COUNT ( ?z ) AS ?c ) WHERE { VALUES ( ?n ) { ( ontology:human_settlement ) ( ontology:administrative_territorial_entity ) } . ?z rdf:type ?n } GROUP BY ?u } } . { SELECT DISTINCT ?v ( COUNT ( ?r ) AS ?e ) WHERE { { ?v property:sister_city ?r . ?v rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:human_settlement } UNION { ?v property:sister_city ?r . ?v rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:administrative_territorial_entity } } GROUP BY ?v } . FILTER ( ?e = ?q ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are bordered by that political territory ?
(Q778,P47,c(Q15617994))
['Q778', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q778 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['The Bahamas', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Bahamas property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q778
SYSTEM
Did you mean The Bahamas ?
(Q763,P47,c(Q15617994)) (Q778,P47,c(Q15617994)) (Q761735,P47,c(Q15617994))
[ANSWER]
['Q763', 'P47', {'concept': 'Q15617994'}] ['Q778', 'P47', {'concept': 'Q15617994'}] ['Q761735', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q778 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean The Bahamas ?
The Bahamas
['Saint Kitts and Nevis', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['The Bahamas', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Montblanc', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Bahamas property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q778,P47,c(Q15617994))
['Q778', 'P47', {'concept': 'Q15617994'}]
['The Bahamas', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
1
Q30
(Q778,P47,c(Q15617994))
[ANSWER]
['Q778', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q778 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
United States of America
1
['The Bahamas', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:The_Bahamas property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q225375 Q763
P47
Q15617994
USER
Which administrative territories are bordered by Saint Kitts and Nevis or Verl ?
OR((c(Q15617994),P47,Q763), (c(Q15617994),P47,Q225375))
action filter_type
action union
action find_reverse
entity Q763
relation P47
action find_reverse
entity Q225375
relation P47
type Q15617994
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q763'], [{'concept': 'Q15617994'}, 'P47', 'Q225375']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { ?f property:P47 resource:Q225375 } UNION { ?f property:P47 resource:Q763 } } }
Verl Saint Kitts and Nevis
action filter_type
action union
action find_reverse
entity Saint Kitts and Nevis
relation shares border with
action find_reverse
entity Verl
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Saint Kitts and Nevis'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Verl']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { ?f property:shares_border_with resource:Verl } UNION { ?f property:shares_border_with resource:Saint_Kitts_and_Nevis } } }
[]
designation for an administrative territorial entity
Q717 Q225621 Q16146 Q183449
SYSTEM
Venezuela, Rietberg, Delbrück, Hövelhof
Q717 Q225621 Q16146 Q183449
OR((c(Q15617994),P47,Q763), (c(Q15617994),P47,Q225375))
action filter_type
action union
action find_reverse
entity Q763
relation P47
action find_reverse
entity Q225375
relation P47
type Q15617994
[ANSWERS] are bordered by Saint Kitts and Nevis or Verl
{'OR': [[{'concept': 'Q15617994'}, 'P47', 'Q763'], [{'concept': 'Q15617994'}, 'P47', 'Q225375']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . { { ?f property:P47 resource:Q225375 } UNION { ?f property:P47 resource:Q763 } } }
Venezuela Rietberg Delbrück Hövelhof
Venezuela, Rietberg, Delbrück and Hövelhof are bordered by Saint Kitts and Nevis or Verl
Venezuela Rietberg Delbrück Hövelhof
action filter_type
action union
action find_reverse
entity Saint Kitts and Nevis
relation shares border with
action find_reverse
entity Verl
relation shares border with
type designation for an administrative territorial entity
{'OR': [[{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Saint Kitts and Nevis'], [{'concept': 'designation for an administrative territorial entity'}, 'shares border with', 'Verl']]}
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . { { ?f property:shares_border_with resource:Verl } UNION { ?f property:shares_border_with resource:Saint_Kitts_and_Nevis } } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q16146
P17
Q1048835
USER
Which political territory is that administrative territory present in ?
(Q16146,P17,c(Q1048835))
action filter_type
action find
entity Q16146
relation P17
type Q1048835
['Q16146', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q16146 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Delbrück
action filter_type
action find
entity Delbrück
relation country
type political territorial entity
['Delbrück', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Delbrück property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q225621
SYSTEM
Did you mean Rietberg ?
Q717 Q225621 Q16146 Q183449
(Q717,P17,c(Q1048835)) (Q225621,P17,c(Q1048835)) (Q16146,P17,c(Q1048835)) (Q183449,P17,c(Q1048835))
[ANSWER]
['Q717', 'P17', {'concept': 'Q1048835'}] ['Q225621', 'P17', {'concept': 'Q1048835'}] ['Q16146', 'P17', {'concept': 'Q1048835'}] ['Q183449', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q16146 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Venezuela Rietberg Delbrück Hövelhof
Did you mean Rietberg ?
Rietberg
['Venezuela', 'country', {'concept': 'political territorial entity'}] ['Rietberg', 'country', {'concept': 'political territorial entity'}] ['Delbrück', 'country', {'concept': 'political territorial entity'}] ['Hövelhof', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Delbrück property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Delbrück. Could you tell me the answer for that?
(Q16146,P17,c(Q1048835))
Q16146
['Q16146', 'P17', {'concept': 'Q1048835'}]
['Delbrück', 'country', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q16146,P17,c(Q1048835))
action filter_type
action find
entity Q16146
relation P17
type Q1048835
That administrative territory is in [ANSWER]
['Q16146', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q16146 property:P17 ?h . ?h rdf:type ontology:Q1048835 }
Germany
That administrative territory is in Germany
Germany
action filter_type
action find
entity Delbrück
relation country
type political territorial entity
['Delbrück', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Delbrück property:country ?h . ?h rdf:type ontology:political_territorial_entity }
[]