Simple Question (Direct)
Simple Question
Q655913
P19
Q56061
USER
Which administrative territory was Raul Gardini born in ?
(Q655913,P19,c(Q56061))
action filter_type
action find
entity Q655913
relation P19
type Q56061
['Q655913', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q655913 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Raul Gardini
action filter_type
action find
entity Raul Gardini
relation place of birth
type administrative territorial entity
['Raul Gardini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Raul_Gardini property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q13364
SYSTEM
Ravenna
Q13364
(Q655913,P19,c(Q56061))
action filter_type
action find
entity Q655913
relation P19
type Q56061
Raul Gardini was born in [ANSWER]
['Q655913', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q655913 property:P19 ?n . ?n rdf:type ontology:Q56061 }
Ravenna
Raul Gardini was born in Ravenna
Ravenna
action filter_type
action find
entity Raul Gardini
relation place of birth
type administrative territorial entity
['Raul Gardini', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:Raul_Gardini property:place_of_birth ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13364
P276
Q1190554
USER
What are located at that administrative territory ?
(c(Q1190554),P276,Q13364)
action filter_type
action find_reverse
entity Q13364
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q13364']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q13364 . ?k rdf:type ontology:Q1190554 }
Ravenna
action filter_type
action find_reverse
entity Ravenna
relation location
type event
[{'concept': 'event'}, 'location', 'Ravenna']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Ravenna . ?k rdf:type ontology:event }
[]
event
Q3636595 Q4872170 Q1137980
SYSTEM
Battle of Ravenna, Battle of Ravenna, Battle of Ravenna
Q3636595 Q4872170 Q1137980
(c(Q1190554),P276,Q13364)
action filter_type
action find_reverse
entity Q13364
relation P276
type Q1190554
[ANSWERS] are located at that administrative territory
[{'concept': 'Q1190554'}, 'P276', 'Q13364']
SELECT DISTINCT ?k WHERE { ?k property:P276 resource:Q13364 . ?k rdf:type ontology:Q1190554 }
Battle of Ravenna Battle of Ravenna Battle of Ravenna
Battle of Ravenna, Battle of Ravenna and Battle of Ravenna are located at that administrative territory
Battle of Ravenna Battle of Ravenna Battle of Ravenna
action filter_type
action find_reverse
entity Ravenna
relation location
type event
[{'concept': 'event'}, 'location', 'Ravenna']
SELECT DISTINCT ?k WHERE { ?k property:location resource:Ravenna . ?k rdf:type ontology:event }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1191195
P291
Q56061 Q1002697 Q732577
USER
Which administrative territories are the publication regions of around the same number of periodical literatures or publications as Mold ?
(c(Q1002697)|c(Q732577),P291,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q1191195
relation P291
type Q1002697
type Q732577
[[{'concept': 'Q1002697'}, {'concept': 'Q732577'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { { ?c property:P291 ?o . ?o rdf:type ontology:Q56061 . ?c rdf:type ontology:Q732577 } UNION { ?c property:P291 ?o . ?o rdf:type ontology:Q56061 . ?c rdf:type ontology:Q1002697 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:P291 resource:Q1191195 . { { ?q rdf:type ontology:Q732577 } UNION { ?q rdf:type ontology:Q1002697 } } } } . FILTER ( ?r = ?h ) }
Mold
action approx
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action count
action filter_multi_types
action find_reverse
entity Mold
relation place of publication
type periodical literature
type publication
[[{'concept': 'periodical literature'}, {'concept': 'publication'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { { ?c property:place_of_publication ?o . ?o rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:publication } UNION { ?c property:place_of_publication ?o . ?o rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:periodical_literature } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:place_of_publication resource:Mold . { { ?q rdf:type ontology:publication } UNION { ?q rdf:type ontology:periodical_literature } } } } . FILTER ( ?r = ?h ) }
[]
administrative territorial entity periodical literature publication
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 Q1022 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 Q84 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(Q1002697)|c(Q732577),P291,c(Q56061))
action approx
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q1002697
action find_reverse_tuple_counts
relation P291
type Q56061
type Q732577
action count
action filter_multi_types
action find_reverse
entity Q1191195
relation P291
type Q1002697
type Q732577
[ANSWERS] are the publication regions of around the same number of periodical literatures or publications as Mold
[[{'concept': 'Q1002697'}, {'concept': 'Q732577'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { { ?c property:P291 ?o . ?o rdf:type ontology:Q56061 . ?c rdf:type ontology:Q732577 } UNION { ?c property:P291 ?o . ?o rdf:type ontology:Q56061 . ?c rdf:type ontology:Q1002697 } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:P291 resource:Q1191195 . { { ?q rdf:type ontology:Q732577 } UNION { ?q rdf:type ontology:Q1002697 } } } } . FILTER ( ?r = ?h ) }
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 Stuttgart 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 London 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 are the publication regions of around the same number of periodical literatures or publications as Mold
Prague Zürich Moscow
action approx
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type periodical literature
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type publication
action count
action filter_multi_types
action find_reverse
entity Mold
relation place of publication
type periodical literature
type publication
[[{'concept': 'periodical literature'}, {'concept': 'publication'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) ?o WHERE { { ?c property:place_of_publication ?o . ?o rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:publication } UNION { ?c property:place_of_publication ?o . ?o rdf:type ontology:administrative_territorial_entity . ?c rdf:type ontology:periodical_literature } } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) WHERE { ?q property:place_of_publication resource:Mold . { { ?q rdf:type ontology:publication } UNION { ?q rdf:type ontology:periodical_literature } } } } . FILTER ( ?r = ?h ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q43452 Q4872170
P276
Q56061
USER
Which administrative territories are the locations of Battle of Ravenna or Autonomous University of Barcelona ?
OR((Q4872170,P276,c(Q56061)), (Q43452,P276,c(Q56061)))
action filter_type
action union
action find
entity Q4872170
relation P276
action find
entity Q43452
relation P276
type Q56061
{'OR': [['Q4872170', 'P276', {'concept': 'Q56061'}], ['Q43452', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q43452 property:P276 ?k } UNION { resource:Q4872170 property:P276 ?k } } }
Autonomous University of Barcelona Battle of Ravenna
action filter_type
action union
action find
entity Battle of Ravenna
relation location
action find
entity Autonomous University of Barcelona
relation location
type administrative territorial entity
{'OR': [['Battle of Ravenna', 'location', {'concept': 'administrative territorial entity'}], ['Autonomous University of Barcelona', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Autonomous_University_of_Barcelona property:location ?k } UNION { resource:Battle_of_Ravenna property:location ?k } } }
[]
administrative territorial entity
Q1492 Q12258 Q13364
SYSTEM
Barcelona, Sabadell, Ravenna
Q1492 Q12258 Q13364
OR((Q4872170,P276,c(Q56061)), (Q43452,P276,c(Q56061)))
action filter_type
action union
action find
entity Q4872170
relation P276
action find
entity Q43452
relation P276
type Q56061
[ANSWERS] are the locations of Battle of Ravenna or Autonomous University of Barcelona
{'OR': [['Q4872170', 'P276', {'concept': 'Q56061'}], ['Q43452', 'P276', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:Q56061 . { { resource:Q43452 property:P276 ?k } UNION { resource:Q4872170 property:P276 ?k } } }
Barcelona Sabadell Ravenna
Barcelona, Sabadell and Ravenna are the locations of Battle of Ravenna or Autonomous University of Barcelona
Barcelona Sabadell Ravenna
action filter_type
action union
action find
entity Battle of Ravenna
relation location
action find
entity Autonomous University of Barcelona
relation location
type administrative territorial entity
{'OR': [['Battle of Ravenna', 'location', {'concept': 'administrative territorial entity'}], ['Autonomous University of Barcelona', 'location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?k WHERE { ?k rdf:type ontology:administrative_territorial_entity . { { resource:Autonomous_University_of_Barcelona property:location ?k } UNION { resource:Battle_of_Ravenna property:location ?k } } }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories have a shared border with that administrative territory ?
(Q13364,P47,c(Q15617994))
['Q13364', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q989843 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Ravenna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ravenna property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q13364
SYSTEM
Did you mean Ravenna ?
(Q1492,P47,c(Q15617994)) (Q12258,P47,c(Q15617994)) (Q13364,P47,c(Q15617994))
[ANSWER]
['Q1492', 'P47', {'concept': 'Q15617994'}] ['Q12258', 'P47', {'concept': 'Q15617994'}] ['Q13364', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q989843 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Ravenna ?
Ravenna
['Barcelona', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Sabadell', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Ravenna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ravenna property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q13364,P47,c(Q15617994))
['Q13364', 'P47', {'concept': 'Q15617994'}]
['Ravenna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
7
Q6662 Q52975 Q95090 Q52957 Q95097 Q99934 Q52953
(Q13364,P47,c(Q15617994))
[ANSWER]
['Q13364', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q989843 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Cesena Cervia Argenta, Emilia–Romagna Bagnacavallo Comacchio Bertinoro Alfonsine
7
['Ravenna', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Ravenna property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P840
Q56061 Q838948 Q2342494
USER
How many administrative territories are exactly 25 works of art or collectables set in ?
(c(Q838948)|c(Q2342494),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
value 25
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { FILTER ( ?b = 25 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?a WHERE { { ?y property:P840 ?a . ?y rdf:type ontology:Q838948 . ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q2342494 . ?y property:P840 ?a } } GROUP BY ?a } }
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
value 25
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { FILTER ( ?b = 25 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?a WHERE { { ?y property:narrative_location ?a . ?y rdf:type ontology:work_of_art . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:collectable . ?y property:narrative_location ?a } } GROUP BY ?a } }
[]
administrative territorial entity work of art collectable
SYSTEM
2
Q16555 Q1563
(c(Q838948)|c(Q2342494),P840,c(Q56061))
action count
action equal
action union
action find_reverse_tuple_counts
relation P840
type Q56061
type Q838948
action find_reverse_tuple_counts
relation P840
type Q56061
type Q2342494
value 25
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q2342494'}], 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { FILTER ( ?b = 25 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?a WHERE { { ?y property:P840 ?a . ?y rdf:type ontology:Q838948 . ?a rdf:type ontology:Q56061 } UNION { ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q2342494 . ?y property:P840 ?a } } GROUP BY ?a } }
Houston Havana
2
action count
action equal
action union
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type work of art
action find_reverse_tuple_counts
relation narrative location
type administrative territorial entity
type collectable
value 25
[[{'concept': 'work of art'}, {'concept': 'collectable'}], 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?s ) WHERE { FILTER ( ?b = 25 ) . { SELECT DISTINCT ( COUNT ( ?y ) AS ?b ) ?a WHERE { { ?y property:narrative_location ?a . ?y rdf:type ontology:work_of_art . ?a rdf:type ontology:administrative_territorial_entity } UNION { ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:collectable . ?y property:narrative_location ?a } } GROUP BY ?a } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P608
Q80071
USER
What was displayed at Moscow ?
(c(Q80071),P608,Q649)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[{'concept': 'Q80071'}, 'P608', 'Q649']
SELECT DISTINCT ?f WHERE { ?f property:P608 resource:Q649 . ?f rdf:type ontology:Q80071 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Moscow']
SELECT DISTINCT ?f WHERE { ?f property:exhibition_history resource:Moscow . ?f rdf:type ontology:symbol }
[]
symbol
Q2635667
SYSTEM
Cross of Saint Euphrosyne
Q2635667
(c(Q80071),P608,Q649)
action filter_type
action find_reverse
entity Q649
relation P608
type Q80071
[ANSWER] was displayed at Moscow
[{'concept': 'Q80071'}, 'P608', 'Q649']
SELECT DISTINCT ?f WHERE { ?f property:P608 resource:Q649 . ?f rdf:type ontology:Q80071 }
Cross of Saint Euphrosyne
Cross of Saint Euphrosyne was displayed at Moscow
Cross of Saint Euphrosyne
action filter_type
action find_reverse
entity Moscow
relation exhibition history
type symbol
[{'concept': 'symbol'}, 'exhibition history', 'Moscow']
SELECT DISTINCT ?f WHERE { ?f property:exhibition_history resource:Moscow . ?f rdf:type ontology:symbol }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q649
P194
Q1752346
USER
Which assembly is the legislative body for Moscow ?
(Q649,P194,c(Q1752346))
action filter_type
action find
entity Q649
relation P194
type Q1752346
['Q649', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?f WHERE { resource:Q649 property:P194 ?f . ?f rdf:type ontology:Q1752346 }
Moscow
action filter_type
action find
entity Moscow
relation legislative body
type assembly
['Moscow', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?f WHERE { resource:Moscow property:legislative_body ?f . ?f rdf:type ontology:assembly }
[]
assembly
Q2041767
SYSTEM
Moscow City Duma
Q2041767
(Q649,P194,c(Q1752346))
action filter_type
action find
entity Q649
relation P194
type Q1752346
[ANSWER] is the legislative body for Moscow
['Q649', 'P194', {'concept': 'Q1752346'}]
SELECT DISTINCT ?f WHERE { resource:Q649 property:P194 ?f . ?f rdf:type ontology:Q1752346 }
Moscow City Duma
Moscow City Duma is the legislative body for Moscow
Moscow City Duma
action filter_type
action find
entity Moscow
relation legislative body
type assembly
['Moscow', 'legislative body', {'concept': 'assembly'}]
SELECT DISTINCT ?f WHERE { resource:Moscow property:legislative_body ?f . ?f rdf:type ontology:assembly }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q649
P85
Q7725634
USER
Which literary work is the anthem for that administrative territory ?
(Q2041767,P85,c(Q7725634))
action filter_type
action find
entity Q649
relation P85
type Q7725634
['Q2041767', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q649 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Moscow
action filter_type
action find
entity Moscow
relation anthem
type literary work
['Moscow City Duma', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Moscow property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
literary work
Q2398452
SYSTEM
Moya Moskva
Q2398452
(Q2041767,P85,c(Q7725634))
action filter_type
action find
entity Q649
relation P85
type Q7725634
[ANSWER] is the anthem for that administrative territory
['Q2041767', 'P85', {'concept': 'Q7725634'}]
SELECT DISTINCT ?t WHERE { resource:Q649 property:P85 ?t . ?t rdf:type ontology:Q7725634 }
Moya Moskva
Moya Moskva is the anthem for that administrative territory
Moya Moskva
action filter_type
action find
entity Moscow
relation anthem
type literary work
['Moscow City Duma', 'anthem', {'concept': 'literary work'}]
SELECT DISTINCT ?t WHERE { resource:Moscow property:anthem ?t . ?t rdf:type ontology:literary_work }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q2398452 Q6084032
P676
Q502895
USER
Did Nadir Nadi Abalıoğlu pen the lyrics for that literary work ?
(Q2398452,P676,Q6084032)
action is_in
entity Q6084032
action find
entity Q2398452
relation P676
['Q2398452', 'P676', 'Q6084032']
ASK WHERE { resource:Q2398452 property:P676 resource:Q6084032 }
Moya Moskva Nadir Nadi Abalıoğlu
action is_in
entity Nadir Nadi Abalıoğlu
action find
entity Moya Moskva
relation lyrics by
['Moya Moskva', 'lyrics by', 'Nadir Nadi Abalıoğlu']
ASK WHERE { resource:Moya_Moskva property:lyrics_by resource:Nadir_Nadi_Abalıoğlu }
[]
common name
SYSTEM
NO
(Q2398452,P676,Q6084032)
action is_in
entity Q6084032
action find
entity Q2398452
relation P676
[ANSWER]
['Q2398452', 'P676', 'Q6084032']
ASK WHERE { resource:Q2398452 property:P676 resource:Q6084032 }
No
action is_in
entity Nadir Nadi Abalıoğlu
action find
entity Moya Moskva
relation lyrics by
['Moya Moskva', 'lyrics by', 'Nadir Nadi Abalıoğlu']
ASK WHERE { resource:Moya_Moskva property:lyrics_by resource:Nadir_Nadi_Abalıoğlu }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1445
Q7725634 Q386724
USER
Which works are recounted in around 2 literary works ?
(c(Q386724),P1445,c(Q7725634))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?z ) WHERE { ?h property:P1445 ?f . ?h rdf:type ontology:Q386724 . ?f rdf:type ontology:Q7725634 } GROUP BY ?h } . FILTER ( ?z = 2 ) }
action approx
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?z ) WHERE { ?h property:fictional_universe_described_in ?f . ?h rdf:type ontology:work . ?f rdf:type ontology:literary_work } GROUP BY ?h } . FILTER ( ?z = 2 ) }
[]
literary work work
Q384426
SYSTEM
Pirates of the Caribbean
Q384426
(c(Q386724),P1445,c(Q7725634))
action approx
action find_tuple_counts
relation P1445
type Q386724
type Q7725634
value 2
[ANSWER] is recounted in around 2 literary works
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q7725634'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?z ) WHERE { ?h property:P1445 ?f . ?h rdf:type ontology:Q386724 . ?f rdf:type ontology:Q7725634 } GROUP BY ?h } . FILTER ( ?z = 2 ) }
Pirates of the Caribbean
Pirates of the Caribbean is recounted in around 2 literary works
Pirates of the Caribbean
action approx
action find_tuple_counts
relation fictional universe described in
type work
type literary work
value 2
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'literary work'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?f ) AS ?z ) WHERE { ?h property:fictional_universe_described_in ?f . ?h rdf:type ontology:work . ?f rdf:type ontology:literary_work } GROUP BY ?h } . FILTER ( ?z = 2 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2659351
P1445
Q15416 Q386724
USER
How many television programs describe the fictional universe lesser number of works than Scared Shrekless ?
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_reverse_tuple_counts
relation P1445
type Q15416
type Q386724
action count
action filter_type
action find_reverse
entity Q2659351
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?q ) WHERE { ?f rdf:type ontology:Q15416 . ?a rdf:type ontology:Q386724 . ?a property:P1445 ?f } GROUP BY ?f } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P1445 resource:Q2659351 . ?x rdf:type ontology:Q386724 } } }
Scared Shrekless
action count
action less
action find_reverse_tuple_counts
relation fictional universe described in
type television program
type work
action count
action filter_type
action find_reverse
entity Scared Shrekless
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?q ) WHERE { ?f rdf:type ontology:television_program . ?a rdf:type ontology:work . ?a property:fictional_universe_described_in ?f } GROUP BY ?f } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:fictional_universe_described_in resource:Scared_Shrekless . ?x rdf:type ontology:work } } }
[]
television program work
SYSTEM
31
Q130585 Q210146 Q380519 Q15711398 Q3031713 Q3033709 Q156329 Q186219 Q194213 Q785430 Q239937 Q16862988 Q15924143 Q18844732 Q23572 Q437808 Q34316 Q18008936 Q3027966 Q215287 Q1077 Q11622 Q212156 Q187462 Q19863968 Q108774 Q2707472 Q16290 Q737343 Q1759586 Q552314
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_reverse_tuple_counts
relation P1445
type Q15416
type Q386724
action count
action filter_type
action find_reverse
entity Q2659351
relation P1445
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?q ) WHERE { ?f rdf:type ontology:Q15416 . ?a rdf:type ontology:Q386724 . ?a property:P1445 ?f } GROUP BY ?f } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:P1445 resource:Q2659351 . ?x rdf:type ontology:Q386724 } } }
Supernatural Babylon 5 Star Trek: Enterprise The Flash The Maxx Dofus : Aux trésors de Kerubim Star Trek: Voyager True Blood Stargate Universe Young Justice Pokémon Constantine Supernatural: Bloodlines Supergirl Game of Thrones Fullmetal Alchemist: Brotherhood Doctor Who Dr. Slump Dilbert Stargate Atlantis Star Trek: The Original Series Firefly Angel Stargate SG-1 Legends of Tomorrow Star Trek: Deep Space Nine Super Friends Star Trek: The Next Generation Crusade Roughnecks: Starship Troopers Chronicles Arrow
31
action count
action less
action find_reverse_tuple_counts
relation fictional universe described in
type television program
type work
action count
action filter_type
action find_reverse
entity Scared Shrekless
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?k ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?a ) AS ?q ) WHERE { ?f rdf:type ontology:television_program . ?a rdf:type ontology:work . ?a property:fictional_universe_described_in ?f } GROUP BY ?f } . FILTER ( ?q < ?u ) . { SELECT DISTINCT ( COUNT ( ?x ) AS ?u ) WHERE { ?x property:fictional_universe_described_in resource:Scared_Shrekless . ?x rdf:type ontology:work } } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q27120
P1445
Q15416 Q386724
USER
And how about Aladdin?
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_reverse_tuple_counts
relation P1445
type Q15416
type Q386724
action count
action filter_type
action find_reverse
entity Q27120
relation P1445
type Q386724
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P1445 ?t . ?t rdf:type ontology:Q15416 . ?e rdf:type ontology:Q386724 } GROUP BY ?t } . FILTER ( ?f < ?j ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c rdf:type ontology:Q386724 . ?c property:P1445 resource:Q27120 } } }
Aladdin
action count
action less
action find_reverse_tuple_counts
relation fictional universe described in
type television program
type work
action count
action filter_type
action find_reverse
entity Aladdin
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:fictional_universe_described_in ?t . ?t rdf:type ontology:television_program . ?e rdf:type ontology:work } GROUP BY ?t } . FILTER ( ?f < ?j ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c rdf:type ontology:work . ?c property:fictional_universe_described_in resource:Aladdin } } }
[]
television program work
SYSTEM
31
Q130585 Q210146 Q380519 Q15711398 Q3031713 Q3033709 Q156329 Q186219 Q194213 Q785430 Q239937 Q16862988 Q15924143 Q18844732 Q23572 Q437808 Q34316 Q18008936 Q3027966 Q215287 Q1077 Q11622 Q212156 Q187462 Q19863968 Q108774 Q2707472 Q16290 Q737343 Q1759586 Q552314
(c(Q386724),P1445,c(Q15416))
action count
action less
action find_reverse_tuple_counts
relation P1445
type Q15416
type Q386724
action count
action filter_type
action find_reverse
entity Q27120
relation P1445
type Q386724
[ANSWER]
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P1445 ?t . ?t rdf:type ontology:Q15416 . ?e rdf:type ontology:Q386724 } GROUP BY ?t } . FILTER ( ?f < ?j ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c rdf:type ontology:Q386724 . ?c property:P1445 resource:Q27120 } } }
Supernatural Babylon 5 Star Trek: Enterprise The Flash The Maxx Dofus : Aux trésors de Kerubim Star Trek: Voyager True Blood Stargate Universe Young Justice Pokémon Constantine Supernatural: Bloodlines Supergirl Game of Thrones Fullmetal Alchemist: Brotherhood Doctor Who Dr. Slump Dilbert Stargate Atlantis Star Trek: The Original Series Firefly Angel Stargate SG-1 Legends of Tomorrow Star Trek: Deep Space Nine Super Friends Star Trek: The Next Generation Crusade Roughnecks: Starship Troopers Chronicles Arrow
31
action count
action less
action find_reverse_tuple_counts
relation fictional universe described in
type television program
type work
action count
action filter_type
action find_reverse
entity Aladdin
relation fictional universe described in
type work
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?t ) AS ?l ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:fictional_universe_described_in ?t . ?t rdf:type ontology:television_program . ?e rdf:type ontology:work } GROUP BY ?t } . FILTER ( ?f < ?j ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?j ) WHERE { ?c rdf:type ontology:work . ?c property:fictional_universe_described_in resource:Aladdin } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1492
P190
Q56061
USER
How many administrative territories are twin towns of Barcelona ?
(Q1492,P190,c(Q56061))
action count
action filter_type
action find
entity Q1492
relation P190
type Q56061
['Q1492', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1492 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Barcelona
action count
action filter_type
action find
entity Barcelona
relation sister city
type administrative territorial entity
['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Barcelona property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
21
Q8717 Q8686 Q12892 Q365 Q100 Q52535 Q42053 Q340 Q6506 Q34820 Q1524 Q1563 Q48320 Q33935 Q3561 Q85 Q47492 Q174 Q8678 Q33986 Q6441
(Q1492,P190,c(Q56061))
action count
action filter_type
action find
entity Q1492
relation P190
type Q56061
[ANSWER]
['Q1492', 'P190', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Q1492 property:P190 ?w . ?w rdf:type ontology:Q56061 }
Seville Shanghai Antwerp Cologne Boston Rosario Isfahan Montreal Varna Santo Domingo Athens Havana Kōbe Tel Aviv Algiers Cairo Gaza City São Paulo Rio de Janeiro Valparaíso Montpellier
21
action count
action filter_type
action find
entity Barcelona
relation sister city
type administrative territorial entity
['Barcelona', 'sister city', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?e ) WHERE { resource:Barcelona property:sister_city ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]