Simple Question (Direct)
Simple Question
Q3383695
P20
Q56061
USER
Where did the demise of Pierre Allain occur ?
(Q3383695,P20,c(Q56061))
action filter_type
action find
entity Q3383695
relation P20
type Q56061
['Q3383695', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q3383695 property:P20 ?y . ?y rdf:type ontology:Q56061 }
Pierre Allain
action filter_type
action find
entity Pierre Allain
relation place of death
type administrative territorial entity
['Pierre Allain', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Pierre_Allain property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1289
SYSTEM
Grenoble
Q1289
(Q3383695,P20,c(Q56061))
action filter_type
action find
entity Q3383695
relation P20
type Q56061
The demise of Pierre Allain occurred in [ANSWER]
['Q3383695', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { resource:Q3383695 property:P20 ?y . ?y rdf:type ontology:Q56061 }
Grenoble
The demise of Pierre Allain occurred in Grenoble
Grenoble
action filter_type
action find
entity Pierre Allain
relation place of death
type administrative territorial entity
['Pierre Allain', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Pierre_Allain property:place_of_death ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3383695
P27
Q15617994
USER
Which administrative territory is Pierre Allain a civilian of ?
(Q3383695,P27,c(Q15617994))
action filter_type
action find
entity Q3383695
relation P27
type Q15617994
['Q3383695', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3383695 property:P27 ?u }
Pierre Allain
action filter_type
action find
entity Pierre Allain
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Allain', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pierre_Allain property:country_of_citizenship ?u }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q3383695,P27,c(Q15617994))
action filter_type
action find
entity Q3383695
relation P27
type Q15617994
[ANSWER] is Pierre Allain a civilian of
['Q3383695', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q15617994 . resource:Q3383695 property:P27 ?u }
France
France is Pierre Allain a civilian of
France
action filter_type
action find
entity Pierre Allain
relation country of citizenship
type designation for an administrative territorial entity
['Pierre Allain', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Pierre_Allain property:country_of_citizenship ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3383695
P21
Q290
USER
Which sex does that person possess ?
(Q142,P21,c(Q290))
action filter_type
action find
entity Q3383695
relation P21
type Q290
['Q142', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q3383695 property:P21 ?t . ?t rdf:type ontology:Q290 }
Pierre Allain
action filter_type
action find
entity Pierre Allain
relation gender
type sex
['France', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Pierre_Allain property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q142,P21,c(Q290))
action filter_type
action find
entity Q3383695
relation P21
type Q290
That person possesses a [ANSWER]
['Q142', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q3383695 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
That person possesses a male
male
action filter_type
action find
entity Pierre Allain
relation gender
type sex
['France', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Pierre_Allain property:gender ?t . ?t rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q10338448 Q3383695
P21
Q290
USER
Or Nélson de Melo?
OR((Q3383695,P21,c(Q290)), (Q10338448,P21,c(Q290)))
action filter_type
action union
action find
entity Q3383695
relation P21
action find
entity Q10338448
relation P21
type Q290
{'OR': [['Q3383695', 'P21', {'concept': 'Q290'}], ['Q10338448', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3383695 property:P21 ?o } UNION { resource:Q10338448 property:P21 ?o } } . ?o rdf:type ontology:Q290 }
Nélson de Melo Pierre Allain
action filter_type
action union
action find
entity Pierre Allain
relation gender
action find
entity Nélson de Melo
relation gender
type sex
{'OR': [['Pierre Allain', 'gender', {'concept': 'sex'}], ['Nélson de Melo', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Pierre_Allain property:gender ?o } UNION { resource:Nélson_de_Melo property:gender ?o } } . ?o rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
OR((Q3383695,P21,c(Q290)), (Q10338448,P21,c(Q290)))
action filter_type
action union
action find
entity Q3383695
relation P21
action find
entity Q10338448
relation P21
type Q290
[ANSWER]
{'OR': [['Q3383695', 'P21', {'concept': 'Q290'}], ['Q10338448', 'P21', {'concept': 'Q290'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Q3383695 property:P21 ?o } UNION { resource:Q10338448 property:P21 ?o } } . ?o rdf:type ontology:Q290 }
male
male
action filter_type
action union
action find
entity Pierre Allain
relation gender
action find
entity Nélson de Melo
relation gender
type sex
{'OR': [['Pierre Allain', 'gender', {'concept': 'sex'}], ['Nélson de Melo', 'gender', {'concept': 'sex'}]]}
SELECT DISTINCT ?o WHERE { { { resource:Pierre_Allain property:gender ?o } UNION { resource:Nélson_de_Melo property:gender ?o } } . ?o rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q167749
P190
Q20667921 Q56061
USER
How many french administrative divisions and administrative territories are partner towns of Nahariya ?
(Q167749,P190,c(Q20667921)) (Q167749,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q167749
relation P190
type Q20667921
action filter_type
action find
entity Q167749
relation P190
type Q56061
['Q167749', 'P190', {'concept': 'Q20667921'}] ['Q167749', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { resource:Q167749 property:P190 ?z . ?z rdf:type ontology:Q20667921 } UNION { resource:Q167749 property:P190 ?z . ?z rdf:type ontology:Q56061 } }
Nahariya
action count
action union
action filter_type
action find
entity Nahariya
relation sister city
type type of french administrative division
action filter_type
action find
entity Nahariya
relation sister city
type administrative territorial entity
['Nahariya', 'sister city', {'concept': 'type of french administrative division'}] ['Nahariya', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { resource:Nahariya property:sister_city ?z . ?z rdf:type ontology:type_of_french_administrative_division } UNION { resource:Nahariya property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
type of french administrative division administrative territorial entity
SYSTEM
1 french administrative divisions and 5 administrative territories
Q824100 Q2112 Q450726 Q171357 Q135265 Q2971
(Q167749,P190,c(Q20667921)) (Q167749,P190,c(Q56061))
action count
action union
action filter_type
action find
entity Q167749
relation P190
type Q20667921
action filter_type
action find
entity Q167749
relation P190
type Q56061
[ANSWER]
['Q167749', 'P190', {'concept': 'Q20667921'}] ['Q167749', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { resource:Q167749 property:P190 ?z . ?z rdf:type ontology:Q20667921 } UNION { resource:Q167749 property:P190 ?z . ?z rdf:type ontology:Q56061 } }
Delray Beach Bielefeld Alzey Kecskemét Issy-les-Moulineaux Paderborn
1 french administrative divisions and 5 administrative territories
action count
action union
action filter_type
action find
entity Nahariya
relation sister city
type type of french administrative division
action filter_type
action find
entity Nahariya
relation sister city
type administrative territorial entity
['Nahariya', 'sister city', {'concept': 'type of french administrative division'}] ['Nahariya', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?k ) WHERE { { resource:Nahariya property:sister_city ?z . ?z rdf:type ontology:type_of_french_administrative_division } UNION { resource:Nahariya property:sister_city ?z . ?z rdf:type ontology:administrative_territorial_entity } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q10313
P291
Q56061 Q571 Q1002697
USER
Which administrative territories are the locations of publication of lesser number of books and periodical literatures than Donostia/San Sebastián ?
(c(Q571)|c(Q1002697),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q10313
relation P291
type Q571
type Q1002697
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?g rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P291 resource:Q10313 . { VALUES ( ?q ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?l rdf:type ?q } } } . FILTER ( ?u < ?v ) }
Donostia/San Sebastián
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Donostia/San Sebastián
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?g rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:place_of_publication resource:Donostia/San_Sebastián . { VALUES ( ?q ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?l rdf:type ?q } } } . FILTER ( ?u < ?v ) }
[]
administrative territorial entity book periodical literature
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 Q41876 Q1754 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q1718 Q43631 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 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 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 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 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 Q1724 Q11967 Q1729 Q3519 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 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 Q156990 Q3834 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(Q571)|c(Q1002697),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q10313
relation P291
type Q571
type Q1002697
[ANSWERS] are the locations of publication of lesser number of books and periodical literatures than Donostia/San Sebastián
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?g rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:P291 resource:Q10313 . { VALUES ( ?q ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?l rdf:type ?q } } } . FILTER ( ?u < ?v ) }
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 Reims Stockholm Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Düsseldorf Leiden 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 Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real 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 New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Baltimore Lleida Jyväskylä Beijing Albacete Cuenca 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 Saarbrücken Huesca Erfurt Bari 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 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 Monmouth Konstanz 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
Zürich, Rio de Janeiro and Shanghai are the locations of publication of lesser number of books and periodical literatures than Donostia/San Sebastián
Zürich Rio de Janeiro Shanghai
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Donostia/San Sebastián
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?u ) WHERE { VALUES ( ?y ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?g rdf:type ?y } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?v ) WHERE { ?l property:place_of_publication resource:Donostia/San_Sebastián . { VALUES ( ?q ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?l rdf:type ?q } } } . FILTER ( ?u < ?v ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q72
P291
Q56061 Q571 Q1002697
USER
And what about Zürich?
(c(Q571)|c(Q1002697),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q72
relation P291
type Q571
type Q1002697
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:P291 ?i . ?i rdf:type ontology:Q56061 . ?f rdf:type ontology:Q571 } UNION { ?f property:P291 ?i . ?i rdf:type ontology:Q56061 . ?f rdf:type ontology:Q1002697 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P291 resource:Q72 . { { ?x rdf:type ontology:Q571 } UNION { ?x rdf:type ontology:Q1002697 } } } } . FILTER ( ?y < ?m ) }
Zürich
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Zürich
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:book } UNION { ?f property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:periodical_literature } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:place_of_publication resource:Zürich . { { ?x rdf:type ontology:book } UNION { ?x rdf:type ontology:periodical_literature } } } } . FILTER ( ?y < ?m ) }
[]
administrative territorial entity book periodical literature
Q8678 Q8686 Q1781
SYSTEM
Rio de Janeiro, Shanghai, Budapest
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 Q41876 Q1754 Q749 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 Q365 Q5836 Q132572 Q6157 Q1718 Q43631 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 Q887 Q576165 Q5465 Q2141 Q54217 Q23436 Q1679567 Q2814 Q15093 Q162279 Q3141 Q671288 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 Q286048 Q1235510 Q15678 Q1931927 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q16567 Q1861 Q14318 Q5092 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q1479 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q49145 Q42735 Q242478 Q327022 Q23154 Q340 Q342 Q10282 Q26421 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q37995 Q6576 Q6761 Q28249 Q13666 Q761 Q9580 Q569661 Q2634 Q8356 Q3584 Q49179 Q735583 Q1724 Q11967 Q1729 Q3519 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 Q72259 Q1295 Q19785 Q647 Q641 Q193367 Q59169 Q669171 Q204720 Q206988 Q3012 Q24826 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q128306 Q15088 Q3366952 Q997170 Q203263 Q580 Q213898 Q193180 Q585 Q34370 Q47048 Q178277 Q192155 Q883 Q207639 Q41262 Q6441 Q125080 Q2066 Q12303 Q156990 Q3834 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q216 Q646620 Q720627 Q13972 Q215277 Q129610 Q179385 Q1348 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q571)|c(Q1002697),P291,c(Q56061))
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action count
action filter_multi_types
action find_reverse
entity Q72
relation P291
type Q571
type Q1002697
[ANSWERS]
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:P291 ?i . ?i rdf:type ontology:Q56061 . ?f rdf:type ontology:Q571 } UNION { ?f property:P291 ?i . ?i rdf:type ontology:Q56061 . ?f rdf:type ontology:Q1002697 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:P291 resource:Q72 . { { ?x rdf:type ontology:Q571 } UNION { ?x rdf:type ontology:Q1002697 } } } } . FILTER ( ?y < ?m ) }
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 Reims Stockholm Groningen Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp Cologne Toledo Tiraspol Seinäjoki Düsseldorf Leiden 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 Yekaterinburg Warsaw Cape Town Halifax Norwalk Edinburgh Jakobstad Halle (Saale) Ciudad Real Kuopio Melbourne Bend 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 New Glasgow, Nova Scotia Dolgellau Cáceres Bracon Ash Lexington Perth Winchester Budapest Tel Aviv Bradenton Columbus Bangkok Vitoria-Gasteiz Baltimore Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Bordeaux Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg New Haven Olympia Levoča Rockville Bristol 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 Saarbrücken Huesca Erfurt Bari 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 Portsmouth Dortmund Harpenden Rennes Venice Porvoo 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 Rotterdam Oulu Montvale Kotka Novosibirsk Chichester Nottingham Montpellier Vaasa Essen Jerez de la Frontera Monmouth Konstanz Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Vilnius Estella-Lizarra Kanhangad Tartu Jaffna Galway Greenwich Kolkata Canterbury Spangenberg Bletchley Teruel Johannesburg
Rio de Janeiro Shanghai Budapest
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action count
action filter_multi_types
action find_reverse
entity Zürich
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?f ) AS ?y ) WHERE { { ?f property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:book } UNION { ?f property:place_of_publication ?i . ?i rdf:type ontology:administrative_territorial_entity . ?f rdf:type ontology:periodical_literature } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?m ) WHERE { ?x property:place_of_publication resource:Zürich . { { ?x rdf:type ontology:book } UNION { ?x rdf:type ontology:periodical_literature } } } } . FILTER ( ?y < ?m ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q8678 Q8686 Q1781
P6
Q502895
USER
Which people are the head of government of those administrative territories ?
(Q8678,P6,c(Q502895)) (Q8686,P6,c(Q502895)) (Q1781,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q8686', 'P6', {'concept': 'Q502895'}] ['Q1781', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?b property:P6 ?f . VALUES ( ?b ) { ( resource:Q807 ) ( resource:Q909146 ) ( resource:Q2536016 ) } }
Rio de Janeiro Shanghai Budapest
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Shanghai', 'head of government', {'concept': 'common name'}] ['Budapest', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?b property:head_of_government ?f . VALUES ( ?b ) { ( resource:Lausanne ) ( resource:Godalming ) ( resource:Crickhowell ) } }
[]
common name
Q972007 Q2117887 Q923540
SYSTEM
Eduardo Paes, Yang Xiong, István Tarlós
Q972007 Q2117887 Q923540
(Q8678,P6,c(Q502895)) (Q8686,P6,c(Q502895)) (Q1781,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
[ANSWERS] are the head of government of those administrative territories
['Q8678', 'P6', {'concept': 'Q502895'}] ['Q8686', 'P6', {'concept': 'Q502895'}] ['Q1781', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q502895 . ?b property:P6 ?f . VALUES ( ?b ) { ( resource:Q807 ) ( resource:Q909146 ) ( resource:Q2536016 ) } }
Eduardo Paes Yang Xiong István Tarlós
Eduardo Paes, Yang Xiong and István Tarlós are the head of government of those administrative territories
Eduardo Paes Yang Xiong István Tarlós
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Rio de Janeiro', 'head of government', {'concept': 'common name'}] ['Shanghai', 'head of government', {'concept': 'common name'}] ['Budapest', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:common_name . ?b property:head_of_government ?f . VALUES ( ?b ) { ( resource:Lausanne ) ( resource:Godalming ) ( resource:Crickhowell ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q972007 Q2117887 Q923540
P21
Q290
USER
What are the sex of Eduardo Paes, Yang Xiong and István Tarlós ?
(Q972007,P21,c(Q290)) (Q2117887,P21,c(Q290)) (Q923540,P21,c(Q290))
action union
action filter_type
action find
entity Q972007
relation P21
type Q290
action filter_type
action find
entity Q2117887
relation P21
type Q290
action filter_type
action find
entity Q923540
relation P21
type Q290
['Q972007', 'P21', {'concept': 'Q290'}] ['Q2117887', 'P21', {'concept': 'Q290'}] ['Q923540', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { { resource:Q2117887 property:P21 ?g . ?g rdf:type ontology:Q290 } UNION { resource:Q972007 property:P21 ?g . ?g rdf:type ontology:Q290 } }
Eduardo Paes Yang Xiong István Tarlós
action union
action filter_type
action find
entity Eduardo Paes
relation gender
type sex
action filter_type
action find
entity Yang Xiong
relation gender
type sex
action filter_type
action find
entity István Tarlós
relation gender
type sex
['Eduardo Paes', 'gender', {'concept': 'sex'}] ['Yang Xiong', 'gender', {'concept': 'sex'}] ['István Tarlós', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { { resource:Yang_Xiong property:gender ?g . ?g rdf:type ontology:sex } UNION { resource:Eduardo_Paes property:gender ?g . ?g rdf:type ontology:sex } }
[]
sex
Q6581097 Q6581097 Q6581097
SYSTEM
male
Q6581097 Q6581097 Q6581097
(Q972007,P21,c(Q290)) (Q2117887,P21,c(Q290)) (Q923540,P21,c(Q290))
action union
action filter_type
action find
entity Q972007
relation P21
type Q290
action filter_type
action find
entity Q2117887
relation P21
type Q290
action filter_type
action find
entity Q923540
relation P21
type Q290
The sex of Eduardo Paes , Yang Xiong and István Tarlós are the [ANSWER], [ANSWER] and [ANSWER]
['Q972007', 'P21', {'concept': 'Q290'}] ['Q2117887', 'P21', {'concept': 'Q290'}] ['Q923540', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { { resource:Q2117887 property:P21 ?g . ?g rdf:type ontology:Q290 } UNION { resource:Q972007 property:P21 ?g . ?g rdf:type ontology:Q290 } }
male male male
The sex of Eduardo Paes , Yang Xiong and István Tarlós are the male, male and male
male male male
action union
action filter_type
action find
entity Eduardo Paes
relation gender
type sex
action filter_type
action find
entity Yang Xiong
relation gender
type sex
action filter_type
action find
entity István Tarlós
relation gender
type sex
['Eduardo Paes', 'gender', {'concept': 'sex'}] ['Yang Xiong', 'gender', {'concept': 'sex'}] ['István Tarlós', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { { resource:Yang_Xiong property:gender ?g . ?g rdf:type ontology:sex } UNION { resource:Eduardo_Paes property:gender ?g . ?g rdf:type ontology:sex } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1781
P47
Q515
USER
Which cities do Budapest share a border with ?
(c(Q515),P47,Q1781)
action filter_type
action find
entity Q1781
relation P47
type Q515
[{'concept': 'Q515'}, 'P47', 'Q1781']
SELECT DISTINCT ?v WHERE { resource:Q1781 property:P47 ?v . ?v rdf:type ontology:Q515 }
Budapest
action filter_type
action find
entity Budapest
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Budapest']
SELECT DISTINCT ?v WHERE { resource:Budapest property:shares_border_with ?v . ?v rdf:type ontology:city }
[]
city
Q193050 Q645567 Q740853
SYSTEM
Érd, Törökbálint, Szigetszentmiklós
Q842908 Q222964 Q854933 Q193050 Q645567 Q512073 Q547479 Q755691 Q36063 Q283023 Q740853 Q830652
(c(Q515),P47,Q1781)
action filter_type
action find
entity Q1781
relation P47
type Q515
Budapest share a border in [ANSWERS]
[{'concept': 'Q515'}, 'P47', 'Q1781']
SELECT DISTINCT ?v WHERE { resource:Q1781 property:P47 ?v . ?v rdf:type ontology:Q515 }
Gyál Pécel Dunaharaszti Érd Törökbálint Kistarcsa Dunakeszi Budaörs Vecsés Maglód Szigetszentmiklós Fót
Budapest share a border in Érd, Törökbálint and Szigetszentmiklós
Érd Törökbálint Szigetszentmiklós
action filter_type
action find
entity Budapest
relation shares border with
type city
[{'concept': 'city'}, 'shares border with', 'Budapest']
SELECT DISTINCT ?v WHERE { resource:Budapest property:shares_border_with ?v . ?v rdf:type ontology:city }
[]