Simple Question (Direct)
Simple Question
Q4969725
P20
Q56061
USER
Where did the demise of Vera Nilsson occur ?
(Q4969725,P20,c(Q56061))
action filter_type
action find
entity Q4969725
relation P20
type Q56061
['Q4969725', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q4969725 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Vera Nilsson
action filter_type
action find
entity Vera Nilsson
relation place of death
type administrative territorial entity
['Vera Nilsson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Vera_Nilsson property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1754
SYSTEM
Stockholm
Q1754
(Q4969725,P20,c(Q56061))
action filter_type
action find
entity Q4969725
relation P20
type Q56061
The demise of Vera Nilsson occurred in [ANSWER]
['Q4969725', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q4969725 property:P20 ?n . ?n rdf:type ontology:Q56061 }
Stockholm
The demise of Vera Nilsson occurred in Stockholm
Stockholm
action filter_type
action find
entity Vera Nilsson
relation place of death
type administrative territorial entity
['Vera Nilsson', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Vera_Nilsson property:place_of_death ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4969725
P106
Q12737077
USER
What do Vera Nilsson do for a living ?
(Q4969725,P106,c(Q12737077))
action filter_type
action find
entity Q4969725
relation P106
type Q12737077
['Q4969725', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4969725 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
Vera Nilsson
action filter_type
action find
entity Vera Nilsson
relation occupation
type occupation
['Vera Nilsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Vera_Nilsson property:occupation ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q1028181 Q483501
SYSTEM
painter, artist
Q1028181 Q483501
(Q4969725,P106,c(Q12737077))
action filter_type
action find
entity Q4969725
relation P106
type Q12737077
Vera Nilsson do for a living [ANSWERS]
['Q4969725', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q4969725 property:P106 ?u . ?u rdf:type ontology:Q12737077 }
painter artist
Vera Nilsson do for a living painter and artist
painter artist
action filter_type
action find
entity Vera Nilsson
relation occupation
type occupation
['Vera Nilsson', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:Vera_Nilsson property:occupation ?u . ?u rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1028181
P138
Q486972
USER
Which human settlement is named after that occupation ?
(c(Q486972),P138,Q1028181)
action filter_type
action find_reverse
entity Q1028181
relation P138
type Q486972
[{'concept': 'Q486972'}, 'P138', 'Q1028181']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q1028181 . ?i rdf:type ontology:Q486972 }
painter
action filter_type
action find_reverse
entity painter
relation named after
type human settlement
[{'concept': 'human settlement'}, 'named after', 'painter']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:painter . ?i rdf:type ontology:human_settlement }
[]
human settlement
Clarification for simple ques.
Q483501
SYSTEM
Did you mean artist ?
Q1028181 Q483501
(c(Q486972),P138,Q1028181) (c(Q486972),P138,Q483501)
[ANSWER]
[{'concept': 'Q486972'}, 'P138', 'Q1028181'] [{'concept': 'Q486972'}, 'P138', 'Q483501']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q1028181 . ?i rdf:type ontology:Q486972 }
painter artist
Did you mean artist ?
artist
[{'concept': 'human settlement'}, 'named after', 'painter'] [{'concept': 'human settlement'}, 'named after', 'artist']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:painter . ?i rdf:type ontology:human_settlement }
[]
Simple Question (Coreferenced)
USER
No, I meant painter. Could you tell me the answer for that?
(c(Q486972),P138,Q1028181)
Q1028181
[{'concept': 'Q486972'}, 'P138', 'Q1028181']
[{'concept': 'human settlement'}, 'named after', 'painter']
[]
Q2275291
SYSTEM
Schildersbuurt
Q2275291
(c(Q486972),P138,Q1028181)
action filter_type
action find_reverse
entity Q1028181
relation P138
type Q486972
[ANSWER] is named after that occupation
[{'concept': 'Q486972'}, 'P138', 'Q1028181']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q1028181 . ?i rdf:type ontology:Q486972 }
Schildersbuurt
Schildersbuurt is named after that occupation
Schildersbuurt
action filter_type
action find_reverse
entity painter
relation named after
type human settlement
[{'concept': 'human settlement'}, 'named after', 'painter']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:painter . ?i rdf:type ontology:human_settlement }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q11746
P190
Q486972 Q1048835
USER
Which political territories are twin city of less number of human settlements than Wuhan ?
(c(Q1048835),P190,c(Q486972))
action less
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q11746
relation P190
type Q486972
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { ?q property:P190 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q486972 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q11746 property:P190 ?v . ?v rdf:type ontology:Q486972 } } . FILTER ( ?u < ?p ) }
Wuhan
action less
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_type
action find
entity Wuhan
relation sister city
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { ?q property:sister_city ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:human_settlement } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Wuhan property:sister_city ?v . ?v rdf:type ontology:human_settlement } } . FILTER ( ?u < ?p ) }
[]
human settlement political territorial entity
Q16572 Q763 Q778
SYSTEM
Guangzhou, Saint Kitts and Nevis, The Bahamas
Q473250 Q484717 Q1442814 Q1628188 Q36947 Q1794732 Q15473 Q484552 Q15471 Q786126 Q1643855 Q13010 Q927931 Q147774 Q1765078 Q6022 Q910410 Q2101408 Q5913 Q187826 Q1312844 Q2047561 Q1391501 Q207111 Q164197 Q926713 Q15619 Q321331 Q1853429 Q667682 Q686837 Q476793 Q919050 Q8554 Q12590 Q433632 Q12595 Q842713 Q1649476 Q210887 Q30002 Q659450 Q189952 Q693258 Q644891 Q12153 Q4480 Q15470 Q168376 Q496368 Q686304 Q624967 Q11286 Q20937 Q13150 Q13156 Q496424 Q824651 Q208669 Q8602 Q15430 Q984508 Q7909 Q109188 Q7902 Q538809 Q7905 Q815631 Q7907 Q63004 Q277302 Q1021521 Q642083 Q752280 Q326651 Q41157 Q899884 Q1750915 Q832246 Q542958 Q2566267 Q752137 Q164867 Q12647 Q1793709 Q499922 Q1655081 Q376393 Q3741 Q2392504 Q1161455 Q34028 Q211889 Q820229 Q226009 Q54902 Q840362 Q427330 Q596761 Q1439157 Q398698 Q1616611 Q505610 Q12110 Q1621191 Q13916 Q487268 Q13424 Q535531 Q49581 Q180200 Q1637478 Q1407143 Q1606055 Q787022 Q1101945 Q844784 Q694833 Q5123 Q1110343 Q13785 Q193780 Q574340 Q178993 Q15950 Q3850873 Q161945 Q64010 Q140203 Q917693 Q156819 Q1757489 Q258722 Q1614754 Q1613282 Q375925 Q550974 Q254699 Q956558 Q12690 Q824122 Q1010314 Q1915208 Q741765 Q478818 Q102848 Q15602 Q737161 Q1410782 Q583280 Q1750269 Q180981 Q695889 Q1651727 Q489839 Q740833 Q487801 Q13855 Q1730870 Q15649 Q592747 Q913492 Q1786658 Q750968 Q12022 Q12028 Q500494 Q1919317 Q1771128 Q1635711 Q3397684 Q205681 Q428954 Q48344 Q1650316 Q11822 Q15429 Q798747 Q8182 Q691525 Q980131 Q33961 Q1758806 Q616621 Q1651638 Q7898 Q735759 Q583032 Q739495 Q7894 Q15551 Q15553 Q1386351 Q973325 Q15558 Q462218 Q937763 Q898563 Q371748 Q817960 Q693913 Q641221 Q167436 Q12812 Q1763754 Q840373 Q767222 Q1763574 Q170322 Q55480 Q189848 Q1641529 Q12102 Q12101 Q761735 Q1757392 Q192370 Q377244 Q847329 Q216802 Q1993019 Q13922 Q604810 Q512009 Q497801 Q1601699 Q131620 Q385017 Q12075 Q1917834 Q1632577 Q572800 Q170247 Q47475 Q11492 Q642046 Q4068849 Q1754551 Q1024828 Q844038 Q1807777 Q492533 Q845424 Q487096 Q491667 Q638181 Q1648251 Q623685 Q622836 Q622830 Q672483 Q748867 Q15968 Q993466 Q1639365 Q430147 Q15639 Q427505 Q1758141 Q2004395 Q6178 Q13490 Q13491 Q836948 Q936624 Q1641454 Q534483 Q1605505 Q555913 Q995637 Q729958 Q12034 Q468563 Q2967 Q856583 Q918586 Q944264 Q2099330 Q632621 Q581589 Q932808 Q122208 Q696797 Q1616138 Q1794121 Q1229949 Q1751908 Q18288148 Q763 Q502975 Q1998520 Q477311 Q207257 Q15652 Q984529 Q1228759 Q488555 Q49571 Q983473 Q755695 Q3586 Q1026229 Q92161 Q851020 Q643919 Q1312465 Q10863 Q5978 Q515016 Q714538 Q928094 Q825883 Q668324 Q582995 Q697126 Q484981 Q1272870 Q1651692 Q1649698 Q385923 Q677038 Q12534 Q501674 Q1767561 Q550985 Q13804 Q741749 Q1628531 Q1601614 Q42780 Q574869 Q919046 Q497692 Q837051 Q13936 Q2064788 Q13930 Q619692 Q16572 Q1641746 Q15597 Q23042 Q1637309 Q1998560 Q211925 Q5783 Q5785 Q835012 Q976534 Q1368982 Q202316 Q13149 Q290824 Q13755 Q986084 Q2244278 Q1368868 Q12711 Q1982975 Q13614 Q817302 Q6839 Q1630141 Q1757428 Q7911 Q596885 Q77433 Q318314 Q1646869 Q927800 Q749696 Q41161 Q28301 Q1613587 Q929759 Q622823 Q983433 Q15974 Q830776 Q242906 Q1228035 Q15623 Q15622 Q15621 Q3303729 Q15626 Q10485 Q671272 Q1657213 Q240 Q1607392 Q1605519 Q904212 Q946068 Q192387 Q2044406 Q842211 Q1242382 Q201149 Q68744 Q12335 Q229659 Q904130 Q13022 Q13159 Q778 Q15408 Q1751916 Q714613 Q1768489 Q646564 Q47593 Q215822 Q984642
(c(Q1048835),P190,c(Q486972))
action less
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q11746
relation P190
type Q486972
[ANSWERS] are twin city of less number of human settlements than Wuhan
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { ?q property:P190 ?d . ?q rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q486972 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q11746 property:P190 ?v . ?v rdf:type ontology:Q486972 } } . FILTER ( ?u < ?p ) }
Macaé San Sebastián de los Reyes Mazaricos Cangas Salvador Maracanaú Santa Coloma de Gramenet Algeciras Sant Adrià de Besòs Mundaka Monroy Arbúcies Cabra Zarautz Urussanga Göttingen Tres Cantos Guimarães Lüchow-Dannenberg Móstoles Alberic Cerdà Briviesca North Lanarkshire Coslada Parintins El Prat de Llobregat Novo Hamburgo Valverde Peñafiel, Spain Karrantza Arévalo Molina de Aragón Rhein-Pfalz-Kreis Malgrat de Mar Santa Cruz de La Palma Palafolls Itajaí Algemesí Sanlúcar de Barrameda Chengdu Santarém Lääne-Viru County San Bartolomé de Tirajana Ruente Vilafant Balmaseda L'Hospitalet de Llobregat Vitória Wrexham Itambé Arafo Castelló d'Empúries Gyeonggi Province Torrox Montilla Calatayud Parla Maringá Westerwaldkreis Mollet del Vallès Sant Sadurní d'Anoia Main-Taunus-Kreis Pelotas Marburg-Biedenkopf Peligros Lahn-Dill-Kreis Belinho Rheingau-Taunus-Kreis Tocina Chiclana de la Frontera São João de Loure Arnedo Almagro, Ciudad Real Pomerode North Jeolla Province Ciutadella de Menorca Callosa de Segura Duruelo de la Sierra Torrelodones San Borja Tàrrega Rügen Vielha e Mijaran Iúna, Espírito Santo Porto Seguro Pastrana Brieskow-Finkenheerd Special Region of Yogyakarta Barreiro Macael Diamantina, Minas Gerais East Dunbartonshire Tomelloso Encantado Fuenlabrada Mondoñedo Salobreña Malpica de Bergantiños Criciúma Salvatierra/Agurain Crevillent Flintshire Arenys de Mar A Estrada Barberà del Vallès Candelaria Cassà de la Selva Farroupilha Jaca Harju County Quaraí Santa Amalia Caudete Autol Veranópolis Vale of Glamorgan Gramado Monzón Vélez-Rubio Cavite Almuñécar Las Gabias Palmas Igualada Rivne Torrent Caspe Zafra Santana do Livramento Joinville Cehegín Canals Medina de Pomar Alcaudete Vila Nova de Cerveira Atarfe Alanís Sádaba Sort Tui Museros Torredonjimeno San Fernando São José dos Pinhais Paiporta Cornellà de Llobregat Calanda Iznalloz Uncastillo Nova Pádua Kirovohrad Oblast Alfaro, La Rioja Pedrajas de San Esteban Torrejón de Ardoz Santa Maria Barakaldo Vic Oliveira do Douro, Vila Nova de Gaia Sant Vicenç dels Horts Las Rozas de Madrid Manilva Casca, Rio Grande do Sul Segorbe Montgat Teià Padrón Benifaió Carcaixent Abanilla Pontarddulais Cascavel Los Palacios y Villafranca Recife Villafeliche Roses Martorelles Mondorf-les-Bains Rastatt Villa El Salvador District Massaranduba, Santa Catarina Aratiba Arroio do Meio Escalona Cella Hersfeld-Rotenburg Collado Villalba Maracena Vilanova de Arousa Schwalm-Eder-Kreis Sitges Vilanova i la Geltrú Alcalá del Río Villanueva de la Cañada Cubelles Governador Valadares Graus Valdepeñas San Lorenzo de El Escorial Rhondda Cynon Taf Medina del Campo Viveiro João Pessoa Tortosa Bigastro Valdemoro Clavijo São Mateus, Espírito Santo Qingdao Colmenar Viejo Guernica Mora Caldes d'Estrac Arenys de Munt Montblanc Ilópolis Tartu County Catoira Comillas Falkirk Meliana Cerdanyola del Vallès Markina-Xemein San Sebastián de La Gomera Tolosa Villamanrique de la Condesa Natal Valencia de Don Juan Vilassar de Dalt Albaida Benalup-Casas Viejas Alcañiz Jinan Sigüenza Mataró Calahorra Argoncilhe Mostardas Luso Valverde del Camino Itiúba Andorra Peniscola Reus San Vicente del Raspeig / Sant Vicent del Raspeig Alcalá la Real Medina de Rioseco Ólvega Teresópolis Caruaru Ordizia Baiona Santa Margarita de Montbui Santa Cruz Cabrália La Muela Teror Sant Feliu de Llobregat Majadahonda São Pedro do Butiá Piraquara Oder-Spree Palafrugell Palamós Toro Fuentepelayo Calatorao Barcarrota Celanova Castril Torredembarra Mochola Alella Nova Friburgo Rendsburg-Eckernförde Gaspar, Santa Catarina Oliva Tacoronte, Santa Cruz de Tenerife Vicente López Partido Archena Oyón-Oion Ormaiztegi Olocau Balaguer Pilas Aquiraz El Perelló San Martín de Valdeiglesias Metropolitan City of Florence Saint Kitts and Nevis Barbastro L'Eliana Amposta East Lothian Viladecans Cariñena La Unión Baeza Sos del Rey Católico Novelda Fuenmayor East Java Miraflores Changchun Xàbia Torfaen County Borough Benifairó de la Valldigna Picassent Hildesheim Castuera Zapsonj Ponta Porã Valls San Adrián Lanjarón Bridgend County Borough Láchar Santiago de Figueiró Tudela de Duero Alaquàs Alcúdia San Miguel de Abona Sant Pol de Mar Alhama de Granada Valverde de Júcar Armilla Manlleu Chipiona Quintanar de la Orden Gerena Ningbo Pedrola Consuegra Arganda del Rey Mequinenza Sant Cugat del Vallès Lapa Almansa La Zubia Guangzhou Huelma Castelldefels Paterna Ezcaray Blanca East Renfrewshire Andalusia Cayman Islands Vilafranca del Penedès Castrillo Mota de Judíos Azuaga Foz do Iguaçu Nerja Ondara Bulacan Bétera Tías, Las Palmas Berantevilla Vall de Boí Los Alcázares Banyoles Benicarló Figueres Sayalonga Monte Belo do Sul Main-Kinzig-Kreis Blaenau Gwent County Borough Leganés Ipatinga Les Alqueries Bronniki Albalat de la Ribera South Jeolla Province Olinda Fregenal de la Sierra El Vendrell Uruguaiana Güímar Vilanova del Camí Yanoshi Ponta Grossa Ugao-Miraballes Martorell Gavà Esplugues de Llobregat Magdalena del Mar Olesa de Montserrat Deggendorf Calp Venta de Baños Brussels Madridejos Zuera Fraga Lezama Londrina L'Alcúdia San Fernando de Henares Elorrio Fife Xiamen Ripoll Zumaia Ribeira Amer Cañete la Real The Bahamas Castellterçol Villanueva del Pardillo Serne Utrillas Santo Domingo de la Calzada Belém Puertollano Canfranc
Guangzhou, Saint Kitts and Nevis and The Bahamas are twin city of less number of human settlements than Wuhan
Guangzhou Saint Kitts and Nevis The Bahamas
action less
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_type
action find
entity Wuhan
relation sister city
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?u ) WHERE { ?q property:sister_city ?d . ?q rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:human_settlement } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Wuhan property:sister_city ?v . ?v rdf:type ontology:human_settlement } } . FILTER ( ?u < ?p ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q42956
P190
Q486972 Q1048835
USER
And also tell me about Harbin?
(c(Q1048835),P190,c(Q486972))
action less
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q42956
relation P190
type Q486972
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?e ) WHERE { ?p property:P190 ?v . ?p rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q486972 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q42956 property:P190 ?q . ?q rdf:type ontology:Q486972 } } . FILTER ( ?e < ?x ) }
Harbin
action less
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_type
action find
entity Harbin
relation sister city
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?e ) WHERE { ?p property:sister_city ?v . ?p rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:human_settlement } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Harbin property:sister_city ?q . ?q rdf:type ontology:human_settlement } } . FILTER ( ?e < ?x ) }
[]
human settlement political territorial entity
Q16572 Q763 Q778
SYSTEM
Guangzhou, Saint Kitts and Nevis, The Bahamas
Q473250 Q484717 Q1442814 Q1628188 Q36947 Q1794732 Q15473 Q484552 Q15471 Q786126 Q1643855 Q13010 Q927931 Q147774 Q1765078 Q6022 Q910410 Q2101408 Q5913 Q187826 Q1312844 Q2047561 Q1391501 Q207111 Q164197 Q926713 Q15619 Q321331 Q1853429 Q667682 Q686837 Q476793 Q919050 Q8554 Q12590 Q433632 Q12595 Q842713 Q1649476 Q210887 Q30002 Q659450 Q189952 Q693258 Q644891 Q12153 Q4480 Q15470 Q168376 Q496368 Q686304 Q624967 Q11286 Q20937 Q13150 Q13156 Q496424 Q824651 Q208669 Q8602 Q15430 Q984508 Q7909 Q109188 Q7902 Q538809 Q7905 Q815631 Q7907 Q63004 Q277302 Q1021521 Q642083 Q752280 Q326651 Q41157 Q899884 Q1750915 Q832246 Q542958 Q2566267 Q752137 Q164867 Q12647 Q1793709 Q499922 Q1655081 Q376393 Q3741 Q2392504 Q1161455 Q34028 Q211889 Q820229 Q226009 Q54902 Q840362 Q427330 Q596761 Q1439157 Q398698 Q1616611 Q505610 Q12110 Q1621191 Q13916 Q487268 Q13424 Q535531 Q49581 Q180200 Q1637478 Q1407143 Q1606055 Q787022 Q1101945 Q844784 Q694833 Q5123 Q1110343 Q13785 Q193780 Q574340 Q178993 Q15950 Q3850873 Q161945 Q64010 Q140203 Q917693 Q156819 Q1757489 Q258722 Q1614754 Q1613282 Q375925 Q550974 Q254699 Q956558 Q12690 Q824122 Q1010314 Q1915208 Q741765 Q478818 Q102848 Q15602 Q737161 Q1410782 Q583280 Q1750269 Q180981 Q695889 Q1651727 Q489839 Q740833 Q487801 Q13855 Q1730870 Q15649 Q592747 Q913492 Q1786658 Q750968 Q12022 Q12028 Q500494 Q1919317 Q1771128 Q1635711 Q3397684 Q205681 Q428954 Q48344 Q1650316 Q11822 Q15429 Q798747 Q8182 Q691525 Q980131 Q33961 Q1758806 Q616621 Q1651638 Q7898 Q735759 Q583032 Q739495 Q7894 Q15551 Q15553 Q1386351 Q973325 Q15558 Q462218 Q937763 Q898563 Q371748 Q817960 Q693913 Q641221 Q167436 Q12812 Q1763754 Q840373 Q767222 Q1763574 Q170322 Q55480 Q189848 Q1641529 Q12102 Q12101 Q761735 Q1757392 Q192370 Q377244 Q847329 Q216802 Q1993019 Q13922 Q604810 Q512009 Q497801 Q1601699 Q131620 Q385017 Q12075 Q1917834 Q1632577 Q572800 Q170247 Q47475 Q11492 Q642046 Q4068849 Q1754551 Q1024828 Q844038 Q1807777 Q492533 Q845424 Q487096 Q491667 Q638181 Q1648251 Q623685 Q622836 Q622830 Q672483 Q748867 Q15968 Q993466 Q1639365 Q430147 Q15639 Q427505 Q1758141 Q2004395 Q6178 Q13490 Q13491 Q836948 Q936624 Q1641454 Q534483 Q1605505 Q555913 Q995637 Q729958 Q12034 Q468563 Q2967 Q856583 Q918586 Q944264 Q2099330 Q632621 Q581589 Q932808 Q122208 Q696797 Q1616138 Q1794121 Q1229949 Q1751908 Q18288148 Q763 Q502975 Q1998520 Q477311 Q207257 Q15652 Q984529 Q1228759 Q488555 Q49571 Q983473 Q755695 Q3586 Q1026229 Q92161 Q851020 Q643919 Q1312465 Q10863 Q5978 Q515016 Q714538 Q928094 Q825883 Q668324 Q582995 Q697126 Q484981 Q1272870 Q1651692 Q1649698 Q385923 Q677038 Q12534 Q501674 Q1767561 Q550985 Q13804 Q741749 Q1628531 Q1601614 Q42780 Q574869 Q919046 Q497692 Q837051 Q13936 Q2064788 Q13930 Q619692 Q16572 Q1641746 Q15597 Q23042 Q1637309 Q1998560 Q211925 Q5783 Q5785 Q835012 Q976534 Q1368982 Q202316 Q13149 Q290824 Q13755 Q986084 Q2244278 Q1368868 Q12711 Q1982975 Q13614 Q817302 Q6839 Q1630141 Q1757428 Q7911 Q596885 Q77433 Q318314 Q1646869 Q927800 Q749696 Q41161 Q28301 Q1613587 Q929759 Q622823 Q983433 Q15974 Q830776 Q242906 Q1228035 Q15623 Q15622 Q15621 Q3303729 Q15626 Q10485 Q671272 Q1657213 Q240 Q1607392 Q1605519 Q904212 Q946068 Q192387 Q2044406 Q842211 Q1242382 Q201149 Q68744 Q12335 Q229659 Q904130 Q13022 Q13159 Q778 Q15408 Q1751916 Q714613 Q1768489 Q646564 Q47593 Q215822 Q984642
(c(Q1048835),P190,c(Q486972))
action less
action find_tuple_counts
relation P190
type Q1048835
type Q486972
action count
action filter_type
action find
entity Q42956
relation P190
type Q486972
[ANSWERS]
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?e ) WHERE { ?p property:P190 ?v . ?p rdf:type ontology:Q1048835 . ?v rdf:type ontology:Q486972 } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Q42956 property:P190 ?q . ?q rdf:type ontology:Q486972 } } . FILTER ( ?e < ?x ) }
Macaé San Sebastián de los Reyes Mazaricos Cangas Salvador Maracanaú Santa Coloma de Gramenet Algeciras Sant Adrià de Besòs Mundaka Monroy Arbúcies Cabra Zarautz Urussanga Göttingen Tres Cantos Guimarães Lüchow-Dannenberg Móstoles Alberic Cerdà Briviesca North Lanarkshire Coslada Parintins El Prat de Llobregat Novo Hamburgo Valverde Peñafiel, Spain Karrantza Arévalo Molina de Aragón Rhein-Pfalz-Kreis Malgrat de Mar Santa Cruz de La Palma Palafolls Itajaí Algemesí Sanlúcar de Barrameda Chengdu Santarém Lääne-Viru County San Bartolomé de Tirajana Ruente Vilafant Balmaseda L'Hospitalet de Llobregat Vitória Wrexham Itambé Arafo Castelló d'Empúries Gyeonggi Province Torrox Montilla Calatayud Parla Maringá Westerwaldkreis Mollet del Vallès Sant Sadurní d'Anoia Main-Taunus-Kreis Pelotas Marburg-Biedenkopf Peligros Lahn-Dill-Kreis Belinho Rheingau-Taunus-Kreis Tocina Chiclana de la Frontera São João de Loure Arnedo Almagro, Ciudad Real Pomerode North Jeolla Province Ciutadella de Menorca Callosa de Segura Duruelo de la Sierra Torrelodones San Borja Tàrrega Rügen Vielha e Mijaran Iúna, Espírito Santo Porto Seguro Pastrana Brieskow-Finkenheerd Special Region of Yogyakarta Barreiro Macael Diamantina, Minas Gerais East Dunbartonshire Tomelloso Encantado Fuenlabrada Mondoñedo Salobreña Malpica de Bergantiños Criciúma Salvatierra/Agurain Crevillent Flintshire Arenys de Mar A Estrada Barberà del Vallès Candelaria Cassà de la Selva Farroupilha Jaca Harju County Quaraí Santa Amalia Caudete Autol Veranópolis Vale of Glamorgan Gramado Monzón Vélez-Rubio Cavite Almuñécar Las Gabias Palmas Igualada Rivne Torrent Caspe Zafra Santana do Livramento Joinville Cehegín Canals Medina de Pomar Alcaudete Vila Nova de Cerveira Atarfe Alanís Sádaba Sort Tui Museros Torredonjimeno San Fernando São José dos Pinhais Paiporta Cornellà de Llobregat Calanda Iznalloz Uncastillo Nova Pádua Kirovohrad Oblast Alfaro, La Rioja Pedrajas de San Esteban Torrejón de Ardoz Santa Maria Barakaldo Vic Oliveira do Douro, Vila Nova de Gaia Sant Vicenç dels Horts Las Rozas de Madrid Manilva Casca, Rio Grande do Sul Segorbe Montgat Teià Padrón Benifaió Carcaixent Abanilla Pontarddulais Cascavel Los Palacios y Villafranca Recife Villafeliche Roses Martorelles Mondorf-les-Bains Rastatt Villa El Salvador District Massaranduba, Santa Catarina Aratiba Arroio do Meio Escalona Cella Hersfeld-Rotenburg Collado Villalba Maracena Vilanova de Arousa Schwalm-Eder-Kreis Sitges Vilanova i la Geltrú Alcalá del Río Villanueva de la Cañada Cubelles Governador Valadares Graus Valdepeñas San Lorenzo de El Escorial Rhondda Cynon Taf Medina del Campo Viveiro João Pessoa Tortosa Bigastro Valdemoro Clavijo São Mateus, Espírito Santo Qingdao Colmenar Viejo Guernica Mora Caldes d'Estrac Arenys de Munt Montblanc Ilópolis Tartu County Catoira Comillas Falkirk Meliana Cerdanyola del Vallès Markina-Xemein San Sebastián de La Gomera Tolosa Villamanrique de la Condesa Natal Valencia de Don Juan Vilassar de Dalt Albaida Benalup-Casas Viejas Alcañiz Jinan Sigüenza Mataró Calahorra Argoncilhe Mostardas Luso Valverde del Camino Itiúba Andorra Peniscola Reus San Vicente del Raspeig / Sant Vicent del Raspeig Alcalá la Real Medina de Rioseco Ólvega Teresópolis Caruaru Ordizia Baiona Santa Margarita de Montbui Santa Cruz Cabrália La Muela Teror Sant Feliu de Llobregat Majadahonda São Pedro do Butiá Piraquara Oder-Spree Palafrugell Palamós Toro Fuentepelayo Calatorao Barcarrota Celanova Castril Torredembarra Mochola Alella Nova Friburgo Rendsburg-Eckernförde Gaspar, Santa Catarina Oliva Tacoronte, Santa Cruz de Tenerife Vicente López Partido Archena Oyón-Oion Ormaiztegi Olocau Balaguer Pilas Aquiraz El Perelló San Martín de Valdeiglesias Metropolitan City of Florence Saint Kitts and Nevis Barbastro L'Eliana Amposta East Lothian Viladecans Cariñena La Unión Baeza Sos del Rey Católico Novelda Fuenmayor East Java Miraflores Changchun Xàbia Torfaen County Borough Benifairó de la Valldigna Picassent Hildesheim Castuera Zapsonj Ponta Porã Valls San Adrián Lanjarón Bridgend County Borough Láchar Santiago de Figueiró Tudela de Duero Alaquàs Alcúdia San Miguel de Abona Sant Pol de Mar Alhama de Granada Valverde de Júcar Armilla Manlleu Chipiona Quintanar de la Orden Gerena Ningbo Pedrola Consuegra Arganda del Rey Mequinenza Sant Cugat del Vallès Lapa Almansa La Zubia Guangzhou Huelma Castelldefels Paterna Ezcaray Blanca East Renfrewshire Andalusia Cayman Islands Vilafranca del Penedès Castrillo Mota de Judíos Azuaga Foz do Iguaçu Nerja Ondara Bulacan Bétera Tías, Las Palmas Berantevilla Vall de Boí Los Alcázares Banyoles Benicarló Figueres Sayalonga Monte Belo do Sul Main-Kinzig-Kreis Blaenau Gwent County Borough Leganés Ipatinga Les Alqueries Bronniki Albalat de la Ribera South Jeolla Province Olinda Fregenal de la Sierra El Vendrell Uruguaiana Güímar Vilanova del Camí Yanoshi Ponta Grossa Ugao-Miraballes Martorell Gavà Esplugues de Llobregat Magdalena del Mar Olesa de Montserrat Deggendorf Calp Venta de Baños Brussels Madridejos Zuera Fraga Lezama Londrina L'Alcúdia San Fernando de Henares Elorrio Fife Xiamen Ripoll Zumaia Ribeira Amer Cañete la Real The Bahamas Castellterçol Villanueva del Pardillo Serne Utrillas Santo Domingo de la Calzada Belém Puertollano Canfranc
Guangzhou Saint Kitts and Nevis The Bahamas
action less
action find_tuple_counts
relation sister city
type political territorial entity
type human settlement
action count
action filter_type
action find
entity Harbin
relation sister city
type human settlement
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?e ) WHERE { ?p property:sister_city ?v . ?p rdf:type ontology:political_territorial_entity . ?v rdf:type ontology:human_settlement } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?x ) WHERE { resource:Harbin property:sister_city ?q . ?q rdf:type ontology:human_settlement } } . FILTER ( ?e < ?x ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relations with max number of political territories ?
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?h ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?x = ?s ) }
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?h ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?x = ?s ) }
[]
political territorial entity political territorial entity
Q408
SYSTEM
Australia
Q408
(c(Q1048835),P530,c(Q1048835))
action argmax
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
[ANSWER] have diplomatic relations with max number of political territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?h ) WHERE { ?f property:P530 ?w . ?f rdf:type ontology:Q1048835 . ?w rdf:type ontology:Q1048835 } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:P530 ?a . ?a rdf:type ontology:Q1048835 . ?r rdf:type ontology:Q1048835 } GROUP BY ?r } . FILTER ( ?x = ?s ) }
Australia
Australia have diplomatic relations with max number of political territories
Australia
action argmax
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?s ) { SELECT DISTINCT ?f ( COUNT ( ?w ) AS ?h ) WHERE { ?f property:diplomatic_relation ?w . ?f rdf:type ontology:political_territorial_entity . ?w rdf:type ontology:political_territorial_entity } GROUP BY ?f } } . { SELECT DISTINCT ?r ( COUNT ( ?a ) AS ?x ) WHERE { ?r property:diplomatic_relation ?a . ?a rdf:type ontology:political_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?r } . FILTER ( ?x = ?s ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q1754
P190
Q56061 Q515
USER
How many administrative territories and cities are twin cities of Stockholm ?
(Q1754,P190,c(Q56061)) (Q1754,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q1754
relation P190
type Q56061
action filter_type
action find
entity Q1754
relation P190
type Q515
['Q1754', 'P190', {'concept': 'Q56061'}] ['Q1754', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Q1754 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q515 . resource:Q1754 property:P190 ?t } }
Stockholm
action count
action union
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
action filter_type
action find
entity Stockholm
relation sister city
type city
['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}] ['Stockholm', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Stockholm property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:city . resource:Stockholm property:sister_city ?t } }
[]
administrative territorial entity city
SYSTEM
14 administrative territories and 6 cities
Q1757 Q226 Q216 Q3624 Q3711 Q585 Q11194 Q1748 Q13670 Q406 Q19689 Q1899 Q1489 Q23564 Q1770 Q1773 Q3572 Q51103 Q1764 Q10704
(Q1754,P190,c(Q56061)) (Q1754,P190,c(Q515))
action count
action union
action filter_type
action find
entity Q1754
relation P190
type Q56061
action filter_type
action find
entity Q1754
relation P190
type Q515
[ANSWER]
['Q1754', 'P190', {'concept': 'Q56061'}] ['Q1754', 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Q1754 property:P190 ?t . ?t rdf:type ontology:Q56061 } UNION { ?t rdf:type ontology:Q515 . resource:Q1754 property:P190 ?t } }
Helsinki Nuuk Vilnius Addis Ababa Belgrade Oslo Sarajevo Copenhagen Syracuse Istanbul Tirana Kyiv Mexico City Podgorica Tallinn Riga Tunis Cali Reykjavík Tórshavn
14 administrative territories and 6 cities
action count
action union
action filter_type
action find
entity Stockholm
relation sister city
type administrative territorial entity
action filter_type
action find
entity Stockholm
relation sister city
type city
['Stockholm', 'sister city', {'concept': 'administrative territorial entity'}] ['Stockholm', 'sister city', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?s ) WHERE { { resource:Stockholm property:sister_city ?t . ?t rdf:type ontology:administrative_territorial_entity } UNION { ?t rdf:type ontology:city . resource:Stockholm property:sister_city ?t } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q40
P530
Q1048835 Q1048835
USER
Which political territories have diplomatic relationships with greater number of political territories than Austria ?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?z ) WHERE { ?u property:P530 ?d . ?u rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q40 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?v ) }
Austria
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?z ) WHERE { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Austria property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?v ) }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q40
relation P530
type Q1048835
[ANSWERS] have diplomatic relationships with greater number of political territories than Austria
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?z ) WHERE { ?u property:P530 ?d . ?u rdf:type ontology:Q1048835 . ?d rdf:type ontology:Q1048835 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Q40 property:P530 ?t . ?t rdf:type ontology:Q1048835 } } . FILTER ( ?z > ?v ) }
Germany Australia Denmark Canada New Zealand
Germany, Australia and Denmark have diplomatic relationships with greater number of political territories than Austria
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Austria
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?d ) AS ?z ) WHERE { ?u property:diplomatic_relation ?d . ?u rdf:type ontology:political_territorial_entity . ?d rdf:type ontology:political_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?v ) WHERE { resource:Austria property:diplomatic_relation ?t . ?t rdf:type ontology:political_territorial_entity } } . FILTER ( ?z > ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q781
P530
Q1048835 Q1048835
USER
And how about Antigua and Barbuda?
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?i } } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?d ) WHERE { ?a property:P530 ?j . ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q1048835 } GROUP BY ?a } }
Antigua and Barbuda
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?i } } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?d ) WHERE { ?a property:diplomatic_relation ?j . ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
political territorial entity political territorial entity
Q183 Q408 Q35
SYSTEM
Germany, Australia, Denmark
Q40 Q183 Q408 Q35 Q16 Q664
(c(Q1048835),P530,c(Q1048835))
action greater
action find_tuple_counts
relation P530
type Q1048835
type Q1048835
action count
action filter_type
action find
entity Q781
relation P530
type Q1048835
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q1048835 . resource:Q781 property:P530 ?i } } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?d ) WHERE { ?a property:P530 ?j . ?a rdf:type ontology:Q1048835 . ?j rdf:type ontology:Q1048835 } GROUP BY ?a } }
Austria Germany Australia Denmark Canada New Zealand
Germany Australia Denmark
action greater
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type political territorial entity
action count
action filter_type
action find
entity Antigua and Barbuda
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:political_territorial_entity . resource:Antigua_and_Barbuda property:diplomatic_relation ?i } } . FILTER ( ?d > ?s ) . { SELECT DISTINCT ?a ( COUNT ( ?j ) AS ?d ) WHERE { ?a property:diplomatic_relation ?j . ?a rdf:type ontology:political_territorial_entity . ?j rdf:type ontology:political_territorial_entity } GROUP BY ?a } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q230
P530
Q15617994
USER
Do Georgia have diplomatic associations with those political territories ?
(Q230,P530,Q183) (Q230,P530,Q408) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
['Q230', 'P530', 'Q183'] ['Q230', 'P530', 'Q408'] ['Q230', 'P530', 'Q35']
ASK WHERE { resource:Q230 property:P530 ?e . VALUES ( ?e ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } }
Georgia
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany'] ['Georgia', 'diplomatic relation', 'Australia'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Georgia property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q230,P530,Q183) (Q230,P530,Q408) (Q230,P530,Q35)
action is_in
entity prev_answer
action find
entity Q230
relation P530
[ANSWER]
['Q230', 'P530', 'Q183'] ['Q230', 'P530', 'Q408'] ['Q230', 'P530', 'Q35']
ASK WHERE { resource:Q230 property:P530 ?e . VALUES ( ?e ) { ( resource:Q40 ) ( resource:Q183 ) ( resource:Q408 ) } }
Yes
action is_in
entity prev_answer
action find
entity Georgia
relation diplomatic relation
['Georgia', 'diplomatic relation', 'Germany'] ['Georgia', 'diplomatic relation', 'Australia'] ['Georgia', 'diplomatic relation', 'Denmark']
ASK WHERE { resource:Georgia property:diplomatic_relation ?e . VALUES ( ?e ) { ( resource:Austria ) ( resource:Germany ) ( resource:Australia ) } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q778
P137
Q2424752
USER
Which products can be described as facility operator of The Bahamas ?
(c(Q2424752),P137,Q778)
action filter_type
action find_reverse
entity Q778
relation P137
type Q2424752
[{'concept': 'Q2424752'}, 'P137', 'Q778']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2424752 . ?t property:P137 resource:Q778 }
The Bahamas
action filter_type
action find_reverse
entity The Bahamas
relation operator
type product
[{'concept': 'product'}, 'operator', 'The Bahamas']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:product . ?t property:operator resource:The_Bahamas }
[]
product
Q665708 Q15622908 Q15618511
SYSTEM
King Air, King Air 350, King Air 300
Q665708 Q15622908 Q15618511
(c(Q2424752),P137,Q778)
action filter_type
action find_reverse
entity Q778
relation P137
type Q2424752
[ANSWERS] can be described as facility operator of The Bahamas
[{'concept': 'Q2424752'}, 'P137', 'Q778']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q2424752 . ?t property:P137 resource:Q778 }
King Air King Air 350 King Air 300
King Air, King Air 350 and King Air 300 can be described as facility operator of The Bahamas
King Air King Air 350 King Air 300
action filter_type
action find_reverse
entity The Bahamas
relation operator
type product
[{'concept': 'product'}, 'operator', 'The Bahamas']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:product . ?t property:operator resource:The_Bahamas }
[]
Clarification
Simple Question|Single Entity|Indirect
Q665708
P176
Q4830453
USER
Who is the maker of that product ?
(Q665708,P176,c(Q4830453))
action filter_type
action find
entity Q665708
relation P176
type Q4830453
['Q665708', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?m WHERE { resource:Q665708 property:P176 ?m . ?m rdf:type ontology:Q4830453 }
King Air
action filter_type
action find
entity King Air
relation manufacturer
type business enterprise
['King Air', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?m WHERE { resource:King_Air property:manufacturer ?m . ?m rdf:type ontology:business_enterprise }
[]
business enterprise
Clarification for simple ques.
Q15622908
SYSTEM
Did you mean King Air 350 ?
Q665708 Q15622908 Q15618511
(Q665708,P176,c(Q4830453)) (Q15622908,P176,c(Q4830453)) (Q15618511,P176,c(Q4830453))
[ANSWER]
['Q665708', 'P176', {'concept': 'Q4830453'}] ['Q15622908', 'P176', {'concept': 'Q4830453'}] ['Q15618511', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?m WHERE { resource:Q665708 property:P176 ?m . ?m rdf:type ontology:Q4830453 }
King Air King Air 350 King Air 300
Did you mean King Air 350 ?
King Air 350
['King Air', 'manufacturer', {'concept': 'business enterprise'}] ['King Air 350', 'manufacturer', {'concept': 'business enterprise'}] ['King Air 300', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?m WHERE { resource:King_Air property:manufacturer ?m . ?m rdf:type ontology:business_enterprise }
[]
Simple Question (Coreferenced)
USER
No, I meant King Air. Could you tell me the answer for that?
(Q665708,P176,c(Q4830453))
Q665708
['Q665708', 'P176', {'concept': 'Q4830453'}]
['King Air', 'manufacturer', {'concept': 'business enterprise'}]
[]
Q634227
SYSTEM
Beechcraft
Q634227
(Q665708,P176,c(Q4830453))
action filter_type
action find
entity Q665708
relation P176
type Q4830453
The maker of that product is a [ANSWER]
['Q665708', 'P176', {'concept': 'Q4830453'}]
SELECT DISTINCT ?m WHERE { resource:Q665708 property:P176 ?m . ?m rdf:type ontology:Q4830453 }
Beechcraft
The maker of that product is a Beechcraft
Beechcraft
action filter_type
action find
entity King Air
relation manufacturer
type business enterprise
['King Air', 'manufacturer', {'concept': 'business enterprise'}]
SELECT DISTINCT ?m WHERE { resource:King_Air property:manufacturer ?m . ?m rdf:type ontology:business_enterprise }
[]