Simple Question (Direct)
Simple Question
Q4475048
P21
Q290
USER
Which sex does Aleksandr Ulyanov possess ?
(Q4475048,P21,c(Q290))
action filter_type
action find
entity Q4475048
relation P21
type Q290
['Q4475048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q4475048 property:P21 ?t . ?t rdf:type ontology:Q290 }
Aleksandr Ulyanov
action filter_type
action find
entity Aleksandr Ulyanov
relation gender
type sex
['Aleksandr Ulyanov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Aleksandr_Ulyanov property:gender ?t . ?t rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4475048,P21,c(Q290))
action filter_type
action find
entity Q4475048
relation P21
type Q290
Aleksandr Ulyanov possesses a [ANSWER]
['Q4475048', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?t WHERE { resource:Q4475048 property:P21 ?t . ?t rdf:type ontology:Q290 }
male
Aleksandr Ulyanov possesses a male
male
action filter_type
action find
entity Aleksandr Ulyanov
relation gender
type sex
['Aleksandr Ulyanov', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?t WHERE { resource:Aleksandr_Ulyanov property:gender ?t . ?t rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4475048
P20
Q56061
USER
Where did that person die ?
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q4475048
relation P20
type Q56061
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q4475048 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Aleksandr Ulyanov
action filter_type
action find
entity Aleksandr Ulyanov
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Aleksandr_Ulyanov property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1895
SYSTEM
Petrozavodsk
Q1895
(Q6581097,P20,c(Q56061))
action filter_type
action find
entity Q4475048
relation P20
type Q56061
That person died in [ANSWER]
['Q6581097', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { resource:Q4475048 property:P20 ?g . ?g rdf:type ontology:Q56061 }
Petrozavodsk
That person died in Petrozavodsk
Petrozavodsk
action filter_type
action find
entity Aleksandr Ulyanov
relation place of death
type administrative territorial entity
['male', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { resource:Aleksandr_Ulyanov property:place_of_death ?g . ?g rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1348
P291
Q56061 Q11032 Q571
USER
How many administrative territories are the places of publication of less number of newspapers and books than Kolkata ?
(c(Q11032)|c(Q571),P291,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1348
relation P291
type Q11032
type Q571
[[{'concept': 'Q11032'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?a WHERE { { ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q11032 . ?y property:P291 ?a } UNION { ?y property:P291 ?a . ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q571 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P291 resource:Q1348 . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11032 ) ( ontology:Q571 ) } } } } . FILTER ( ?q < ?d ) }
Kolkata
action count
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Kolkata
relation place of publication
type newspaper
type book
[[{'concept': 'newspaper'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:newspaper . ?y property:place_of_publication ?a } UNION { ?y property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:book } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:place_of_publication resource:Kolkata . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:newspaper ) ( ontology:book ) } } } } . FILTER ( ?q < ?d ) }
[]
administrative territorial entity newspaper book
SYSTEM
214
Q807 Q2536016 Q27918 Q736775 Q2035368 Q38511 Q3711 Q130191 Q203619 Q393 Q25286 Q1544563 Q3808 Q3150 Q484678 Q11974 Q151920 Q13375 Q36378 Q4093 Q2560090 Q10305 Q3404679 Q987 Q23051 Q2656 Q1289 Q4581188 Q8851 Q10690 Q25748 Q12155 Q323801 Q15682 Q15684 Q170497 Q41876 Q749 Q99151 Q39561 Q48329 Q3992 Q2132 Q7880 Q1930 Q949651 Q81046 Q5831 Q22889 Q12892 Q132572 Q12411 Q1718 Q43631 Q11125 Q8810 Q15283655 Q4713350 Q428829 Q1335 Q1895 Q3400328 Q14323 Q14325 Q484799 Q576110 Q5083 Q1524 Q1489 Q2020203 Q406 Q234178 Q887 Q576165 Q5465 Q2141 Q54217 Q2814 Q15093 Q162279 Q17151 Q1490 Q1191195 Q102217 Q237 Q239 Q16559 Q16554 Q16557 Q486306 Q8686 Q994 Q1513 Q1296 Q1563 Q170263 Q87 Q40269 Q2081145 Q1024911 Q193478 Q1741 Q191133 Q11959 Q35493 Q538915 Q78 Q37100 Q38022 Q1235510 Q15678 Q49241 Q3183 Q172157 Q1781 Q33935 Q582121 Q1861 Q14314 Q15090 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 Q49179 Q735583 Q11967 Q1729 Q159232 Q3395358 Q5818 Q1867 Q204382 Q269 Q27393 Q771986 Q49229 Q79990 Q493794 Q6537 Q2391194 Q59169 Q669171 Q204720 Q206988 Q3012 Q15699 Q485329 Q15695 Q985271 Q28848 Q15088 Q3366952 Q203263 Q213898 Q8757 Q178277 Q883 Q41262 Q6441 Q125080 Q12303 Q156990 Q81137 Q40840 Q281839 Q485172 Q26793 Q3426 Q10686 Q211020 Q181854 Q648 Q487786 Q12233 Q172 Q646620 Q720627 Q13972 Q215277 Q129610 Q179385 Q29303 Q628667 Q127159 Q14336 Q34647
(c(Q11032)|c(Q571),P291,c(Q56061))
action count
action less
action union
action find_reverse_tuple_counts
relation P291
type Q56061
type Q11032
action find_reverse_tuple_counts
relation P291
type Q56061
type Q571
action count
action filter_multi_types
action find_reverse
entity Q1348
relation P291
type Q11032
type Q571
[ANSWER]
[[{'concept': 'Q11032'}, {'concept': 'Q571'}], 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?a WHERE { { ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q11032 . ?y property:P291 ?a } UNION { ?y property:P291 ?a . ?a rdf:type ontology:Q56061 . ?y rdf:type ontology:Q571 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:P291 resource:Q1348 . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:Q11032 ) ( ontology:Q571 ) } } } } . FILTER ( ?q < ?d ) }
Lausanne Crickhowell Bad Rappenau Toronto Tremadog Turku Belgrade Norwich Kemi Szczecin Uppsala Hellerup Yaoundé Jena Berkeley Las Palmas de Gran Canaria Tiberias Pisa Fribourg Glasgow Athol Zaragoza Crumlin New Delhi Swansea Palermo Grenoble Straume Málaga Cardiff Gävle Soria Nampula Cádiz Segovia Gloucester Reims Groningen Ourense Burbank Mariehamn Liège Victoria Toulouse Ottawa Wilmington Charleroi Melilla Bath Antwerp Tiraspol Pontevedra Düsseldorf Leiden Lugo Granada Elverum Alcones Caernarfon Montevideo Petrozavodsk St Athan Mérida Logroño Marbella Nauvoo Seattle Athens Mexico City Rhyl Istanbul Bangor Yekaterinburg Warsaw Cape Town Halifax Norwalk Halle (Saale) Ciudad Real Kuopio Thessaloniki Tokyo Mold Vitebsk Vatican City Brussels Austin Denver Dallas Pensacola Shanghai Tbilisi Nagpur Ghent Havana Chester Alexandria Porto Alegre Milborne Port Welshpool Buda Vienna Fátima Alicante Almaty Mjölby Basel Auckland St. Louis Dolgellau Cáceres Lexington Perth Winchester Budapest Tel Aviv Bradenton Bangkok Santiago de Compostela Lleida 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 Worcester Ylivieska Huesca Erfurt Santa Cruz Kidwelly Córdoba Taipei Kouvola Tashkent Herning Chepstow Durham Christchurch Dubuque Vicenza Saint-Idesbald Mo i Rana Newtown Hereford Cheltenham Ulm León Ferrol Salamanca The Dalles Saint Paul Tarragona Alta Athens Preveza A Coruña Montvale Novosibirsk Nottingham Montpellier Vaasa Jerez de la Frontera Monmouth Olomouc Tampere Englewood Cliffs, New Jersey Ann Arbor Bergen Voronezh Belfast Imatra Lappeenranta Lille Orihuela Santander Toronto Estella-Lizarra Kanhangad Tartu Jaffna Galway Greenwich Canterbury Spangenberg Bletchley Teruel Johannesburg
214
action count
action less
action union
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type newspaper
action find_reverse_tuple_counts
relation place of publication
type administrative territorial entity
type book
action count
action filter_multi_types
action find_reverse
entity Kolkata
relation place of publication
type newspaper
type book
[[{'concept': 'newspaper'}, {'concept': 'book'}], 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?a ) AS ?l ) WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) ?a WHERE { { ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:newspaper . ?y property:place_of_publication ?a } UNION { ?y property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:book } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?d ) WHERE { ?i property:place_of_publication resource:Kolkata . { ?i rdf:type ?j . VALUES ( ?j ) { ( ontology:newspaper ) ( ontology:book ) } } } } . FILTER ( ?q < ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1895
P36
Q13220204
USER
Which administrative country subdivision has Petrozavodsk as its capital ?
(c(Q13220204),P36,Q1895)
action filter_type
action find_reverse
entity Q1895
relation P36
type Q13220204
[{'concept': 'Q13220204'}, 'P36', 'Q1895']
SELECT DISTINCT ?p WHERE { ?p property:P36 resource:Q1895 . ?p rdf:type ontology:Q13220204 }
Petrozavodsk
action filter_type
action find_reverse
entity Petrozavodsk
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Petrozavodsk']
SELECT DISTINCT ?p WHERE { ?p property:capital resource:Petrozavodsk . ?p rdf:type ontology:second-level_administrative_country_subdivision }
[]
second-level administrative country subdivision
Q649144
SYSTEM
Karelian Autonomous Soviet Socialist Republic
Q649144
(c(Q13220204),P36,Q1895)
action filter_type
action find_reverse
entity Q1895
relation P36
type Q13220204
[ANSWER] has Petrozavodsk as its capital
[{'concept': 'Q13220204'}, 'P36', 'Q1895']
SELECT DISTINCT ?p WHERE { ?p property:P36 resource:Q1895 . ?p rdf:type ontology:Q13220204 }
Karelian Autonomous Soviet Socialist Republic
Karelian Autonomous Soviet Socialist Republic has Petrozavodsk as its capital
Karelian Autonomous Soviet Socialist Republic
action filter_type
action find_reverse
entity Petrozavodsk
relation capital
type second-level administrative country subdivision
[{'concept': 'second-level administrative country subdivision'}, 'capital', 'Petrozavodsk']
SELECT DISTINCT ?p WHERE { ?p property:capital resource:Petrozavodsk . ?p rdf:type ontology:second-level_administrative_country_subdivision }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1895
P931
Q62447
USER
What city is served by that administrative territory ?
(c(Q62447),P931,Q649144)
action filter_type
action find_reverse
entity Q1895
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q649144']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q1895 . ?w rdf:type ontology:Q62447 }
Petrozavodsk
action filter_type
action find_reverse
entity Petrozavodsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Karelian Autonomous Soviet Socialist Republic']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Petrozavodsk . ?w rdf:type ontology:aerodrome }
[]
aerodrome
Q2545143
SYSTEM
Petrozavodsk Airport
Q2545143
(c(Q62447),P931,Q649144)
action filter_type
action find_reverse
entity Q1895
relation P931
type Q62447
Airport [ANSWER] is served by that administrative territory
[{'concept': 'Q62447'}, 'P931', 'Q649144']
SELECT DISTINCT ?w WHERE { ?w property:P931 resource:Q1895 . ?w rdf:type ontology:Q62447 }
Petrozavodsk Airport
Airport Petrozavodsk Airport is served by that administrative territory
Petrozavodsk Airport
action filter_type
action find_reverse
entity Petrozavodsk
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Karelian Autonomous Soviet Socialist Republic']
SELECT DISTINCT ?w WHERE { ?w property:place_served_by_airport resource:Petrozavodsk . ?w rdf:type ontology:aerodrome }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q984377 Q1895
P931
Q62447
USER
Or Paducah?
OR((c(Q62447),P931,Q1895), (c(Q62447),P931,Q984377))
action filter_type
action union
action find_reverse
entity Q1895
relation P931
action find_reverse
entity Q984377
relation P931
type Q62447
{'OR': [[{'concept': 'Q62447'}, 'P931', 'Q1895'], [{'concept': 'Q62447'}, 'P931', 'Q984377']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P931 resource:Q1895 } UNION { ?v property:P931 resource:Q984377 } } . ?v rdf:type ontology:Q62447 }
Paducah Petrozavodsk
action filter_type
action union
action find_reverse
entity Petrozavodsk
relation place served by airport
action find_reverse
entity Paducah
relation place served by airport
type aerodrome
{'OR': [[{'concept': 'aerodrome'}, 'place served by airport', 'Petrozavodsk'], [{'concept': 'aerodrome'}, 'place served by airport', 'Paducah']]}
SELECT DISTINCT ?v WHERE { { { ?v property:place_served_by_airport resource:Petrozavodsk } UNION { ?v property:place_served_by_airport resource:Paducah } } . ?v rdf:type ontology:aerodrome }
[]
aerodrome
Q2785389 Q2545143
SYSTEM
Barkley Regional Airport, Petrozavodsk Airport
Q2785389 Q2545143
OR((c(Q62447),P931,Q1895), (c(Q62447),P931,Q984377))
action filter_type
action union
action find_reverse
entity Q1895
relation P931
action find_reverse
entity Q984377
relation P931
type Q62447
[ANSWERS]
{'OR': [[{'concept': 'Q62447'}, 'P931', 'Q1895'], [{'concept': 'Q62447'}, 'P931', 'Q984377']]}
SELECT DISTINCT ?v WHERE { { { ?v property:P931 resource:Q1895 } UNION { ?v property:P931 resource:Q984377 } } . ?v rdf:type ontology:Q62447 }
Barkley Regional Airport Petrozavodsk Airport
Barkley Regional Airport Petrozavodsk Airport
action filter_type
action union
action find_reverse
entity Petrozavodsk
relation place served by airport
action find_reverse
entity Paducah
relation place served by airport
type aerodrome
{'OR': [[{'concept': 'aerodrome'}, 'place served by airport', 'Petrozavodsk'], [{'concept': 'aerodrome'}, 'place served by airport', 'Paducah']]}
SELECT DISTINCT ?v WHERE { { { ?v property:place_served_by_airport resource:Petrozavodsk } UNION { ?v property:place_served_by_airport resource:Paducah } } . ?v rdf:type ontology:aerodrome }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6842770 Q4475048
P27 P495
Q15617994
USER
Which administrative territories are the countries of citizenship of Aleksandr Ulyanov or are the origins of Midnight Rider ?
OR((Q4475048,P27,c(Q15617994)), (Q6842770,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4475048
relation P27
action find
entity Q6842770
relation P495
type Q15617994
{'OR': [['Q4475048', 'P27', {'concept': 'Q15617994'}], ['Q6842770', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q4475048 property:P27 ?d } UNION { resource:Q6842770 property:P495 ?d } } }
Midnight Rider Aleksandr Ulyanov
action filter_type
action union
action find
entity Aleksandr Ulyanov
relation country of citizenship
action find
entity Midnight Rider
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Aleksandr Ulyanov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Midnight Rider', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Aleksandr_Ulyanov property:country_of_citizenship ?d } UNION { resource:Midnight_Rider property:country_of_origin ?d } } }
[]
designation for an administrative territorial entity
Q30 Q159
SYSTEM
United States of America, Russia
Q30 Q159
OR((Q4475048,P27,c(Q15617994)), (Q6842770,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q4475048
relation P27
action find
entity Q6842770
relation P495
type Q15617994
[ANSWERS] are the countries of citizenship of Aleksandr Ulyanov or are the origins of Midnight Rider
{'OR': [['Q4475048', 'P27', {'concept': 'Q15617994'}], ['Q6842770', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q15617994 . { { resource:Q4475048 property:P27 ?d } UNION { resource:Q6842770 property:P495 ?d } } }
United States of America Russia
United States of America and Russia are the countries of citizenship of Aleksandr Ulyanov or are the origins of Midnight Rider
United States of America Russia
action filter_type
action union
action find
entity Aleksandr Ulyanov
relation country of citizenship
action find
entity Midnight Rider
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Aleksandr Ulyanov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Midnight Rider', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Aleksandr_Ulyanov property:country_of_citizenship ?d } UNION { resource:Midnight_Rider property:country_of_origin ?d } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q55208
P27
Q502895
USER
Are Andrei Konchalovsky a citizen of those administrative territories ?
(Q55208,P27,Q30) (Q55208,P27,Q159)
action is_in
entity prev_answer
action find
entity Q55208
relation P27
['Q55208', 'P27', 'Q30'] ['Q55208', 'P27', 'Q159']
ASK WHERE { VALUES ( ?o ) { ( resource:Q30 ) ( resource:Q159 ) } . resource:Q55208 property:P27 ?o }
Andrei Konchalovsky
action is_in
entity prev_answer
action find
entity Andrei Konchalovsky
relation country of citizenship
['Andrei Konchalovsky', 'country of citizenship', 'United States of America'] ['Andrei Konchalovsky', 'country of citizenship', 'Russia']
ASK WHERE { VALUES ( ?o ) { ( resource:United_States_of_America ) ( resource:Russia ) } . resource:Andrei_Konchalovsky property:country_of_citizenship ?o }
[]
common name
SYSTEM
YES
(Q55208,P27,Q30) (Q55208,P27,Q159)
action is_in
entity prev_answer
action find
entity Q55208
relation P27
[ANSWER]
['Q55208', 'P27', 'Q30'] ['Q55208', 'P27', 'Q159']
ASK WHERE { VALUES ( ?o ) { ( resource:Q30 ) ( resource:Q159 ) } . resource:Q55208 property:P27 ?o }
Yes
action is_in
entity prev_answer
action find
entity Andrei Konchalovsky
relation country of citizenship
['Andrei Konchalovsky', 'country of citizenship', 'United States of America'] ['Andrei Konchalovsky', 'country of citizenship', 'Russia']
ASK WHERE { VALUES ( ?o ) { ( resource:United_States_of_America ) ( resource:Russia ) } . resource:Andrei_Konchalovsky property:country_of_citizenship ?o }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q96
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with lesser number of administrative territories than Mexico ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q96
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?h ) WHERE { ?u property:P530 ?t . ?u rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q96 property:P530 ?n } } . FILTER ( ?h < ?b ) }
Mexico
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mexico
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?h ) WHERE { ?u property:diplomatic_relation ?t . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mexico property:diplomatic_relation ?n } } . FILTER ( ?h < ?b ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
95
Q702 Q804 Q800 Q55 Q262 Q783 Q265 Q712 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q983 Q851 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q224 Q221 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q96
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?h ) WHERE { ?u property:P530 ?t . ?u rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q96 property:P530 ?n } } . FILTER ( ?h < ?b ) }
Federated States of Micronesia Panama Costa Rica Netherlands Algeria Honduras Uzbekistan Fiji Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Equatorial Guinea Saudi Arabia Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Croatia Republic of Macedonia Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga New Caledonia Thailand
95
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Mexico
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?v ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?t ) AS ?h ) WHERE { ?u property:diplomatic_relation ?t . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?u } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?b ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Mexico property:diplomatic_relation ?n } } . FILTER ( ?h < ?b ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q241
P530
Q15617994 Q15617994
USER
And how about Cuba?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q241 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?r } }
Cuba
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Cuba property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
111
Q702 Q804 Q800 Q419 Q55 Q262 Q783 Q265 Q712 Q717 Q837 Q398 Q657 Q792 Q790 Q954 Q958 Q881 Q986 Q242 Q244 Q811 Q33 Q924 Q36 Q34 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q842 Q1029 Q1028 Q786 Q228 Q227 Q224 Q221 Q96 Q229 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q211 Q217 Q214 Q215 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q77 Q878 Q774 Q817 Q810 Q1019 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q241
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Q241 property:P530 ?b . ?b rdf:type ontology:Q15617994 } } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { ?r property:P530 ?t . ?r rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 } GROUP BY ?r } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Algeria Honduras Uzbekistan Fiji Venezuela Nepal Bahrain Chad El Salvador Haiti Zimbabwe South Sudan Vietnam Eritrea Belize Barbados Nicaragua Finland Tanzania Poland Sweden Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Sudan Mauritius Malawi Iceland Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Croatia Republic of Macedonia Mexico Cyprus Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Latvia Republic of Moldova Slovakia Slovenia Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Uruguay United Arab Emirates Guatemala Kuwait Jordan Madagascar Togo Tonga Spain New Caledonia Thailand
111
action count
action less
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
action count
action filter_type
action find
entity Cuba
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?q ) WHERE { { SELECT DISTINCT ( COUNT ( ?b ) AS ?m ) WHERE { resource:Cuba property:diplomatic_relation ?b . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?p < ?m ) . { SELECT DISTINCT ?r ( COUNT ( ?t ) AS ?p ) WHERE { ?r property:diplomatic_relation ?t . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?r } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q4738600 Q4475048
P27
Q15617994
USER
Which administrative territories are Aleksandr Ulyanov or Alyaksandr Taykow an inhabitant of ?
OR((Q4475048,P27,c(Q15617994)), (Q4738600,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4475048
relation P27
action find
entity Q4738600
relation P27
type Q15617994
{'OR': [['Q4475048', 'P27', {'concept': 'Q15617994'}], ['Q4738600', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4475048 property:P27 ?u } UNION { resource:Q4738600 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Alyaksandr Taykow Aleksandr Ulyanov
action filter_type
action union
action find
entity Aleksandr Ulyanov
relation country of citizenship
action find
entity Alyaksandr Taykow
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aleksandr Ulyanov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alyaksandr Taykow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Aleksandr_Ulyanov property:country_of_citizenship ?u } UNION { resource:Alyaksandr_Taykow property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q184 Q159
SYSTEM
Belarus, Russia
Q184 Q159
OR((Q4475048,P27,c(Q15617994)), (Q4738600,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4475048
relation P27
action find
entity Q4738600
relation P27
type Q15617994
[ANSWERS] are Aleksandr Ulyanov or Alyaksandr Taykow an inhabitant of
{'OR': [['Q4475048', 'P27', {'concept': 'Q15617994'}], ['Q4738600', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Q4475048 property:P27 ?u } UNION { resource:Q4738600 property:P27 ?u } } . ?u rdf:type ontology:Q15617994 }
Belarus Russia
Belarus and Russia are Aleksandr Ulyanov or Alyaksandr Taykow an inhabitant of
Belarus Russia
action filter_type
action union
action find
entity Aleksandr Ulyanov
relation country of citizenship
action find
entity Alyaksandr Taykow
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Aleksandr Ulyanov', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Alyaksandr Taykow', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?u WHERE { { { resource:Aleksandr_Ulyanov property:country_of_citizenship ?u } UNION { resource:Alyaksandr_Taykow property:country_of_citizenship ?u } } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q1788988
P1376
Q15617994 Q515 Q486972
USER
Which administrative territories have more number of cities and human settlements as their capital than Trasimène ?
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1788988
relation P1376
type Q515
type Q486972
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 . ?h property:P1376 ?a } UNION { ?h property:P1376 ?a . ?h rdf:type ontology:Q486972 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?u > ?m ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P1376 resource:Q1788988 . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } } } }
Trasimène
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Trasimène
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city . ?h property:capital_of ?a } UNION { ?h property:capital_of ?a . ?h rdf:type ontology:human_settlement . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?u > ?m ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:capital_of resource:Trasimène . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:city ) ( ontology:human_settlement ) } } } } }
[]
designation for an administrative territorial entity city human settlement
Q155 Q17 Q347
SYSTEM
Brazil, Japan, Liechtenstein
Q414 Q1111401 Q252 Q399 Q258 Q155 Q736 Q843 Q2007 Q1050 Q298 Q115 Q114 Q541589 Q696651 Q948 Q639100 Q702 Q833 Q790 Q796 Q794 Q889 Q884 Q881 Q541095 Q492437 Q1037 Q1033 Q1030 Q750 Q30831 Q878 Q46130 Q3044714 Q1951 Q492430 Q711 Q717 Q1948 Q27 Q225 Q222 Q47261 Q228 Q965 Q963 Q1008 Q72670 Q568751 Q2150573 Q12536 Q3342 Q842 Q3240 Q4712 Q924 Q928 Q851 Q12717 Q347 Q3462133 Q17 Q3207 Q212 Q211 Q218 Q974 Q1019 Q1011
(c(Q515)|c(Q486972),P1376,c(Q15617994))
action greater
action union
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q515
action find_reverse_tuple_counts
relation P1376
type Q15617994
type Q486972
action count
action filter_multi_types
action find_reverse
entity Q1788988
relation P1376
type Q515
type Q486972
[ANSWERS] have more number of cities and human settlements as their capital than Trasimène
[[{'concept': 'Q515'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q15617994'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { { ?a rdf:type ontology:Q15617994 . ?h rdf:type ontology:Q515 . ?h property:P1376 ?a } UNION { ?h property:P1376 ?a . ?h rdf:type ontology:Q486972 . ?a rdf:type ontology:Q15617994 } } GROUP BY ?a } . FILTER ( ?u > ?m ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:P1376 resource:Q1788988 . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q515 ) ( ontology:Q486972 ) } } } } }
Argentina Kispest District Indonesia Armenia South Africa Brazil Ecuador Pakistan Northwest Territories Swaziland Chile Ethiopia Kenya Ems-Supérieur Saxe-Eisenach Tunisia Principality of Reuss-Gera Federated States of Micronesia Malaysia Haiti Iraq Iran Afghanistan South Korea Vietnam Rhin-et-Moselle Bouches-du-Weser Rwanda Nigeria Namibia Bolivia Red Sea Governorate United Arab Emirates Rhône Ouest Alberta Bouches-de-l'Elbe Mongolia Venezuela Manitoba Ireland Bosnia and Herzegovina Albania Duchy of Bavaria Andorra Burkina Faso Botswana Côte d'Ivoire Batumi Oblast Mont-Tonnerre Unterelsaß Abbasid caliphate Côte-d'Or Oman Bouches-du-Rhône Duchy of Burgundy Tanzania Philippines Saudi Arabia Bas-Rhin Liechtenstein Saxe-Coburg and Gotha Japan Aude Ukraine Latvia Romania Democratic Republic of the Congo Madagascar Cape Verde
Brazil, Japan and Liechtenstein have more number of cities and human settlements as their capital than Trasimène
Brazil Japan Liechtenstein
action greater
action union
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type designation for an administrative territorial entity
type human settlement
action count
action filter_multi_types
action find_reverse
entity Trasimène
relation capital of
type city
type human settlement
[[{'concept': 'city'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ?a ( COUNT ( ?h ) AS ?u ) WHERE { { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?h rdf:type ontology:city . ?h property:capital_of ?a } UNION { ?h property:capital_of ?a . ?h rdf:type ontology:human_settlement . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?a } . FILTER ( ?u > ?m ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?m ) WHERE { ?t property:capital_of resource:Trasimène . { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:city ) ( ontology:human_settlement ) } } } } }
[]