Simple Question (Direct)
Simple Question
Q1599163
P937
Q56061
USER
What is the location where Heinrich Wallbruch worked ?
(Q1599163,P937,c(Q56061))
action filter_type
action find
entity Q1599163
relation P937
type Q56061
['Q1599163', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1599163 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Heinrich Wallbruch
action filter_type
action find
entity Heinrich Wallbruch
relation work location
type administrative territorial entity
['Heinrich Wallbruch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Heinrich_Wallbruch property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q1599163,P937,c(Q56061))
action filter_type
action find
entity Q1599163
relation P937
type Q56061
The location Heinrich Wallbruch worked is in [ANSWER]
['Q1599163', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?q WHERE { resource:Q1599163 property:P937 ?q . ?q rdf:type ontology:Q56061 }
Düsseldorf
The location Heinrich Wallbruch worked is in Düsseldorf
Düsseldorf
action filter_type
action find
entity Heinrich Wallbruch
relation work location
type administrative territorial entity
['Heinrich Wallbruch', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?q WHERE { resource:Heinrich_Wallbruch property:work_location ?q . ?q rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1599163
P19
Q486972
USER
Which human settlement was that person born in ?
(Q1718,P19,c(Q486972))
action filter_type
action find
entity Q1599163
relation P19
type Q486972
['Q1718', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q1599163 property:P19 ?y . ?y rdf:type ontology:Q486972 }
Heinrich Wallbruch
action filter_type
action find
entity Heinrich Wallbruch
relation place of birth
type human settlement
['Düsseldorf', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Heinrich_Wallbruch property:place_of_birth ?y . ?y rdf:type ontology:human_settlement }
[]
human settlement
Q1250610
SYSTEM
Eichlinghofen
Q1250610
(Q1718,P19,c(Q486972))
action filter_type
action find
entity Q1599163
relation P19
type Q486972
That person was born in [ANSWER]
['Q1718', 'P19', {'concept': 'Q486972'}]
SELECT DISTINCT ?y WHERE { resource:Q1599163 property:P19 ?y . ?y rdf:type ontology:Q486972 }
Eichlinghofen
That person was born in Eichlinghofen
Eichlinghofen
action filter_type
action find
entity Heinrich Wallbruch
relation place of birth
type human settlement
['Düsseldorf', 'place of birth', {'concept': 'human settlement'}]
SELECT DISTINCT ?y WHERE { resource:Heinrich_Wallbruch property:place_of_birth ?y . ?y rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P190
Q486972 Q13220204
USER
Which administrative country subdivisions are sister town of min number of human settlements ?
(c(Q13220204),P190,c(Q486972))
action argmin
action find_tuple_counts
relation P190
type Q13220204
type Q486972
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?h ) WHERE { ?r property:P190 ?k . ?r rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q486972 } GROUP BY ?r } } . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q486972 . ?o rdf:type ontology:Q13220204 . ?o property:P190 ?q } GROUP BY ?o } . FILTER ( ?m = ?j ) }
action argmin
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?h ) WHERE { ?r property:sister_city ?k . ?r rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:human_settlement } GROUP BY ?r } } . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:human_settlement . ?o rdf:type ontology:second-level_administrative_country_subdivision . ?o property:sister_city ?q } GROUP BY ?o } . FILTER ( ?m = ?j ) }
[]
human settlement second-level administrative country subdivision
Q322986 Q9899 Q849574
SYSTEM
Delfzijl, Amsterdam, Loppersum
Q622819 Q101341 Q622817 Q67040 Q331191 Q67286 Q64224 Q68129 Q67282 Q193677 Q10082 Q69545 Q64027 Q57919 Q57917 Q739449 Q57914 Q841299 Q64210 Q7123 Q69235 Q255972 Q7124 Q70245 Q2372 Q668869 Q840457 Q57076 Q932155 Q69721 Q381340 Q3827305 Q70369 Q69726 Q69729 Q13209 Q966804 Q10016 Q160584 Q183029 Q68889 Q146497 Q3621436 Q3370 Q65316 Q197050 Q866611 Q65620 Q69099 Q56915 Q68906 Q64567 Q70643 Q55180 Q638592 Q5707 Q109483 Q130048 Q133280 Q64961 Q615491 Q69590 Q498256 Q1021676 Q192119 Q69383 Q1023951 Q64668 Q65268 Q64665 Q917326 Q56869 Q107392 Q9924 Q849156 Q9926 Q65797 Q9928 Q66831 Q9880 Q68261 Q66562 Q3947412 Q565290 Q70221 Q110268 Q631788 Q67249 Q68003 Q64183 Q158904 Q18473 Q69274 Q492115 Q14566 Q1013628 Q209016 Q69071 Q9819 Q9952 Q9810 Q69374 Q69783 Q683658 Q63946 Q67382 Q927703 Q161984 Q67544 Q70734 Q249715 Q691992 Q43195 Q66381 Q68076 Q493308 Q1002565 Q208012 Q990448 Q1003757 Q36077 Q69612 Q990365 Q67496 Q67499 Q731915 Q65510 Q661799 Q204905 Q25444 Q9774 Q70603 Q69515 Q994125 Q65195 Q291780 Q27494 Q688324 Q69754 Q69757 Q67809 Q10020 Q65040 Q10024 Q1190659 Q488779 Q66125 Q68220 Q1010094 Q68224 Q72981 Q68959 Q426945 Q39383 Q420333 Q70513 Q48668 Q108999 Q484111 Q584694 Q485253 Q69724 Q488975 Q70101 Q925340 Q69979 Q685990 Q564813 Q850031 Q995055 Q740845 Q68256 Q68250 Q9857 Q68315 Q5128 Q68311 Q113740 Q9910 Q984656 Q67724 Q625157 Q68244 Q252205 Q104379 Q68031 Q1019053 Q500227 Q843899 Q66050 Q66056 Q68240 Q69570 Q69572 Q565726 Q986107 Q952457 Q47062 Q484243 Q64156 Q183394 Q200133 Q67611 Q565312 Q156760 Q46001 Q600871 Q320015 Q2527479 Q636935 Q317943 Q69714 Q58931 Q3799 Q33292 Q2047414 Q1532373 Q1770737 Q486696 Q5262 Q63905 Q200459 Q156125 Q64908 Q66473 Q926700 Q281835 Q65497 Q657461 Q57097 Q69668 Q68711 Q70655 Q64873 Q68956 Q10071 Q10073 Q60453 Q1006413 Q659665 Q136498 Q917313 Q995091 Q68165 Q281137 Q1542478 Q1640 Q65273 Q9899 Q70424 Q1639488 Q9791 Q68762 Q1647 Q157137 Q9796 Q67159 Q565287 Q70139 Q2201876 Q684630 Q64727 Q64051 Q971700 Q238396 Q64058 Q64482 Q65978 Q65872 Q987491 Q985455 Q69417 Q591719 Q9942 Q67714 Q43595 Q1893077 Q9949 Q1010468 Q63939 Q952939 Q1010463 Q48696 Q252098 Q70048 Q946398 Q67468 Q67530 Q980728 Q68665 Q69401 Q483902 Q33342 Q52193 Q760224 Q110311 Q291333 Q7143 Q4191 Q14641 Q69747 Q69745 Q219193 Q69629 Q217802 Q938739 Q484057 Q845666 Q179948 Q69621 Q484052 Q483877 Q7132 Q1011275 Q483871 Q461142 Q108025 Q70202 Q721567 Q70295 Q70293 Q395919 Q52261 Q70204 Q1000404 Q111039 Q10035 Q966825 Q65981 Q1574897 Q133230 Q66457 Q3853441 Q488747 Q63986 Q70467 Q9999 Q9998 Q235190 Q64541 Q108988 Q214913 Q156809 Q405241 Q732986 Q15582 Q15583 Q66617 Q69967 Q335135 Q758578 Q109005 Q54449 Q493851 Q64099 Q21194 Q64093 Q501518 Q1000865 Q68363 Q66814 Q68248 Q9093 Q493988 Q68532 Q9905 Q411715 Q67100 Q997796 Q917535 Q68026 Q66040 Q70167 Q66042 Q490462 Q57871 Q65802 Q64461 Q65808 Q208764 Q69259 Q9835 Q9833 Q455464 Q67582 Q73065 Q9850 Q67367 Q27892 Q52698 Q70308 Q48529 Q936904 Q69706 Q1813743 Q69704 Q9873 Q68097 Q68319 Q404261 Q10052 Q9866 Q1525701 Q868198 Q158923 Q236744 Q856293 Q68297 Q64504 Q108031 Q1003164 Q69675 Q64469 Q2326 Q988413 Q57081 Q318018 Q57083 Q48827 Q48732 Q69172 Q2590698 Q493315 Q70304 Q10043 Q10045 Q10047 Q337497 Q66523 Q1003146 Q64219 Q211260 Q919617 Q66146 Q107396 Q68201 Q744259 Q52278 Q222755 Q107135 Q691725 Q68471 Q9780 Q9781 Q372840 Q2680952 Q109036 Q107351 Q67140 Q1149128 Q485297 Q69525 Q67055 Q62266 Q156732 Q156734 Q113595 Q109042 Q9970 Q69058 Q9872 Q889530 Q109048 Q9978 Q9876 Q9875 Q110431 Q33349 Q9856 Q1722 Q67137 Q997421 Q161961 Q36354 Q652130 Q54062 Q69551 Q1011303 Q486726 Q69558 Q69222 Q69227 Q7131 Q249906 Q7133 Q2841 Q146456 Q65421 Q140671 Q48701 Q323774 Q69732 Q1241374 Q62641 Q69734 Q69738 Q613989 Q10001 Q10002 Q10003 Q745038 Q43245 Q70671 Q52271 Q65107 Q986059 Q3348885 Q939948 Q889588 Q732548 Q757856 Q68871 Q69085 Q65732 Q322986 Q6535 Q62823 Q67798 Q579984 Q405252 Q623736 Q66604 Q70232 Q65921 Q840632 Q793424 Q493481 Q66211 Q917330 Q109494 Q723246 Q9938 Q43225 Q66511 Q68540 Q66518 Q411723 Q109140 Q66890 Q19491 Q66672 Q67278 Q68015 Q216430 Q64178 Q983483 Q564759 Q57868 Q69512 Q64070 Q57864 Q14570 Q14571 Q52303 Q57860 Q9803 Q9802 Q952183 Q9806 Q1442359 Q9809 Q9808 Q90597 Q90595 Q2241 Q14592 Q2245 Q243766 Q538407 Q69507 Q67006 Q70260 Q69426 Q381337 Q69942 Q65158 Q189161 Q271922 Q69429 Q67486 Q486677 Q104095 Q3549 Q109469 Q68933 Q1146805 Q88806 Q64920 Q3617 Q33544 Q67305 Q68838 Q146524 Q484074 Q69160 Q26581 Q52678 Q68395 Q52773 Q71727 Q52671 Q617416 Q33682 Q70635 Q65073 Q543542 Q10053 Q4686 Q2091726 Q107582 Q473529 Q66256 Q972 Q70710 Q68946 Q66846 Q36160 Q36167 Q66487 Q851399 Q69114 Q609028 Q68580 Q146453 Q68742 Q69690 Q69693 Q69697 Q69495 Q109021 Q934753 Q500284 Q69498 Q826511 Q65506 Q990385 Q532572 Q488962 Q69945 Q65508 Q849574 Q1126256 Q504580 Q68305 Q66017 Q1003551 Q156704 Q64334 Q217394 Q574558 Q69180
(c(Q13220204),P190,c(Q486972))
action argmin
action find_tuple_counts
relation P190
type Q13220204
type Q486972
[ANSWERS] are sister town of min number of human settlements
[{'concept': 'Q13220204'}, 'P190', {'concept': 'Q486972'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?h ) WHERE { ?r property:P190 ?k . ?r rdf:type ontology:Q13220204 . ?k rdf:type ontology:Q486972 } GROUP BY ?r } } . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:Q486972 . ?o rdf:type ontology:Q13220204 . ?o property:P190 ?q } GROUP BY ?o } . FILTER ( ?m = ?j ) }
Portalegre, Portugal Lillehammer Tomar Naters Abrantes Municipality Braggio Opfikon Olten Urtenen-Schönbühl Angra do Heroísmo Tholen Saint-Maurice Nyon Arendal Ullensaker Krimpen aan den IJssel Sørum Matosinhos Spreitenbach Sursee Cham Eemsmond Ruswil Gimel Kragerø Epesses Tynaarlo Bærum Heumen La Tour-de-Peilz Mealhada Las Vueltas Fehraltorf Langenthal Rapperswil-Jona Nidau Aleksinac Oldenzaal Sievierodonetsk Sande Vouvry Berehove Arcatao Zadar Meisterschwanden Zevenaar Commune of Bisoro Tuggen Trimmis Aurskog-Høland Bagnes Buochs Mörel-Filet Zaragoza Province Krāslava Bjelovar Kristiansund Røst Środa Wielkopolska County Felsberg Heerde Leuk Bauska Trigono Sisak Hinwil Salcedo, Hermanas Mirabal Reigoldswil Brienz Birsfelden Vila Franca de Xira Asker Tønsberg Haarlemmermeer Līvāni Heemskerk Sirnach Heemstede Bettlach Werkendam Meilen Tübach San José Las Flores, Chalatenango Vila Franca do Campo Le Mont-sur-Lausanne Nedre Eiker Paredes Reconvilier Claro Küssnacht Korosten Zuchwil Lichtensteig Randaberg Ebikon Nisa Municipality Santa Marta Münchenbuchsee Boxmeer Opmeer Asten Wallisellen Münsingen Franekeradeel Yverdon-les-Bains Bellmund Santa Fe de Antioquia Fastiv Malleray Oron Olaine Grocka Aigle Kiesen Perroy Bjerkreim Madalena Hoogeveen Seixal Municipality Khartsyzk Hạ Long Sevelen Ponte de Sor Municipality Blatten Herzogenbuchsee Ogre Bonstetten Saint-Ursanne Eleusis Funchal Weert Avegno Gordevio Vétroz Natitingou Suhr Ísafjarðarbær Zermatt Parakou Volketswil Prilly Landiswil Rijssen-Holten Neftenbach Twenterand Vaasa sub-region Tynset Neuenegg Oftringen Ipiales Morcote Wijchen Thalwil Cantanhede Municipality Bodø Aknīste Val Müstair Spydeberg Røros Averøy Stara Pazova Stord Oberwil Lærdal Sembrancher Kaniv Villeret Guaduas Santa Maria da Feira Municipality Ouidah Velika Plana Olhão Municipality Porrentruy Rorschach Oisterwijk Heiden Woerden Burgdorf Eidsberg Castricum Penafiel Vex Estremoz Wohlen Árborg Vadsø Heitenried Lajes do Pico Vennesla Rheden Menzingen Wittenbach Onex Rolle Saxon Povoação Alcanena Municipality Nizhyn Fernando de la Mora Bjugn Arbon Vagharshapat Chalkida Grosshöchstetten Ribeira Grande Nikopol Alushta Overbetuwe San Juan de Pasto Kouandé Tukums Nowa Sól County Grand-Saconnex Harderwijk Porto-Novo Berdiansk Palanga Zaltbommel Albufeira Municipality Rygge Riehen Kreuzlingen Póvoa de Varzim Larvik Mutten Lengnau Oeiras Sirdal Hausen bei Brugg Cartagena Coppet Steffisburg Préverenges Mex Illnau-Effretikon Martigny Borsele Hulst Coevorden Lousã Municipality Salacgrīva Fuerte Olimpo Vila do Conde Aleksandrovac Kloten Bratsch Grand-Popo Osijek Plan-les-Ouates Amsterdam Saint-Blaise Sosúa Mook en Middelaar Mont-sur-Rolle Rijeka Kryvyi Rih Kerkrade Kerns São João da Madeira Cressier Presidente Franco District Bač, Serbia Allschwil Monthey Stari Grad, Belgrade Epe Köniz Rothrist Dulliken Arconciel Nova Kakhovka Egaleo Zweisimmen Novovolynsk Landsmeer Cottens Cotonou Bassila Naarden Velas Baden Lingewaard Santa Cruz da Graciosa Fauske New Belgrade Vucherens Paços de Ferreira Nods Bettingen Domburg Muntelier Morges Karmøy Bila Tserkva Kolomyia Hola Prystan Øvre Eiker Alūksne Schenkon Lucerne Emmen Reinach Renens Chop Lohn Stjørdal San Lorenzo Hol Kandi Évora Binningen Bamble Eigersund Buttisholz Knjaževac Holmestrand Bedum Sarpsborg Moudon Quillota Province Schöfflisdorf Merzligen Anadia Bex Le Landeron Pryluky Namsos De Bilt Pombal Municipality Krauchthal Ambalema Piła County Rafz Meanguera, Morazán Kvinesdal Zofingen Vaumarcus Dinkelland Dalfsen Manizales Obersiggenthal Kongsberg Leticia Novyi Rozdil Oliveira do Bairro Municipality Salaspils Brig Brig-Glis Frick Wangen bei Olten Popayán Auce Sandefjord Vellerat Tysfjord Brugg Vũng Tàu Le Locle Gran Vlist Laufen Schwerzenbach Grenchen Bülach Malvik La Sagne Beverwijk Aizkraukle Lachen Pamplona Loures Embd Thierachern Ayent Hilterfingen Farsund Skedsmo Hüttlingen Neuenhof Buchberg Katwijk Pontresina Geldrop-Mierlo Etten-Leur Noordwijk Oberdiessbach Veendam Loon op Zand Niederried bei Kallnach Neringa Municipality Chardonne Cortaillod Trysil Felgueiras Municipality Brissago Voždovac Münchwilen Valkenswaard Davos Bergün Ovar Vianen Sint-Michielsgestel Tenjo Djougou Stryi Tunja Novi Kneževac Sierre Auenstein Gjøvik Vila do Porto Zollikofen Fislisbach Notodden Puerto Plata Enebakk Słubice County Frogn Sør-Varanger Meråker Hallau Pantelej Bardu Saas-Balen Utrechtse Heuvelrug IJsselstein Lopik Čajetina Füllinsdorf Vila Nova de Paiva Würenlingen Zaandam Brus Brenzikofen Leikanger Thônex Ludza Boussens Ibagué Fredrikstad Renkum Binn Stein Sittard-Geleen Tavira Municipality Rotterdam Haugesund Hammerfest Radelfingen Krosno County Sauda Payerne Massagno Ålesund Kherson Oleksandriia, Kirovohrad Oblast Oppdal Halden Velsen Wittnau Uden Chornomorsk Horten Zaanstad Vught Veldhoven Steinkjer Melitopol Oirschot Dubrovnik Elgg Vasylkiv Myrhorod Hải Dương Reykjanesbær Ås Evolène Obukhiv Sigdal Savièse Aarwangen Orpund Nottwil Águeda Municipality Grosswangen Bogotá Mukacheve Lostorf Ostroh Svelvik Valka Worb Moca Nordkapp Bassersdorf Pully Duiven Deventer Enschede Haaksbergen Waalwijk Baulmes Romainmôtier-Envy Bottens Stierva Copargo Sintra Municipality Putten Podilsk Lagos Valpaços Municipality Martigny-Combe Samedan Sigriswil Delfzijl Alta Barranquilla Plaffeien Temerin Oliveira de Azeméis Câmara de Lobos Risch-Rotkreuz Les Bois Grossaffoltern Opsterland Berezhany Flekkefjord Konolfingen Santo Tirso Municipality Odda Santa Tecla, El Salvador Hoorn Assens Olsberg Les Planchettes Oberflachs Aizpute Elverum Rüthi Nha Trang Breitenbach Mühleberg Roggwil Levanger Maienfeld Gondomar Lagoa Oppegård Lyss Dietikon Nesodden Horw Kriens Bussy-Chardonney Lørenskog Brunssum Echt-Susteren Rijnwoude Beek Palermo Alphen-Chaam Aalburg Tvedestrand Risør Tokke Ettiswil Vinje Bucaramanga Montemor-o-Novo Municipality Boudry Lohn-Ammannsegg Féchy Gadmen Estarreja Municipality Boécourt Stetten Trogir Sremski Karlovci Lengnau Eggerberg Dovre Molde Šibenik Askim Mex Fjarðabyggð Bykle Breil/Brigels Karlovac Volodymyr-Volynskyi Charmey La Brévine Yaremche Nord-Aurdal Bolligen Thái Nguyên Chamblon Neerach Cheseaux-sur-Lausanne Irpin Carrouge Kovin Nam Định Glarus Nord Brienz/Brinzauls Portimão Wijk bij Duurstede Slavonski Brod Pukhavichy District Cēsis Fjell Hünenberg Alkmaar Saillon Saint-Oyens Lotzwil Hội An Huế Corminboeuf Strenči Trubschachen Antratsyt Cheyres Kalush Échichens Ittigen Saas-Fee Lutry Ligerz Moss Buga Orkdal Giubiasco Montijo Municipality Flawil Horta Mariquita, Tolima Hægebostad Müntschemier Balgach Loppersum Hajnówka County Chaves Municipality Wetzikon Lütschental Nejapa Kovel Berikon Barreiro Heerenveen Stetten
Delfzijl, Amsterdam and Loppersum are sister town of min number of human settlements
Delfzijl Amsterdam Loppersum
action argmin
action find_tuple_counts
relation sister city
type second-level administrative country subdivision
type human settlement
[{'concept': 'second-level administrative country subdivision'}, 'sister city', {'concept': 'human settlement'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( MIN ( ?h ) AS ?j ) { SELECT DISTINCT ?r ( COUNT ( ?k ) AS ?h ) WHERE { ?r property:sister_city ?k . ?r rdf:type ontology:second-level_administrative_country_subdivision . ?k rdf:type ontology:human_settlement } GROUP BY ?r } } . { SELECT DISTINCT ?o ( COUNT ( ?q ) AS ?m ) WHERE { ?q rdf:type ontology:human_settlement . ?o rdf:type ontology:second-level_administrative_country_subdivision . ?o property:sister_city ?q } GROUP BY ?o } . FILTER ( ?m = ?j ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P825
Q502895 Q811979 Q16970
USER
Which people are max number of architectural structures and churches dedicated to ?
(c(Q811979)|c(Q16970),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
[[{'concept': 'Q811979'}, {'concept': 'Q16970'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?u ) { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?t ) WHERE { VALUES ( ?j ) { ( ontology:Q811979 ) ( ontology:Q16970 ) } . ?f rdf:type ?j } GROUP BY ?m } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?s ) WHERE { { ?a property:P825 ?z . ?a rdf:type ontology:Q811979 . ?z rdf:type ontology:Q502895 } UNION { ?a property:P825 ?z . ?z rdf:type ontology:Q502895 . ?a rdf:type ontology:Q16970 } } GROUP BY ?z } . FILTER ( ?s = ?u ) }
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
[[{'concept': 'architectural structure'}, {'concept': 'church'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?u ) { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?t ) WHERE { VALUES ( ?j ) { ( ontology:architectural_structure ) ( ontology:church ) } . ?f rdf:type ?j } GROUP BY ?m } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?s ) WHERE { { ?a property:dedicated_to ?z . ?a rdf:type ontology:architectural_structure . ?z rdf:type ontology:common_name } UNION { ?a property:dedicated_to ?z . ?z rdf:type ontology:common_name . ?a rdf:type ontology:church } } GROUP BY ?z } . FILTER ( ?s = ?u ) }
[]
common name architectural structure church
Q40662
SYSTEM
John the Baptist
Q40662
(c(Q811979)|c(Q16970),P825,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P825
type Q502895
type Q811979
action find_reverse_tuple_counts
relation P825
type Q502895
type Q16970
Max number of architectural structures and churches are named [ANSWER]
[[{'concept': 'Q811979'}, {'concept': 'Q16970'}], 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?u ) { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?t ) WHERE { VALUES ( ?j ) { ( ontology:Q811979 ) ( ontology:Q16970 ) } . ?f rdf:type ?j } GROUP BY ?m } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?s ) WHERE { { ?a property:P825 ?z . ?a rdf:type ontology:Q811979 . ?z rdf:type ontology:Q502895 } UNION { ?a property:P825 ?z . ?z rdf:type ontology:Q502895 . ?a rdf:type ontology:Q16970 } } GROUP BY ?z } . FILTER ( ?s = ?u ) }
John the Baptist
Max number of architectural structures and churches are named John the Baptist
John the Baptist
action argmax
action union
action find_reverse_tuple_counts
relation dedicated to
type common name
type architectural structure
action find_reverse_tuple_counts
relation dedicated to
type common name
type church
[[{'concept': 'architectural structure'}, {'concept': 'church'}], 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ( MAX ( ?t ) AS ?u ) { SELECT DISTINCT ?m ( COUNT ( ?f ) AS ?t ) WHERE { VALUES ( ?j ) { ( ontology:architectural_structure ) ( ontology:church ) } . ?f rdf:type ?j } GROUP BY ?m } } . { SELECT DISTINCT ?z ( COUNT ( ?a ) AS ?s ) WHERE { { ?a property:dedicated_to ?z . ?a rdf:type ontology:architectural_structure . ?z rdf:type ontology:common_name } UNION { ?a property:dedicated_to ?z . ?z rdf:type ontology:common_name . ?a rdf:type ontology:church } } GROUP BY ?z } . FILTER ( ?s = ?u ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q40662 Q17535356
P417
Q44539
USER
Does Church Of St Mary have that person as their patron saint ?
(Q17535356,P417,Q40662)
action is_in
entity Q17535356
action find
entity Q40662
relation P417
['Q17535356', 'P417', 'Q40662']
ASK WHERE { resource:Q40662 property:P417 resource:Q17535356 }
John the Baptist Church Of St Mary
action is_in
entity Church Of St Mary
action find
entity John the Baptist
relation patron saint
['Church Of St Mary', 'patron saint', 'John the Baptist']
ASK WHERE { resource:John_the_Baptist property:patron_saint resource:Church_Of_St_Mary }
[]
temple
SYSTEM
NO
(Q17535356,P417,Q40662)
action is_in
entity Q17535356
action find
entity Q40662
relation P417
[ANSWER]
['Q17535356', 'P417', 'Q40662']
ASK WHERE { resource:Q40662 property:P417 resource:Q17535356 }
No
action is_in
entity Church Of St Mary
action find
entity John the Baptist
relation patron saint
['Church Of St Mary', 'patron saint', 'John the Baptist']
ASK WHERE { resource:John_the_Baptist property:patron_saint resource:Church_Of_St_Mary }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q11296848
P725
Q502895 Q15961987
USER
Which television genres did around the same number of people dub for as Kiteretsu Daihyakka ?
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q11296848
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?e ) WHERE { ?d rdf:type ontology:Q15961987 . ?m rdf:type ontology:Q502895 . ?d property:P725 ?m } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { resource:Q11296848 property:P725 ?b . ?b rdf:type ontology:Q15961987 } } . FILTER ( ?e = ?z ) }
Kiteretsu Daihyakka
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Kiteretsu Daihyakka
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?e ) WHERE { ?d rdf:type ontology:television_genre . ?m rdf:type ontology:common_name . ?d property:voice_actor ?m } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { resource:Kiteretsu_Daihyakka property:voice_actor ?b . ?b rdf:type ontology:television_genre } } . FILTER ( ?e = ?z ) }
[]
common name television genre
Q886 Q11572 Q5415
SYSTEM
The Simpsons, Avatar: The Last Airbender, My Little Pony: Friendship Is Magic
Q11572 Q24034511 Q11296848 Q7615342 Q3235151 Q576501 Q847219 Q753848 Q5415 Q886 Q917543 Q2750339
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q11296848
relation P725
type Q15961987
The Simpsons, Avatar: The Last Airbender and My Little Pony: Friendship is Magic did around the same number of people dub for as Kiteretsu Daihyakka
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?e ) WHERE { ?d rdf:type ontology:Q15961987 . ?m rdf:type ontology:Q502895 . ?d property:P725 ?m } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { resource:Q11296848 property:P725 ?b . ?b rdf:type ontology:Q15961987 } } . FILTER ( ?e = ?z ) }
Avatar: The Last Airbender Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe VeggieTales Garfield and Friends Pururun! Shizuku-chan TaleSpin My Little Pony: Friendship Is Magic The Simpsons The Garfield Show Hellsing Ultimate
The Simpsons, Avatar: The Last Airbender and My Little Pony: Friendship is Magic did around the same number of people dub for as Kiteretsu Daihyakka
The Simpsons Avatar: The Last Airbender My Little Pony: Friendship Is Magic
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Kiteretsu Daihyakka
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?e ) WHERE { ?d rdf:type ontology:television_genre . ?m rdf:type ontology:common_name . ?d property:voice_actor ?m } GROUP BY ?d } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?z ) WHERE { resource:Kiteretsu_Daihyakka property:voice_actor ?b . ?b rdf:type ontology:television_genre } } . FILTER ( ?e = ?z ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q7615342
P725
Q502895 Q15961987
USER
And how about Steven Universe?
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q7615342
relation P725
type Q15961987
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q502895 . ?k rdf:type ontology:Q15961987 . ?k property:P725 ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q7615342 property:P725 ?x . ?x rdf:type ontology:Q15961987 } } . FILTER ( ?d = ?i ) }
Steven Universe
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Steven Universe
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:common_name . ?k rdf:type ontology:television_genre . ?k property:voice_actor ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Steven_Universe property:voice_actor ?x . ?x rdf:type ontology:television_genre } } . FILTER ( ?d = ?i ) }
[]
common name television genre
Q886 Q53093 Q5415
SYSTEM
The Simpsons, Adventure Time, My Little Pony: Friendship Is Magic
Q24034511 Q11296848 Q7615342 Q53093 Q5415 Q886 Q2750339
(c(Q15961987),P725,c(Q502895))
action approx
action find_tuple_counts
relation P725
type Q15961987
type Q502895
action count
action filter_type
action find
entity Q7615342
relation P725
type Q15961987
[ANSWERS]
[{'concept': 'Q15961987'}, 'P725', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:Q502895 . ?k rdf:type ontology:Q15961987 . ?k property:P725 ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Q7615342 property:P725 ?x . ?x rdf:type ontology:Q15961987 } } . FILTER ( ?d = ?i ) }
Voltron: Legendary Defender Kiteretsu Daihyakka Steven Universe Adventure Time My Little Pony: Friendship Is Magic The Simpsons Hellsing Ultimate
The Simpsons Adventure Time My Little Pony: Friendship Is Magic
action approx
action find_tuple_counts
relation voice actor
type television genre
type common name
action count
action filter_type
action find
entity Steven Universe
relation voice actor
type television genre
[{'concept': 'television genre'}, 'voice actor', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?p ) AS ?d ) WHERE { ?p rdf:type ontology:common_name . ?k rdf:type ontology:television_genre . ?k property:voice_actor ?p } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { resource:Steven_Universe property:voice_actor ?x . ?x rdf:type ontology:television_genre } } . FILTER ( ?d = ?i ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q886
P136
Q1792379
USER
What can be considered as category for that television genre ?
(Q886,P136,c(Q1792379))
action filter_type
action find
entity Q886
relation P136
type Q1792379
['Q886', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?v WHERE { resource:Q886 property:P136 ?v . ?v rdf:type ontology:Q1792379 }
The Simpsons
action filter_type
action find
entity The Simpsons
relation genre
type art genre
['The Simpsons', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?v WHERE { resource:The_Simpsons property:genre ?v . ?v rdf:type ontology:art_genre }
[]
art genre
Clarification for simple ques.
Q5415
SYSTEM
Did you mean My Little Pony: Friendship Is Magic ?
Q886 Q53093 Q5415
(Q886,P136,c(Q1792379)) (Q53093,P136,c(Q1792379)) (Q5415,P136,c(Q1792379))
[ANSWER]
['Q886', 'P136', {'concept': 'Q1792379'}] ['Q53093', 'P136', {'concept': 'Q1792379'}] ['Q5415', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?v WHERE { resource:Q886 property:P136 ?v . ?v rdf:type ontology:Q1792379 }
The Simpsons Adventure Time My Little Pony: Friendship Is Magic
Did you mean My Little Pony: Friendship Is Magic ?
My Little Pony: Friendship Is Magic
['The Simpsons', 'genre', {'concept': 'art genre'}] ['Adventure Time', 'genre', {'concept': 'art genre'}] ['My Little Pony: Friendship Is Magic', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?v WHERE { resource:The_Simpsons property:genre ?v . ?v rdf:type ontology:art_genre }
[]
Simple Question (Coreferenced)
USER
No, I meant The Simpsons. Could you tell me the answer for that?
(Q886,P136,c(Q1792379))
Q886
['Q886', 'P136', {'concept': 'Q1792379'}]
['The Simpsons', 'genre', {'concept': 'art genre'}]
[]
Q3249257
SYSTEM
adult animation
Q3249257
(Q886,P136,c(Q1792379))
action filter_type
action find
entity Q886
relation P136
type Q1792379
[ANSWER] can be considered as category for that television genre
['Q886', 'P136', {'concept': 'Q1792379'}]
SELECT DISTINCT ?v WHERE { resource:Q886 property:P136 ?v . ?v rdf:type ontology:Q1792379 }
adult animation
Adult animation can be considered as category for that television genre
adult animation
action filter_type
action find
entity The Simpsons
relation genre
type art genre
['The Simpsons', 'genre', {'concept': 'art genre'}]
SELECT DISTINCT ?v WHERE { resource:The_Simpsons property:genre ?v . ?v rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q886
P800
Q502895
USER
Whose notable work were The Simpsons ?
(c(Q502895),P800,Q886)
action filter_type
action find_reverse
entity Q886
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q886']
SELECT DISTINCT ?o WHERE { ?o property:P800 resource:Q886 . ?o rdf:type ontology:Q502895 }
The Simpsons
action filter_type
action find_reverse
entity The Simpsons
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Simpsons']
SELECT DISTINCT ?o WHERE { ?o property:notable_work resource:The_Simpsons . ?o rdf:type ontology:common_name }
[]
common name
Q6490224 Q1544904
SYSTEM
Larry Doyle, Greg Daniels
Q6490224 Q1544904
(c(Q502895),P800,Q886)
action filter_type
action find_reverse
entity Q886
relation P800
type Q502895
[ANSWERS] were The Simpsons
[{'concept': 'Q502895'}, 'P800', 'Q886']
SELECT DISTINCT ?o WHERE { ?o property:P800 resource:Q886 . ?o rdf:type ontology:Q502895 }
Larry Doyle Greg Daniels
Larry Doyle and Greg Daniels were The Simpsons
Larry Doyle Greg Daniels
action filter_type
action find_reverse
entity The Simpsons
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'The Simpsons']
SELECT DISTINCT ?o WHERE { ?o property:notable_work resource:The_Simpsons . ?o rdf:type ontology:common_name }
[]