Simple Question (Direct)
Simple Question
Q238090
P1196
Q1931388
USER
What situation did Sholem Aleichem die in ?
(Q238090,P1196,c(Q1931388))
action filter_type
action find
entity Q238090
relation P1196
type Q1931388
['Q238090', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q238090 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Sholem Aleichem
action filter_type
action find
entity Sholem Aleichem
relation manner of death
type cause of death
['Sholem Aleichem', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Sholem_Aleichem property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
cause of death
Q3739104
SYSTEM
natural causes
Q3739104
(Q238090,P1196,c(Q1931388))
action filter_type
action find
entity Q238090
relation P1196
type Q1931388
Sholem Aleichem died of [ANSWER]
['Q238090', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q238090 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
natural causes
Sholem Aleichem died of natural causes
natural causes
action filter_type
action find
entity Sholem Aleichem
relation manner of death
type cause of death
['Sholem Aleichem', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:Sholem_Aleichem property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q238090
P825
Q838948
USER
Which work of art has dedication towards that person ?
(c(Q838948),P825,Q3739104)
action filter_type
action find_reverse
entity Q238090
relation P825
type Q838948
[{'concept': 'Q838948'}, 'P825', 'Q3739104']
SELECT DISTINCT ?w WHERE { ?w property:P825 resource:Q238090 . ?w rdf:type ontology:Q838948 }
Sholem Aleichem
action filter_type
action find_reverse
entity Sholem Aleichem
relation dedicated to
type work of art
[{'concept': 'work of art'}, 'dedicated to', 'natural causes']
SELECT DISTINCT ?w WHERE { ?w property:dedicated_to resource:Sholem_Aleichem . ?w rdf:type ontology:work_of_art }
[]
work of art
Q16271053
SYSTEM
Sholem Aleichem Monument
Q16271053
(c(Q838948),P825,Q3739104)
action filter_type
action find_reverse
entity Q238090
relation P825
type Q838948
[ANSWER] has dedication towards that person
[{'concept': 'Q838948'}, 'P825', 'Q3739104']
SELECT DISTINCT ?w WHERE { ?w property:P825 resource:Q238090 . ?w rdf:type ontology:Q838948 }
Sholem Aleichem Monument
Sholem Aleichem Monument has dedication towards that person
Sholem Aleichem Monument
action filter_type
action find_reverse
entity Sholem Aleichem
relation dedicated to
type work of art
[{'concept': 'work of art'}, 'dedicated to', 'natural causes']
SELECT DISTINCT ?w WHERE { ?w property:dedicated_to resource:Sholem_Aleichem . ?w rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q238090 Q27610
P509
Q2057971
USER
How many health problems were the cause of death of Sholem Aleichem or Dezső Kosztolányi ?
(Q238090,P509,c(Q2057971)) (Q27610,P509,c(Q2057971))
action count
action union
action filter_type
action find
entity Q238090
relation P509
type Q2057971
action filter_type
action find
entity Q27610
relation P509
type Q2057971
['Q238090', 'P509', {'concept': 'Q2057971'}] ['Q27610', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Q238090 property:P509 ?s . ?s rdf:type ontology:Q2057971 } UNION { ?s rdf:type ontology:Q2057971 . resource:Q27610 property:P509 ?s } }
Sholem Aleichem Dezső Kosztolányi
action count
action union
action filter_type
action find
entity Sholem Aleichem
relation cause of death
type health problem
action filter_type
action find
entity Dezső Kosztolányi
relation cause of death
type health problem
['Sholem Aleichem', 'cause of death', {'concept': 'health problem'}] ['Dezső Kosztolányi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Sholem_Aleichem property:cause_of_death ?s . ?s rdf:type ontology:health_problem } UNION { ?s rdf:type ontology:health_problem . resource:Dezső_Kosztolányi property:cause_of_death ?s } }
[]
health problem
SYSTEM
2
Q12204 Q12192
(Q238090,P509,c(Q2057971)) (Q27610,P509,c(Q2057971))
action count
action union
action filter_type
action find
entity Q238090
relation P509
type Q2057971
action filter_type
action find
entity Q27610
relation P509
type Q2057971
[ANSWER]
['Q238090', 'P509', {'concept': 'Q2057971'}] ['Q27610', 'P509', {'concept': 'Q2057971'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Q238090 property:P509 ?s . ?s rdf:type ontology:Q2057971 } UNION { ?s rdf:type ontology:Q2057971 . resource:Q27610 property:P509 ?s } }
tuberculosis pneumonia
2
action count
action union
action filter_type
action find
entity Sholem Aleichem
relation cause of death
type health problem
action filter_type
action find
entity Dezső Kosztolányi
relation cause of death
type health problem
['Sholem Aleichem', 'cause of death', {'concept': 'health problem'}] ['Dezső Kosztolányi', 'cause of death', {'concept': 'health problem'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) WHERE { { resource:Sholem_Aleichem property:cause_of_death ?s . ?s rdf:type ontology:health_problem } UNION { ?s rdf:type ontology:health_problem . resource:Dezső_Kosztolányi property:cause_of_death ?s } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q493751 Q238090
P20 P159
Q56061
USER
Which administrative territories are the places of death of Sholem Aleichem or are the head offices of KPMG ?
OR((Q238090,P20,c(Q56061)), (Q493751,P159,c(Q56061)))
action filter_type
action union
action find
entity Q238090
relation P20
action find
entity Q493751
relation P159
type Q56061
{'OR': [['Q238090', 'P20', {'concept': 'Q56061'}], ['Q493751', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q238090 property:P20 ?d } UNION { resource:Q493751 property:P159 ?d } } . ?d rdf:type ontology:Q56061 }
KPMG Sholem Aleichem
action filter_type
action union
action find
entity Sholem Aleichem
relation place of death
action find
entity KPMG
relation headquarters location
type administrative territorial entity
{'OR': [['Sholem Aleichem', 'place of death', {'concept': 'administrative territorial entity'}], ['KPMG', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Sholem_Aleichem property:place_of_death ?d } UNION { resource:KPMG property:headquarters_location ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q9898
SYSTEM
New York City, Amstelveen
Q60 Q9898
OR((Q238090,P20,c(Q56061)), (Q493751,P159,c(Q56061)))
action filter_type
action union
action find
entity Q238090
relation P20
action find
entity Q493751
relation P159
type Q56061
[ANSWERS] are the places of death of Sholem Aleichem or are the head offices of KPMG
{'OR': [['Q238090', 'P20', {'concept': 'Q56061'}], ['Q493751', 'P159', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q238090 property:P20 ?d } UNION { resource:Q493751 property:P159 ?d } } . ?d rdf:type ontology:Q56061 }
New York City Amstelveen
New York City and Amstelveen are the places of death of Sholem Aleichem or are the head offices of KPMG
New York City Amstelveen
action filter_type
action union
action find
entity Sholem Aleichem
relation place of death
action find
entity KPMG
relation headquarters location
type administrative territorial entity
{'OR': [['Sholem Aleichem', 'place of death', {'concept': 'administrative territorial entity'}], ['KPMG', 'headquarters location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Sholem_Aleichem property:place_of_death ?d } UNION { resource:KPMG property:headquarters_location ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q18125
P291
Q56061 Q21114848 Q571
USER
Which administrative territories were less number of magazine genres and books issued than Manchester ?
(c(Q21114848)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q18125
relation P291
type Q21114848
type Q571
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?p WHERE { { ?g property:P291 ?p . ?p rdf:type ontology:Q56061 . ?g rdf:type ontology:Q571 } UNION { ?g property:P291 ?p . ?g rdf:type ontology:Q21114848 . ?p rdf:type ontology:Q56061 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P291 resource:Q18125 . { ?b rdf:type ?r . VALUES ( ?r ) { ( ontology:Q21114848 ) ( ontology:Q571 ) } } } } . FILTER ( ?x < ?c ) }
Manchester
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Manchester
relation place of publication
type magazine genre
type book
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?p WHERE { { ?g property:place_of_publication ?p . ?p rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:book } UNION { ?g property:place_of_publication ?p . ?g rdf:type ontology:magazine_genre . ?p rdf:type ontology:administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:place_of_publication resource:Manchester . { ?b rdf:type ?r . VALUES ( ?r ) { ( ontology:magazine_genre ) ( ontology:book ) } } } } . FILTER ( ?x < ?c ) }
[]
administrative territorial entity magazine genre book
Q72 Q8678 Q8686
SYSTEM
Zürich, Rio de Janeiro, Shanghai
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q982367 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q23337 Q33959 Q987 Q8692 Q23051 Q586 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q1757 Q41876 Q1754 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q8818 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q1155 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q40347 Q406 Q234178 Q739452 Q8678 Q15468 Q6346 Q495 Q2044 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 Q2280 Q162279 Q3141 Q671288 Q72 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q1297 Q3033 Q936183 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 Q2103 Q1741 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q49111 Q71 Q2617448 Q37100 Q38022 Q36405 Q270 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q1492 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q220 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1726 Q1724 Q11967 Q1729 Q8717 Q3519 Q64 Q65 Q159232 Q207891 Q2028 Q61 Q62 Q3395358 Q683512 Q3889 Q9125 Q5818 Q1867 Q204382 Q12439 Q269 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q647 Q641 Q193367 Q727 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q100 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q350 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q21114848)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q18125
relation P291
type Q21114848
type Q571
[ANSWERS] were less number of magazine genres and books issued than Manchester
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?p WHERE { { ?g property:P291 ?p . ?p rdf:type ontology:Q56061 . ?g rdf:type ontology:Q571 } UNION { ?g property:P291 ?p . ?g rdf:type ontology:Q21114848 . ?p rdf:type ontology:Q56061 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:P291 resource:Q18125 . { ?b rdf:type ?r . VALUES ( ?r ) { ( ontology:Q21114848 ) ( ontology:Q571 ) } } } } . FILTER ( ?x < ?c ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Mineola Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin Salt Lake City Nice New Delhi Bilbao Swansea Bonn Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Helsinki Reims Stockholm Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Valencia Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Busto Arsizio Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Norman Istanbul Bangor Garden City Rio de Janeiro Badalona Indianapolis Turin Florence Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real Minsk Kuopio Melbourne Bend Zürich Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Brussels Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Chicago Göttingen Tonbridge Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide Bochum Vienna Poughkeepsie Fátima Alicante Almaty Mjölby Basel Cambridge Geneva Edinburgh Auckland St. Louis Aberdeen Warsaw New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Barcelona Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg New Haven Olympia Levoča Rockville Murcia Bristol Rome Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Białystok Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Munich Saarbrücken Huesca Erfurt Seville Bari Berlin Los Angeles Santa Cruz Kokkola Verona Washington, D.C. San Francisco Kidwelly Savonlinna Maputo Winterthur Córdoba Taipei Kouvola Detroit Tashkent Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Rennes Venice Porvoo Amsterdam Mo i Rana Newtown Hereford Cheltenham Ulm Liverpool León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Boston Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Cambridge Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg
Zürich, Rio de Janeiro and Shanghai were less number of magazine genres and books issued than Manchester
Zürich Rio de Janeiro Shanghai
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Manchester
relation place of publication
type magazine genre
type book
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) ?p WHERE { { ?g property:place_of_publication ?p . ?p rdf:type ontology:administrative_territorial_entity . ?g rdf:type ontology:book } UNION { ?g property:place_of_publication ?p . ?g rdf:type ontology:magazine_genre . ?p rdf:type ontology:administrative_territorial_entity } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?b ) AS ?c ) WHERE { ?b property:place_of_publication resource:Manchester . { ?b rdf:type ?r . VALUES ( ?r ) { ( ontology:magazine_genre ) ( ontology:book ) } } } } . FILTER ( ?x < ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q3150
P291
Q56061 Q21114848 Q571
USER
And also tell me about Jena?
(c(Q21114848)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q3150
relation P291
type Q21114848
type Q571
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?m WHERE { { ?a property:P291 ?m . ?a rdf:type ontology:Q571 . ?m rdf:type ontology:Q56061 } UNION { ?a property:P291 ?m . ?a rdf:type ontology:Q21114848 . ?m rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P291 resource:Q3150 . { VALUES ( ?f ) { ( ontology:Q21114848 ) ( ontology:Q571 ) } . ?l rdf:type ?f } } } . FILTER ( ?c < ?v ) }
Jena
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Jena
relation place of publication
type magazine genre
type book
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?m WHERE { { ?a property:place_of_publication ?m . ?a rdf:type ontology:book . ?m rdf:type ontology:administrative_territorial_entity } UNION { ?a property:place_of_publication ?m . ?a rdf:type ontology:magazine_genre . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:place_of_publication resource:Jena . { VALUES ( ?f ) { ( ontology:magazine_genre ) ( ontology:book ) } . ?l rdf:type ?f } } } . FILTER ( ?c < ?v ) }
[]
administrative territorial entity magazine genre book
Q8686 Q216 Q406
SYSTEM
Shanghai, Vilnius, Istanbul
Q807 Q909146 Q2536016 Q2512312 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q501661 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q987 Q8692 Q23051 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q9920 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q41876 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q5831 Q22889 Q12892 Q5836 Q132572 Q6157 Q12411 Q1718 Q43631 Q11125 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q209055 Q2020203 Q3561 Q406 Q234178 Q739452 Q15468 Q6346 Q887 Q576165 Q5465 Q2141 Q54217 Q1679567 Q2814 Q15093 Q162279 Q671288 Q17151 Q1490 Q1191195 Q102217 Q237 Q334 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q621 Q8686 Q994 Q1513 Q3130 Q192517 Q1296 Q3033 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q178093 Q191133 Q11959 Q35493 Q538915 Q78 Q2617448 Q37100 Q38022 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q33935 Q582121 Q16567 Q1861 Q14318 Q14314 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q49145 Q42735 Q242478 Q327022 Q12225 Q23154 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1724 Q11967 Q1729 Q8717 Q3519 Q65 Q159232 Q207891 Q2028 Q61 Q3395358 Q683512 Q3889 Q9125 Q5818 Q1867 Q204382 Q269 Q27393 Q470445 Q126148 Q1352 Q771986 Q49229 Q33405 Q79990 Q8385 Q493794 Q6537 Q6106 Q2391194 Q10313 Q72259 Q1295 Q19785 Q193367 Q59169 Q669171 Q204720 Q206988 Q3012 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q8757 Q47048 Q178277 Q192155 Q883 Q41262 Q6441 Q125080 Q2066 Q12303 Q156990 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q21114848)|c(Q571),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q21114848
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q3150
relation P291
type Q21114848
type Q571
[ANSWERS]
[[{'concept': 'Q21114848'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?m WHERE { { ?a property:P291 ?m . ?a rdf:type ontology:Q571 . ?m rdf:type ontology:Q56061 } UNION { ?a property:P291 ?m . ?a rdf:type ontology:Q21114848 . ?m rdf:type ontology:Q56061 } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P291 resource:Q3150 . { VALUES ( ?f ) { ( ontology:Q21114848 ) ( ontology:Q571 ) } . ?l rdf:type ?f } } } . FILTER ( ?c < ?v ) }
Lausanne Godalming Crickhowell Eppegem Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Schleswig Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin New Delhi Bilbao Swansea Palermo Grenoble Straume Málaga Cardiff Gävle Haarlem Ávila Soria Nampula Cádiz Segovia Gloucester Reims Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Melilla Bath Antwerp Toledo Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Lugo Elverum Alcones Caernarfon Montevideo Petrozavodsk Harstad Rovaniemi Lahti St Athan Mérida Joensuu Logroño Pori Marbella Santa Cruz de Tenerife Nauvoo Seattle Athens Mexico City Torquay Rhyl Algiers Istanbul Bangor Garden City Badalona Indianapolis Yekaterinburg Warsaw Cape Town Halifax Norwalk Jakobstad Halle (Saale) Ciudad Real Kuopio Bend Thessaloniki Tokyo Mold Vitebsk Vatican City Singapore Brussels Austin Denver Houston Dallas Pensacola Versailles Shanghai Tbilisi Nagpur Sydney Boulder Ghent Göttingen Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Poughkeepsie Fátima Alicante Almaty Mjölby Basel Edinburgh Auckland St. Louis New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Santiago de Compostela Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg New Haven Olympia Levoča Rockville Murcia Bristol Montreal Quimper Pamplona Dordrecht Sereď Barmouth Sunderland Padua Conwy Sofia Yangon Irkutsk Livorno Concord Messina Burgos Königstein im Taunus Naples Valladolid Nový Jičín Worcester Ylivieska Saarbrücken Huesca Erfurt Seville Bari Los Angeles Santa Cruz Kokkola Verona Washington, D.C. Kidwelly Savonlinna Maputo Winterthur Córdoba Taipei Kouvola Tashkent Herning Prostějov Tangier Chennai Chepstow Durham Little Rock Christchurch Ostrava Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Portsmouth Dortmund Harpenden Porvoo Mo i Rana Newtown Hereford Cheltenham Ulm León Ferrol Zamora Salamanca The Dalles Saint Paul Denton Tarragona Alta Waterville Athens Łódź Preveza Kajaani Oslo A Coruña Oulu Montvale Kotka Novosibirsk Nottingham Montpellier Vaasa Essen Jerez de la Frontera Monmouth Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Kanhangad Tartu Jaffna Palma Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg
Shanghai Vilnius Istanbul
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type magazine genre
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Jena
relation place of publication
type magazine genre
type book
[[{'concept': 'magazine genre'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { { SELECT DISTINCT ( COUNT ( ?a ) AS ?c ) ?m WHERE { { ?a property:place_of_publication ?m . ?a rdf:type ontology:book . ?m rdf:type ontology:administrative_territorial_entity } UNION { ?a property:place_of_publication ?m . ?a rdf:type ontology:magazine_genre . ?m rdf:type ontology:administrative_territorial_entity } } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:place_of_publication resource:Jena . { VALUES ( ?f ) { ( ontology:magazine_genre ) ( ontology:book ) } . ?l rdf:type ?f } } } . FILTER ( ?c < ?v ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q216
P6
Q502895
USER
Which person does that administrative territory serve as the head of government for ?
(Q216,P6,c(Q502895))
action filter_type
action find
entity Q216
relation P6
type Q502895
['Q216', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q216 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Vilnius
action filter_type
action find
entity Vilnius
relation head of government
type common name
['Vilnius', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Vilnius property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q216
SYSTEM
Did you mean Vilnius ?
Q8686 Q216 Q406
(Q8686,P6,c(Q502895)) (Q216,P6,c(Q502895)) (Q406,P6,c(Q502895))
[ANSWER]
['Q8686', 'P6', {'concept': 'Q502895'}] ['Q216', 'P6', {'concept': 'Q502895'}] ['Q406', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q216 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Shanghai Vilnius Istanbul
Did you mean Vilnius ?
Vilnius
['Shanghai', 'head of government', {'concept': 'common name'}] ['Vilnius', 'head of government', {'concept': 'common name'}] ['Istanbul', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Vilnius property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q216,P6,c(Q502895))
['Q216', 'P6', {'concept': 'Q502895'}]
['Vilnius', 'head of government', {'concept': 'common name'}]
[]
Q1397662
SYSTEM
Remigijus Šimašius
Q1397662
(Q216,P6,c(Q502895))
action filter_type
action find
entity Q216
relation P6
type Q502895
[ANSWER] that administrative territory serves as the head of government for
['Q216', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q216 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Remigijus Šimašius
Remigijus Šimašius that administrative territory serves as the head of government for
Remigijus Šimašius
action filter_type
action find
entity Vilnius
relation head of government
type common name
['Vilnius', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Vilnius property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]