Simple Question (Direct)
Simple Question
Q956951
P135
Q151885
USER
Which concept was Josse Boutmy associated with ?
(Q956951,P135,c(Q151885))
action filter_type
action find
entity Q956951
relation P135
type Q151885
['Q956951', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q956951 property:P135 ?q . ?q rdf:type ontology:Q151885 }
Josse Boutmy
action filter_type
action find
entity Josse Boutmy
relation movement
type concept
['Josse Boutmy', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Josse_Boutmy property:movement ?q . ?q rdf:type ontology:concept }
[]
concept
Q8361
SYSTEM
Baroque music
Q8361
(Q956951,P135,c(Q151885))
action filter_type
action find
entity Q956951
relation P135
type Q151885
Josse Boutmy was associated with [ANSWER]
['Q956951', 'P135', {'concept': 'Q151885'}]
SELECT DISTINCT ?q WHERE { resource:Q956951 property:P135 ?q . ?q rdf:type ontology:Q151885 }
Baroque music
Josse Boutmy was associated with Baroque music
Baroque music
action filter_type
action find
entity Josse Boutmy
relation movement
type concept
['Josse Boutmy', 'movement', {'concept': 'concept'}]
SELECT DISTINCT ?q WHERE { resource:Josse_Boutmy property:movement ?q . ?q rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q956951
P20
Q515
USER
Where did the demise of Josse Boutmy occur ?
(Q956951,P20,c(Q515))
action filter_type
action find
entity Q956951
relation P20
type Q515
['Q956951', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q956951 property:P20 ?r . ?r rdf:type ontology:Q515 }
Josse Boutmy
action filter_type
action find
entity Josse Boutmy
relation place of death
type city
['Josse Boutmy', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Josse_Boutmy property:place_of_death ?r . ?r rdf:type ontology:city }
[]
city
Q9005
SYSTEM
Brussels
Q9005
(Q956951,P20,c(Q515))
action filter_type
action find
entity Q956951
relation P20
type Q515
The demise of Josse Boutmy occurred in [ANSWER]
['Q956951', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?r WHERE { resource:Q956951 property:P20 ?r . ?r rdf:type ontology:Q515 }
Brussels
The demise of Josse Boutmy occurred in Brussels
Brussels
action filter_type
action find
entity Josse Boutmy
relation place of death
type city
['Josse Boutmy', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?r WHERE { resource:Josse_Boutmy property:place_of_death ?r . ?r rdf:type ontology:city }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q96011
Q515
USER
And what about Petrus Lotichius Secundus?
(Q96011,P20,c(Q515))
action filter_type
action find
entity Q96011
relation P20
type Q515
['Q96011', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q96011 property:P20 ?u . ?u rdf:type ontology:Q515 }
Petrus Lotichius Secundus
action filter_type
action find
entity Petrus Lotichius Secundus
relation place of death
type city
['Petrus Lotichius Secundus', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Petrus_Lotichius_Secundus property:place_of_death ?u . ?u rdf:type ontology:city }
[]
city
Q2966
SYSTEM
Heidelberg
Q2966
(Q96011,P20,c(Q515))
action filter_type
action find
entity Q96011
relation P20
type Q515
[ANSWER]
['Q96011', 'P20', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { resource:Q96011 property:P20 ?u . ?u rdf:type ontology:Q515 }
Heidelberg
Heidelberg
action filter_type
action find
entity Petrus Lotichius Secundus
relation place of death
type city
['Petrus Lotichius Secundus', 'place of death', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { resource:Petrus_Lotichius_Secundus property:place_of_death ?u . ?u rdf:type ontology:city }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2966 Q1756600
P17
Q1048835
USER
Is that city present in Conceição do Rio Verde ?
(Q2966,P17,Q1756600)
action is_in
entity Q1756600
action find
entity Q2966
relation P17
['Q2966', 'P17', 'Q1756600']
ASK WHERE { resource:Q2966 property:P17 resource:Q1756600 }
Heidelberg Conceição do Rio Verde
action is_in
entity Conceição do Rio Verde
action find
entity Heidelberg
relation country
['Heidelberg', 'country', 'Conceição do Rio Verde']
ASK WHERE { resource:Heidelberg property:country resource:Conceição_do_Rio_Verde }
[]
political territorial entity
SYSTEM
NO
(Q2966,P17,Q1756600)
action is_in
entity Q1756600
action find
entity Q2966
relation P17
[ANSWER]
['Q2966', 'P17', 'Q1756600']
ASK WHERE { resource:Q2966 property:P17 resource:Q1756600 }
No
action is_in
entity Conceição do Rio Verde
action find
entity Heidelberg
relation country
['Heidelberg', 'country', 'Conceição do Rio Verde']
ASK WHERE { resource:Heidelberg property:country resource:Conceição_do_Rio_Verde }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q629471
P1376
Q7275 Q1048835 Q515
USER
How many cities are the county seat for around the same number of states and political territories as Kiskunmajsa ?
(c(Q515),P1376,c(Q7275)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q629471
relation P1376
type Q7275
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q629471 property:P1376 ?i . { { ?i rdf:type ontology:Q1048835 } UNION { ?i rdf:type ontology:Q7275 } } } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } } GROUP BY ?n } }
Kiskunmajsa
action count
action approx
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Kiskunmajsa
relation capital of
type state
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Kiskunmajsa property:capital_of ?i . { { ?i rdf:type ontology:political_territorial_entity } UNION { ?i rdf:type ontology:state } } } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:state ) ( ontology:political_territorial_entity ) } } GROUP BY ?n } }
[]
state political territorial entity city
SYSTEM
372
Q373542 Q780731 Q843001 Q843006 Q843009 Q861296 Q637647 Q240026 Q853746 Q83786 Q854913 Q19833195 Q293558 Q192271 Q854918 Q460835 Q60037 Q217432 Q827041 Q379030 Q496667 Q240504 Q281371 Q258884 Q766168 Q933645 Q214938 Q830394 Q205607 Q193050 Q841296 Q911600 Q789256 Q7473516 Q903177 Q3870 Q243293 Q932806 Q377834 Q295367 Q653389 Q851097 Q861292 Q57953 Q917888 Q174091 Q740800 Q855082 Q633945 Q843031 Q593314 Q783255 Q197687 Q842967 Q329768 Q843035 Q246723 Q696388 Q185719 Q14424 Q304803 Q853744 Q2135 Q43196 Q855032 Q404529 Q5954 Q834567 Q851675 Q842908 Q23482 Q505208 Q911530 Q181276 Q3692 Q847546 Q330409 Q847543 Q854956 Q379160 Q132997 Q478038 Q580722 Q389515 Q394453 Q278017 Q321778 Q850359 Q535534 Q745657 Q748797 Q494777 Q221283 Q2419449 Q1410 Q854969 Q842934 Q793405 Q375097 Q911558 Q59144 Q629471 Q209766 Q178878 Q5316658 Q203027 Q34217 Q625154 Q4348183 Q179608 Q847594 Q790370 Q154540 Q843018 Q607625 Q526335 Q13630 Q424813 Q578343 Q366220 Q117676 Q16959 Q650015 Q30340 Q225257 Q44215 Q629849 Q680656 Q854996 Q207408 Q214956 Q1362 Q588606 Q5540 Q58401 Q161176 Q850508 Q840986 Q288413 Q1519 Q270704 Q167109 Q3104 Q734378 Q585630 Q855529 Q7248 Q4346 Q1107569 Q6602 Q602042 Q237699 Q207406 Q517407 Q7856199 Q3904 Q325164 Q305640 Q740810 Q861221 Q911667 Q6807568 Q842971 Q842976 Q3866 Q181007 Q385864 Q755686 Q3599 Q3861 Q43433 Q3852 Q846652 Q3859 Q155975 Q674311 Q3915 Q863747 Q841125 Q487439 Q385591 Q124375 Q933641 Q854940 Q714628 Q335427 Q177149 Q2337 Q633789 Q8158 Q385070 Q116417 Q830404 Q861262 Q781435 Q26600 Q2025433 Q740853 Q749320 Q911628 Q632146 Q52564 Q4905 Q207876 Q34261 Q137271 Q855060 Q843028 Q842996 Q1773 Q679249 Q843021 Q680743 Q564234 Q488990 Q3955 Q668318 Q6829 Q260522 Q752838 Q993064 Q276534 Q41773 Q42007 Q1858 Q2096 Q329775 Q855016 Q3787 Q855011 Q480421 Q823907 Q7070 Q642031 Q498011 Q214948 Q271000 Q214945 Q182852 Q755681 Q214942 Q549427 Q335506 Q320798 Q386655 Q245126 Q1533 Q200077 Q47916 Q80484 Q3183016 Q328601 Q2526233 Q946769 Q846351 Q739304 Q789233 Q530634 Q4827 Q877227 Q5753 Q429409 Q193719 Q170454 Q211243 Q841603 Q911576 Q42751 Q42750 Q185684 Q187861 Q207311 Q386682 Q390796 Q271917 Q1720 Q1721 Q390798 Q7033 Q57906 Q44244 Q855052 Q11449 Q547479 Q404817 Q2907 Q843014 Q604516 Q3768 Q732300 Q789510 Q20073 Q1863 Q430207 Q756273 Q188247 Q206872 Q1355 Q146363 Q208818 Q5869 Q46845 Q57951 Q830411 Q171943 Q728438 Q427769 Q189823 Q250733 Q146317 Q693264 Q6582 Q187821 Q502205 Q203344 Q71159 Q3355306 Q189761 Q189769 Q57948 Q378225 Q954569 Q2887 Q738275 Q69060 Q727383 Q2061 Q184998 Q854965 Q489147 Q456 Q755701 Q267894 Q679224 Q168648 Q843043 Q850676 Q36063 Q7003 Q3931 Q3751 Q3616 Q42666 Q738013 Q933638 Q25475 Q613813 Q375862 Q680963 Q66485 Q649214 Q646850 Q209988 Q582209 Q209983 Q877190 Q2900 Q845792 Q684494 Q170525 Q503411 Q842925 Q842923 Q302526 Q1231003 Q911642 Q187284 Q158245 Q284480 Q632080 Q207309 Q187812
(c(Q515),P1376,c(Q7275)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q629471
relation P1376
type Q7275
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Q629471 property:P1376 ?i . { { ?i rdf:type ontology:Q1048835 } UNION { ?i rdf:type ontology:Q7275 } } } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } } GROUP BY ?n } }
Szigetvár Szeghalom Csorna Nagykálló Marcali Nōgata Pásztó Jászapáti Bátonyterenye Shimla Szikszó Barcelos Ózd Guiyang Szécsény Marugame Zalaegerszeg Port Harcourt Beroun Zalaszentgrót Muroran Makó Jászberény Bélapátfalva Nagykáta Kunhegyes Gyula Nagykőrös Zirc Érd Příbram Vásárosnamény Balatonalmádi Tokyo Tiszafüred Nairobi Sekondi-Takoradi Polgárdi Szentes Nagyatád Nobeoka Iiyama Hitoyoshi Schwarzenberg Vinaròs Changsha Paks Csenger Saijō Vasvár Sárbogárd Kapuvár Miercurea Sibiului Gönc Tata Celldömölk Záhony Toyooka Pétervására Nagykanizsa Mezőcsát Devecser Winnipeg Cincinnati Mezőkovácsháza Xuchang Binjai Bonyhád Takahashi Gyál Marseille Ouarzazate Hajdúhadház Szolnok Riyadh Saiki Ústí nad Orlicí Katsuyama Ibrány Kunszentmárton Florianópolis Kiskunfélegyháza Őriszentpéter Kariya Žďár nad Sázavou Tiszavasvári Hodonín Kitsuki Hohhot Fehérgyarmat Dorog Alcoi Cape Coast Polgár Gibraltar Letenye Püspökladány Berettyóújfalu Tiszaújváros Putnok Zhanjiang Kiskunmajsa Saga Békéscsaba Durjaya Tsu Oxford Komárom Athkatla Nanning Shimabara Barcs Sásd Kunszentmiklós Tamási Keszthely Olbia Akō Szentlőrinc Adony Viseu Ürümqi Pannonhalma Zhengzhou Rupea Santa Rosa Hatvan Sümeg Szerencs Vác Znojmo Islamabad Fonyód Penza Shijiazhuang Fukushima Taketa Törökszentmiklós Tapolca Abu Dhabi Třebíč Eger Koblenz Yonezawa Yanagawa Kistelek Bukittinggi Waren (Müritz) Kerma Strasbourg Baktalórántháza Aizuwakamatsu Mosonmagyaróvár Sondershausen Turquoise Mountain Mbabane Kayes Abashiri Békés Nakatsu Elek Emmen Sellye Mátészalka Dodoma Hattusa Ōsakasayama Nyírbátor Bicske Doha Chandigarh Worms Cigánd Kigali Kutná Hora Kisvárda Antananarivo Uda Tsuyama Oral Ōmura Hódmezővásárhely Martonvásár Dabas Rumoi Kisarazu Obihiro Smolensk Dombóvár Metro, Indonesia Burriana Sátoraljaújhely Hajdúszoboszló Uto Derecske Fukuoka Calimport Szigetszentmiklós Monor Kemecse Enying Maloe Verevo Druzhnaya Gorka Yamaguchi Port-au-Prince Kota Kinabalu Encs Oroszlány Pécsvárad Riga Kalocsa Tolna Balatonfüred Annaka Kostanay Weimar Sárospatak Speyer Bácsalmás Aszód Saint Anne Wau, South Sudan Obama Szombathely Hanoi Edmonton Kiskunhalas Csurgó Abuja Heves Abony HigashiMatsuyama Eisenach Gárdony Sakura Cegléd Bouaké Pápa Kunming Várpalota Kazincbarcika Jánoshalma Salto Mohács Ōzu Siófok Caracas Morioka Lucknow Patna Ungaran Hirado Carn Dûm Mórahalom Miyazu Hajdúnánás Balassagyarmat Pilisvörösvár Vyritsa Ogi Samarkand Szob Cheb Agartala Yinchuan Tiszakécske Rétság Palikir Vojskovitsy Hefei Wollongong Suzuka Khost Orosháza Kushiro Mainz Wiesbaden Szentendre Nordhausen Yangzhou Santa Fe Mezőtúr Pasuruan Dunakeszi Shangqiu Sucre Szarvas Szentgotthárd Yamoussoukro Gyomaendrőd Balmazújváros Hohenstein-Ernstthal Andorra la Vella Komló Karcag Sarkad Ajka Bangalore Most Fuchū Lhasa Oelsnitz, Vogtland Marienberg Körmend Nanchang Siklós Kisbér Haikou Wa Veszprém Iwamizawa Carcassonne Tatabánya Nemuro Baja Brand-Erbisdorf Fukuchiyama Szekszárd Salgótarján Aue Hagi Vyškov Santiago Karatsu Xining Sokolov Yellowknife Kaposvár Lenti Schmalkalden Lyon Ráckeve Wakkanai Hajdúböszörmény Sopron Sárvár Blansko Vecsés Dijon Brandenburg an der Havel Praia Tehran Shaoxing Xàtiva Mezőkövesd Batumi Kőszeg Nyíradony Mór Jaipur Csongrád Kiskőrös Gödöllő Tokaj Gyöngyös Tatsuno Quito Usuki Kashima Agadir Inuyama Edelény Pomáz Tab Cocentaina Füzesabony Hurghada Písek Bóly Tét Tokushima Dunaújváros
372
action count
action approx
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Kiskunmajsa
relation capital of
type state
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?o ) WHERE { resource:Kiskunmajsa property:capital_of ?i . { { ?i rdf:type ontology:political_territorial_entity } UNION { ?i rdf:type ontology:state } } } } . FILTER ( ?r = ?o ) . { SELECT DISTINCT ?n ( COUNT ( ?s ) AS ?r ) WHERE { ?s rdf:type ?g . VALUES ( ?g ) { ( ontology:state ) ( ontology:political_territorial_entity ) } } GROUP BY ?n } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q7568
P1376
Q7275 Q1048835 Q515
USER
And how about Yogyakarta?
(c(Q515),P1376,c(Q7275)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q7568
relation P1376
type Q7275
type Q1048835
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?m WHERE { VALUES ( ?f ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } . ?w rdf:type ?f } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:Q7275 } UNION { ?y rdf:type ontology:Q1048835 } } . resource:Q7568 property:P1376 ?y } } . FILTER ( ?n = ?p ) }
Yogyakarta
action count
action approx
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Yogyakarta
relation capital of
type state
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?m WHERE { VALUES ( ?f ) { ( ontology:state ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?f } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:state } UNION { ?y rdf:type ontology:political_territorial_entity } } . resource:Yogyakarta property:capital_of ?y } } . FILTER ( ?n = ?p ) }
[]
state political territorial entity city
SYSTEM
21
Q8131 Q27860 Q3624 Q18970 Q3926 Q1794 Q8684 Q3838 Q23661 Q7568 Q1731 Q1953 Q1330294 Q2973 Q3958 Q1854 Q11194 Q72778 Q1761 Q2833 Q2999
(c(Q515),P1376,c(Q7275)|c(Q1048835))
action count
action approx
action union
action find_tuple_counts
relation P1376
type Q515
type Q7275
action find_tuple_counts
relation P1376
type Q515
type Q1048835
action count
action filter_multi_types
action find
entity Q7568
relation P1376
type Q7275
type Q1048835
[ANSWER]
[{'concept': 'Q515'}, 'P1376', [{'concept': 'Q7275'}, {'concept': 'Q1048835'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?m WHERE { VALUES ( ?f ) { ( ontology:Q7275 ) ( ontology:Q1048835 ) } . ?w rdf:type ?f } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:Q7275 } UNION { ?y rdf:type ontology:Q1048835 } } . resource:Q7568 property:P1376 ?y } } . FILTER ( ?n = ?p ) }
Palembang Jayapura Addis Ababa Ambon Pretoria Frankfurt Seoul Kinshasa Wellington Yogyakarta Dresden Yerevan Jiankang Darmstadt Neubrandenburg Ho Chi Minh City Sarajevo Taiyuan Dublin Freiburg im Breisgau Würzburg
21
action count
action approx
action union
action find_tuple_counts
relation capital of
type city
type state
action find_tuple_counts
relation capital of
type city
type political territorial entity
action count
action filter_multi_types
action find
entity Yogyakarta
relation capital of
type state
type political territorial entity
[{'concept': 'city'}, 'capital of', [{'concept': 'state'}, {'concept': 'political territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?n ) ?m WHERE { VALUES ( ?f ) { ( ontology:state ) ( ontology:political_territorial_entity ) } . ?w rdf:type ?f } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?p ) WHERE { { { ?y rdf:type ontology:state } UNION { ?y rdf:type ontology:political_territorial_entity } } . resource:Yogyakarta property:capital_of ?y } } . FILTER ( ?n = ?p ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P159
Q515 Q28640 Q7210356
USER
Which cities are the head offices of min number of professions or political organizations ?
(c(Q28640)|c(Q7210356),P159,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q28640
action find_reverse_tuple_counts
relation P159
type Q515
type Q7210356
[[{'concept': 'Q28640'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?u WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:Q28640 ) ( ontology:Q7210356 ) } } GROUP BY ?u } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( MIN ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?d WHERE { VALUES ( ?y ) { ( ontology:Q7210356 ) ( ontology:Q28640 ) } . ?j rdf:type ?y } GROUP BY ?d } } }
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type profession
action find_reverse_tuple_counts
relation headquarters location
type city
type political organization
[[{'concept': 'profession'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?u WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:profession ) ( ontology:political_organization ) } } GROUP BY ?u } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( MIN ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?d WHERE { VALUES ( ?y ) { ( ontology:political_organization ) ( ontology:profession ) } . ?j rdf:type ?y } GROUP BY ?d } } }
[]
city profession political organization
Q23482 Q157835 Q16506
SYSTEM
Marseille, Zaporizhzhya, České Budějovice
Q386691 Q944051 Q496702 Q10127 Q643878 Q1711 Q10124 Q213278 Q841296 Q873835 Q3974 Q34412 Q703158 Q835227 Q849439 Q11736 Q1000069 Q852018 Q318047 Q1000060 Q460835 Q60037 Q278877 Q857256 Q569907 Q217432 Q827041 Q86536 Q860647 Q686775 Q4024 Q732851 Q499493 Q840888 Q10393 Q25282 Q609350 Q41283 Q27860 Q3806 Q58401 Q42651 Q360326 Q58273 Q838652 Q68862 Q695895 Q43199 Q646818 Q335444 Q212494 Q385982 Q52607 Q766168 Q774952 Q392692 Q59173 Q273880 Q320943 Q734416 Q861246 Q985465 Q71266 Q846338 Q816728 Q696777 Q58570 Q1009095 Q653389 Q1019083 Q20934 Q853821 Q57951 Q174091 Q59100 Q637913 Q734520 Q653372 Q38968 Q169127 Q622620 Q696388 Q3994 Q1000029 Q1017251 Q147738 Q1624 Q373023 Q1629 Q74957 Q653446 Q8131 Q362959 Q210493 Q11462 Q83786 Q23482 Q505208 Q605256 Q374477 Q181276 Q16520 Q3692 Q330409 Q317834 Q192271 Q58710 Q719 Q375651 Q69060 Q75961 Q3069 Q592065 Q3104 Q389515 Q394453 Q175197 Q216077 Q2910 Q321778 Q535534 Q68695 Q461020 Q507846 Q375097 Q695930 Q9085 Q5088 Q178878 Q390413 Q203027 Q2966 Q331577 Q4348183 Q179608 Q1467 Q425492 Q2865 Q851411 Q607625 Q13630 Q57719 Q496072 Q198370 Q73073 Q1000073 Q12245 Q117676 Q16959 Q386635 Q194087 Q30340 Q291745 Q629849 Q986070 Q4346 Q515573 Q8854 Q838660 Q243859 Q8247 Q694308 Q646805 Q182378 Q235 Q188082 Q1889017 Q161176 Q79535 Q460829 Q167668 Q1519 Q270704 Q167109 Q2509609 Q459787 Q15734 Q209683 Q207030 Q207408 Q877941 Q316841 Q6602 Q873583 Q237699 Q1757191 Q1209 Q3904 Q330007 Q1936067 Q615138 Q373101 Q14819 Q5285 Q14182 Q75026 Q104036 Q693237 Q72990 Q7568 Q44244 Q92324 Q657642 Q1000033 Q694317 Q2100 Q502486 Q56759 Q7027 Q57931 Q3857 Q426130 Q606212 Q155975 Q242108 Q3915 Q75110 Q460812 Q665097 Q174461 Q385591 Q1017806 Q17182 Q124375 Q2180 Q392624 Q75203 Q239597 Q850332 Q861621 Q177149 Q389562 Q850344 Q62723 Q496319 Q646834 Q3185 Q427557 Q844138 Q423371 Q820725 Q3004 Q2092152 Q740853 Q645567 Q207876 Q384926 Q2978 Q860659 Q385779 Q2973 Q518992 Q373564 Q1010158 Q1473 Q658058 Q1852569 Q1478 Q14821 Q824009 Q817965 Q3958 Q57970 Q3955 Q198266 Q425415 Q2079 Q2773 Q6829 Q8156 Q404599 Q42007 Q1379299 Q1856 Q497341 Q844052 Q916156 Q4007 Q242874 Q694154 Q7070 Q3826 Q492366 Q58210 Q182852 Q214942 Q838672 Q374511 Q4174 Q847565 Q386651 Q317847 Q1826 Q200077 Q80484 Q58576 Q328605 Q71247 Q75336 Q326956 Q243293 Q3126 Q571051 Q3042 Q157835 Q3046 Q594275 Q368929 Q2936 Q372791 Q463171 Q2749 Q502407 Q170454 Q211243 Q210661 Q736897 Q496080 Q217698 Q386322 Q187861 Q207311 Q3852 Q485581 Q485583 Q869027 Q206872 Q390792 Q5972 Q1720 Q1721 Q1643 Q1645 Q329996 Q11443 Q855059 Q7033 Q57906 Q11444 Q34405 Q3861 Q496405 Q1723 Q11725 Q208863 Q427265 Q470369 Q2209 Q2200 Q533241 Q359990 Q16506 Q1013864 Q76010 Q999916 Q633996 Q185684 Q59095 Q72778 Q360235 Q3167 Q183584 Q187136 Q5869 Q508591 Q570937 Q59223 Q328651 Q17189 Q830411 Q1019675 Q851680 Q740863 Q75091 Q3014 Q634022 Q189823 Q242882 Q40626 Q146317 Q825166 Q502209 Q5784 Q273798 Q187821 Q270814 Q20921 Q107401 Q57944 Q986082 Q189761 Q189769 Q57948 Q72877 Q954569 Q57866 Q2880 Q488134 Q2706 Q132997 Q184998 Q5217 Q696643 Q285488 Q819603 Q851155 Q158523 Q168648 Q850676 Q551658 Q2833 Q20073 Q990352 Q7003 Q3936 Q3931 Q3933 Q59218 Q3200 Q696412 Q844852 Q41278 Q171943 Q1205932 Q823927 Q1019956 Q386668 Q523956 Q328619 Q4060 Q71339 Q542154 Q733979 Q508670 Q66485 Q58422 Q857285 Q58584 Q1000101 Q842923 Q92277 Q80989 Q59132 Q873596 Q329754 Q721163 Q390817 Q207309 Q187812 Q125604 Q16666 Q1088790
(c(Q28640)|c(Q7210356),P159,c(Q515))
action argmin
action union
action find_reverse_tuple_counts
relation P159
type Q515
type Q28640
action find_reverse_tuple_counts
relation P159
type Q515
type Q7210356
[ANSWERS] are the head offices of min number of professions or political organizations
[[{'concept': 'Q28640'}, {'concept': 'Q7210356'}], 'P159', {'concept': 'Q515'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?u WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:Q28640 ) ( ontology:Q7210356 ) } } GROUP BY ?u } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( MIN ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?d WHERE { VALUES ( ?y ) { ( ontology:Q7210356 ) ( ontology:Q28640 ) } . ?j rdf:type ?y } GROUP BY ?d } } }
Niiza City Horní Jiřetín Goshogawara Tangerang Settsu Potsdam Cilegon Kodaira Příbram Tomioka Landshut Foshan Velké Meziříčí Ineu Kopřivnice Tianjin Lovosice Izumisano Narashino Humpolec Marugame Zalaegerszeg Český Těšín Hasuda Baotou Port Harcourt Beroun Komae City Seki Fuchū Frankfurt (Oder) Mioveni Seto Ina Bogor Danang Kawanishi Gwangju Jayapura Tübingen Shijiazhuang Wuxi Tongling Taizhou Nakano Longyan Urasoe Omaha Towada Itami Akishima City Herend Mar del Plata Nagykáta Matsubara Šumperk Huizhou Beppu Matsudo Tsuruoka Nagaokakyō Rakovník Yichang Suwa Kyōtanabe Nisshin Handan Otrokovice Nobeoka Napajedla Incheon Mizunami Marienberg Changsha Shantou Tōgane Isehara Higashihiroshima Liuzhou Chitila Tōkai Toyooka Kempten Kraslice Nová Paka Saint Helier Pasig Weihai Zamboanga City Anshan Tsuchiura Palembang Xinyu Yantai Surabaya Shimla Marseille Ouarzazate Shimada Ashikaga Szolnok Busan Riyadh Ústí nad Orlicí Kokubunji City Guiyang Langfang Saginaw Valašské Meziříčí Xining Biñan Bottrop Ginowan Koblenz Kariya Žďár nad Sázavou Kunovice Jiujiang Ludwigshafen Hodonín Hohhot Quanzhou Imabari Sebiș Tiszaújváros Hirakawa Mandaluyong Durgapur Békéscsaba Tomakomai Tsu Heidelberg Abrud Athkatla Nanning Cebu City Luzhou Kassel Imizu Tamási Olbia Xuzhou Fujinomiya Zibo Yuncheng Pelhřimov Stanley Viseu Ürümqi Hikone Hirosaki Zhengzhou Ílhavo Hatvan Chrudim Waren (Müritz) Hanzhong Las Piñas Chino Abiko Biratnagar Habikino Nanto Putrajaya Monaco Český Krumlov Mandaue Fukushima Fort Smith Matsusaka Liepāja Abu Dhabi Třebíč Eger Sunchales Iloilo City Izumi Tokoname Ziyang Vác Echizen Karlovo Strasbourg Kashiwara Aizuwakamatsu Krásná Lípa Free Hanseatic City of Bremen Mbabane Kunitachi City Smržovka Soběslav Rizhao Freiberg Tarlac Banjarmasin Fushun Ventspils Chitose Jincheng Yogyakarta Santa Fe Tonghua Villány Lanškroun Chōshi Duisburg Mobara Olongapo Straubing Taizhou Wilhelmshaven Mianyang Fremantle Kutná Hora Otaru Antananarivo Dandong Naruto Minoh Ranchi Ōmura Nové Sedlo Parañaque Hódmezővásárhely Malolos Štětí Liaoyang Neratovice Tagawa Nankoku Obihiro Inazawa Sakado General Trias Kashihara Asaka Hildesheim Ya'an Ryūgasaki Ștei Nayoro Ingolstadt Velešín Szigetszentmiklós Törökbálint Yamaguchi Ōgaki Regensburg Gyōda Tendō Darmstadt Călan Liaocheng Letohrad Davao City Wakō City Týnec nad Sázavou Caloocan Coburg Sayama Ikeda Neubrandenburg Changzhou Weimar Zhuzhou Panzhihua Leipzig Braunschweig Speyer Bandar Lampung Luohe Szombathely Smyrna Malaybalay Xianyang Nakatsugawa Ghimbav Rosenheim Koganei City Moriguchi Eisenach Muscat Norden Jinhua Kunming Kazincbarcika Okaya Oyama Emden Hanyū City Iwata Inagi Tagbilaran Morioka Patna Xingtai Iizuka Jingzhou Chaoyang Uji Sekondi-Takoradi Erlangen Tsubame Offenbach am Main Zaporizhzhya Pforzheim General Santos Jindřichův Hradec Oldenburg Jining Handa Augsburg Kiyosu Agartala Yinchuan Musashino Hatsukaichi Kadoma Weifang Ōtawara Wollongong Suzuka Worms Aveiro Anan Tsurugashima Ajka Kanuma Medan Mainz Wiesbaden Taguig Cagayan de Oro Ōdate Kediri Sakaide Nordhausen Yangzhou Madiun Jingdezhen Doha Qujing Batangas City Chongqing Hachiōji City Yibin Kolín Roxas Tuguegarao Shimotsuma Wuhu České Budějovice Hluk Santa Rosa Vysoké Mýto Kameoka Hefei Zhuhai Taiyuan Ma'anshan Siegen Lanzhou Luoyang Lhasa Police nad Metují Ordos City Zhongshan Yachiyo Pasay Körmend Nové Město nad Metují Kazo Česká Lípa Benxi Wolfsburg Kiryū Haikou Nishi-Tōkyō City Tacloban Veszprém Izumo Hōfu Lhokseumawe Narita Tatabánya Ishinomaki Daejeon Sivas Annaberg-Buchholz Litvínov Szekszárd Salgótarján Aue Datong Vyškov Yancheng Hamm Ontario Bremerhaven Florianópolis Kaposvár Bacolod Kashiba Iligan Munakata Kasai Ehingen Sopron Blansko Vila Nova de Famalicão Freiburg im Breisgau Hohenstein-Ernstthal Kizugawa Dijon Bamberg Brandenburg an der Havel Celle Dongguan Salzgitter Izumi Ueda Ulsan Nanchang Takizawa Higashine Moravské Budějovice Daitō Auerbach in der Oberpfalz Noda Hürth Xiaogan Koronadal Eniwa Chișineu-Criș Jaipur Tangshan Kitamoto Baoding Vlašim Pomáz Jilin City Bhopal Jiangmen Niimi Kiyose City Itō Ichinoseki Tokushima Dunaújváros Găești Nanjing Zsámbék
Marseille, Zaporizhzhya and České Budějovice are the head offices of min number of professions or political organizations
Marseille Zaporizhzhya České Budějovice
action argmin
action union
action find_reverse_tuple_counts
relation headquarters location
type city
type profession
action find_reverse_tuple_counts
relation headquarters location
type city
type political organization
[[{'concept': 'profession'}, {'concept': 'political organization'}], 'headquarters location', {'concept': 'city'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?u WHERE { ?n rdf:type ?l . VALUES ( ?l ) { ( ontology:profession ) ( ontology:political_organization ) } } GROUP BY ?u } . FILTER ( ?a = ?z ) . { SELECT DISTINCT ( MIN ( ?s ) AS ?z ) { SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) ?d WHERE { VALUES ( ?y ) { ( ontology:political_organization ) ( ontology:profession ) } . ?j rdf:type ?y } GROUP BY ?d } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2144819 Q956951
P19
Q56061
USER
Which administrative territories were Josse Boutmy or René Regenass born ?
OR((Q956951,P19,c(Q56061)), (Q2144819,P19,c(Q56061)))
action filter_type
action union
action find
entity Q956951
relation P19
action find
entity Q2144819
relation P19
type Q56061
{'OR': [['Q956951', 'P19', {'concept': 'Q56061'}], ['Q2144819', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { VALUES ( ?g ) { ( resource:Q956951 ) ( resource:Q2144819 ) } . ?g property:P19 ?x } }
René Regenass Josse Boutmy
action filter_type
action union
action find
entity Josse Boutmy
relation place of birth
action find
entity René Regenass
relation place of birth
type administrative territorial entity
{'OR': [['Josse Boutmy', 'place of birth', {'concept': 'administrative territorial entity'}], ['René Regenass', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Josse_Boutmy ) ( resource:René_Regenass ) } . ?g property:place_of_birth ?x } }
[]
administrative territorial entity
Q1296 Q78
SYSTEM
Ghent, Basel
Q1296 Q78
OR((Q956951,P19,c(Q56061)), (Q2144819,P19,c(Q56061)))
action filter_type
action union
action find
entity Q956951
relation P19
action find
entity Q2144819
relation P19
type Q56061
[ANSWERS] were Josse Boutmy or René Regenass born
{'OR': [['Q956951', 'P19', {'concept': 'Q56061'}], ['Q2144819', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q56061 . { VALUES ( ?g ) { ( resource:Q956951 ) ( resource:Q2144819 ) } . ?g property:P19 ?x } }
Ghent Basel
Ghent and Basel were Josse Boutmy or René Regenass born
Ghent Basel
action filter_type
action union
action find
entity Josse Boutmy
relation place of birth
action find
entity René Regenass
relation place of birth
type administrative territorial entity
{'OR': [['Josse Boutmy', 'place of birth', {'concept': 'administrative territorial entity'}], ['René Regenass', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:administrative_territorial_entity . { VALUES ( ?g ) { ( resource:Josse_Boutmy ) ( resource:René_Regenass ) } . ?g property:place_of_birth ?x } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1296 Q78
P190
Q56061
USER
Which administrative territories are partner towns of those ones ?
(Q1296,P190,c(Q56061)) (Q78,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
['Q1296', 'P190', {'concept': 'Q56061'}] ['Q78', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?j property:P190 ?f . VALUES ( ?j ) { ( resource:Q1296 ) ( resource:Q78 ) } . ?f rdf:type ontology:Q56061 }
Ghent Basel
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Ghent', 'sister city', {'concept': 'administrative territorial entity'}] ['Basel', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?j property:sister_city ?f . VALUES ( ?j ) { ( resource:Ghent ) ( resource:Basel ) } . ?f rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q8686 Q1770 Q41262
SYSTEM
Shanghai, Tallinn, Nottingham
Q41262 Q647417 Q1770 Q83061 Q8686
(Q1296,P190,c(Q56061)) (Q78,P190,c(Q56061))
action filter_type
action find
entity prev_answer
relation P190
type Q56061
[ANSWERS] are partner towns of those ones
['Q1296', 'P190', {'concept': 'Q56061'}] ['Q78', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?j property:P190 ?f . VALUES ( ?j ) { ( resource:Q1296 ) ( resource:Q78 ) } . ?f rdf:type ontology:Q56061 }
Nottingham Mohammedia Tallinn Van Shanghai
Shanghai, Tallinn and Nottingham are partner towns of those ones
Shanghai Tallinn Nottingham
action filter_type
action find
entity prev_answer
relation sister city
type administrative territorial entity
['Ghent', 'sister city', {'concept': 'administrative territorial entity'}] ['Basel', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?j property:sister_city ?f . VALUES ( ?j ) { ( resource:Ghent ) ( resource:Basel ) } . ?f rdf:type ontology:administrative_territorial_entity }
[]