Simple Question (Direct)
Simple Question
Q8194292
P19
Q56061
USER
Which administrative territory is the birthplace of Alejandro de la Madrid ?
(Q8194292,P19,c(Q56061))
action filter_type
action find
entity Q8194292
relation P19
type Q56061
['Q8194292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q8194292 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Alejandro de la Madrid
action filter_type
action find
entity Alejandro de la Madrid
relation place of birth
type administrative territorial entity
['Alejandro de la Madrid', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Alejandro_de_la_Madrid property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1489
SYSTEM
Mexico City
Q1489
(Q8194292,P19,c(Q56061))
action filter_type
action find
entity Q8194292
relation P19
type Q56061
[ANSWER] is the birthplace of Alejandro de la Madrid
['Q8194292', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { resource:Q8194292 property:P19 ?m . ?m rdf:type ontology:Q56061 }
Mexico City
Mexico City is the birthplace of Alejandro de la Madrid
Mexico City
action filter_type
action find
entity Alejandro de la Madrid
relation place of birth
type administrative territorial entity
['Alejandro de la Madrid', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Alejandro_de_la_Madrid property:place_of_birth ?m . ?m rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8194292
P26
Q502895
USER
Which person is married to that one ?
(c(Q502895),P26,Q1489)
action filter_type
action find_reverse
entity Q8194292
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q1489']
SELECT DISTINCT ?v WHERE { ?v property:P26 resource:Q8194292 . ?v rdf:type ontology:Q502895 }
Alejandro de la Madrid
action filter_type
action find_reverse
entity Alejandro de la Madrid
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mexico City']
SELECT DISTINCT ?v WHERE { ?v property:spouse resource:Alejandro_de_la_Madrid . ?v rdf:type ontology:common_name }
[]
common name
Q548296
SYSTEM
Laisha Wilkins
Q548296
(c(Q502895),P26,Q1489)
action filter_type
action find_reverse
entity Q8194292
relation P26
type Q502895
In [ANSWER] is married to that one
[{'concept': 'Q502895'}, 'P26', 'Q1489']
SELECT DISTINCT ?v WHERE { ?v property:P26 resource:Q8194292 . ?v rdf:type ontology:Q502895 }
Laisha Wilkins
In Laisha Wilkins is married to that one
Laisha Wilkins
action filter_type
action find_reverse
entity Alejandro de la Madrid
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Mexico City']
SELECT DISTINCT ?v WHERE { ?v property:spouse resource:Alejandro_de_la_Madrid . ?v rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P248
Q1002697 Q11204 Q502895
USER
How many people have been referred in approximately 1 periodical literatures or legislatures ?
(c(Q502895),P248,c(Q1002697)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1002697
action find_tuple_counts
relation P248
type Q502895
type Q11204
value 1
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1002697'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?z WHERE { { ?z property:P248 ?c . ?z rdf:type ontology:Q502895 . ?c rdf:type ontology:Q1002697 } UNION { ?z rdf:type ontology:Q502895 . ?c rdf:type ontology:Q11204 . ?z property:P248 ?c } } GROUP BY ?z } }
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type periodical literature
action find_tuple_counts
relation stated in
type common name
type legislature
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'periodical literature'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?z WHERE { { ?z property:stated_in ?c . ?z rdf:type ontology:common_name . ?c rdf:type ontology:periodical_literature } UNION { ?z rdf:type ontology:common_name . ?c rdf:type ontology:legislature . ?z property:stated_in ?c } } GROUP BY ?z } }
[]
periodical literature legislature common name
SYSTEM
13
Q6237320 Q6255181 Q5606263 Q16849502 Q16106932 Q6260652 Q8019900 Q5537319 Q16105467 Q6255286 Q6145001 Q5537325 Q16065563
(c(Q502895),P248,c(Q1002697)|c(Q11204))
action count
action approx
action union
action find_tuple_counts
relation P248
type Q502895
type Q1002697
action find_tuple_counts
relation P248
type Q502895
type Q11204
value 1
[ANSWER]
[{'concept': 'Q502895'}, 'P248', [{'concept': 'Q1002697'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?z WHERE { { ?z property:P248 ?c . ?z rdf:type ontology:Q502895 . ?c rdf:type ontology:Q1002697 } UNION { ?z rdf:type ontology:Q502895 . ?c rdf:type ontology:Q11204 . ?z property:P248 ?c } } GROUP BY ?z } }
John Hall John Roberts Greg Smith David Wilson David Evans John Thompson William Walker George Brown John Rogers John Robinson James Walker George Brown William Thompson
13
action count
action approx
action union
action find_tuple_counts
relation stated in
type common name
type periodical literature
action find_tuple_counts
relation stated in
type common name
type legislature
value 1
[{'concept': 'common name'}, 'stated in', [{'concept': 'periodical literature'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?u ) WHERE { FILTER ( ?a = 1 ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?a ) ?z WHERE { { ?z property:stated_in ?c . ?z rdf:type ontology:common_name . ?c rdf:type ontology:periodical_literature } UNION { ?z rdf:type ontology:common_name . ?c rdf:type ontology:legislature . ?z property:stated_in ?c } } GROUP BY ?z } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1801412 Q8194292
P27 P17
Q15617994
USER
Which administrative territories are the countries of citizenship of Alejandro de la Madrid or are Horná Orava Protected Landscape Area situated in ?
OR((Q8194292,P27,c(Q15617994)), (Q1801412,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q1801412
relation P17
type Q15617994
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q1801412', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q8194292 property:P27 ?i } UNION { resource:Q1801412 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
Horná Orava Protected Landscape Area Alejandro de la Madrid
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Horná Orava Protected Landscape Area
relation country
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Horná Orava Protected Landscape Area', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alejandro_de_la_Madrid property:country_of_citizenship ?i } UNION { resource:Horná_Orava_Protected_Landscape_Area property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q214
SYSTEM
Mexico, Slovakia
Q96 Q214
OR((Q8194292,P27,c(Q15617994)), (Q1801412,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q1801412
relation P17
type Q15617994
[ANSWERS] are the countries of citizenship of Alejandro de la Madrid or are Horná Orava Protected Landscape Area situated in
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q1801412', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q8194292 property:P27 ?i } UNION { resource:Q1801412 property:P17 ?i } } . ?i rdf:type ontology:Q15617994 }
Mexico Slovakia
Mexico and Slovakia are the countries of citizenship of Alejandro de la Madrid or are Horná Orava Protected Landscape Area situated in
Mexico Slovakia
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Horná Orava Protected Landscape Area
relation country
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Horná Orava Protected Landscape Area', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Alejandro_de_la_Madrid property:country_of_citizenship ?i } UNION { resource:Horná_Orava_Protected_Landscape_Area property:country ?i } } . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q902
P530
Q15617994 Q15617994
USER
How many administrative territories have diplomatic relationships with lesser number of administrative territories than Bangladesh ?
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?e ) WHERE { ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?r property:P530 ?m } GROUP BY ?m } . FILTER ( ?e < ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q902 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Bangladesh
action count
action less
action find_reverse_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 Bangladesh
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 ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?e ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?m } GROUP BY ?m } . FILTER ( ?e < ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Bangladesh property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
64
Q702 Q804 Q783 Q784 Q265 Q712 Q710 Q837 Q657 Q792 Q790 Q986 Q242 Q244 Q811 Q929 Q29999 Q854 Q819 Q424 Q730 Q1013 Q232 Q238 Q20 Q1045 Q1041 Q921 Q1027 Q1020 Q842 Q1028 Q786 Q1036 Q1037 Q1032 Q965 Q967 Q962 Q697 Q695 Q117 Q754 Q218 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q970 Q683 Q34020 Q686 Q836 Q574 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,c(Q15617994))
action count
action less
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q902
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?e ) WHERE { ?m rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q15617994 . ?r property:P530 ?m } GROUP BY ?m } . FILTER ( ?e < ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Q902 property:P530 ?d . ?d rdf:type ontology:Q15617994 } } }
Federated States of Micronesia Panama Honduras Dominica Uzbekistan Fiji Kiribati Nepal Chad El Salvador Haiti Eritrea Belize Barbados Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Laos Cambodia Suriname Lesotho Kazakhstan San Marino Norway Somalia Senegal Brunei Mauritius Malawi Oman Morocco Dominican Republic Uganda Rwanda Niger Burkina Faso Burundi Benin Nauru Palau Ghana Trinidad and Tobago Romania Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Comoros Samoa Niue Vanuatu Myanmar East Timor Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia
64
action count
action less
action find_reverse_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 Bangladesh
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 ( ?m ) AS ?g ) WHERE { { SELECT DISTINCT ?m ( COUNT ( ?r ) AS ?e ) WHERE { ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r property:diplomatic_relation ?m } GROUP BY ?m } . FILTER ( ?e < ?v ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?v ) WHERE { resource:Bangladesh property:diplomatic_relation ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q2821172 Q8194292
P27
Q15617994
USER
Which administrative territories are Alejandro de la Madrid or Abdelmadjid Sidi Said a civilian of ?
OR((Q8194292,P27,c(Q15617994)), (Q2821172,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q2821172
relation P27
type Q15617994
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q2821172', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?a property:P27 ?g . VALUES ( ?a ) { ( resource:Q8194292 ) ( resource:Q2821172 ) } } . ?g rdf:type ontology:Q15617994 }
Abdelmadjid Sidi Said Alejandro de la Madrid
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Abdelmadjid Sidi Said
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmadjid Sidi Said', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?a property:country_of_citizenship ?g . VALUES ( ?a ) { ( resource:Alejandro_de_la_Madrid ) ( resource:Abdelmadjid_Sidi_Said ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q262 Q96
SYSTEM
Algeria, Mexico
Q262 Q96
OR((Q8194292,P27,c(Q15617994)), (Q2821172,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q2821172
relation P27
type Q15617994
[ANSWERS] are Alejandro de la Madrid or Abdelmadjid Sidi Said a civilian of
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q2821172', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { ?a property:P27 ?g . VALUES ( ?a ) { ( resource:Q8194292 ) ( resource:Q2821172 ) } } . ?g rdf:type ontology:Q15617994 }
Algeria Mexico
Algeria and Mexico are Alejandro de la Madrid or Abdelmadjid Sidi Said a civilian of
Algeria Mexico
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Abdelmadjid Sidi Said
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Abdelmadjid Sidi Said', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { ?a property:country_of_citizenship ?g . VALUES ( ?a ) { ( resource:Alejandro_de_la_Madrid ) ( resource:Abdelmadjid_Sidi_Said ) } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q27
P180
Q15617994 Q2342494 Q3305213
USER
Which administrative territories are depicted in around the same number of collectables or paintings as Ireland ?
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q27
relation P180
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q2342494 . ?y property:P180 ?f } UNION { ?y property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3305213 } } GROUP BY ?f } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P180 resource:Q27 . { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?u rdf:type ?x } } } }
Ireland
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Ireland
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:collectable . ?y property:depicts ?f } UNION { ?y property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:painting } } GROUP BY ?f } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:depicts resource:Ireland . { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:painting ) } . ?u rdf:type ?x } } } }
[]
designation for an administrative territorial entity collectable painting
Q155 Q159 Q55
SYSTEM
Brazil, Russia, Netherlands
Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q1016 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q27
relation P180
type Q2342494
type Q3305213
[ANSWERS] are depicted in around the same number of collectables or paintings as Ireland
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?f WHERE { { ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q2342494 . ?y property:P180 ?f } UNION { ?y property:P180 ?f . ?f rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q3305213 } } GROUP BY ?f } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:P180 resource:Q27 . { VALUES ( ?x ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?u rdf:type ?x } } } }
Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Libya Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Brazil, Russia and Netherlands are depicted in around the same number of collectables or paintings as Ireland
Brazil Russia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Ireland
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?e ) ?f WHERE { { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:collectable . ?y property:depicts ?f } UNION { ?y property:depicts ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:painting } } GROUP BY ?f } . FILTER ( ?e = ?r ) . { SELECT DISTINCT ( COUNT ( ?u ) AS ?r ) WHERE { ?u property:depicts resource:Ireland . { VALUES ( ?x ) { ( ontology:collectable ) ( ontology:painting ) } . ?u rdf:type ?x } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q188315
P180
Q15617994 Q2342494 Q3305213
USER
And how about Porto Venere?
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q188315
relation P180
type Q2342494
type Q3305213
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?c rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P180 resource:Q188315 . { { ?z rdf:type ontology:Q2342494 } UNION { ?z rdf:type ontology:Q3305213 } } } } . FILTER ( ?u = ?r ) }
Porto Venere
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Porto Venere
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:painting ) } . ?c rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:depicts resource:Porto_Venere . { { ?z rdf:type ontology:collectable } UNION { ?z rdf:type ontology:painting } } } } . FILTER ( ?u = ?r ) }
[]
designation for an administrative territorial entity collectable painting
Q155 Q159 Q55
SYSTEM
Brazil, Russia, Netherlands
Q1256 Q1462 Q241744 Q674904 Q668 Q142 Q55 Q145 Q47505 Q148 Q128081 Q711 Q243467 Q72672 Q1460 Q660687 Q159 Q41 Q155 Q794 Q160262 Q243128 Q739 Q254356 Q15260970 Q822 Q11343 Q268214 Q13376 Q12594 Q34 Q928 Q39 Q858 Q199952 Q854 Q736 Q1280 Q1282 Q20 Q27 Q188315 Q29 Q7077 Q189 Q47821 Q12574 Q12578 Q223 Q12675 Q229 Q17 Q553347 Q551142 Q652480 Q111144 Q13320 Q186115 Q373189 Q159605 Q72425 Q12657 Q1438 Q26300792 Q183366 Q6256 Q72432 Q811 Q1016 Q242683 Q80563 Q376896 Q34876 Q689720 Q33788 Q12563 Q190963 Q80591 Q42288 Q1034158
(c(Q2342494)|c(Q3305213),P180,c(Q15617994))
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q15617994
type Q3305213
action count
action filter_multi_types
action find_reverse
entity Q188315
relation P180
type Q2342494
type Q3305213
[ANSWERS]
[[{'concept': 'Q2342494'}, {'concept': 'Q3305213'}], 'P180', {'concept': 'Q15617994'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:Q2342494 ) ( ontology:Q3305213 ) } . ?c rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:P180 resource:Q188315 . { { ?z rdf:type ontology:Q2342494 } UNION { ?z rdf:type ontology:Q3305213 } } } } . FILTER ( ?u = ?r ) }
Liguria Sardinia Ariccia Krumau am Kamp India France Netherlands United Kingdom Dolo People's Republic of China Cori, Lazio Mongolia Subiaco Sorrento Sicily Velden am Wörther See Russia Greece Brazil Iran Caprarola Olevano Romano Colombia Murnau am Staffelsee Nantcribba Lebanon Wetter (Ruhr) Bordighera Pistoia Marne Sweden Philippines Switzerland Syria Taormina Sri Lanka Ecuador Umbria Lazio Norway Ireland Porto Venere Spain Dachau Iceland Malcesine Loiret Lot-et-Garonne Greenland Oise Cyprus Japan Kobern-Gondorf Wartenberg Kennemerland Canossa Savona Montmartre Bithynia Tivoli Pozzuoli Nièvre Campania Rhos Y Madoc territory country Procida Nicaragua Libya Genzano di Roma Amalfi Grenelle province Thörl New Caledonia Landes Frascati Atrani Asola Cap Norfeu
Brazil Russia Netherlands
action approx
action union
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type collectable
action find_reverse_tuple_counts
relation depicts
type designation for an administrative territorial entity
type painting
action count
action filter_multi_types
action find_reverse
entity Porto Venere
relation depicts
type collectable
type painting
[[{'concept': 'collectable'}, {'concept': 'painting'}], 'depicts', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ?k ( COUNT ( ?c ) AS ?u ) WHERE { VALUES ( ?g ) { ( ontology:collectable ) ( ontology:painting ) } . ?c rdf:type ?g } GROUP BY ?k } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?r ) WHERE { ?z property:depicts resource:Porto_Venere . { { ?z rdf:type ontology:collectable } UNION { ?z rdf:type ontology:painting } } } } . FILTER ( ?u = ?r ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24726 Q8194292
P27
Q15617994
USER
Which administrative territories are Alejandro de la Madrid or Thore Ehrling a civilian of ?
OR((Q8194292,P27,c(Q15617994)), (Q24726,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q24726
relation P27
type Q15617994
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q24726', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?f property:P27 ?b . VALUES ( ?f ) { ( resource:Q8194292 ) ( resource:Q24726 ) } } . ?b rdf:type ontology:Q15617994 }
Thore Ehrling Alejandro de la Madrid
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Thore Ehrling
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thore Ehrling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?f property:country_of_citizenship ?b . VALUES ( ?f ) { ( resource:Alejandro_de_la_Madrid ) ( resource:Thore_Ehrling ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q96 Q34
SYSTEM
Mexico, Sweden
Q96 Q34
OR((Q8194292,P27,c(Q15617994)), (Q24726,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q8194292
relation P27
action find
entity Q24726
relation P27
type Q15617994
[ANSWERS] are Alejandro de la Madrid or Thore Ehrling a civilian of
{'OR': [['Q8194292', 'P27', {'concept': 'Q15617994'}], ['Q24726', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?b WHERE { { ?f property:P27 ?b . VALUES ( ?f ) { ( resource:Q8194292 ) ( resource:Q24726 ) } } . ?b rdf:type ontology:Q15617994 }
Mexico Sweden
Mexico and Sweden are Alejandro de la Madrid or Thore Ehrling a civilian of
Mexico Sweden
action filter_type
action union
action find
entity Alejandro de la Madrid
relation country of citizenship
action find
entity Thore Ehrling
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alejandro de la Madrid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Thore Ehrling', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { ?f property:country_of_citizenship ?b . VALUES ( ?f ) { ( resource:Alejandro_de_la_Madrid ) ( resource:Thore_Ehrling ) } } . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q4323482
P530
Q1048835
USER
Do Novohryhorivka have diplomatic relations with those administrative territories ?
(Q4323482,P530,Q96) (Q4323482,P530,Q34)
action is_in
entity prev_answer
action find
entity Q4323482
relation P530
['Q4323482', 'P530', 'Q96'] ['Q4323482', 'P530', 'Q34']
ASK WHERE { VALUES ( ?c ) { ( resource:Q96 ) ( resource:Q34 ) } . resource:Q4323482 property:P530 ?c }
Novohryhorivka
action is_in
entity prev_answer
action find
entity Novohryhorivka
relation diplomatic relation
['Novohryhorivka', 'diplomatic relation', 'Mexico'] ['Novohryhorivka', 'diplomatic relation', 'Sweden']
ASK WHERE { VALUES ( ?c ) { ( resource:Mexico ) ( resource:Sweden ) } . resource:Novohryhorivka property:diplomatic_relation ?c }
[]
political territorial entity
SYSTEM
NO
(Q4323482,P530,Q96) (Q4323482,P530,Q34)
action is_in
entity prev_answer
action find
entity Q4323482
relation P530
[ANSWER]
['Q4323482', 'P530', 'Q96'] ['Q4323482', 'P530', 'Q34']
ASK WHERE { VALUES ( ?c ) { ( resource:Q96 ) ( resource:Q34 ) } . resource:Q4323482 property:P530 ?c }
No
action is_in
entity prev_answer
action find
entity Novohryhorivka
relation diplomatic relation
['Novohryhorivka', 'diplomatic relation', 'Mexico'] ['Novohryhorivka', 'diplomatic relation', 'Sweden']
ASK WHERE { VALUES ( ?c ) { ( resource:Mexico ) ( resource:Sweden ) } . resource:Novohryhorivka property:diplomatic_relation ?c }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q155 Q811
P530
Q1048835
USER
How many political territories have tactful political relations with Brazil and Nicaragua ?
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q811)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q811
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q811']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P530 resource:Q155 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q811 . ?o rdf:type ontology:Q1048835 }
Brazil Nicaragua
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Nicaragua
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Nicaragua']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:diplomatic_relation resource:Brazil . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Nicaragua . ?o rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q408 Q183
(c(Q1048835),P530,Q155) (c(Q1048835),P530,Q811)
action count
action intersection
action filter_type
action find_reverse
entity Q155
relation P530
type Q1048835
action filter_type
action find_reverse
entity Q811
relation P530
type Q1048835
[ANSWER]
[{'concept': 'Q1048835'}, 'P530', 'Q155'] [{'concept': 'Q1048835'}, 'P530', 'Q811']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:P530 resource:Q155 . ?o rdf:type ontology:Q1048835 . ?o property:P530 resource:Q811 . ?o rdf:type ontology:Q1048835 }
Australia Germany
2
action count
action intersection
action filter_type
action find_reverse
entity Brazil
relation diplomatic relation
type political territorial entity
action filter_type
action find_reverse
entity Nicaragua
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', 'Brazil'] [{'concept': 'political territorial entity'}, 'diplomatic relation', 'Nicaragua']
SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { ?o property:diplomatic_relation resource:Brazil . ?o rdf:type ontology:political_territorial_entity . ?o property:diplomatic_relation resource:Nicaragua . ?o rdf:type ontology:political_territorial_entity }
[]