Simple Question (Direct)
Simple Question
Q1084345
P512
Q3412758
USER
Which qualification does Christof Tannert hold ?
(Q1084345,P512,c(Q3412758))
action filter_type
action find
entity Q1084345
relation P512
type Q3412758
['Q1084345', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q1084345 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
Christof Tannert
action filter_type
action find
entity Christof Tannert
relation academic degree
type qualification
['Christof Tannert', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Christof_Tannert property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
qualification
Q849697
SYSTEM
doctoral degree
Q849697
(Q1084345,P512,c(Q3412758))
action filter_type
action find
entity Q1084345
relation P512
type Q3412758
Christof Tannert holds the [ANSWER]
['Q1084345', 'P512', {'concept': 'Q3412758'}]
SELECT DISTINCT ?d WHERE { resource:Q1084345 property:P512 ?d . ?d rdf:type ontology:Q3412758 }
doctoral degree
Christof Tannert holds the doctoral degree
doctoral degree
action filter_type
action find
entity Christof Tannert
relation academic degree
type qualification
['Christof Tannert', 'academic degree', {'concept': 'qualification'}]
SELECT DISTINCT ?d WHERE { resource:Christof_Tannert property:academic_degree ?d . ?d rdf:type ontology:qualification }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1084345
P937
Q56061
USER
Where did Christof Tannert work ?
(Q1084345,P937,c(Q56061))
action filter_type
action find
entity Q1084345
relation P937
type Q56061
['Q1084345', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1084345 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Christof Tannert
action filter_type
action find
entity Christof Tannert
relation work location
type administrative territorial entity
['Christof Tannert', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Christof_Tannert property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q64 Q239
SYSTEM
Berlin, Brussels
Q64 Q239
(Q1084345,P937,c(Q56061))
action filter_type
action find
entity Q1084345
relation P937
type Q56061
Christof Tannert worked in [ANSWERS]
['Q1084345', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?v WHERE { resource:Q1084345 property:P937 ?v . ?v rdf:type ontology:Q56061 }
Berlin Brussels
Christof Tannert worked in Berlin and Brussels
Berlin Brussels
action filter_type
action find
entity Christof Tannert
relation work location
type administrative territorial entity
['Christof Tannert', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?v WHERE { resource:Christof_Tannert property:work_location ?v . ?v rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
Incomplete|object parent is changed, subject and predicate remain same
Q1084345
Q515
USER
And which city?
(Q1084345,P937,c(Q515))
action filter_type
action find
entity Q1084345
relation P937
type Q515
['Q1084345', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q515 . resource:Q1084345 property:P937 ?g }
Christof Tannert
action filter_type
action find
entity Christof Tannert
relation work location
type city
['Christof Tannert', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:city . resource:Christof_Tannert property:work_location ?g }
[]
city
Q6602
SYSTEM
Strasbourg
Q6602
(Q1084345,P937,c(Q515))
action filter_type
action find
entity Q1084345
relation P937
type Q515
[ANSWER]
['Q1084345', 'P937', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q515 . resource:Q1084345 property:P937 ?g }
Strasbourg
Strasbourg
action filter_type
action find
entity Christof Tannert
relation work location
type city
['Christof Tannert', 'work location', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:city . resource:Christof_Tannert property:work_location ?g }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1444
Q15091377 Q878123
USER
How many cycling races and racings ends at that city ?
(c(Q15091377),P1444,Q6602) (c(Q878123),P1444,Q6602) (c(Q15091377),P1444,Q6602) (c(Q878123),P1444,Q6602)
action count
action union
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q15091377
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q878123
[{'concept': 'Q15091377'}, 'P1444', 'Q6602'] [{'concept': 'Q878123'}, 'P1444', 'Q6602'] [{'concept': 'Q15091377'}, 'P1444', 'Q6602'] [{'concept': 'Q878123'}, 'P1444', 'Q6602']
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { ?a property:P1444 resource:Q6602 . ?a rdf:type ontology:Q15091377 } UNION { ?a property:P1444 resource:Q6602 . ?a rdf:type ontology:Q878123 } }
action count
action union
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type cycling race
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type racing
[{'concept': 'cycling race'}, 'destination point', 'Strasbourg'] [{'concept': 'racing'}, 'destination point', 'Strasbourg'] [{'concept': 'cycling race'}, 'destination point', 'Strasbourg'] [{'concept': 'racing'}, 'destination point', 'Strasbourg']
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { ?a property:destination_point resource:Strasbourg . ?a rdf:type ontology:cycling_race } UNION { ?a property:destination_point resource:Strasbourg . ?a rdf:type ontology:racing } }
[]
cycling race racing
SYSTEM
1 cycling races and 2 racings
Q21714644 Q1780971 Q1807340
(c(Q15091377),P1444,Q6602) (c(Q878123),P1444,Q6602) (c(Q15091377),P1444,Q6602) (c(Q878123),P1444,Q6602)
action count
action union
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q15091377
action filter_type
action find_reverse
entity Q6602
relation P1444
type Q878123
[ANSWER]
[{'concept': 'Q15091377'}, 'P1444', 'Q6602'] [{'concept': 'Q878123'}, 'P1444', 'Q6602'] [{'concept': 'Q15091377'}, 'P1444', 'Q6602'] [{'concept': 'Q878123'}, 'P1444', 'Q6602']
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { ?a property:P1444 resource:Q6602 . ?a rdf:type ontology:Q15091377 } UNION { ?a property:P1444 resource:Q6602 . ?a rdf:type ontology:Q878123 } }
1954 Tour d'Europe prologue of the Tour de France 2006 2006 Tour de France, Stage 1
1 cycling races and 2 racings
action count
action union
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type cycling race
action filter_type
action find_reverse
entity Strasbourg
relation destination point
type racing
[{'concept': 'cycling race'}, 'destination point', 'Strasbourg'] [{'concept': 'racing'}, 'destination point', 'Strasbourg'] [{'concept': 'cycling race'}, 'destination point', 'Strasbourg'] [{'concept': 'racing'}, 'destination point', 'Strasbourg']
SELECT DISTINCT ( COUNT ( ?a ) AS ?z ) WHERE { { ?a property:destination_point resource:Strasbourg . ?a rdf:type ontology:cycling_race } UNION { ?a property:destination_point resource:Strasbourg . ?a rdf:type ontology:racing } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P190
Q515 Q1048835
USER
Which political territories are twin town of min number of cities ?
(c(Q1048835),P190,c(Q515))
action argmin
action find_tuple_counts
relation P190
type Q1048835
type Q515
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?f ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?h ) WHERE { ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q1048835 . ?m property:P190 ?w } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?j ) WHERE { ?g property:P190 ?s . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q515 } GROUP BY ?g } . FILTER ( ?j = ?f ) }
action argmin
action find_tuple_counts
relation sister city
type political territorial entity
type city
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?f ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?h ) WHERE { ?w rdf:type ontology:city . ?m rdf:type ontology:political_territorial_entity . ?m property:sister_city ?w } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?j ) WHERE { ?g property:sister_city ?s . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:city } GROUP BY ?g } . FILTER ( ?j = ?f ) }
[]
city political territorial entity
Q763 Q778 Q761735
SYSTEM
Saint Kitts and Nevis, The Bahamas, Montblanc
Q473250 Q484717 Q1442814 Q5963 Q1628188 Q36947 Q1794732 Q15473 Q484552 Q15471 Q786126 Q1643855 Q13010 Q927931 Q147774 Q1765078 Q6022 Q910410 Q2101408 Q5913 Q187826 Q1312844 Q2047561 Q1391501 Q207111 Q164197 Q15619 Q321331 Q1853429 Q667682 Q686837 Q476793 Q919050 Q8554 Q12590 Q12595 Q1649476 Q210887 Q659450 Q189952 Q693258 Q644891 Q12153 Q4480 Q15470 Q1312654 Q496368 Q686304 Q624967 Q11286 Q20937 Q13150 Q496588 Q13156 Q496424 Q824651 Q208669 Q8602 Q15430 Q984508 Q7909 Q109188 Q7902 Q538809 Q7905 Q815631 Q7907 Q12339 Q63004 Q277302 Q1021521 Q642083 Q752280 Q326651 Q41157 Q899884 Q1750915 Q832246 Q542958 Q2566267 Q752137 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 Q13521 Q1606055 Q787022 Q1101945 Q844784 Q694833 Q5123 Q1110343 Q1769167 Q13785 Q574340 Q178993 Q15950 Q3850873 Q161945 Q64010 Q140203 Q917693 Q485129 Q156819 Q1757489 Q258722 Q1614754 Q1613282 Q375925 Q550974 Q254699 Q956558 Q12690 Q824122 Q1010314 Q1915208 Q741765 Q102848 Q15602 Q737161 Q1410782 Q583280 Q1750269 Q695889 Q1651727 Q740833 Q487801 Q13855 Q1730870 Q12587 Q15649 Q592747 Q913492 Q1786658 Q750968 Q12022 Q12028 Q500494 Q10436 Q1919317 Q1771128 Q1635711 Q3397684 Q205681 Q428954 Q48344 Q1650316 Q748078 Q11822 Q15429 Q798747 Q8184 Q8182 Q691525 Q980131 Q33961 Q1758806 Q616621 Q1651638 Q7898 Q188905 Q735759 Q583032 Q739495 Q7894 Q15551 Q15553 Q1386351 Q973325 Q15558 Q462218 Q937763 Q898563 Q371748 Q817960 Q693913 Q641221 Q167436 Q12812 Q1763754 Q767222 Q1763574 Q55480 Q1641529 Q12102 Q12101 Q761735 Q281272 Q1757392 Q192370 Q377244 Q847329 Q216802 Q1993019 Q13922 Q604810 Q512009 Q497801 Q1601699 Q131620 Q385017 Q12075 Q221749 Q1632577 Q639422 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 Q465085 Q729958 Q12034 Q468563 Q2967 Q856583 Q918586 Q944264 Q943431 Q2099330 Q632621 Q581589 Q932808 Q122208 Q1616138 Q1794121 Q1229949 Q1751908 Q18288148 Q763 Q502975 Q1998520 Q477311 Q207257 Q15652 Q984529 Q1228759 Q49571 Q983473 Q695456 Q755695 Q3586 Q1026229 Q851020 Q643919 Q1312465 Q10863 Q515016 Q714538 Q928094 Q668324 Q582995 Q697126 Q484981 Q1272870 Q1651692 Q1649698 Q385923 Q677038 Q501674 Q1767561 Q550985 Q13804 Q741749 Q1628531 Q1601614 Q10445 Q574869 Q919046 Q497692 Q984821 Q837051 Q13936 Q2064788 Q13930 Q619692 Q1641746 Q15597 Q23042 Q1637309 Q1998560 Q211925 Q5785 Q835012 Q976534 Q1368982 Q202316 Q13149 Q290824 Q13755 Q986084 Q2244278 Q1368868 Q12711 Q1982975 Q13614 Q817302 Q6839 Q1630141 Q1757428 Q7911 Q596885 Q1646869 Q927800 Q749696 Q41161 Q28301 Q1613587 Q929759 Q622823 Q983433 Q15974 Q830776 Q242906 Q1228035 Q15623 Q15622 Q15621 Q3303729 Q15626 Q10485 Q671272 Q1657213 Q1607392 Q1605519 Q904212 Q946068 Q2044406 Q842211 Q1242382 Q203040 Q12335 Q229659 Q904130 Q13022 Q13159 Q778 Q15408 Q1751916 Q1768489 Q646564 Q215822 Q984642
(c(Q1048835),P190,c(Q515))
action argmin
action find_tuple_counts
relation P190
type Q1048835
type Q515
[ANSWERS] are twin town of min number of cities
[{'concept': 'Q1048835'}, 'P190', {'concept': 'Q515'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?f ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?h ) WHERE { ?w rdf:type ontology:Q515 . ?m rdf:type ontology:Q1048835 . ?m property:P190 ?w } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?j ) WHERE { ?g property:P190 ?s . ?g rdf:type ontology:Q1048835 . ?s rdf:type ontology:Q515 } GROUP BY ?g } . FILTER ( ?j = ?f ) }
Macaé San Sebastián de los Reyes Mazaricos Hanover region 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 El Prat de Llobregat Novo Hamburgo Valverde Peñafiel, Spain Karrantza Arévalo Molina de Aragón Rhein-Pfalz-Kreis Malgrat de Mar Palafolls Algemesí Sanlúcar de Barrameda Santarém Lääne-Viru County San Bartolomé de Tirajana Ruente Vilafant Balmaseda L'Hospitalet de Llobregat Carlet Wrexham Itambé Arafo Castelló d'Empúries Gyeonggi Province Torrox Oñati 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 Sant Joan de les Abadesses 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 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 Sant Feliu de Guíxols Caudete Autol Veranópolis Vale of Glamorgan Gramado Monzón Vélez-Rubio Cigales Cavite Las Gabias Palmas Igualada Rivne Torrent Caspe Zafra Santana do Livramento Burgo de Osma-Ciudad de Osma Joinville Cehegín Canals Medina de Pomar Alcaudete Vila Nova de Cerveira Atarfe Alanís Sádaba Sort Tui Museros Torredonjimeno San Fernando Paiporta Cornellà de Llobregat Calanda Iznalloz Uncastillo Nova Pádua Alfaro, La Rioja Pedrajas de San Esteban Santa Maria Barakaldo Vic Oliveira do Douro, Vila Nova de Gaia Santa Susanna Sant Vicenç dels Horts Las Rozas de Madrid Manilva Casca, Rio Grande do Sul Segorbe Montgat Teià Padrón Kulmbach Benifaió Carcaixent Abanilla Pontarddulais Cascavel Los Palacios y Villafranca Recife Villafeliche Neath Port Talbot County Borough Roses Martorelles Mondorf-les-Bains Enz Rastatt Villa El Salvador District Massaranduba, Santa Catarina Aratiba Arroio do Meio Escalona Cella Hersfeld-Rotenburg Ouro Preto 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 Clavijo São Mateus, Espírito Santo Colmenar Viejo Mora Caldes d'Estrac Arenys de Munt Montblanc Linares 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 Torrevieja Benalup-Casas Viejas Pozuelo de Alarcón 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 Almadén Mochola Alella Nova Friburgo Rendsburg-Eckernförde Gaspar, Santa Catarina Oliva Tacoronte, Santa Cruz de Tenerife Granadilla de Abona Vicente López Partido Archena Oyón-Oion Ormaiztegi Olocau 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 Sos del Rey Católico Novelda Bailén Fuenmayor East Java Miraflores Xàbia Torfaen County Borough Benifairó de la Valldigna Picassent Castuera Zapsonj Ponta Porã San Adrián Lanjarón Bridgend County Borough Láchar Santiago de Figueiró Tudela de Duero Alaquàs Alcúdia San Miguel de Abona Alhama de Granada Valverde de Júcar Armilla Manlleu Chipiona Quintanar de la Orden Gerena Forchheim Pedrola Consuegra Arganda del Rey Onda Mequinenza Sant Cugat del Vallès Lapa Almansa La Zubia Huelma Castelldefels Paterna Ezcaray Blanca East Renfrewshire 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 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 Madridejos Zuera Fraga Lezama L'Alcúdia San Fernando de Henares Elorrio El Puerto de Santa María Ripoll Zumaia Ribeira Amer Cañete la Real The Bahamas Castellterçol Villanueva del Pardillo Utrillas Santo Domingo de la Calzada Puertollano Canfranc
Saint Kitts and Nevis, The Bahamas and Montblanc are twin town of min number of cities
Saint Kitts and Nevis The Bahamas Montblanc
action argmin
action find_tuple_counts
relation sister city
type political territorial entity
type city
[{'concept': 'political territorial entity'}, 'sister city', {'concept': 'city'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?f ) { SELECT DISTINCT ?m ( COUNT ( ?w ) AS ?h ) WHERE { ?w rdf:type ontology:city . ?m rdf:type ontology:political_territorial_entity . ?m property:sister_city ?w } GROUP BY ?m } } . { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?j ) WHERE { ?g property:sister_city ?s . ?g rdf:type ontology:political_territorial_entity . ?s rdf:type ontology:city } GROUP BY ?g } . FILTER ( ?j = ?f ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q302526
P36
Q515 Q515 Q15617994
USER
How many cities are known as the capital of around the same number of cities and administrative territories as Tab ?
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q302526
relation P36
type Q515
type Q15617994
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P36 resource:Q302526 . { VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q515 ) } . ?p rdf:type ?n } } } . FILTER ( ?b = ?c ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?l WHERE { { ?l rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?k property:P36 ?l } UNION { ?k property:P36 ?l . ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q515 } } GROUP BY ?l } }
Tab
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Tab
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:capital resource:Tab . { VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:city ) } . ?p rdf:type ?n } } } . FILTER ( ?b = ?c ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?l WHERE { { ?l rdf:type ontology:city . ?k rdf:type ontology:city . ?k property:capital ?l } UNION { ?k property:capital ?l . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:city } } GROUP BY ?l } }
[]
city city designation for an administrative territorial entity
SYSTEM
529
Q15826 Q384403 Q373542 Q780731 Q39738 Q10126 Q843001 Q1710 Q843006 Q843009 Q392692 Q14525 Q3042 Q3974 Q861296 Q637647 Q240026 Q873377 Q853746 Q259498 Q158239 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q17042 Q4024 Q379030 Q1711 Q496667 Q27860 Q240504 Q3806 Q281371 Q258884 Q320950 Q8254 Q592338 Q43199 Q52607 Q766168 Q933645 Q58650 Q214938 Q830394 Q205607 Q193050 Q71305 Q841296 Q911600 Q789256 Q903177 Q243293 Q5779 Q932806 Q377834 Q295367 Q653389 Q851097 Q1696 Q861292 Q41474 Q917888 Q1070920 Q174096 Q174091 Q502993 Q430864 Q855082 Q633945 Q843031 Q385070 Q593314 Q783255 Q197687 Q111739 Q842967 Q329768 Q843035 Q246723 Q75978 Q696388 Q185719 Q622841 Q983451 Q18970 Q80989 Q14424 Q304803 Q432169 Q147738 Q853744 Q43196 Q855032 Q404529 Q80484 Q5954 Q8131 Q11462 Q834567 Q851675 Q3744 Q3214 Q842908 Q505208 Q1000336 Q911530 Q181276 Q583137 Q847546 Q330409 Q1019949 Q847543 Q854956 Q235004 Q933641 Q379160 Q889966 Q890311 Q132997 Q725168 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q854969 Q842934 Q1794 Q602976 Q793405 Q665 Q375097 Q911558 Q12062 Q629471 Q209766 Q178878 Q5316658 Q203027 Q2966 Q220445 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q1467 Q843018 Q14499 Q1000091 Q2865 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q1000073 Q12245 Q117676 Q16959 Q10389 Q650015 Q30340 Q225257 Q35925 Q44215 Q629849 Q680656 Q986070 Q854996 Q214956 Q8247 Q183584 Q235 Q15379 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q1723 Q288413 Q167668 Q4469 Q270704 Q167109 Q478038 Q734378 Q459787 Q585630 Q855529 Q207408 Q1107569 Q1025387 Q316841 Q602042 Q237699 Q207406 Q23661 Q191651 Q7856199 Q11443 Q3947359 Q325164 Q305640 Q14819 Q5285 Q3307925 Q14182 Q740810 Q193721 Q861221 Q911667 Q8652 Q842971 Q842976 Q181007 Q843028 Q385864 Q755686 Q3599 Q1731 Q3861 Q43433 Q1636 Q7027 Q846652 Q7786 Q10104 Q155975 Q1020939 Q674311 Q719051 Q155674 Q863747 Q841125 Q954596 Q314686 Q487439 Q174461 Q385591 Q124375 Q954611 Q854940 Q2180 Q3319248 Q320939 Q714628 Q335427 Q177149 Q327764 Q2569148 Q208471 Q2337 Q633789 Q1330294 Q14960 Q8158 Q3185 Q116417 Q830404 Q861262 Q719 Q781435 Q26600 Q2025433 Q740853 Q749320 Q874270 Q911628 Q632146 Q52564 Q4905 Q207876 Q188082 Q2973 Q137271 Q855060 Q1473 Q842996 Q679249 Q843021 Q680743 Q3852 Q564234 Q3958 Q488990 Q668318 Q2079 Q2773 Q6829 Q260522 Q8156 Q14440 Q752838 Q993064 Q276534 Q41773 Q42007 Q985465 Q329775 Q1854 Q890122 Q855016 Q855011 Q513417 Q4007 Q480421 Q14168 Q823907 Q642031 Q55598 Q498011 Q214948 Q271000 Q214945 Q182852 Q158928 Q755681 Q214942 Q68481 Q549427 Q335506 Q320798 Q386655 Q245126 Q1826 Q1822 Q200077 Q47916 Q1856 Q3183016 Q328601 Q2410422 Q191097 Q542154 Q2526233 Q946769 Q3126 Q846351 Q739304 Q789233 Q7253 Q157835 Q819103 Q3046 Q368929 Q2936 Q530634 Q4827 Q591812 Q877227 Q5753 Q429409 Q2749 Q193719 Q308657 Q170454 Q545923 Q211243 Q841603 Q656603 Q7929221 Q911576 Q42750 Q185684 Q187861 Q207311 Q386682 Q63145 Q485581 Q755698 Q2119 Q390796 Q271917 Q1008737 Q79535 Q5972 Q1721 Q83247 Q1645 Q7578 Q390798 Q14126 Q44244 Q855052 Q11449 Q547479 Q404817 Q485891 Q2907 Q1001339 Q15847 Q843014 Q11725 Q604516 Q73156 Q732300 Q789510 Q470369 Q2209 Q2200 Q2203 Q18342086 Q16506 Q14155 Q430207 Q756273 Q14409 Q188247 Q517783 Q23768 Q206872 Q72778 Q737634 Q1355 Q146363 Q3167 Q208818 Q187136 Q5869 Q3948919 Q830411 Q740863 Q740800 Q171943 Q728438 Q427769 Q177042 Q189823 Q40626 Q55740 Q250733 Q146317 Q693264 Q5781 Q187821 Q502205 Q203344 Q107401 Q1686 Q3355306 Q57944 Q189761 Q189769 Q2795 Q750224 Q378225 Q954569 Q738275 Q69060 Q8179 Q727383 Q2069869 Q184998 Q5217 Q854965 Q1020709 Q755701 Q267894 Q679224 Q168648 Q2152435 Q843043 Q850676 Q2833 Q36063 Q3936 Q3931 Q726993 Q3750 Q42666 Q3612 Q894059 Q933638 Q183111 Q40584 Q1067897 Q18575 Q11506 Q613813 Q375862 Q107624 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q591823 Q209983 Q877190 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q8042 Q911642 Q158245 Q50179 Q284480 Q632080 Q207309 Q187812 Q104125 Q2999 Q16666
(c(Q515)|c(Q15617994),P36,c(Q515))
action count
action approx
action union
action find_reverse_tuple_counts
relation P36
type Q515
type Q515
action find_reverse_tuple_counts
relation P36
type Q515
type Q15617994
action count
action filter_multi_types
action find_reverse
entity Q302526
relation P36
type Q515
type Q15617994
[ANSWER]
[[{'concept': 'Q515'}, {'concept': 'Q15617994'}], 'P36', {'concept': 'Q515'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:P36 resource:Q302526 . { VALUES ( ?n ) { ( ontology:Q15617994 ) ( ontology:Q515 ) } . ?p rdf:type ?n } } } . FILTER ( ?b = ?c ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?l WHERE { { ?l rdf:type ontology:Q515 . ?k rdf:type ontology:Q515 . ?k property:P36 ?l } UNION { ?k property:P36 ?l . ?k rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q515 } } GROUP BY ?l } }
Palu Litoměřice Szigetvár Szeghalom Laoag Serang Csorna Isabela City Nagykálló Marcali Šumperk Gorontalo Offenbach am Main Landshut Nōgata Pásztó Jászapáti Dumaguete Bátonyterenye Rafaela Kroměříž Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Oakland Frankfurt (Oder) Zalaszentgrót Potsdam Muroran Jayapura Makó Tübingen Jászberény Bélapátfalva Trutnov Dharan Marawi Omaha Mar del Plata Nagykáta Kunhegyes Zhangjiakou Gyula Nagykőrös Zirc Érd Ezhou Příbram Vásárosnamény Balatonalmádi Tiszafüred Sekondi-Takoradi Banda Aceh Polgárdi Szentes Nagyatád Nobeoka Iiyama Legazpi Hitoyoshi Kingstown Vinaròs Mamuju Sorsogon City Changsha Uherské Hradiště Nymburk Csenger Saijō Vasvár Burriana Sárbogárd Kapuvár Miercurea Sibiului Puerto Princesa Gönc Tata Celldömölk Záhony Calamba Toyooka Pétervására Ghardaia Río Cuarto Ambon Bhopal Nagykanizsa Mezőcsát Dipolog Saint Helier Devecser Cincinnati Mezőkovácsháza Xuchang Patna Binjai Palembang Surabaya Bonyhád Takahashi Castro Cottbus Gyál Ouarzazate Tandil Hajdúhadház Szolnok Kidapawan Saiki Ústí nad Orlicí Surigao City Katsuyama Ibrány Vigan Martonvásár Kunszentmárton Kiliya Reni Florianópolis Tagum Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Letenye Püspökladány Frankfurt Klatovy Berettyóújfalu Lugdunum Tiszaújváros Putnok Torgau Kiskunmajsa Saga Békéscsaba Durjaya Tsu Heidelberg Kuching Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Cebu City Kunszentmiklós Samarinda Rychnov nad Kněžnou Kassel Tamási Keszthely Olbia Akō Szentlőrinc Adony Pelhřimov Stanley Viseu Ürümqi Bandung Pannonhalma Zhengzhou Rupea Tabuk Santa Rosa Hatvan Sümeg Chrudim Szerencs Znojmo Biratnagar Lanzhou Monaco Kendari Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Batangas City Tapolca Liepāja Talca Třebíč Eger Kiskunfélegyháza Yonezawa Iloilo City Yanagawa Kistelek Vác Kerma Maasin Karlovo Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Wellington Masbate City Turquoise Mountain Kediri San Ignacio Kayes Abashiri Freiberg Tarlac Mianwali City Banjarmasin Békés Tábor Nakatsu Elek Miami Sellye Mátészalka Hattusa Oroszlány Ōsakasayama Nyírbátor Bicske Dresden Doha Chandigarh Antipolo Straubing Cigánd Pekanbaru Tanjung Pinang Kutná Hora Digos Kisvárda Artsyz Tandag Uda Tsuyama Havlíčkův Brod Mati Oral Ranchi Ōmura Hódmezővásárhely Jeseník Dabas Malolos Pehuajó Mělník Rumoi Kisarazu Obihiro Prachatice Escazú District Kaifeng Smolensk Dombóvár Jiankang Brno Metro, Indonesia Hildesheim Sátoraljaújhely Hajdúszoboszló Uto Saginaw Derecske Fukuoka Calimport Szigetszentmiklós Monor Pagadian Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Český Krumlov Darmstadt Kota Kinabalu Encs Davao City Pécsvárad Kalocsa Tolna Balatonfüred Worms Annaka Neubrandenburg Kostanay Sárospatak Leipzig Braunschweig Speyer Bácsalmás Bandar Lampung Iquique Aszód Saint Anne Wau, South Sudan Obama Szombathely Rakovník Kiskunhalas Ho Chi Minh City Bolhrad Csurgó Heves Vsetín Rosenheim Abony Pontianak HigashiMatsuyama Gárdony Palayan Sakura Cegléd Bouaké Pápa Kunming Bushehr Várpalota Kazincbarcika Fuzhou Jánoshalma Salto Mohács Ōzu Siófok Tagbilaran Baguio Morioka Lucknow Malaybalay Ungaran Hirado San Marcos, Costa Rica Tachov Koronadal Carn Dûm Mórahalom Erlangen Miyazu Hajdúnánás Balassagyarmat Padang Zaporizhzhya Berezivka Pforzheim Jindřichův Hradec Oldenburg Pilisvörösvár Vyritsa Buryn Ogi Samarkand Szob Augsburg Cheb Minas Tirith Agartala Tatarbunary Yinchuan Tiszakécske Jičín Vijaya Rétság Vojskovitsy Hefei Wollongong Suzuka Khost Imus Aveiro Svitavy Mannheim Orosháza Kushiro Semily Fort Smith Medan Wiesbaden Braga Cagayan de Oro Jambi Szentendre Mataram Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Ananyiv Sucre Puerto Natales Manado Szarvas Chongqing Szentgotthárd Linfen Gyomaendrőd Balmazújváros Kolín Roxas Tuguegarao Arica Oyo-Ile České Budějovice Kupang Komló Karcag Palangkaraya Sarkad Pinamar Las Vegas Ajka Taiyuan Rozdilna Bangalore Most Siegen Fuchū Luoyang Lhasa Santa Ana Körmend Česká Lípa Paks Nanchang Siklós Kisbér Biharkeresztes Haikou Tacloban San Fernando Wa Veszprém Iwamizawa Langsa Tatabánya Nemuro Baja Sivas Butuan Fukuchiyama Annaberg-Buchholz Szekszárd Salgótarján Chemnitz Strakonice Hagi Vyškov Karatsu Xining Pangkal Pinang Sokolov Edoras Kaposvár Bacolod Lenti Catbalogan Ráckeve Wakkanai Hajdúböszörmény Sopron Miramar Sárvár Blansko Freiburg im Breisgau Vecsés Bamberg Brandenburg an der Havel Cotabato City Gera Shaoxing Antofagasta Borongan Mezőkövesd Jihlava San Fernando Oroquieta Tucson Denpasar Kőszeg Nyíradony Calapan Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Náchod Gyöngyös Tatsuno Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Bengkulu Füzesabony Písek Ilagan Bóly Tét Tokushima Dunaújváros Lucena Würzburg Nanjing
529
action count
action approx
action union
action find_reverse_tuple_counts
relation capital
type city
type city
action find_reverse_tuple_counts
relation capital
type city
type designation for an administrative territorial entity
action count
action filter_multi_types
action find_reverse
entity Tab
relation capital
type city
type designation for an administrative territorial entity
[[{'concept': 'city'}, {'concept': 'designation for an administrative territorial entity'}], 'capital', {'concept': 'city'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?o ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?c ) WHERE { ?p property:capital resource:Tab . { VALUES ( ?n ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:city ) } . ?p rdf:type ?n } } } . FILTER ( ?b = ?c ) . { SELECT DISTINCT ( COUNT ( ?k ) AS ?b ) ?l WHERE { { ?l rdf:type ontology:city . ?k rdf:type ontology:city . ?k property:capital ?l } UNION { ?k property:capital ?l . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:city } } GROUP BY ?l } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q14916 Q5195643
P17
Q1048835
USER
How many political territories are Ostfildern or Curtin Labor Alliance situated in ?
(Q14916,P17,c(Q1048835)) (Q5195643,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q14916
relation P17
type Q1048835
action filter_type
action find
entity Q5195643
relation P17
type Q1048835
['Q14916', 'P17', {'concept': 'Q1048835'}] ['Q5195643', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { resource:Q5195643 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { resource:Q14916 property:P17 ?e . ?e rdf:type ontology:Q1048835 } }
Ostfildern Curtin Labor Alliance
action count
action union
action filter_type
action find
entity Ostfildern
relation country
type political territorial entity
action filter_type
action find
entity Curtin Labor Alliance
relation country
type political territorial entity
['Ostfildern', 'country', {'concept': 'political territorial entity'}] ['Curtin Labor Alliance', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { resource:Curtin_Labor_Alliance property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { resource:Ostfildern property:country ?e . ?e rdf:type ontology:political_territorial_entity } }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(Q14916,P17,c(Q1048835)) (Q5195643,P17,c(Q1048835))
action count
action union
action filter_type
action find
entity Q14916
relation P17
type Q1048835
action filter_type
action find
entity Q5195643
relation P17
type Q1048835
[ANSWER]
['Q14916', 'P17', {'concept': 'Q1048835'}] ['Q5195643', 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { resource:Q5195643 property:P17 ?e . ?e rdf:type ontology:Q1048835 } UNION { resource:Q14916 property:P17 ?e . ?e rdf:type ontology:Q1048835 } }
Australia Germany
2
action count
action union
action filter_type
action find
entity Ostfildern
relation country
type political territorial entity
action filter_type
action find
entity Curtin Labor Alliance
relation country
type political territorial entity
['Ostfildern', 'country', {'concept': 'political territorial entity'}] ['Curtin Labor Alliance', 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?l ) WHERE { { resource:Curtin_Labor_Alliance property:country ?e . ?e rdf:type ontology:political_territorial_entity } UNION { resource:Ostfildern property:country ?e . ?e rdf:type ontology:political_territorial_entity } }
[]