Simple Question (Direct)
Simple Question
Q3855332
P1040
Q502895
USER
Which person edited Messalina, Messalina ?
(Q3855332,P1040,c(Q502895))
action filter_type
action find
entity Q3855332
relation P1040
type Q502895
['Q3855332', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3855332 property:P1040 ?q . ?q rdf:type ontology:Q502895 }
Messalina, Messalina
action filter_type
action find
entity Messalina, Messalina
relation film editor
type common name
['Messalina, Messalina', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Messalina,_Messalina property:film_editor ?q . ?q rdf:type ontology:common_name }
[]
common name
Q1163637
SYSTEM
Daniele Alabiso
Q1163637
(Q3855332,P1040,c(Q502895))
action filter_type
action find
entity Q3855332
relation P1040
type Q502895
[ANSWER] edited Messalina, Messalina
['Q3855332', 'P1040', {'concept': 'Q502895'}]
SELECT DISTINCT ?q WHERE { resource:Q3855332 property:P1040 ?q . ?q rdf:type ontology:Q502895 }
Daniele Alabiso
Daniele Alabiso edited Messalina, Messalina
Daniele Alabiso
action filter_type
action find
entity Messalina, Messalina
relation film editor
type common name
['Messalina, Messalina', 'film editor', {'concept': 'common name'}]
SELECT DISTINCT ?q WHERE { resource:Messalina,_Messalina property:film_editor ?q . ?q rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3855332
P86
Q502895
USER
Who composed Messalina, Messalina ?
(Q3855332,P86,c(Q502895))
action filter_type
action find
entity Q3855332
relation P86
type Q502895
['Q3855332', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q3855332 property:P86 ?t . ?t rdf:type ontology:Q502895 }
Messalina, Messalina
action filter_type
action find
entity Messalina, Messalina
relation composer
type common name
['Messalina, Messalina', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Messalina,_Messalina property:composer ?t . ?t rdf:type ontology:common_name }
[]
common name
Q538488
SYSTEM
Guido De Angelis
Q538488
(Q3855332,P86,c(Q502895))
action filter_type
action find
entity Q3855332
relation P86
type Q502895
[ANSWER] composed Messalina, Messalina
['Q3855332', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q3855332 property:P86 ?t . ?t rdf:type ontology:Q502895 }
Guido De Angelis
Guido De Angelis composed Messalina, Messalina
Guido De Angelis
action filter_type
action find
entity Messalina, Messalina
relation composer
type common name
['Messalina, Messalina', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Messalina,_Messalina property:composer ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3855332
P495
Q15617994
USER
Which administrative territory is the country of origin of Messalina, Messalina ?
(Q3855332,P495,c(Q15617994))
action filter_type
action find
entity Q3855332
relation P495
type Q15617994
['Q3855332', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q3855332 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Messalina, Messalina
action filter_type
action find
entity Messalina, Messalina
relation country of origin
type designation for an administrative territorial entity
['Messalina, Messalina', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Messalina,_Messalina property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
(Q3855332,P495,c(Q15617994))
action filter_type
action find
entity Q3855332
relation P495
type Q15617994
[ANSWER] is the country of origin of Messalina, Messalina
['Q3855332', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?s WHERE { resource:Q3855332 property:P495 ?s . ?s rdf:type ontology:Q15617994 }
Italy
Italy is the country of origin of Messalina, Messalina
Italy
action filter_type
action find
entity Messalina, Messalina
relation country of origin
type designation for an administrative territorial entity
['Messalina, Messalina', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Messalina,_Messalina property:country_of_origin ?s . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P530
Q15617994 Q5589178
USER
How many administrative territories or regimes have diplomatic relations with that administrative territory ?
(Q38,P530,c(Q15617994)) (Q38,P530,c(Q5589178)) (Q38,P530,c(Q15617994)) (Q38,P530,c(Q5589178))
action count
action union
action filter_type
action find
entity Q38
relation P530
type Q15617994
action filter_type
action find
entity Q38
relation P530
type Q5589178
['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q5589178'}] ['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q5589178 ) } }
action count
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Italy
relation diplomatic relation
type regime
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'regime'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:regime ) } }
[]
designation for an administrative territorial entity regime
SYSTEM
75
Q805 Q801 Q189 Q843 Q184 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q229 Q228 Q215 Q17 Q191 Q77 Q298 Q45 Q252 Q114 Q399 Q403 Q258 Q43 Q212 Q213 Q211 Q159 Q217 Q214 Q41 Q155 Q218 Q219 Q796 Q794 Q889 Q884 Q881 Q423 Q822 Q33 Q32 Q31 Q30 Q37 Q36 Q79 Q34 Q928 Q39 Q1016 Q739 Q227 Q948 Q733 Q1246 Q28 Q236 Q230 Q233 Q238 Q20 Q1045 Q27 Q869 Q29
(Q38,P530,c(Q15617994)) (Q38,P530,c(Q5589178)) (Q38,P530,c(Q15617994)) (Q38,P530,c(Q5589178))
action count
action union
action filter_type
action find
entity Q38
relation P530
type Q15617994
action filter_type
action find
entity Q38
relation P530
type Q5589178
[ANSWER]
['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q5589178'}] ['Q38', 'P530', {'concept': 'Q15617994'}] ['Q38', 'P530', {'concept': 'Q5589178'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:Q15617994 ) ( ontology:Q5589178 ) } }
Yemen Israel Iceland Pakistan Belarus Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Cyprus Andorra Slovenia Japan Estonia Uruguay Chile Portugal Indonesia Kenya Armenia Serbia South Africa Turkey Ukraine Czech Republic Latvia Russia Republic of Moldova Slovakia Greece Brazil Romania Bulgaria Iraq Iran Afghanistan South Korea Vietnam North Korea Lebanon Finland Luxembourg Belgium United States of America Lithuania Poland Egypt Sweden Philippines Switzerland Libya Colombia Azerbaijan Tunisia Paraguay Kosovo Hungary Montenegro Georgia Malta San Marino Norway Somalia Ireland Thailand Spain
75
action count
action union
action filter_type
action find
entity Italy
relation diplomatic relation
type designation for an administrative territorial entity
action filter_type
action find
entity Italy
relation diplomatic relation
type regime
['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'regime'}] ['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}] ['Italy', 'diplomatic relation', {'concept': 'regime'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?y ) WHERE { ?k rdf:type ?f . VALUES ( ?f ) { ( ontology:designation_for_an_administrative_territorial_entity ) ( ontology:regime ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38
P17
Q15617994
USER
Which administrative territory is that one located in ?
action filter_type
action find
entity Q38
relation P17
type Q15617994
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q38 property:P17 ?m }
Italy
action filter_type
action find
entity Italy
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:country ?m }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
action filter_type
action find
entity Q38
relation P17
type Q15617994
That one is located in [ANSWER]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q15617994 . resource:Q38 property:P17 ?m }
Italy
That one is located in Italy
Italy
action filter_type
action find
entity Italy
relation country
type designation for an administrative territorial entity
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Italy property:country ?m }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q2342494 Q7725634
USER
How many administrative territories are the origin of approximately the same number of collectables or literary works as that administrative territory ?
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q38
relation P495
type Q2342494
type Q7725634
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) ?p WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P495 resource:Q38 . { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?u = ?c ) }
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Italy
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) ?p WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:country_of_origin resource:Italy . { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:literary_work ) } } } } . FILTER ( ?u = ?c ) }
[]
designation for an administrative territorial entity collectable literary work
SYSTEM
166
Q805 Q804 Q801 Q800 Q1462 Q419 Q668 Q414 Q55 Q12536 Q262 Q148 Q783 Q265 Q37 Q36678 Q712 Q711 Q717 Q837 Q252 Q1460 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q4628 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q826 Q822 Q241 Q242 Q244 Q811 Q153136 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q819 Q424 Q730 Q1013 Q159626 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1044 Q1041 Q27 Q28 Q921 Q1049 Q1025 Q1027 Q1020 Q189 Q843 Q184 Q1029 Q1028 Q736 Q786 Q227 Q225 Q224 Q223 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q298 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q1009 Q1008 Q971 Q970 Q239502 Q686 Q836 Q574 Q874 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q813 Q1014 Q1016 Q1011 Q945 Q29 Q672 Q176 Q863 Q869 Q953
(c(Q2342494)|c(Q7725634),P495,c(Q15617994))
action count
action approx
action union
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P495
type Q15617994
type Q7725634
action count
action filter_multi_types
action find_reverse
entity Q38
relation P495
type Q2342494
type Q7725634
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q7725634'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) ?p WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P495 resource:Q38 . { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:Q2342494 ) ( ontology:Q7725634 ) } } } } . FILTER ( ?u = ?c ) }
Yemen Panama Israel Costa Rica Sardinia Peru India Argentina Netherlands Abbasid caliphate Algeria People's Republic of China Honduras Uzbekistan Lithuania West Bank Fiji Mongolia Venezuela Nepal Indonesia Sicily Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Faroe Islands Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Maldives Lebanon Cuba Belize Barbados Nicaragua Habsburg Empire Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Württemberg Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Sierra Leone Senegal Ireland Hungary Brunei Sudan Mauritania Mauritius Malawi Iceland Pakistan Belarus Mozambique Morocco Ecuador Dominican Republic Azerbaijan Bosnia and Herzegovina Croatia Greenland Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Chile Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Cameroon Côte d'Ivoire Republic of the Congo Comoros Kingdom of Galicia–Volhynia Vanuatu Myanmar East Timor Turkmenistan Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Kyrgyzstan Liberia Libya Cape Verde Togo Spain Tuvalu Quebec Tajikistan Thailand Zambia
166
action count
action approx
action union
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation country of origin
type designation for an administrative territorial entity
type literary work
action count
action filter_multi_types
action find_reverse
entity Italy
relation country of origin
type collectable
type literary work
[[{'concept': 'collectable'}, {'concept': 'literary work'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?u ) ?p WHERE { ?e rdf:type ?r . VALUES ( ?r ) { ( ontology:collectable ) ( ontology:literary_work ) } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:country_of_origin resource:Italy . { ?k rdf:type ?w . VALUES ( ?w ) { ( ontology:collectable ) ( ontology:literary_work ) } } } } . FILTER ( ?u = ?c ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q408 Q1163637
P530 P27
Q15617994
USER
Which administrative territories are the native countriesof Daniele Alabiso and have a diplomatic relationship with Australia ?
AND((Q1163637,P27,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1163637
relation P27
action find
entity Q408
relation P530
type Q15617994
{'AND': [['Q1163637', 'P27', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q1163637 property:P27 ?j . resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
Australia Daniele Alabiso
action filter_type
action intersection
action find
entity Daniele Alabiso
relation country of citizenship
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Daniele Alabiso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Daniele_Alabiso property:country_of_citizenship ?j . resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38
SYSTEM
Italy
Q38
AND((Q1163637,P27,c(Q15617994)), (Q408,P530,c(Q15617994)))
action filter_type
action intersection
action find
entity Q1163637
relation P27
action find
entity Q408
relation P530
type Q15617994
[ANSWER] is the native countriesof Daniele Alabiso and have a diplomatic relationship with Australia
{'AND': [['Q1163637', 'P27', {'concept': 'Q15617994'}], ['Q408', 'P530', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { resource:Q1163637 property:P27 ?j . resource:Q408 property:P530 ?j . ?j rdf:type ontology:Q15617994 }
Italy
Italy is the native countriesof Daniele Alabiso and have a diplomatic relationship with Australia
Italy
action filter_type
action intersection
action find
entity Daniele Alabiso
relation country of citizenship
action find
entity Australia
relation diplomatic relation
type designation for an administrative territorial entity
{'AND': [['Daniele Alabiso', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Australia', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { resource:Daniele_Alabiso property:country_of_citizenship ?j . resource:Australia property:diplomatic_relation ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]