Simple Question (Direct)
Simple Question
Q6760984
P21
Q290
USER
What is the sex of Maria Alford ?
(Q6760984,P21,c(Q290))
action filter_type
action find
entity Q6760984
relation P21
type Q290
['Q6760984', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q6760984 property:P21 ?u }
Maria Alford
action filter_type
action find
entity Maria Alford
relation gender
type sex
['Maria Alford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Maria_Alford property:gender ?u }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6760984,P21,c(Q290))
action filter_type
action find
entity Q6760984
relation P21
type Q290
The sex of Maria Alford is the [ANSWER]
['Q6760984', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q290 . resource:Q6760984 property:P21 ?u }
female
The sex of Maria Alford is the female
female
action filter_type
action find
entity Maria Alford
relation gender
type sex
['Maria Alford', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:sex . resource:Maria_Alford property:gender ?u }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6760984
P921
Q191067
USER
Which article has Maria Alford as its main topic ?
(c(Q191067),P921,Q6760984)
action filter_type
action find_reverse
entity Q6760984
relation P921
type Q191067
[{'concept': 'Q191067'}, 'P921', 'Q6760984']
SELECT DISTINCT ?o WHERE { ?o property:P921 resource:Q6760984 . ?o rdf:type ontology:Q191067 }
Maria Alford
action filter_type
action find_reverse
entity Maria Alford
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Maria Alford']
SELECT DISTINCT ?o WHERE { ?o property:main_subject resource:Maria_Alford . ?o rdf:type ontology:article }
[]
article
Q19034544
SYSTEM
Alford, Marianne Margaret (DNB01)
Q19034544
(c(Q191067),P921,Q6760984)
action filter_type
action find_reverse
entity Q6760984
relation P921
type Q191067
[ANSWER] has Maria Alford as its main topic
[{'concept': 'Q191067'}, 'P921', 'Q6760984']
SELECT DISTINCT ?o WHERE { ?o property:P921 resource:Q6760984 . ?o rdf:type ontology:Q191067 }
Alford, Marianne Margaret (DNB01)
Alford, Marianne Margaret (DNB01) has Maria Alford as its main topic
Alford, Marianne Margaret (DNB01)
action filter_type
action find_reverse
entity Maria Alford
relation main subject
type article
[{'concept': 'article'}, 'main subject', 'Maria Alford']
SELECT DISTINCT ?o WHERE { ?o property:main_subject resource:Maria_Alford . ?o rdf:type ontology:article }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19034544
P50
Q502895
USER
Who authored that article ?
(Q19034544,P50,c(Q502895))
action filter_type
action find
entity Q19034544
relation P50
type Q502895
['Q19034544', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q19034544 property:P50 ?k . ?k rdf:type ontology:Q502895 }
Alford, Marianne Margaret (DNB01)
action filter_type
action find
entity Alford, Marianne Margaret (DNB01)
relation author
type common name
['Alford, Marianne Margaret (DNB01)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Alford,_Marianne_Margaret_(DNB01) property:author ?k . ?k rdf:type ontology:common_name }
[]
common name
Q6555603
SYSTEM
Lionel Henry Cust
Q6555603
(Q19034544,P50,c(Q502895))
action filter_type
action find
entity Q19034544
relation P50
type Q502895
[ANSWER] authored that article
['Q19034544', 'P50', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q19034544 property:P50 ?k . ?k rdf:type ontology:Q502895 }
Lionel Henry Cust
Lionel Henry Cust authored that article
Lionel Henry Cust
action filter_type
action find
entity Alford, Marianne Margaret (DNB01)
relation author
type common name
['Alford, Marianne Margaret (DNB01)', 'author', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Alford,_Marianne_Margaret_(DNB01) property:author ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q19034544
P1433
Q571
USER
Which book has that article in it ?
(Q6555603,P1433,c(Q571))
action filter_type
action find
entity Q19034544
relation P1433
type Q571
['Q6555603', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?j WHERE { resource:Q19034544 property:P1433 ?j . ?j rdf:type ontology:Q571 }
Alford, Marianne Margaret (DNB01)
action filter_type
action find
entity Alford, Marianne Margaret (DNB01)
relation published in
type book
['Lionel Henry Cust', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?j WHERE { resource:Alford,_Marianne_Margaret_(DNB01) property:published_in ?j . ?j rdf:type ontology:book }
[]
book
Q16014700
SYSTEM
Dictionary of National Biography, first supplement
Q16014700
(Q6555603,P1433,c(Q571))
action filter_type
action find
entity Q19034544
relation P1433
type Q571
[ANSWER] has that article in it
['Q6555603', 'P1433', {'concept': 'Q571'}]
SELECT DISTINCT ?j WHERE { resource:Q19034544 property:P1433 ?j . ?j rdf:type ontology:Q571 }
Dictionary of National Biography, first supplement
Dictionary of National Biography, first supplement has that article in it
Dictionary of National Biography, first supplement
action filter_type
action find
entity Alford, Marianne Margaret (DNB01)
relation published in
type book
['Lionel Henry Cust', 'published in', {'concept': 'book'}]
SELECT DISTINCT ?j WHERE { resource:Alford,_Marianne_Margaret_(DNB01) property:published_in ?j . ?j rdf:type ontology:book }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q8678
P291
Q56061 Q571
USER
Which administrative territories were lesser number of books issued than Rio de Janeiro ?
(c(Q571),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_type
action find_reverse
entity Q8678
relation P291
type Q571
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P291 ?y . ?b rdf:type ontology:Q571 . ?y rdf:type ontology:Q56061 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P291 resource:Q8678 . ?t rdf:type ontology:Q571 } } . FILTER ( ?z < ?c ) }
Rio de Janeiro
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_type
action find_reverse
entity Rio de Janeiro
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:place_of_publication ?y . ?b rdf:type ontology:book . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:place_of_publication resource:Rio_de_Janeiro . ?t rdf:type ontology:book } } . FILTER ( ?z < ?c ) }
[]
administrative territorial entity book
Q8686 Q1781 Q216
SYSTEM
Shanghai, Budapest, Vilnius
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 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q3846 Q81046 Q597 Q5831 Q22889 Q12892 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 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 Q3033 Q936183 Q1563 Q170263 Q35381 Q1748 Q45412 Q87 Q40269 Q2081145 Q1024911 Q193478 Q5112 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 Q14314 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 Q8717 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 Q10313 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 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),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_type
action find_reverse
entity Q8678
relation P291
type Q571
[ANSWERS] were lesser number of books issued than Rio de Janeiro
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P291 ?y . ?b rdf:type ontology:Q571 . ?y rdf:type ontology:Q56061 } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:P291 resource:Q8678 . ?t rdf:type ontology:Q571 } } . FILTER ( ?z < ?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 Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Minden Charleroi Lisbon Melilla Bath Antwerp 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 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 Göttingen Tonbridge Havana Chester Colombo Copenhagen Coimbra Alexandria Porto Alegre Milborne Port Welshpool Buda Adelaide 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 Santiago de Compostela 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 Seville 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 Donostia/San Sebastián 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 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
Shanghai, Budapest and Vilnius were lesser number of books issued than Rio de Janeiro
Shanghai Budapest Vilnius
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_type
action find_reverse
entity Rio de Janeiro
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:place_of_publication ?y . ?b rdf:type ontology:book . ?y rdf:type ontology:administrative_territorial_entity } GROUP BY ?y } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?c ) WHERE { ?t property:place_of_publication resource:Rio_de_Janeiro . ?t rdf:type ontology:book } } . FILTER ( ?z < ?c ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q45412
P291
Q56061 Q571
USER
And how about Coimbra?
(c(Q571),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_type
action find_reverse
entity Q45412
relation P291
type Q571
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P291 ?c . ?c rdf:type ontology:Q56061 . ?r rdf:type ontology:Q571 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:Q571 . ?n property:P291 resource:Q45412 } } . FILTER ( ?f < ?a ) }
Coimbra
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_type
action find_reverse
entity Coimbra
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:place_of_publication ?c . ?c rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:book } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:book . ?n property:place_of_publication resource:Coimbra } } . FILTER ( ?f < ?a ) }
[]
administrative territorial entity book
Q8686 Q1781 Q406
SYSTEM
Shanghai, Budapest, Istanbul
Q807 Q2536016 Q190583 Q27918 Q736775 Q2035368 Q3897 Q38511 Q3711 Q130191 Q203619 Q393 Q80670 Q25286 Q1544563 Q490595 Q3808 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q987 Q8692 Q23051 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q15688 Q12155 Q323801 Q15682 Q15684 Q170497 Q41876 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q81046 Q5831 Q22889 Q12892 Q132572 Q6157 Q12411 Q1718 Q43631 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q1034159 Q103717 Q28911 Q3400328 Q14323 Q186237 Q14325 Q180233 Q484799 Q14328 Q576110 Q5083 Q1524 Q1489 Q2020203 Q406 Q234178 Q15468 Q6346 Q887 Q576165 Q5465 Q2141 Q54217 Q1679567 Q2814 Q15093 Q162279 Q17151 Q1490 Q1191195 Q102217 Q237 Q239 Q16559 Q16554 Q16555 Q16557 Q486306 Q8686 Q994 Q1513 Q1296 Q1563 Q170263 Q35381 Q87 Q40269 Q2081145 Q1024911 Q193478 Q1741 Q191133 Q11959 Q35493 Q538915 Q78 Q37100 Q38022 Q286048 Q1235510 Q15678 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q1861 Q14318 Q14314 Q15090 Q134620 Q956 Q15095 Q15098 Q437 Q8745 Q13580 Q2766547 Q18419 Q2941325 Q12258 Q202158 Q1017331 Q2090 Q49145 Q327022 Q12225 Q23154 Q340 Q342 Q10282 Q429676 Q672545 Q188304 Q617 Q634054 Q472 Q6576 Q28249 Q13666 Q9580 Q569661 Q8356 Q49179 Q735583 Q1724 Q11967 Q1729 Q159232 Q207891 Q3395358 Q683512 Q3889 Q9125 Q5818 Q1867 Q204382 Q269 Q27393 Q126148 Q771986 Q49229 Q33405 Q79990 Q493794 Q6537 Q6106 Q2391194 Q10313 Q1295 Q59169 Q669171 Q204720 Q206988 Q3012 Q15699 Q485329 Q15696 Q15695 Q985271 Q28848 Q15088 Q3366952 Q203263 Q213898 Q193180 Q8757 Q47048 Q178277 Q192155 Q883 Q41262 Q6441 Q125080 Q12303 Q156990 Q81137 Q40840 Q955640 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q646620 Q720627 Q13972 Q215277 Q8826 Q129610 Q179385 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q571),P291,c(Q56061))
action less
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_type
action find_reverse
entity Q45412
relation P291
type Q571
[ANSWERS]
[{'concept': 'Q571'}, 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:P291 ?c . ?c rdf:type ontology:Q56061 . ?r rdf:type ontology:Q571 } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:Q571 . ?n property:P291 resource:Q45412 } } . FILTER ( ?f < ?a ) }
Lausanne Crickhowell Mikkeli Bad Rappenau Toronto Tremadog Luanda Turku Belgrade Norwich Kemi Szczecin Mühlacker Uppsala Hellerup Daytona Beach Yaoundé Jena 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 Ávila Soria Nampula Cádiz Segovia Gloucester Reims Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Charleroi Melilla Bath Antwerp Tiraspol Seinäjoki Pontevedra Düsseldorf Leiden Lugo Granada 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 Rhyl Istanbul Bangor Badalona Indianapolis Yekaterinburg Warsaw Cape Town Halifax Norwalk Jakobstad Halle (Saale) Ciudad Real Kuopio Thessaloniki Tokyo Mold Vitebsk Vatican City Brussels Austin Denver Houston Dallas Pensacola Shanghai Tbilisi Nagpur Ghent Havana Chester Colombo Alexandria Porto Alegre Milborne Port Welshpool Buda Vienna Fátima Alicante Almaty Mjölby Basel Auckland St. Louis New Glasgow, Nova Scotia Dolgellau Cáceres Lexington Perth Winchester Budapest Tel Aviv Bradenton Bangkok Vitoria-Gasteiz Santiago de Compostela Lleida Jyväskylä Beijing Albacete Cuenca Ljubljana Vigo Metro Manila 's-Hertogenbosch Brooklyn Corbin Sabadell Hämeenlinna Westport, County Mayo Nuremberg New Haven Rockville Murcia Bristol Montreal Quimper Pamplona Sereď Barmouth Sunderland Padua Conwy Sofia Irkutsk Concord Messina Burgos Königstein im Taunus Valladolid Worcester Ylivieska Saarbrücken Huesca Erfurt Santa Cruz Kokkola Kidwelly Savonlinna Maputo Winterthur Córdoba Taipei Kouvola Tashkent Herning Tangier Chepstow Durham Little Rock Christchurch Dubuque Vicenza Portland Saint-Idesbald Donostia/San Sebastián Dortmund Mo i Rana Newtown Hereford Cheltenham Ulm León Ferrol Zamora Salamanca The Dalles Saint Paul Tarragona Alta Athens Preveza Kajaani A Coruña Oulu Montvale Kotka Novosibirsk Nottingham Montpellier Vaasa Jerez de la Frontera Monmouth Olomouc Tampere Glasgow Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Estella-Lizarra Kanhangad Tartu Jaffna Palma Galway Greenwich Canterbury Spangenberg Bletchley Teruel Johannesburg
Shanghai Budapest Istanbul
action less
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_type
action find_reverse
entity Coimbra
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?r ) AS ?f ) WHERE { ?r property:place_of_publication ?c . ?c rdf:type ontology:administrative_territorial_entity . ?r rdf:type ontology:book } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) WHERE { ?n rdf:type ontology:book . ?n property:place_of_publication resource:Coimbra } } . FILTER ( ?f < ?a ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P190
Q15617994 Q19833031
USER
How many administrative territories and emirates of the United Arab Emirates are a sister city of that administrative territory ?
(c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406) (c(Q15617994),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q15617994),P190,Q1781) (c(Q19833031),P190,Q1781) (c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406)
[{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q15617994'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q15617994'}, 'P190', 'Q1781'] [{'concept': 'Q19833031'}, 'P190', 'Q1781'] [{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q603551 } UNION { ?y property:P190 resource:Q603551 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q19833031 }
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Budapest'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Budapest'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Budapest } UNION { ?y property:sister_city resource:Budapest } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
designation for an administrative territorial entity emirate of the United Arab Emirates
Quantitative|Count|Mult. entity type|Clarification
Q1781
SYSTEM
Did you mean Budapest ?
[ANSWER]
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q603551 } UNION { ?y property:P190 resource:Q603551 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q19833031 }
Did you mean Budapest ?
Budapest
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Budapest } UNION { ?y property:sister_city resource:Budapest } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Istanbul. Could you tell me the answer for that?
(c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406) (c(Q15617994),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q15617994),P190,Q1781) (c(Q19833031),P190,Q1781) (c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406)
Q406
[{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q15617994'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q15617994'}, 'P190', 'Q1781'] [{'concept': 'Q19833031'}, 'P190', 'Q1781'] [{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406']
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Budapest'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Budapest'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul']
[]
SYSTEM
1 administrative territories and 1 emirates of the United Arab Emirates
Q2899 Q613
(c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406) (c(Q15617994),P190,Q8686) (c(Q19833031),P190,Q8686) (c(Q15617994),P190,Q1781) (c(Q19833031),P190,Q1781) (c(Q15617994),P190,Q406) (c(Q19833031),P190,Q406)
[ANSWER]
[{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406'] [{'concept': 'Q15617994'}, 'P190', 'Q8686'] [{'concept': 'Q19833031'}, 'P190', 'Q8686'] [{'concept': 'Q15617994'}, 'P190', 'Q1781'] [{'concept': 'Q19833031'}, 'P190', 'Q1781'] [{'concept': 'Q15617994'}, 'P190', 'Q406'] [{'concept': 'Q19833031'}, 'P190', 'Q406']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } UNION { ?z property:P190 resource:Q7488397 } UNION { ?y property:P190 resource:Q7488397 } UNION { ?z property:P190 resource:Q603551 } UNION { ?y property:P190 resource:Q603551 } UNION { ?z property:P190 resource:Q18352396 } UNION { ?y property:P190 resource:Q18352396 } } . ?z rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q19833031 }
Mülheim an der Ruhr Emirate of Dubai
1 administrative territories and 1 emirates of the United Arab Emirates
[{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Shanghai'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Shanghai'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Budapest'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Budapest'] [{'concept': 'designation for an administrative territorial entity'}, 'sister city', 'Istanbul'] [{'concept': 'emirate of the United Arab Emirates'}, 'sister city', 'Istanbul']
SELECT DISTINCT ( COUNT ( * ) AS ?x ) WHERE { { { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } UNION { ?z property:sister_city resource:Shanghai } UNION { ?y property:sister_city resource:Shanghai } UNION { ?z property:sister_city resource:Budapest } UNION { ?y property:sister_city resource:Budapest } UNION { ?z property:sister_city resource:Istanbul } UNION { ?y property:sister_city resource:Istanbul } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:emirate_of_the_United_Arab_Emirates }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q406 Q11772
P30
Q2221906
USER
How many geographic locations are Istanbul and Ancient Greece located ?
(Q406,P30,c(Q2221906)) (Q11772,P30,c(Q2221906))
action count
action intersection
action filter_type
action find
entity Q406
relation P30
type Q2221906
action filter_type
action find
entity Q11772
relation P30
type Q2221906
['Q406', 'P30', {'concept': 'Q2221906'}] ['Q11772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Q406 property:P30 ?d . ?d rdf:type ontology:Q2221906 . resource:Q11772 property:P30 ?d . ?d rdf:type ontology:Q2221906 }
Istanbul Ancient Greece
action count
action intersection
action filter_type
action find
entity Istanbul
relation continent
type geographic location
action filter_type
action find
entity Ancient Greece
relation continent
type geographic location
['Istanbul', 'continent', {'concept': 'geographic location'}] ['Ancient Greece', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Istanbul property:continent ?d . ?d rdf:type ontology:geographic_location . resource:Ancient_Greece property:continent ?d . ?d rdf:type ontology:geographic_location }
[]
geographic location
SYSTEM
2
Q46 Q48
(Q406,P30,c(Q2221906)) (Q11772,P30,c(Q2221906))
action count
action intersection
action filter_type
action find
entity Q406
relation P30
type Q2221906
action filter_type
action find
entity Q11772
relation P30
type Q2221906
[ANSWER]
['Q406', 'P30', {'concept': 'Q2221906'}] ['Q11772', 'P30', {'concept': 'Q2221906'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Q406 property:P30 ?d . ?d rdf:type ontology:Q2221906 . resource:Q11772 property:P30 ?d . ?d rdf:type ontology:Q2221906 }
Europe Asia
2
action count
action intersection
action filter_type
action find
entity Istanbul
relation continent
type geographic location
action filter_type
action find
entity Ancient Greece
relation continent
type geographic location
['Istanbul', 'continent', {'concept': 'geographic location'}] ['Ancient Greece', 'continent', {'concept': 'geographic location'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?h ) WHERE { resource:Istanbul property:continent ?d . ?d rdf:type ontology:geographic_location . resource:Ancient_Greece property:continent ?d . ?d rdf:type ontology:geographic_location }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q406
P190
Q56061
USER
Which administrative territories are sister towns of that one ?
action filter_type
action find
entity Q406
relation P190
type Q56061
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q406 property:P190 ?b }
Istanbul
action filter_type
action find
entity Istanbul
relation sister city
type administrative territorial entity
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Istanbul property:sister_city ?b }
[]
administrative territorial entity
Q1085 Q8686 Q1781
SYSTEM
Prague, Shanghai, Budapest
Q1754 Q8686 Q994 Q80053 Q727 Q3551 Q365 Q1963 Q384 Q641 Q42053 Q35493 Q269 Q192888 Q9248 Q459 Q1524 Q1520 Q1781 Q1489 Q1563 Q231318 Q3766 Q900 Q1741 Q3630 Q2449 Q64 Q84 Q85 Q34370 Q8673 Q216 Q172 Q270 Q187346 Q8678 Q5713 Q83285 Q2044 Q3805 Q3820 Q16555 Q1085
action filter_type
action find
entity Q406
relation P190
type Q56061
[ANSWERS] are sister towns of that one
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q56061 . resource:Q406 property:P190 ?b }
Stockholm Shanghai Tbilisi Tabriz Amsterdam Rabat Cologne Khartoum Skopje Venice Isfahan Almaty Tashkent Smolyan Baku Plovdiv Athens Astana Budapest Mexico City Havana Johor Bahru Damascus Kazan Vienna Jakarta Mogadishu Berlin London Cairo Rotterdam Lagos Vilnius Toronto Warsaw Constantine Rio de Janeiro Mary Durrës Florence Amman Beirut Houston Prague
Prague, Shanghai and Budapest are sister towns of that one
Prague Shanghai Budapest
action filter_type
action find
entity Istanbul
relation sister city
type administrative territorial entity
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:administrative_territorial_entity . resource:Istanbul property:sister_city ?b }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q1085 Q8686 Q1781
P17
Q15617994
USER
Which administrative territories do Prague, Shanghai and Budapest belong to ?
(Q1085,P17,c(Q15617994)) (Q8686,P17,c(Q15617994)) (Q1781,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1085
relation P17
type Q15617994
action filter_type
action find
entity Q8686
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q8686', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Q1085 ) ( resource:Q8686 ) } . ?o property:P17 ?d }
Prague Shanghai Budapest
action union
action filter_type
action find
entity Prague
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Shanghai
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Shanghai', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Prague ) ( resource:Shanghai ) } . ?o property:country ?d }
[]
designation for an administrative territorial entity
Q213 Q148 Q28
SYSTEM
Czech Republic, People's Republic of China, Hungary
Q213 Q148 Q28
(Q1085,P17,c(Q15617994)) (Q8686,P17,c(Q15617994)) (Q1781,P17,c(Q15617994))
action union
action filter_type
action find
entity Q1085
relation P17
type Q15617994
action filter_type
action find
entity Q8686
relation P17
type Q15617994
action filter_type
action find
entity Q1781
relation P17
type Q15617994
Prague , Shanghai and Budapest belong to the [ANSWERS]
['Q1085', 'P17', {'concept': 'Q15617994'}] ['Q8686', 'P17', {'concept': 'Q15617994'}] ['Q1781', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Q1085 ) ( resource:Q8686 ) } . ?o property:P17 ?d }
Czech Republic People's Republic of China Hungary
Prague , Shanghai and Budapest belong to the Czech Republic, People's Republic of China and Hungary
Czech Republic People's Republic of China Hungary
action union
action filter_type
action find
entity Prague
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Shanghai
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Budapest
relation country
type designation for an administrative territorial entity
['Prague', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Shanghai', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Budapest', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?d WHERE { VALUES ( ?o ) { ( resource:Prague ) ( resource:Shanghai ) } . ?o property:country ?d }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q213 Q148 Q28
P163
Q14660
USER
Which flags are associated with those administrative territories ?
(Q213,P163,c(Q14660)) (Q148,P163,c(Q14660)) (Q28,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
['Q213', 'P163', {'concept': 'Q14660'}] ['Q148', 'P163', {'concept': 'Q14660'}] ['Q28', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?d WHERE { ?y property:P163 ?d . VALUES ( ?y ) { ( resource:Q213 ) ( resource:Q148 ) ( resource:Q28 ) } . ?d rdf:type ontology:Q14660 }
Czech Republic People's Republic of China Hungary
action filter_type
action find
entity prev_answer
relation flag
type flag
['Czech Republic', 'flag', {'concept': 'flag'}] ["People's Republic of China", 'flag', {'concept': 'flag'}] ['Hungary', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?d WHERE { ?y property:flag ?d . VALUES ( ?y ) { ( resource:Czech_Republic ) ( resource:People's_Republic_of_China ) ( resource:Hungary ) } . ?d rdf:type ontology:flag }
[]
flag
Q127155 Q131147 Q81970
SYSTEM
flag of the Czech Republic, Flag of the People's Republic of China, flag of Hungary
Q127155 Q131147 Q81970
(Q213,P163,c(Q14660)) (Q148,P163,c(Q14660)) (Q28,P163,c(Q14660))
action filter_type
action find
entity prev_answer
relation P163
type Q14660
[ANSWERS] are associated with those administrative territories
['Q213', 'P163', {'concept': 'Q14660'}] ['Q148', 'P163', {'concept': 'Q14660'}] ['Q28', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?d WHERE { ?y property:P163 ?d . VALUES ( ?y ) { ( resource:Q213 ) ( resource:Q148 ) ( resource:Q28 ) } . ?d rdf:type ontology:Q14660 }
flag of the Czech Republic Flag of the People's Republic of China flag of Hungary
Flag of the Czech Republic, Flag of the People's Republic of China and flag of Hungary are associated with those administrative territories
flag of the Czech Republic Flag of the People's Republic of China flag of Hungary
action filter_type
action find
entity prev_answer
relation flag
type flag
['Czech Republic', 'flag', {'concept': 'flag'}] ["People's Republic of China", 'flag', {'concept': 'flag'}] ['Hungary', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?d WHERE { ?y property:flag ?d . VALUES ( ?y ) { ( resource:Czech_Republic ) ( resource:People's_Republic_of_China ) ( resource:Hungary ) } . ?d rdf:type ontology:flag }
[]