Simple Question (Direct)
Simple Question
Q22915395
P195
Q33506
USER
Which museum includes Torre de Schiavi in it ?
(Q22915395,P195,c(Q33506))
action filter_type
action find
entity Q22915395
relation P195
type Q33506
['Q22915395', 'P195', {'concept': 'Q33506'}]
SELECT DISTINCT ?v WHERE { resource:Q22915395 property:P195 ?v . ?v rdf:type ontology:Q33506 }
Torre de Schiavi
action filter_type
action find
entity Torre de Schiavi
relation collection
type museum
['Torre de Schiavi', 'collection', {'concept': 'museum'}]
SELECT DISTINCT ?v WHERE { resource:Torre_de_Schiavi property:collection ?v . ?v rdf:type ontology:museum }
[]
museum
Q632682
SYSTEM
Brooklyn Museum
Q632682
(Q22915395,P195,c(Q33506))
action filter_type
action find
entity Q22915395
relation P195
type Q33506
[ANSWER] includes Torre de Schiavi in it
['Q22915395', 'P195', {'concept': 'Q33506'}]
SELECT DISTINCT ?v WHERE { resource:Q22915395 property:P195 ?v . ?v rdf:type ontology:Q33506 }
Brooklyn Museum
Brooklyn Museum includes Torre de Schiavi in it
Brooklyn Museum
action filter_type
action find
entity Torre de Schiavi
relation collection
type museum
['Torre de Schiavi', 'collection', {'concept': 'museum'}]
SELECT DISTINCT ?v WHERE { resource:Torre_de_Schiavi property:collection ?v . ?v rdf:type ontology:museum }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q632682
P608
Q502895
USER
What was displayed at that museum ?
(c(Q502895),P608,Q632682)
action filter_type
action find_reverse
entity Q632682
relation P608
type Q502895
[{'concept': 'Q502895'}, 'P608', 'Q632682']
SELECT DISTINCT ?z WHERE { ?z property:P608 resource:Q632682 . ?z rdf:type ontology:Q502895 }
Brooklyn Museum
action filter_type
action find_reverse
entity Brooklyn Museum
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', 'Brooklyn Museum']
SELECT DISTINCT ?z WHERE { ?z property:exhibition_history resource:Brooklyn_Museum . ?z rdf:type ontology:common_name }
[]
common name
Q4945678
SYSTEM
Martha Edelheit
Q4945678
(c(Q502895),P608,Q632682)
action filter_type
action find_reverse
entity Q632682
relation P608
type Q502895
[ANSWER] was displayed at that museum
[{'concept': 'Q502895'}, 'P608', 'Q632682']
SELECT DISTINCT ?z WHERE { ?z property:P608 resource:Q632682 . ?z rdf:type ontology:Q502895 }
Martha Edelheit
Martha Edelheit was displayed at that museum
Martha Edelheit
action filter_type
action find_reverse
entity Brooklyn Museum
relation exhibition history
type common name
[{'concept': 'common name'}, 'exhibition history', 'Brooklyn Museum']
SELECT DISTINCT ?z WHERE { ?z property:exhibition_history resource:Brooklyn_Museum . ?z rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by max number of people ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?i ) WHERE { ?z rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?z } GROUP BY ?z } } . { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?v = ?n ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?i ) WHERE { ?z rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?z } GROUP BY ?z } } . { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?v = ?n ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[ANSWER] is played by max number of people
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?i ) WHERE { ?z rdf:type ontology:Q34379 . ?q rdf:type ontology:Q502895 . ?q property:P1303 ?z } GROUP BY ?z } } . { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:P1303 ?e . ?e rdf:type ontology:Q34379 . ?k rdf:type ontology:Q502895 } GROUP BY ?e } . FILTER ( ?v = ?n ) }
piano
Piano is played by max number of people
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?i ) AS ?n ) { SELECT DISTINCT ?z ( COUNT ( ?q ) AS ?i ) WHERE { ?z rdf:type ontology:musical_instrument . ?q rdf:type ontology:common_name . ?q property:instrument ?z } GROUP BY ?z } } . { SELECT DISTINCT ?e ( COUNT ( ?k ) AS ?v ) WHERE { ?k property:instrument ?e . ?e rdf:type ontology:musical_instrument . ?k rdf:type ontology:common_name } GROUP BY ?e } . FILTER ( ?v = ?n ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q74397 Q632682
P27 P17
Q15617994
USER
Which administrative territories are Brooklyn Museum a part of and are the native countriesof Bernard Hopkins ?
AND((Q632682,P17,c(Q15617994)), (Q74397,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q632682
relation P17
action find
entity Q74397
relation P27
type Q15617994
{'AND': [['Q632682', 'P17', {'concept': 'Q15617994'}], ['Q74397', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { resource:Q632682 property:P17 ?c . resource:Q74397 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
Bernard Hopkins Brooklyn Museum
action filter_type
action intersection
action find
entity Brooklyn Museum
relation country
action find
entity Bernard Hopkins
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brooklyn Museum', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bernard Hopkins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { resource:Brooklyn_Museum property:country ?c . resource:Bernard_Hopkins property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q632682,P17,c(Q15617994)), (Q74397,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q632682
relation P17
action find
entity Q74397
relation P27
type Q15617994
[ANSWER] is Brooklyn Museum a part of and is the native countriesof Bernard Hopkins
{'AND': [['Q632682', 'P17', {'concept': 'Q15617994'}], ['Q74397', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?c WHERE { resource:Q632682 property:P17 ?c . resource:Q74397 property:P27 ?c . ?c rdf:type ontology:Q15617994 }
United States of America
United States of America is Brooklyn Museum a part of and is the native countriesof Bernard Hopkins
United States of America
action filter_type
action intersection
action find
entity Brooklyn Museum
relation country
action find
entity Bernard Hopkins
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Brooklyn Museum', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Bernard Hopkins', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { resource:Brooklyn_Museum property:country ?c . resource:Bernard_Hopkins property:country_of_citizenship ?c . ?c rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Multiple_Relation
Q50030 Q632682
P186 P195
Q3305213
USER
Which paintings are preserved in Brooklyn Museum and do not use watercolor to make their product ?
AND((c(Q3305213),P195,Q632682), NOT((c(Q3305213),P186,Q50030)))
action filter_type
action difference
action find_reverse
entity Q632682
relation P195
action find_reverse
entity Q50030
relation P186
type Q3305213
{'AND': [[{'concept': 'Q3305213'}, 'P195', 'Q632682'], {'NOT': [[{'concept': 'Q3305213'}, 'P186', 'Q50030']]}]}
SELECT DISTINCT ?c WHERE { FILTER NOT EXISTS { ?c property:P186 resource:Q50030 } . ?c property:P195 resource:Q632682 . ?c rdf:type ontology:Q3305213 }
watercolor Brooklyn Museum
action filter_type
action difference
action find_reverse
entity Brooklyn Museum
relation collection
action find_reverse
entity watercolor
relation material used
type painting
{'AND': [[{'concept': 'painting'}, 'collection', 'Brooklyn Museum'], {'NOT': [[{'concept': 'painting'}, 'material used', 'watercolor']]}]}
SELECT DISTINCT ?c WHERE { FILTER NOT EXISTS { ?c property:material_used resource:watercolor } . ?c property:collection resource:Brooklyn_Museum . ?c rdf:type ontology:painting }
[]
painting
Q22915765 Q19858773 Q22915412 Q19858263 Q22915386 Q22915359 Q22915388 Q22915350 Q22915338 Q22915263
SYSTEM
Some of them are View near New London, Connecticut, Annas and Caiaphas, Woodland Boulders, All the City Was Gathered at His Door, Study of Rocks, Rocky Coast, The League Long Breakers Thundering on the Reef, Plant Study, Near Florence, Beach Scene with Barrel and Anchor
Q19858411 Q19858286 Q19858263 Q19858262 Q19858341 Q19858265 Q19858364 Q22915271 Q19858326 Q19858221 Q22915392 Q22915395 Q22915394 Q22915357 Q22915355 Q22915260 Q22915263 Q22915288 Q22915412 Q22915350 Q22915267 Q19858288 Q22915269 Q22915287 Q22915286 Q22915285 Q22915284 Q19858773 Q19858394 Q19858296 Q19858751 Q22915411 Q22915356 Q19858253 Q22915338 Q22915765 Q22915386 Q22915384 Q22915359 Q22915388 Q15788627 Q22915406 Q22915289 Q22915303 Q22915300 Q19858965 Q22915307
AND((c(Q3305213),P195,Q632682), NOT((c(Q3305213),P186,Q50030)))
action filter_type
action difference
action find_reverse
entity Q632682
relation P195
action find_reverse
entity Q50030
relation P186
type Q3305213
[ANSWERS] are preserved in Brooklyn Museum and do not use watercolor to make their product
{'AND': [[{'concept': 'Q3305213'}, 'P195', 'Q632682'], {'NOT': [[{'concept': 'Q3305213'}, 'P186', 'Q50030']]}]}
SELECT DISTINCT ?c WHERE { FILTER NOT EXISTS { ?c property:P186 resource:Q50030 } . ?c property:P195 resource:Q632682 . ?c rdf:type ontology:Q3305213 }
''Saint Thomas'' Saint Mark All the City Was Gathered at His Door Saint Simon Saint Luke ''Saint Paul'' Barabbas Flower Study The Foolish Virgins The Aged Simeon The Sakonnet River Torre de Schiavi Thunderheads at Sea: The Pearl River Valley in the Moonlight Point Judith A High Tide at Atlantic City Beach Scene with Barrel and Anchor Landscape with Stream and Road, Chester County Woodland Boulders Plant Study Calm Before a Storm, Newport The Disciples Eat Wheat on the Sabbath Cornwall Landscape with Fence Landscape with Clouds Landscape Lake Winnipesaukee Annas and Caiaphas Joseph of Arimathaea Saint Thaddeus or Saint Jude Conspiracy of the Jews White Island Light, Isle of Shoals, N.H. Rhode Island Coast: Conanicut Island Nicodemus Near Florence View near New London, Connecticut Study of Rocks Seascape with Two Figures: Tintagel, Cornwall, England Rocky Coast The League Long Breakers Thundering on the Reef Painting of Lady Tjepu Tulip Trees Lily Pond, Newport Marine Study Marine ''{{Portrait of a young woman}} Marine Study
View near New London, Connecticut, Annas and Caiaphas, Woodland Boulders, All the City Was Gathered at His Door, Study of Rocks, Rocky Coast, The League Long Breakers Thundering on the Reef, Plant Study, Near Florence and Beach Scene with Barrel and Anchor are preserved in Brooklyn Museum and do not use watercolor to make their product
View near New London, Connecticut Annas and Caiaphas Woodland Boulders All the City Was Gathered at His Door Study of Rocks Rocky Coast The League Long Breakers Thundering on the Reef Plant Study Near Florence Beach Scene with Barrel and Anchor
action filter_type
action difference
action find_reverse
entity Brooklyn Museum
relation collection
action find_reverse
entity watercolor
relation material used
type painting
{'AND': [[{'concept': 'painting'}, 'collection', 'Brooklyn Museum'], {'NOT': [[{'concept': 'painting'}, 'material used', 'watercolor']]}]}
SELECT DISTINCT ?c WHERE { FILTER NOT EXISTS { ?c property:material_used resource:watercolor } . ?c property:collection resource:Brooklyn_Museum . ?c rdf:type ontology:painting }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q22915765
P180
Q271669 Q56061
USER
How many landforms or administrative territories are expressed in View near New London, Connecticut ?
(Q22915765,P180,c(Q271669)) (Q22915765,P180,c(Q56061))
action count
action union
action filter_type
action find
entity Q22915765
relation P180
type Q271669
action filter_type
action find
entity Q22915765
relation P180
type Q56061
['Q22915765', 'P180', {'concept': 'Q271669'}] ['Q22915765', 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { resource:Q22915765 property:P180 ?d . ?d rdf:type ontology:Q271669 } UNION { ?d rdf:type ontology:Q56061 . resource:Q22915765 property:P180 ?d } }
View near New London, Connecticut
action count
action union
action filter_type
action find
entity View near New London, Connecticut
relation depicts
type landform
action filter_type
action find
entity View near New London, Connecticut
relation depicts
type administrative territorial entity
['View near New London, Connecticut', 'depicts', {'concept': 'landform'}] ['View near New London, Connecticut', 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { resource:View_near_New_London,_Connecticut property:depicts ?d . ?d rdf:type ontology:landform } UNION { ?d rdf:type ontology:administrative_territorial_entity . resource:View_near_New_London,_Connecticut property:depicts ?d } }
[]
landform administrative territorial entity
SYSTEM
2
Q49146 Q93352
(Q22915765,P180,c(Q271669)) (Q22915765,P180,c(Q56061))
action count
action union
action filter_type
action find
entity Q22915765
relation P180
type Q271669
action filter_type
action find
entity Q22915765
relation P180
type Q56061
[ANSWER]
['Q22915765', 'P180', {'concept': 'Q271669'}] ['Q22915765', 'P180', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { resource:Q22915765 property:P180 ?d . ?d rdf:type ontology:Q271669 } UNION { ?d rdf:type ontology:Q56061 . resource:Q22915765 property:P180 ?d } }
New London coast
2
action count
action union
action filter_type
action find
entity View near New London, Connecticut
relation depicts
type landform
action filter_type
action find
entity View near New London, Connecticut
relation depicts
type administrative territorial entity
['View near New London, Connecticut', 'depicts', {'concept': 'landform'}] ['View near New London, Connecticut', 'depicts', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { { resource:View_near_New_London,_Connecticut property:depicts ?d . ?d rdf:type ontology:landform } UNION { ?d rdf:type ontology:administrative_territorial_entity . resource:View_near_New_London,_Connecticut property:depicts ?d } }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2129765 Q30
P530 P17
Q15617994
USER
Which administrative territories holds diplomatic relationship with United States of America or do Villa de Leales belong to ?
OR((Q30,P530,c(Q15617994)), (Q2129765,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q2129765
relation P17
type Q15617994
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q2129765', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2129765 property:P17 ?t } UNION { resource:Q30 property:P530 ?t } } . ?t rdf:type ontology:Q15617994 }
Villa de Leales United States of America
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Villa de Leales
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Villa de Leales', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Villa_de_Leales property:country ?t } UNION { resource:United_States_of_America property:diplomatic_relation ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q889 Q403 Q1011 Q953 Q805 Q801 Q222 Q347 Q159 Q37
SYSTEM
Some of them are Afghanistan, Serbia, Cape Verde, Zambia, Yemen, Israel, Albania, Liechtenstein, Russia, Lithuania
Q805 Q38 Q159 Q222 Q801 Q155 Q148 Q1011 Q889 Q796 Q17 Q37 Q953 Q668 Q403 Q347 Q414
OR((Q30,P530,c(Q15617994)), (Q2129765,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q30
relation P530
action find
entity Q2129765
relation P17
type Q15617994
[ANSWERS] hold diplomatic relationship with United States of America or do Villa de Leales belong to
{'OR': [['Q30', 'P530', {'concept': 'Q15617994'}], ['Q2129765', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Q2129765 property:P17 ?t } UNION { resource:Q30 property:P530 ?t } } . ?t rdf:type ontology:Q15617994 }
Yemen Italy Russia Albania Israel Brazil People's Republic of China Cape Verde Afghanistan Iraq Japan Lithuania Zambia India Serbia Liechtenstein Argentina
Afghanistan, Serbia, Cape Verde, Zambia, Yemen, Israel, Albania, Liechtenstein, Russia and Lithuania hold diplomatic relationship with United States of America or do Villa de Leales belong to
Afghanistan Serbia Cape Verde Zambia Yemen Israel Albania Liechtenstein Russia Lithuania
action filter_type
action union
action find
entity United States of America
relation diplomatic relation
action find
entity Villa de Leales
relation country
type designation for an administrative territorial entity
{'OR': [['United States of America', 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}], ['Villa de Leales', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { { resource:Villa_de_Leales property:country ?t } UNION { resource:United_States_of_America property:diplomatic_relation ?t } } . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q646415
P530
Q15617994
USER
Do Reinstorf have diplomatic relations with those ones ?
(Q646415,P530,Q889) (Q646415,P530,Q403) (Q646415,P530,Q1011) (Q646415,P530,Q953) (Q646415,P530,Q805) (Q646415,P530,Q801) (Q646415,P530,Q222) (Q646415,P530,Q347) (Q646415,P530,Q159) (Q646415,P530,Q37)
action is_in
entity prev_answer
action find
entity Q646415
relation P530
['Q646415', 'P530', 'Q889'] ['Q646415', 'P530', 'Q403'] ['Q646415', 'P530', 'Q1011'] ['Q646415', 'P530', 'Q953'] ['Q646415', 'P530', 'Q805'] ['Q646415', 'P530', 'Q801'] ['Q646415', 'P530', 'Q222'] ['Q646415', 'P530', 'Q347'] ['Q646415', 'P530', 'Q159'] ['Q646415', 'P530', 'Q37']
ASK WHERE { resource:Q646415 property:P530 ?j . VALUES ( ?j ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q159 ) } }
Reinstorf
action is_in
entity prev_answer
action find
entity Reinstorf
relation diplomatic relation
['Reinstorf', 'diplomatic relation', 'Afghanistan'] ['Reinstorf', 'diplomatic relation', 'Serbia'] ['Reinstorf', 'diplomatic relation', 'Cape Verde'] ['Reinstorf', 'diplomatic relation', 'Zambia'] ['Reinstorf', 'diplomatic relation', 'Yemen'] ['Reinstorf', 'diplomatic relation', 'Israel'] ['Reinstorf', 'diplomatic relation', 'Albania'] ['Reinstorf', 'diplomatic relation', 'Liechtenstein'] ['Reinstorf', 'diplomatic relation', 'Russia'] ['Reinstorf', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Reinstorf property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Russia ) } }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q646415,P530,Q889) (Q646415,P530,Q403) (Q646415,P530,Q1011) (Q646415,P530,Q953) (Q646415,P530,Q805) (Q646415,P530,Q801) (Q646415,P530,Q222) (Q646415,P530,Q347) (Q646415,P530,Q159) (Q646415,P530,Q37)
action is_in
entity prev_answer
action find
entity Q646415
relation P530
[ANSWER]
['Q646415', 'P530', 'Q889'] ['Q646415', 'P530', 'Q403'] ['Q646415', 'P530', 'Q1011'] ['Q646415', 'P530', 'Q953'] ['Q646415', 'P530', 'Q805'] ['Q646415', 'P530', 'Q801'] ['Q646415', 'P530', 'Q222'] ['Q646415', 'P530', 'Q347'] ['Q646415', 'P530', 'Q159'] ['Q646415', 'P530', 'Q37']
ASK WHERE { resource:Q646415 property:P530 ?j . VALUES ( ?j ) { ( resource:Q805 ) ( resource:Q38 ) ( resource:Q159 ) } }
No
action is_in
entity prev_answer
action find
entity Reinstorf
relation diplomatic relation
['Reinstorf', 'diplomatic relation', 'Afghanistan'] ['Reinstorf', 'diplomatic relation', 'Serbia'] ['Reinstorf', 'diplomatic relation', 'Cape Verde'] ['Reinstorf', 'diplomatic relation', 'Zambia'] ['Reinstorf', 'diplomatic relation', 'Yemen'] ['Reinstorf', 'diplomatic relation', 'Israel'] ['Reinstorf', 'diplomatic relation', 'Albania'] ['Reinstorf', 'diplomatic relation', 'Liechtenstein'] ['Reinstorf', 'diplomatic relation', 'Russia'] ['Reinstorf', 'diplomatic relation', 'Lithuania']
ASK WHERE { resource:Reinstorf property:diplomatic_relation ?j . VALUES ( ?j ) { ( resource:Yemen ) ( resource:Italy ) ( resource:Russia ) } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q224
P530
Q15617994 Q15617994
USER
How many administrative territories holds diplomatic relationship with less number of administrative territories than Croatia ?
(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_reverse
entity Q224
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { FILTER ( ?q < ?p ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P530 resource:Q224 . ?s rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
Croatia
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_reverse
entity Croatia
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 ( ?k ) AS ?c ) WHERE { FILTER ( ?q < ?p ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:diplomatic_relation resource:Croatia . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
103
Q702 Q804 Q800 Q419 Q55 Q783 Q784 Q265 Q712 Q710 Q717 Q837 Q398 Q657 Q792 Q790 Q958 Q986 Q242 Q244 Q811 Q33 Q924 Q929 Q983 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q1013 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q28 Q921 Q1027 Q1020 Q189 Q842 Q184 Q1029 Q1028 Q736 Q786 Q225 Q221 Q96 Q229 Q902 Q1036 Q1037 Q1032 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q695 Q117 Q754 Q750 Q217 Q214 Q218 Q219 Q912 Q917 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q970 Q683 Q34020 Q686 Q836 Q574 Q874 Q77 Q858 Q878 Q774 Q948 Q817 Q1019 Q945 Q678 Q33788 Q869
(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_reverse
entity Q224
relation P530
type Q15617994
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { FILTER ( ?q < ?p ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:P530 resource:Q224 . ?s rdf:type ontology:Q15617994 } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:P530 ?k . ?j rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15617994 } GROUP BY ?k } }
Federated States of Micronesia Panama Costa Rica Peru Netherlands Honduras Dominica Uzbekistan Fiji Kiribati Venezuela Nepal Bahrain Chad El Salvador Haiti South Sudan Eritrea Belize Barbados Nicaragua Finland Tanzania Central African Republic Equatorial Guinea Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Lesotho Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Hungary Brunei Mauritius Malawi Iceland Oman Belarus Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Republic of Macedonia Mexico Cyprus Bangladesh Uganda Rwanda Niger Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Palau Ghana Trinidad and Tobago Bolivia Republic of Moldova Slovakia Romania Bulgaria Mali Bhutan Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Comoros Samoa Niue Vanuatu Myanmar East Timor Turkmenistan Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Madagascar Togo Tonga New Caledonia Thailand
103
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_reverse
entity Croatia
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 ( ?k ) AS ?c ) WHERE { FILTER ( ?q < ?p ) . { SELECT DISTINCT ( COUNT ( ?s ) AS ?p ) WHERE { ?s property:diplomatic_relation resource:Croatia . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity } } . { SELECT DISTINCT ?k ( COUNT ( ?j ) AS ?q ) WHERE { ?j property:diplomatic_relation ?k . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?k } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1639660 Q30
P6
Q502895
USER
Which people are the heads of the government of United States of America or Añón de Moncayo ?
OR((Q30,P6,c(Q502895)), (Q1639660,P6,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1639660
relation P6
type Q502895
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1639660', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?v ) { ( resource:Q30 ) ( resource:Q1639660 ) } . ?v property:P6 ?h } . ?h rdf:type ontology:Q502895 }
Añón de Moncayo United States of America
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Añón de Moncayo
relation head of government
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Añón de Moncayo', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?v ) { ( resource:United_States_of_America ) ( resource:Añón_de_Moncayo ) } . ?v property:head_of_government ?h } . ?h rdf:type ontology:common_name }
[]
common name
Q34296 Q22686 Q9960 Q12325 Q9582 Q34597 Q35286 Q9696 Q11806 Q9640
SYSTEM
Some of them are Woodrow Wilson, Donald Trump, Ronald Reagan, James Buchanan, Gerald Ford, James A. Garfield, Warren G. Harding, John F. Kennedy, John Adams, Lyndon B. Johnson
Q35171 Q11815 Q11816 Q11817 Q9588 Q11812 Q12306 Q91 Q12325 Q33866 Q35648 Q35498 Q9582 Q11869 Q207 Q11813 Q35236 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q14109899 Q35686 Q11820 Q35678 Q35041 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
OR((Q30,P6,c(Q502895)), (Q1639660,P6,c(Q502895)))
action filter_type
action union
action find
entity Q30
relation P6
action find
entity Q1639660
relation P6
type Q502895
[ANSWERS] are the heads of the government of United States of America or Añón de Moncayo
{'OR': [['Q30', 'P6', {'concept': 'Q502895'}], ['Q1639660', 'P6', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?v ) { ( resource:Q30 ) ( resource:Q1639660 ) } . ?v property:P6 ?h } . ?h rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Richard Nixon Thomas Jefferson Millard Fillmore Abraham Lincoln James Buchanan Theodore Roosevelt William Howard Taft Chester A. Arthur Gerald Ford William Henry Harrison George W. Bush James Madison Herbert Hoover Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Pedro Ramiro Abadia Perez Rutherford B. Hayes Martin Van Buren Benjamin Harrison William McKinley Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
Woodrow Wilson, Donald Trump, Ronald Reagan, James Buchanan, Gerald Ford, James A. Garfield, Warren G. Harding, John F. Kennedy, John Adams and Lyndon B. Johnson are the heads of the government of United States of America or Añón de Moncayo
Woodrow Wilson Donald Trump Ronald Reagan James Buchanan Gerald Ford James A. Garfield Warren G. Harding John F. Kennedy John Adams Lyndon B. Johnson
action filter_type
action union
action find
entity United States of America
relation head of government
action find
entity Añón de Moncayo
relation head of government
type common name
{'OR': [['United States of America', 'head of government', {'concept': 'common name'}], ['Añón de Moncayo', 'head of government', {'concept': 'common name'}]]}
SELECT DISTINCT ?h WHERE { { VALUES ( ?v ) { ( resource:United_States_of_America ) ( resource:Añón_de_Moncayo ) } . ?v property:head_of_government ?h } . ?h rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q301437 Q1639660
P47
Q1048835
USER
Which political territories have a shared border with Añón de Moncayo or Priego de Córdoba ?
OR((Q1639660,P47,c(Q1048835)), (Q301437,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1639660
relation P47
action find
entity Q301437
relation P47
type Q1048835
{'OR': [['Q1639660', 'P47', {'concept': 'Q1048835'}], ['Q301437', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1639660 property:P47 ?y } UNION { resource:Q301437 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Priego de Córdoba Añón de Moncayo
action filter_type
action union
action find
entity Añón de Moncayo
relation shares border with
action find
entity Priego de Córdoba
relation shares border with
type political territorial entity
{'OR': [['Añón de Moncayo', 'shares border with', {'concept': 'political territorial entity'}], ['Priego de Córdoba', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Añón_de_Moncayo property:shares_border_with ?y } UNION { resource:Priego_de_Córdoba property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q1628407 Q1628169 Q986552 Q339790 Q830206 Q1640038 Q592982 Q904793 Q842679 Q1628460
SYSTEM
Some of them are Ambel, Trasmoz, Luque, Fuente-Tójar, Beratón, Purujosa, Rute, Iznájar, Carcabuey, Litago
Q1613282 Q830206 Q339790 Q1639119 Q1639321 Q854412 Q835658 Q1628460 Q1640038 Q904793 Q1650833 Q1628407 Q842679 Q638181 Q39856 Q639412 Q388975 Q1628169 Q593696 Q986552 Q592982
OR((Q1639660,P47,c(Q1048835)), (Q301437,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1639660
relation P47
action find
entity Q301437
relation P47
type Q1048835
[ANSWERS] have a shared border with Añón de Moncayo or Priego de Córdoba
{'OR': [['Q1639660', 'P47', {'concept': 'Q1048835'}], ['Q301437', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q1639660 property:P47 ?y } UNION { resource:Q301437 property:P47 ?y } } . ?y rdf:type ontology:Q1048835 }
Alcaudete Beratón Fuente-Tójar Alcalá de Moncayo Talamantes Almedinilla Cueva de Ágreda Litago Purujosa Iznájar Calcena Ambel Carcabuey Alcalá la Real Ágreda Tarazona Algarinejo Trasmoz Montefrío Luque Rute
Ambel, Trasmoz, Luque, Fuente-Tójar, Beratón, Purujosa, Rute, Iznájar, Carcabuey and Litago have a shared border with Añón de Moncayo or Priego de Córdoba
Ambel Trasmoz Luque Fuente-Tójar Beratón Purujosa Rute Iznájar Carcabuey Litago
action filter_type
action union
action find
entity Añón de Moncayo
relation shares border with
action find
entity Priego de Córdoba
relation shares border with
type political territorial entity
{'OR': [['Añón de Moncayo', 'shares border with', {'concept': 'political territorial entity'}], ['Priego de Córdoba', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Añón_de_Moncayo property:shares_border_with ?y } UNION { resource:Priego_de_Córdoba property:shares_border_with ?y } } . ?y rdf:type ontology:political_territorial_entity }
[]