Simple Question (Direct)
Simple Question
Q17305981
P136
Q151885
USER
What can be considered as category for Emily Grove ?
(Q17305981,P136,c(Q151885))
action filter_type
action find
entity Q17305981
relation P136
type Q151885
['Q17305981', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q17305981 property:P136 ?u . ?u rdf:type ontology:Q151885 }
Emily Grove
action filter_type
action find
entity Emily Grove
relation genre
type concept
['Emily Grove', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Emily_Grove property:genre ?u . ?u rdf:type ontology:concept }
[]
concept
Q438476
SYSTEM
alternative country
Q438476
(Q17305981,P136,c(Q151885))
action filter_type
action find
entity Q17305981
relation P136
type Q151885
[ANSWER]
['Q17305981', 'P136', {'concept': 'Q151885'}]
SELECT DISTINCT ?u WHERE { resource:Q17305981 property:P136 ?u . ?u rdf:type ontology:Q151885 }
alternative country
alternative country
action filter_type
action find
entity Emily Grove
relation genre
type concept
['Emily Grove', 'genre', {'concept': 'concept'}]
SELECT DISTINCT ?u WHERE { resource:Emily_Grove property:genre ?u . ?u rdf:type ontology:concept }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17305981
P106
Q12737077
USER
What are the professions of Emily Grove ?
(Q17305981,P106,c(Q12737077))
action filter_type
action find
entity Q17305981
relation P106
type Q12737077
['Q17305981', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q17305981 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
Emily Grove
action filter_type
action find
entity Emily Grove
relation occupation
type occupation
['Emily Grove', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Emily_Grove property:occupation ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q753110 Q177220
SYSTEM
songwriter, singer
Q753110 Q177220
(Q17305981,P106,c(Q12737077))
action filter_type
action find
entity Q17305981
relation P106
type Q12737077
[ANSWERS]
['Q17305981', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q17305981 property:P106 ?b . ?b rdf:type ontology:Q12737077 }
songwriter singer
songwriter singer
action filter_type
action find
entity Emily Grove
relation occupation
type occupation
['Emily Grove', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Emily_Grove property:occupation ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17305981
P21
Q290
USER
What is the sex of Emily Grove ?
(Q17305981,P21,c(Q290))
action filter_type
action find
entity Q17305981
relation P21
type Q290
['Q17305981', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q17305981 property:P21 ?p . ?p rdf:type ontology:Q290 }
Emily Grove
action filter_type
action find
entity Emily Grove
relation gender
type sex
['Emily Grove', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emily_Grove property:gender ?p . ?p rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q17305981,P21,c(Q290))
action filter_type
action find
entity Q17305981
relation P21
type Q290
[ANSWER]
['Q17305981', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { resource:Q17305981 property:P21 ?p . ?p rdf:type ontology:Q290 }
female
female
action filter_type
action find
entity Emily Grove
relation gender
type sex
['Emily Grove', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { resource:Emily_Grove property:gender ?p . ?p rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17305981
P27
Q15617994
USER
Which administrative territory is Emily Grove a civilian of ?
(Q17305981,P27,c(Q15617994))
action filter_type
action find
entity Q17305981
relation P27
type Q15617994
['Q17305981', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q17305981 property:P27 ?f }
Emily Grove
action filter_type
action find
entity Emily Grove
relation country of citizenship
type designation for an administrative territorial entity
['Emily Grove', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emily_Grove property:country_of_citizenship ?f }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q17305981,P27,c(Q15617994))
action filter_type
action find
entity Q17305981
relation P27
type Q15617994
[ANSWER]
['Q17305981', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q15617994 . resource:Q17305981 property:P27 ?f }
United States of America
United States of America
action filter_type
action find
entity Emily Grove
relation country of citizenship
type designation for an administrative territorial entity
['Emily Grove', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Emily_Grove property:country_of_citizenship ?f }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q1013
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with more number of administrative territories than Lesotho ?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1013
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P530 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Q1013 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?e ) }
Lesotho
action greater
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 Lesotho
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:diplomatic_relation ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Lesotho property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?e ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q37 Q711 Q717 Q252 Q399 Q398 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q822 Q241 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q734 Q236 Q230 Q233 Q27 Q28 Q1049 Q189 Q843 Q184 Q1029 Q736 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q974 Q1033 Q1030 Q191 Q963 Q298 Q115 Q114 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q219 Q916 Q1009 Q1008 Q971 Q874 Q79 Q77 Q858 Q878 Q810 Q1016 Q1011 Q29 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_reverse_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q1013
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:P530 ?v . ?b rdf:type ontology:Q15617994 . ?v rdf:type ontology:Q15617994 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Q1013 property:P530 ?f . ?f rdf:type ontology:Q15617994 } } . FILTER ( ?z > ?e ) }
Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Bahrain Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Lebanon Cuba Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Guyana Montenegro Georgia Malta Ireland Hungary Sudan Iceland Pakistan Belarus Mozambique Ecuador Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Democratic Republic of the Congo Nigeria Namibia Estonia Botswana Chile Ethiopia Kenya Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Bulgaria Angola Cameroon Côte d'Ivoire Republic of the Congo Turkmenistan Egypt Uruguay Syria United Arab Emirates Jordan Libya Cape Verde Spain Thailand Zambia
Italy Brazil United States of America
action greater
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 Lesotho
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 ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?z ) WHERE { ?b property:diplomatic_relation ?v . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?e ) WHERE { resource:Lesotho property:diplomatic_relation ?f . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?z > ?e ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q750
P530
Q15617994 Q15617994
USER
And what about Bolivia?
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q750
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?s ) WHERE { ?h property:P530 ?j . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q750 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?q ) }
Bolivia
action greater
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 Bolivia
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?s ) WHERE { ?h property:diplomatic_relation ?j . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Bolivia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?q ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q668 Q414 Q142 Q145 Q262 Q148 Q37 Q711 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q27 Q1049 Q843 Q228 Q227 Q224 Q222 Q347 Q17 Q974 Q1033 Q298 Q115 Q114 Q212 Q213 Q211 Q215 Q916 Q79 Q810 Q1016 Q1011 Q29 Q953
(c(Q15617994),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
action count
action filter_type
action find
entity Q750
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?s ) WHERE { ?h property:P530 ?j . ?h rdf:type ontology:Q15617994 . ?j rdf:type ontology:Q15617994 } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Q750 property:P530 ?y . ?y rdf:type ontology:Q15617994 } } . FILTER ( ?s > ?q ) }
Israel Yemen India Argentina France United Kingdom Algeria People's Republic of China Lithuania Mongolia Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Ireland Sudan Pakistan Andorra Azerbaijan Croatia Albania Liechtenstein Japan Democratic Republic of the Congo Nigeria Chile Ethiopia Kenya Ukraine Czech Republic Latvia Slovenia Angola Egypt Jordan Libya Cape Verde Spain Zambia
Italy Brazil United States of America
action greater
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 Bolivia
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 ?h WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?s ) WHERE { ?h property:diplomatic_relation ?j . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?h } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?q ) WHERE { resource:Bolivia property:diplomatic_relation ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?s > ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q38
P138
Q79007
USER
Which streets have that administrative territory as their namesake ?
(c(Q79007),P138,Q38)
action filter_type
action find_reverse
entity Q38
relation P138
type Q79007
[{'concept': 'Q79007'}, 'P138', 'Q38']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q38 . ?m rdf:type ontology:Q79007 }
Italy
action filter_type
action find_reverse
entity Italy
relation named after
type street
[{'concept': 'street'}, 'named after', 'Italy']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:Italy . ?m rdf:type ontology:street }
[]
street
Clarification for simple ques.
Q38
SYSTEM
Did you mean Italy ?
Q38 Q155 Q30
(c(Q79007),P138,Q38) (c(Q79007),P138,Q155) (c(Q79007),P138,Q30)
[ANSWER]
[{'concept': 'Q79007'}, 'P138', 'Q38'] [{'concept': 'Q79007'}, 'P138', 'Q155'] [{'concept': 'Q79007'}, 'P138', 'Q30']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q38 . ?m rdf:type ontology:Q79007 }
Italy Brazil United States of America
Did you mean Italy ?
Italy
[{'concept': 'street'}, 'named after', 'Italy'] [{'concept': 'street'}, 'named after', 'Brazil'] [{'concept': 'street'}, 'named after', 'United States of America']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:Italy . ?m rdf:type ontology:street }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q79007),P138,Q38)
[{'concept': 'Q79007'}, 'P138', 'Q38']
[{'concept': 'street'}, 'named after', 'Italy']
[]
Q2873898 Q22231334
SYSTEM
avenue d'Italie, Italiyskyi Bulvar
Q2873898 Q22231334
(c(Q79007),P138,Q38)
action filter_type
action find_reverse
entity Q38
relation P138
type Q79007
[ANSWERS]
[{'concept': 'Q79007'}, 'P138', 'Q38']
SELECT DISTINCT ?m WHERE { ?m property:P138 resource:Q38 . ?m rdf:type ontology:Q79007 }
avenue d'Italie Italiyskyi Bulvar
avenue d'Italie Italiyskyi Bulvar
action filter_type
action find_reverse
entity Italy
relation named after
type street
[{'concept': 'street'}, 'named after', 'Italy']
SELECT DISTINCT ?m WHERE { ?m property:named_after resource:Italy . ?m rdf:type ontology:street }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P669
Q79007 Q16970
USER
Which churches have their location as min number of streets ?
(c(Q16970),P669,c(Q79007))
action argmin
action find_tuple_counts
relation P669
type Q16970
type Q79007
[{'concept': 'Q16970'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?y ) WHERE { ?l property:P669 ?s . ?l rdf:type ontology:Q16970 . ?s rdf:type ontology:Q79007 } GROUP BY ?l } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?n ) WHERE { ?c rdf:type ontology:Q16970 . ?w rdf:type ontology:Q79007 . ?c property:P669 ?w } GROUP BY ?c } . FILTER ( ?n = ?z ) }
action argmin
action find_tuple_counts
relation located on street
type church
type street
[{'concept': 'church'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?y ) WHERE { ?l property:located_on_street ?s . ?l rdf:type ontology:church . ?s rdf:type ontology:street } GROUP BY ?l } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?n ) WHERE { ?c rdf:type ontology:church . ?w rdf:type ontology:street . ?c property:located_on_street ?w } GROUP BY ?c } . FILTER ( ?n = ?z ) }
[]
street church
Q1236689 Q1477827 Q738015
SYSTEM
Lund Cathedral, Saint James's Church, Helsinki Cathedral
Q2942927 Q1563071 Q1493222 Q1477827 Q880381 Q5108630 Q998451 Q15042147 Q2942460 Q2384843 Q2124804 Q201935 Q623558 Q745460 Q962195 Q2395780 Q1236689 Q1754571 Q476516 Q2002465 Q1537302 Q1049728 Q656738 Q738015 Q3916007 Q2942475 Q666874 Q671066 Q2942882 Q1423005 Q1515818 Q1257632 Q1136951 Q1285196
(c(Q16970),P669,c(Q79007))
action argmin
action find_tuple_counts
relation P669
type Q16970
type Q79007
[ANSWERS]
[{'concept': 'Q16970'}, 'P669', {'concept': 'Q79007'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?y ) WHERE { ?l property:P669 ?s . ?l rdf:type ontology:Q16970 . ?s rdf:type ontology:Q79007 } GROUP BY ?l } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?n ) WHERE { ?c rdf:type ontology:Q16970 . ?w rdf:type ontology:Q79007 . ?c property:P669 ?w } GROUP BY ?c } . FILTER ( ?n = ?z ) }
Saint Stefan Cathedral Le Mans Cathedral Alexander Nevsky Cathedral, Paris Saint James's Church Sacred Heart Church Christ's Church Cathedral Châlons Cathedral St. Eric's Cathedral, Stockholm Ukrainian Catholic Cathedral Saint Nicholas' Church, Shanghai Versailles Cathedral Oulu Cathedral Oude Kerk Strasbourg Cathedral Cathedral of Saint Bavo St. Gertrude's Cathedral Lund Cathedral Ludwigskirche Rouen Cathedral Notre-Dame Basilica-Cathedral Le Puy Cathedral Rennes Cathedral Bordeaux Cathedral Helsinki Cathedral Lübeck Cathedral cathédrale Sainte-Croix-Saint-Jean-des-Arméniens St. Anthony of Padua Cathedral, Breda Metz Cathedral Laval Cathedral Nantes Cathedral Gertrudiskerk Holy Trinity Cathedral Nancy Cathedral St. Sava Church, Paris
Lund Cathedral Saint James's Church Helsinki Cathedral
action argmin
action find_tuple_counts
relation located on street
type church
type street
[{'concept': 'church'}, 'located on street', {'concept': 'street'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( MIN ( ?y ) AS ?z ) { SELECT DISTINCT ?l ( COUNT ( ?s ) AS ?y ) WHERE { ?l property:located_on_street ?s . ?l rdf:type ontology:church . ?s rdf:type ontology:street } GROUP BY ?l } } . { SELECT DISTINCT ?c ( COUNT ( ?w ) AS ?n ) WHERE { ?c rdf:type ontology:church . ?w rdf:type ontology:street . ?c property:located_on_street ?w } GROUP BY ?c } . FILTER ( ?n = ?z ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q11752890 Q38
P530 P27
Q15617994
USER
Which administrative territories have diplomatic relations with Italy or are Lars K. Norberg an inhabitant of ?
OR((Q38,P530,c(Q15617994)), (Q11752890,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q11752890
relation P27
type Q15617994
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q11752890', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q38 property:P530 ?e } UNION { resource:Q11752890 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
Lars K. Norberg Italy
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Lars K. Norberg
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lars K. Norberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Italy property:diplomatic_relation ?e } UNION { resource:Lars_K._Norberg property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q403 Q148 Q822 Q43 Q37 Q252 Q739 Q45 Q843 Q36
SYSTEM
Some of them are Serbia, People's Republic of China, Lebanon, Turkey, Lithuania, Indonesia, Colombia, Portugal, Pakistan, Poland
Q805 Q219 Q869 Q801 Q189 Q843 Q184 Q423 Q822 Q419 Q668 Q347 Q414 Q142 Q225 Q224 Q55 Q222 Q221 Q145 Q148 Q96 Q31 Q229 Q228 Q33 Q32 Q17 Q30 Q37 Q36 Q79 Q34 Q77 Q39 Q1016 Q739 Q227 Q948 Q191 Q733 Q928 Q298 Q45 Q252 Q114 Q399 Q403 Q230 Q233 Q258 Q43 Q212 Q213 Q236 Q211 Q159 Q217 Q214 Q215 Q155 Q218 Q41 Q238 Q796 Q794 Q20 Q1045 Q889 Q27 Q28 Q29 Q884 Q881
OR((Q38,P530,c(Q15617994)), (Q11752890,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q38
relation P530
action find
entity Q11752890
relation P27
type Q15617994
[ANSWERS]
{'OR': [['Q38', 'P530', {'concept': 'Q15617994'}], ['Q11752890', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q38 property:P530 ?e } UNION { resource:Q11752890 property:P27 ?e } } . ?e rdf:type ontology:Q15617994 }
Yemen Bulgaria Thailand Israel Iceland Pakistan Belarus North Korea Lebanon Peru India Liechtenstein Argentina France Bosnia and Herzegovina Croatia Netherlands Albania Republic of Macedonia United Kingdom People's Republic of China Mexico Belgium Cyprus Andorra Finland Luxembourg Japan United States of America Lithuania Poland Egypt Sweden Uruguay Switzerland Libya Colombia Azerbaijan Tunisia Estonia Paraguay Philippines Chile Portugal Indonesia Kenya Armenia Serbia Georgia Malta South Africa Turkey Ukraine Czech Republic Montenegro Latvia Russia Republic of Moldova Slovakia Slovenia Brazil Romania Greece San Marino Iraq Iran Norway Somalia Afghanistan Ireland Hungary Spain South Korea Vietnam
Serbia People's Republic of China Lebanon Turkey Lithuania Indonesia Colombia Portugal Pakistan Poland
action filter_type
action union
action find
entity Italy
relation diplomatic relation
action find
entity Lars K. Norberg
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Italy', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Lars K. Norberg', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Italy property:diplomatic_relation ?e } UNION { resource:Lars_K._Norberg property:country_of_citizenship ?e } } . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q525098
P530
Q15617994
USER
Do Semlow have ambassadorial relations with those ones ?
(Q525098,P530,Q403) (Q525098,P530,Q148) (Q525098,P530,Q822) (Q525098,P530,Q43) (Q525098,P530,Q37) (Q525098,P530,Q252) (Q525098,P530,Q739) (Q525098,P530,Q45) (Q525098,P530,Q843) (Q525098,P530,Q36)
action is_in
entity prev_answer
action find
entity Q525098
relation P530
['Q525098', 'P530', 'Q403'] ['Q525098', 'P530', 'Q148'] ['Q525098', 'P530', 'Q822'] ['Q525098', 'P530', 'Q43'] ['Q525098', 'P530', 'Q37'] ['Q525098', 'P530', 'Q252'] ['Q525098', 'P530', 'Q739'] ['Q525098', 'P530', 'Q45'] ['Q525098', 'P530', 'Q843'] ['Q525098', 'P530', 'Q36']
ASK WHERE { VALUES ( ?u ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } . resource:Q525098 property:P530 ?u }
Semlow
action is_in
entity prev_answer
action find
entity Semlow
relation diplomatic relation
['Semlow', 'diplomatic relation', 'Serbia'] ['Semlow', 'diplomatic relation', "People's Republic of China"] ['Semlow', 'diplomatic relation', 'Lebanon'] ['Semlow', 'diplomatic relation', 'Turkey'] ['Semlow', 'diplomatic relation', 'Lithuania'] ['Semlow', 'diplomatic relation', 'Indonesia'] ['Semlow', 'diplomatic relation', 'Colombia'] ['Semlow', 'diplomatic relation', 'Portugal'] ['Semlow', 'diplomatic relation', 'Pakistan'] ['Semlow', 'diplomatic relation', 'Poland']
ASK WHERE { VALUES ( ?u ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } . resource:Semlow property:diplomatic_relation ?u }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q525098,P530,Q403) (Q525098,P530,Q148) (Q525098,P530,Q822) (Q525098,P530,Q43) (Q525098,P530,Q37) (Q525098,P530,Q252) (Q525098,P530,Q739) (Q525098,P530,Q45) (Q525098,P530,Q843) (Q525098,P530,Q36)
action is_in
entity prev_answer
action find
entity Q525098
relation P530
[ANSWER]
['Q525098', 'P530', 'Q403'] ['Q525098', 'P530', 'Q148'] ['Q525098', 'P530', 'Q822'] ['Q525098', 'P530', 'Q43'] ['Q525098', 'P530', 'Q37'] ['Q525098', 'P530', 'Q252'] ['Q525098', 'P530', 'Q739'] ['Q525098', 'P530', 'Q45'] ['Q525098', 'P530', 'Q843'] ['Q525098', 'P530', 'Q36']
ASK WHERE { VALUES ( ?u ) { ( resource:Q805 ) ( resource:Q219 ) ( resource:Q869 ) } . resource:Q525098 property:P530 ?u }
No
action is_in
entity prev_answer
action find
entity Semlow
relation diplomatic relation
['Semlow', 'diplomatic relation', 'Serbia'] ['Semlow', 'diplomatic relation', "People's Republic of China"] ['Semlow', 'diplomatic relation', 'Lebanon'] ['Semlow', 'diplomatic relation', 'Turkey'] ['Semlow', 'diplomatic relation', 'Lithuania'] ['Semlow', 'diplomatic relation', 'Indonesia'] ['Semlow', 'diplomatic relation', 'Colombia'] ['Semlow', 'diplomatic relation', 'Portugal'] ['Semlow', 'diplomatic relation', 'Pakistan'] ['Semlow', 'diplomatic relation', 'Poland']
ASK WHERE { VALUES ( ?u ) { ( resource:Yemen ) ( resource:Bulgaria ) ( resource:Thailand ) } . resource:Semlow property:diplomatic_relation ?u }
[]