Simple Question (Direct)
Simple Question
Q6035813
P607
Q198
USER
What was was Innis P. Swift a part of ?
(Q6035813,P607,c(Q198))
action filter_type
action find
entity Q6035813
relation P607
type Q198
['Q6035813', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q198 . resource:Q6035813 property:P607 ?z }
Innis P. Swift
action filter_type
action find
entity Innis P. Swift
relation conflict
type war
['Innis P. Swift', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:war . resource:Innis_P._Swift property:conflict ?z }
[]
war
Q362
SYSTEM
World War II
Q362
(Q6035813,P607,c(Q198))
action filter_type
action find
entity Q6035813
relation P607
type Q198
[ANSWER] was Innis P. Swift a part of
['Q6035813', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:Q198 . resource:Q6035813 property:P607 ?z }
World War II
World War II was Innis P. Swift a part of
World War II
action filter_type
action find
entity Innis P. Swift
relation conflict
type war
['Innis P. Swift', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?z WHERE { ?z rdf:type ontology:war . resource:Innis_P._Swift property:conflict ?z }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6035813
P410
Q4189293
USER
Which title was the military rank held by that person ?
(Q362,P410,c(Q4189293))
action filter_type
action find
entity Q6035813
relation P410
type Q4189293
['Q362', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?d WHERE { resource:Q6035813 property:P410 ?d . ?d rdf:type ontology:Q4189293 }
Innis P. Swift
action filter_type
action find
entity Innis P. Swift
relation military rank
type title
['World War II', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?d WHERE { resource:Innis_P._Swift property:military_rank ?d . ?d rdf:type ontology:title }
[]
title
Q157148
SYSTEM
major general
Q157148
(Q362,P410,c(Q4189293))
action filter_type
action find
entity Q6035813
relation P410
type Q4189293
Rank [ANSWER] was the military rank held by that person
['Q362', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?d WHERE { resource:Q6035813 property:P410 ?d . ?d rdf:type ontology:Q4189293 }
major general
Rank major general was the military rank held by that person
major general
action filter_type
action find
entity Innis P. Swift
relation military rank
type title
['World War II', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?d WHERE { resource:Innis_P._Swift property:military_rank ?d . ?d rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6035813
P166
Q1788716
USER
What was awarded to that person ?
(Q157148,P166,c(Q1788716))
action filter_type
action find
entity Q6035813
relation P166
type Q1788716
['Q157148', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1788716 . resource:Q6035813 property:P166 ?q }
Innis P. Swift
action filter_type
action find
entity Innis P. Swift
relation award received
type military decoration
['major general', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:military_decoration . resource:Innis_P._Swift property:award_received ?q }
[]
military decoration
Q17231624
SYSTEM
legionnaire of Legion of Merit
Q17231624
(Q157148,P166,c(Q1788716))
action filter_type
action find
entity Q6035813
relation P166
type Q1788716
The [ANSWER] was awarded to that person
['Q157148', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q1788716 . resource:Q6035813 property:P166 ?q }
legionnaire of Legion of Merit
The legionnaire of Legion of Merit was awarded to that person
legionnaire of Legion of Merit
action filter_type
action find
entity Innis P. Swift
relation award received
type military decoration
['major general', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:military_decoration . resource:Innis_P._Swift property:award_received ?q }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q6035813
P241
Q781132
USER
How many military branches did Innis P. Swift belong to ?
(Q6035813,P241,c(Q781132))
action count
action filter_type
action find
entity Q6035813
relation P241
type Q781132
['Q6035813', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:Q781132 . resource:Q6035813 property:P241 ?j }
Innis P. Swift
action count
action filter_type
action find
entity Innis P. Swift
relation military branch
type military branch
['Innis P. Swift', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:military_branch . resource:Innis_P._Swift property:military_branch ?j }
[]
military branch
SYSTEM
1
Q9212
(Q6035813,P241,c(Q781132))
action count
action filter_type
action find
entity Q6035813
relation P241
type Q781132
[ANSWER]
['Q6035813', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:Q781132 . resource:Q6035813 property:P241 ?j }
United States Army
1
action count
action filter_type
action find
entity Innis P. Swift
relation military branch
type military branch
['Innis P. Swift', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?x ) WHERE { ?j rdf:type ontology:military_branch . resource:Innis_P._Swift property:military_branch ?j }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6035813
P119
Q39614
USER
Which cemetery is the tomb of Innis P. Swift ?
(Q6035813,P119,c(Q39614))
action filter_type
action find
entity Q6035813
relation P119
type Q39614
['Q6035813', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?p WHERE { resource:Q6035813 property:P119 ?p . ?p rdf:type ontology:Q39614 }
Innis P. Swift
action filter_type
action find
entity Innis P. Swift
relation place of burial
type cemetery
['Innis P. Swift', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?p WHERE { resource:Innis_P._Swift property:place_of_burial ?p . ?p rdf:type ontology:cemetery }
[]
cemetery
Q5471971
SYSTEM
Fort Sam Houston National Cemetery
Q5471971
(Q6035813,P119,c(Q39614))
action filter_type
action find
entity Q6035813
relation P119
type Q39614
[ANSWER] is the tomb of Innis P. Swift
['Q6035813', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?p WHERE { resource:Q6035813 property:P119 ?p . ?p rdf:type ontology:Q39614 }
Fort Sam Houston National Cemetery
Fort Sam Houston National Cemetery is the tomb of Innis P. Swift
Fort Sam Houston National Cemetery
action filter_type
action find
entity Innis P. Swift
relation place of burial
type cemetery
['Innis P. Swift', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?p WHERE { resource:Innis_P._Swift property:place_of_burial ?p . ?p rdf:type ontology:cemetery }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q16504876
Q39614
USER
And also tell me about Eugène Delesalle?
(Q16504876,P119,c(Q39614))
action filter_type
action find
entity Q16504876
relation P119
type Q39614
['Q16504876', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?c WHERE { resource:Q16504876 property:P119 ?c . ?c rdf:type ontology:Q39614 }
Eugène Delesalle
action filter_type
action find
entity Eugène Delesalle
relation place of burial
type cemetery
['Eugène Delesalle', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?c WHERE { resource:Eugène_Delesalle property:place_of_burial ?c . ?c rdf:type ontology:cemetery }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q16504876,P119,c(Q39614))
action filter_type
action find
entity Q16504876
relation P119
type Q39614
[ANSWER]
['Q16504876', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?c WHERE { resource:Q16504876 property:P119 ?c . ?c rdf:type ontology:Q39614 }
Père Lachaise Cemetery
Père Lachaise Cemetery
action filter_type
action find
entity Eugène Delesalle
relation place of burial
type cemetery
['Eugène Delesalle', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?c WHERE { resource:Eugène_Delesalle property:place_of_burial ?c . ?c rdf:type ontology:cemetery }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21179 Q6035813
P190 P20
Q56061
USER
Which administrative territories did Innis P. Swift die or are partner towns of Sønderborg ?
OR((Q6035813,P20,c(Q56061)), (Q21179,P190,c(Q56061)))
action filter_type
action union
action find
entity Q6035813
relation P20
action find
entity Q21179
relation P190
type Q56061
{'OR': [['Q6035813', 'P20', {'concept': 'Q56061'}], ['Q21179', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6035813 property:P20 ?v } UNION { resource:Q21179 property:P190 ?v } } . ?v rdf:type ontology:Q56061 }
Sønderborg Innis P. Swift
action filter_type
action union
action find
entity Innis P. Swift
relation place of death
action find
entity Sønderborg
relation sister city
type administrative territorial entity
{'OR': [['Innis P. Swift', 'place of death', {'concept': 'administrative territorial entity'}], ['Sønderborg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Innis_P._Swift property:place_of_death ?v } UNION { resource:Sønderborg property:sister_city ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q588905 Q975 Q26476 Q180233
SYSTEM
Finsterwalde, San Antonio, Sundsvall, Pori
Q588905 Q975 Q26476 Q180233
OR((Q6035813,P20,c(Q56061)), (Q21179,P190,c(Q56061)))
action filter_type
action union
action find
entity Q6035813
relation P20
action find
entity Q21179
relation P190
type Q56061
[ANSWERS] did Innis P. Swift die or are partner towns of Sønderborg
{'OR': [['Q6035813', 'P20', {'concept': 'Q56061'}], ['Q21179', 'P190', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Q6035813 property:P20 ?v } UNION { resource:Q21179 property:P190 ?v } } . ?v rdf:type ontology:Q56061 }
Finsterwalde San Antonio Sundsvall Pori
Finsterwalde, San Antonio, Sundsvall and Pori did Innis P. Swift die or are partner towns of Sønderborg
Finsterwalde San Antonio Sundsvall Pori
action filter_type
action union
action find
entity Innis P. Swift
relation place of death
action find
entity Sønderborg
relation sister city
type administrative territorial entity
{'OR': [['Innis P. Swift', 'place of death', {'concept': 'administrative territorial entity'}], ['Sønderborg', 'sister city', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?v WHERE { { { resource:Innis_P._Swift property:place_of_death ?v } UNION { resource:Sønderborg property:sister_city ?v } } . ?v rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q736775
P291
Q56061 Q571 Q1002697
USER
Which administrative territories were approximately the same number of books or periodical literatures published as Toronto ?
(c(Q571)|c(Q1002697),P291,c(Q56061))
action approx
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 Q736775
relation P291
type Q571
type Q1002697
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?o WHERE { VALUES ( ?h ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?z rdf:type ?h } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P291 resource:Q736775 . { VALUES ( ?d ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?x rdf:type ?d } } } . FILTER ( ?q = ?a ) }
Toronto
action approx
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 Toronto
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?o WHERE { VALUES ( ?h ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?z rdf:type ?h } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:place_of_publication resource:Toronto . { VALUES ( ?d ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?x rdf:type ?d } } } . FILTER ( ?q = ?a ) }
[]
administrative territorial entity book periodical literature
Q1085 Q72 Q649
SYSTEM
Prague, Zürich, Moscow
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 Q490 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 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 Q18125 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 Q649 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 Q1085
(c(Q571)|c(Q1002697),P291,c(Q56061))
action approx
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 Q736775
relation P291
type Q571
type Q1002697
[ANSWERS] were approximately the same number of books or periodical literatures published as Toronto
[[{'concept': 'Q571'}, {'concept': 'Q1002697'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?o WHERE { VALUES ( ?h ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?z rdf:type ?h } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:P291 resource:Q736775 . { VALUES ( ?d ) { ( ontology:Q571 ) ( ontology:Q1002697 ) } . ?x rdf:type ?d } } } . FILTER ( ?q = ?a ) }
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 Milan 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 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 Manchester 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 Moscow 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 Prague
Prague, Zürich and Moscow were approximately the same number of books or periodical literatures published as Toronto
Prague Zürich Moscow
action approx
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 Toronto
relation place of publication
type book
type periodical literature
[[{'concept': 'book'}, {'concept': 'periodical literature'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?q ) ?o WHERE { VALUES ( ?h ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?z rdf:type ?h } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?a ) WHERE { ?x property:place_of_publication resource:Toronto . { VALUES ( ?d ) { ( ontology:book ) ( ontology:periodical_literature ) } . ?x rdf:type ?d } } } . FILTER ( ?q = ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q461422 Q6035813
P20
Q56061
USER
Which administrative territories did Innis P. Swift or Ieke van den Burg expire ?
OR((Q6035813,P20,c(Q56061)), (Q461422,P20,c(Q56061)))
action filter_type
action union
action find
entity Q6035813
relation P20
action find
entity Q461422
relation P20
type Q56061
{'OR': [['Q6035813', 'P20', {'concept': 'Q56061'}], ['Q461422', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . { { resource:Q6035813 property:P20 ?t } UNION { resource:Q461422 property:P20 ?t } } }
Ieke van den Burg Innis P. Swift
action filter_type
action union
action find
entity Innis P. Swift
relation place of death
action find
entity Ieke van den Burg
relation place of death
type administrative territorial entity
{'OR': [['Innis P. Swift', 'place of death', {'concept': 'administrative territorial entity'}], ['Ieke van den Burg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . { { resource:Innis_P._Swift property:place_of_death ?t } UNION { resource:Ieke_van_den_Burg property:place_of_death ?t } } }
[]
administrative territorial entity
Q727 Q975
SYSTEM
Amsterdam, San Antonio
Q727 Q975
OR((Q6035813,P20,c(Q56061)), (Q461422,P20,c(Q56061)))
action filter_type
action union
action find
entity Q6035813
relation P20
action find
entity Q461422
relation P20
type Q56061
[ANSWERS] did Innis P. Swift or Ieke van den Burg expire
{'OR': [['Q6035813', 'P20', {'concept': 'Q56061'}], ['Q461422', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . { { resource:Q6035813 property:P20 ?t } UNION { resource:Q461422 property:P20 ?t } } }
Amsterdam San Antonio
Amsterdam and San Antonio did Innis P. Swift or Ieke van den Burg expire
Amsterdam San Antonio
action filter_type
action union
action find
entity Innis P. Swift
relation place of death
action find
entity Ieke van den Burg
relation place of death
type administrative territorial entity
{'OR': [['Innis P. Swift', 'place of death', {'concept': 'administrative territorial entity'}], ['Ieke van den Burg', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . { { resource:Innis_P._Swift property:place_of_death ?t } UNION { resource:Ieke_van_den_Burg property:place_of_death ?t } } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6450598 Q975
P19 P190
Q56061
USER
Which administrative territories are twin cities of San Antonio or are the places of birth of Ky Hurst ?
OR((Q975,P190,c(Q56061)), (Q6450598,P19,c(Q56061)))
action filter_type
action union
action find
entity Q975
relation P190
action find
entity Q6450598
relation P19
type Q56061
{'OR': [['Q975', 'P190', {'concept': 'Q56061'}], ['Q6450598', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q6450598 property:P19 ?i } UNION { resource:Q975 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Ky Hurst San Antonio
action filter_type
action union
action find
entity San Antonio
relation sister city
action find
entity Ky Hurst
relation place of birth
type administrative territorial entity
{'OR': [['San Antonio', 'sister city', {'concept': 'administrative territorial entity'}], ['Ky Hurst', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Ky_Hurst property:place_of_birth ?i } UNION { resource:San_Antonio property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q14328 Q11974 Q1352 Q181557 Q1343166
SYSTEM
Santa Cruz de Tenerife, Las Palmas de Gran Canaria, Chennai, Kaohsiung City, Nambour
Q14328 Q11974 Q1352 Q181557 Q1343166
OR((Q975,P190,c(Q56061)), (Q6450598,P19,c(Q56061)))
action filter_type
action union
action find
entity Q975
relation P190
action find
entity Q6450598
relation P19
type Q56061
[ANSWERS] are twin cities of San Antonio or are the places of birth of Ky Hurst
{'OR': [['Q975', 'P190', {'concept': 'Q56061'}], ['Q6450598', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q6450598 property:P19 ?i } UNION { resource:Q975 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Santa Cruz de Tenerife Las Palmas de Gran Canaria Chennai Kaohsiung City Nambour
Santa Cruz de Tenerife, Las Palmas de Gran Canaria, Chennai, Kaohsiung City and Nambour are twin cities of San Antonio or are the places of birth of Ky Hurst
Santa Cruz de Tenerife Las Palmas de Gran Canaria Chennai Kaohsiung City Nambour
action filter_type
action union
action find
entity San Antonio
relation sister city
action find
entity Ky Hurst
relation place of birth
type administrative territorial entity
{'OR': [['San Antonio', 'sister city', {'concept': 'administrative territorial entity'}], ['Ky Hurst', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Ky_Hurst property:place_of_birth ?i } UNION { resource:San_Antonio property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]