Simple Question (Direct)
Simple Question
Q7937695
P25
Q502895
USER
Who was the mother of Vivian Dandridge ?
(Q7937695,P25,c(Q502895))
action filter_type
action find
entity Q7937695
relation P25
type Q502895
['Q7937695', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7937695 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Vivian Dandridge
action filter_type
action find
entity Vivian Dandridge
relation mother
type common name
['Vivian Dandridge', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Vivian_Dandridge property:mother ?e . ?e rdf:type ontology:common_name }
[]
common name
Q3942181
SYSTEM
Ruby Dandridge
Q3942181
(Q7937695,P25,c(Q502895))
action filter_type
action find
entity Q7937695
relation P25
type Q502895
The mother of Vivian Dandridge was born [ANSWER]
['Q7937695', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q7937695 property:P25 ?e . ?e rdf:type ontology:Q502895 }
Ruby Dandridge
The mother of Vivian Dandridge was born Ruby Dandridge
Ruby Dandridge
action filter_type
action find
entity Vivian Dandridge
relation mother
type common name
['Vivian Dandridge', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:Vivian_Dandridge property:mother ?e . ?e rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7937695
P106
Q12737077
USER
What do Vivian Dandridge do for a living ?
(Q7937695,P106,c(Q12737077))
action filter_type
action find
entity Q7937695
relation P106
type Q12737077
['Q7937695', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q7937695 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
Vivian Dandridge
action filter_type
action find
entity Vivian Dandridge
relation occupation
type occupation
['Vivian Dandridge', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Vivian_Dandridge property:occupation ?s . ?s rdf:type ontology:occupation }
[]
occupation
Q33999 Q177220
SYSTEM
actor, singer
Q33999 Q177220
(Q7937695,P106,c(Q12737077))
action filter_type
action find
entity Q7937695
relation P106
type Q12737077
[ANSWERS] Vivian Dandridge do for a living
['Q7937695', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?s WHERE { resource:Q7937695 property:P106 ?s . ?s rdf:type ontology:Q12737077 }
actor singer
Actor and singer Vivian Dandridge do for a living
actor singer
action filter_type
action find
entity Vivian Dandridge
relation occupation
type occupation
['Vivian Dandridge', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?s WHERE { resource:Vivian_Dandridge property:occupation ?s . ?s rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q33999
P921
Q15416
USER
Which television programs have that occupation as their main topic ?
(c(Q15416),P921,Q33999)
action filter_type
action find_reverse
entity Q33999
relation P921
type Q15416
[{'concept': 'Q15416'}, 'P921', 'Q33999']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q33999 . ?g rdf:type ontology:Q15416 }
actor
action filter_type
action find_reverse
entity actor
relation main subject
type television program
[{'concept': 'television program'}, 'main subject', 'actor']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:actor . ?g rdf:type ontology:television_program }
[]
television program
Clarification for simple ques.
Q33999
SYSTEM
Did you mean actor ?
Q33999 Q177220
(c(Q15416),P921,Q33999) (c(Q15416),P921,Q177220)
[ANSWER]
[{'concept': 'Q15416'}, 'P921', 'Q33999'] [{'concept': 'Q15416'}, 'P921', 'Q177220']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q33999 . ?g rdf:type ontology:Q15416 }
actor singer
Did you mean actor ?
actor
[{'concept': 'television program'}, 'main subject', 'actor'] [{'concept': 'television program'}, 'main subject', 'singer']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:actor . ?g rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q15416),P921,Q33999)
[{'concept': 'Q15416'}, 'P921', 'Q33999']
[{'concept': 'television program'}, 'main subject', 'actor']
[]
Q15052328 Q2165334 Q7527938
SYSTEM
Love, Marilyn, Romy: Anatomy of a Face, Sir John Mills' Moving Memories
Q5002160 Q7527938 Q15052328 Q14954363 Q16901768 Q2165334
(c(Q15416),P921,Q33999)
action filter_type
action find_reverse
entity Q33999
relation P921
type Q15416
Love, Marilyn, Romy: Anatomy of a Face and Sir John Mills' moving Memories have that occupation as their main topic
[{'concept': 'Q15416'}, 'P921', 'Q33999']
SELECT DISTINCT ?g WHERE { ?g property:P921 resource:Q33999 . ?g rdf:type ontology:Q15416 }
Buster Keaton: A Hard Act to Follow Sir John Mills' Moving Memories Love, Marilyn When Steptoe Met Son The Baldwin Brothers Romy: Anatomy of a Face
Love, Marilyn, Romy: Anatomy of a Face and Sir John Mills' moving Memories have that occupation as their main topic
Love, Marilyn Romy: Anatomy of a Face Sir John Mills' Moving Memories
action filter_type
action find_reverse
entity actor
relation main subject
type television program
[{'concept': 'television program'}, 'main subject', 'actor']
SELECT DISTINCT ?g WHERE { ?g property:main_subject resource:actor . ?g rdf:type ontology:television_program }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q15052328 Q2165334 Q7527938
P57
Q502895
USER
Who were Love, Marilyn, Romy: Anatomy of a Face and Sir John Mills' Moving Memories directed by ?
(Q15052328,P57,c(Q502895)) (Q2165334,P57,c(Q502895)) (Q7527938,P57,c(Q502895))
action union
action filter_type
action find
entity Q15052328
relation P57
type Q502895
action filter_type
action find
entity Q2165334
relation P57
type Q502895
action filter_type
action find
entity Q7527938
relation P57
type Q502895
['Q15052328', 'P57', {'concept': 'Q502895'}] ['Q2165334', 'P57', {'concept': 'Q502895'}] ['Q7527938', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Q15052328 ) ( resource:Q2165334 ) } . ?g property:P57 ?l }
Love, Marilyn Romy: Anatomy of a Face Sir John Mills' Moving Memories
action union
action filter_type
action find
entity Love, Marilyn
relation director
type common name
action filter_type
action find
entity Romy: Anatomy of a Face
relation director
type common name
action filter_type
action find
entity Sir John Mills' Moving Memories
relation director
type common name
['Love, Marilyn', 'director', {'concept': 'common name'}] ['Romy: Anatomy of a Face', 'director', {'concept': 'common name'}] ["Sir John Mills' Moving Memories", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Love,_Marilyn ) ( resource:Romy:_Anatomy_of_a_Face ) } . ?g property:director ?l }
[]
common name
Q3257306 Q64358 Q6758124
SYSTEM
Liz Garbus, Hans-Jürgen Syberberg, Marcus Dillistone
Q3257306 Q64358 Q6758124
(Q15052328,P57,c(Q502895)) (Q2165334,P57,c(Q502895)) (Q7527938,P57,c(Q502895))
action union
action filter_type
action find
entity Q15052328
relation P57
type Q502895
action filter_type
action find
entity Q2165334
relation P57
type Q502895
action filter_type
action find
entity Q7527938
relation P57
type Q502895
[ANSWERS] were Love, Marilyn, Romy: Anatomy of a Face and Sir John Mills' Moving Memories directed by
['Q15052328', 'P57', {'concept': 'Q502895'}] ['Q2165334', 'P57', {'concept': 'Q502895'}] ['Q7527938', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Q15052328 ) ( resource:Q2165334 ) } . ?g property:P57 ?l }
Liz Garbus Hans-Jürgen Syberberg Marcus Dillistone
Liz Garbus, Hans-Jürgen Syberberg and Marcus Dillistone were Love, Marilyn, Romy: Anatomy of a Face and Sir John Mills' Moving Memories directed by
Liz Garbus Hans-Jürgen Syberberg Marcus Dillistone
action union
action filter_type
action find
entity Love, Marilyn
relation director
type common name
action filter_type
action find
entity Romy: Anatomy of a Face
relation director
type common name
action filter_type
action find
entity Sir John Mills' Moving Memories
relation director
type common name
['Love, Marilyn', 'director', {'concept': 'common name'}] ['Romy: Anatomy of a Face', 'director', {'concept': 'common name'}] ["Sir John Mills' Moving Memories", 'director', {'concept': 'common name'}]
SELECT DISTINCT ?l WHERE { VALUES ( ?g ) { ( resource:Love,_Marilyn ) ( resource:Romy:_Anatomy_of_a_Face ) } . ?g property:director ?l }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3257306 Q64358 Q6758124
P21
Q290
USER
Which sexes do those people belong to ?
(Q3257306,P21,c(Q290)) (Q64358,P21,c(Q290)) (Q6758124,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
['Q3257306', 'P21', {'concept': 'Q290'}] ['Q64358', 'P21', {'concept': 'Q290'}] ['Q6758124', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . VALUES ( ?x ) { ( resource:Q3257306 ) ( resource:Q64358 ) ( resource:Q6758124 ) } . ?x property:P21 ?g }
Liz Garbus Hans-Jürgen Syberberg Marcus Dillistone
action filter_type
action find
entity prev_answer
relation gender
type sex
['Liz Garbus', 'gender', {'concept': 'sex'}] ['Hans-Jürgen Syberberg', 'gender', {'concept': 'sex'}] ['Marcus Dillistone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . VALUES ( ?x ) { ( resource:Liz_Garbus ) ( resource:Hans-Jürgen_Syberberg ) ( resource:Marcus_Dillistone ) } . ?x property:gender ?g }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q3257306,P21,c(Q290)) (Q64358,P21,c(Q290)) (Q6758124,P21,c(Q290))
action filter_type
action find
entity prev_answer
relation P21
type Q290
[ANSWERS]
['Q3257306', 'P21', {'concept': 'Q290'}] ['Q64358', 'P21', {'concept': 'Q290'}] ['Q6758124', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q290 . VALUES ( ?x ) { ( resource:Q3257306 ) ( resource:Q64358 ) ( resource:Q6758124 ) } . ?x property:P21 ?g }
female male male
Those people belong to female, male and male
female male male
action filter_type
action find
entity prev_answer
relation gender
type sex
['Liz Garbus', 'gender', {'concept': 'sex'}] ['Hans-Jürgen Syberberg', 'gender', {'concept': 'sex'}] ['Marcus Dillistone', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:sex . VALUES ( ?x ) { ( resource:Liz_Garbus ) ( resource:Hans-Jürgen_Syberberg ) ( resource:Marcus_Dillistone ) } . ?x property:gender ?g }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3257306
P69
Q163740
USER
Which nonprofit organization is that person an alumni of ?
(Q3257306,P69,c(Q163740))
action filter_type
action find
entity Q3257306
relation P69
type Q163740
['Q3257306', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q163740 . resource:Q3257306 property:P69 ?b }
Liz Garbus
action filter_type
action find
entity Liz Garbus
relation educated at
type nonprofit organization
['Liz Garbus', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:nonprofit_organization . resource:Liz_Garbus property:educated_at ?b }
[]
nonprofit organization
Clarification for simple ques.
Q3257306
SYSTEM
Did you mean Liz Garbus ?
Q6581072 Q6581097 Q6581097
(Q6581072,P69,c(Q163740)) (Q6581097,P69,c(Q163740)) (Q6581097,P69,c(Q163740))
[ANSWER]
['Q6581072', 'P69', {'concept': 'Q163740'}] ['Q6581097', 'P69', {'concept': 'Q163740'}] ['Q6581097', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q163740 . resource:Q3257306 property:P69 ?b }
female male male
Did you mean Liz Garbus ?
Liz Garbus
['female', 'educated at', {'concept': 'nonprofit organization'}] ['male', 'educated at', {'concept': 'nonprofit organization'}] ['male', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:nonprofit_organization . resource:Liz_Garbus property:educated_at ?b }
[]
Simple Question (Coreferenced)
USER
Yes
(Q3257306,P69,c(Q163740))
['Q3257306', 'P69', {'concept': 'Q163740'}]
['Liz Garbus', 'educated at', {'concept': 'nonprofit organization'}]
[]
Q49114
SYSTEM
Brown University
Q49114
(Q3257306,P69,c(Q163740))
action filter_type
action find
entity Q3257306
relation P69
type Q163740
[ANSWER] is that person an alumni of
['Q3257306', 'P69', {'concept': 'Q163740'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q163740 . resource:Q3257306 property:P69 ?b }
Brown University
Brown University is that person an alumni of
Brown University
action filter_type
action find
entity Liz Garbus
relation educated at
type nonprofit organization
['Liz Garbus', 'educated at', {'concept': 'nonprofit organization'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:nonprofit_organization . resource:Liz_Garbus property:educated_at ?b }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q49114 Q30 Q1355972
P17
Q15617994
USER
Is Brown University present in United States of America and Wenjiang District ?
(Q49114,P17,Q30) (Q49114,P17,Q1355972)
action is_in
entity Q49114
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q1355972
relation P17
['Q49114', 'P17', 'Q30'] ['Q49114', 'P17', 'Q1355972']
ASK WHERE { resource:Q49114 property:P17 resource:Q30 . resource:Q49114 property:P17 resource:Q1355972 }
Brown University United States of America Wenjiang District
action is_in
entity Brown University
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Wenjiang District
relation country
['Brown University', 'country', 'United States of America'] ['Brown University', 'country', 'Wenjiang District']
ASK WHERE { resource:Brown_University property:country resource:United_States_of_America . resource:Brown_University property:country resource:Wenjiang_District }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q49114,P17,Q30) (Q49114,P17,Q1355972)
action is_in
entity Q49114
action intersection
action find_reverse
entity Q30
relation P17
action find_reverse
entity Q1355972
relation P17
[ANSWER]
['Q49114', 'P17', 'Q30'] ['Q49114', 'P17', 'Q1355972']
ASK WHERE { resource:Q49114 property:P17 resource:Q30 . resource:Q49114 property:P17 resource:Q1355972 }
YES and NO respectively
action is_in
entity Brown University
action intersection
action find_reverse
entity United States of America
relation country
action find_reverse
entity Wenjiang District
relation country
['Brown University', 'country', 'United States of America'] ['Brown University', 'country', 'Wenjiang District']
ASK WHERE { resource:Brown_University property:country resource:United_States_of_America . resource:Brown_University property:country resource:Wenjiang_District }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q49114 Q1553390
P276
Q838948
USER
How many works of art have their location as Brown University or United States Department of Justice ?
(c(Q838948),P276,Q49114) (c(Q838948),P276,Q1553390)
action count
action union
action filter_type
action find_reverse
entity Q49114
relation P276
type Q838948
action filter_type
action find_reverse
entity Q1553390
relation P276
type Q838948
[{'concept': 'Q838948'}, 'P276', 'Q49114'] [{'concept': 'Q838948'}, 'P276', 'Q1553390']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:P276 ?p . VALUES ( ?p ) { ( resource:Q49114 ) ( resource:Q1553390 ) } }
Brown University United States Department of Justice
action count
action union
action filter_type
action find_reverse
entity Brown University
relation location
type work of art
action filter_type
action find_reverse
entity United States Department of Justice
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Brown University'] [{'concept': 'work of art'}, 'location', 'United States Department of Justice']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:location ?p . VALUES ( ?p ) { ( resource:Brown_University ) ( resource:United_States_Department_of_Justice ) } }
[]
work of art
SYSTEM
2
Q19759438 Q5036747
(c(Q838948),P276,Q49114) (c(Q838948),P276,Q1553390)
action count
action union
action filter_type
action find_reverse
entity Q49114
relation P276
type Q838948
action filter_type
action find_reverse
entity Q1553390
relation P276
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P276', 'Q49114'] [{'concept': 'Q838948'}, 'P276', 'Q1553390']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:P276 ?p . VALUES ( ?p ) { ( resource:Q49114 ) ( resource:Q1553390 ) } }
Three Piece Reclining Figure No. 2: Bridge Prop Captain Nathan Hale
2
action count
action union
action filter_type
action find_reverse
entity Brown University
relation location
type work of art
action filter_type
action find_reverse
entity United States Department of Justice
relation location
type work of art
[{'concept': 'work of art'}, 'location', 'Brown University'] [{'concept': 'work of art'}, 'location', 'United States Department of Justice']
SELECT DISTINCT ( COUNT ( ?d ) AS ?q ) WHERE { ?d property:location ?p . VALUES ( ?p ) { ( resource:Brown_University ) ( resource:United_States_Department_of_Justice ) } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q16639206 Q64358
P19
Q15617994
USER
Which administrative territories are the places of birth of Hans-Jürgen Syberberg or Giuseppe Gerratana ?
OR((Q64358,P19,c(Q15617994)), (Q16639206,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q64358
relation P19
action find
entity Q16639206
relation P19
type Q15617994
{'OR': [['Q64358', 'P19', {'concept': 'Q15617994'}], ['Q16639206', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { ?o property:P19 ?s . VALUES ( ?o ) { ( resource:Q64358 ) ( resource:Q16639206 ) } } }
Giuseppe Gerratana Hans-Jürgen Syberberg
action filter_type
action union
action find
entity Hans-Jürgen Syberberg
relation place of birth
action find
entity Giuseppe Gerratana
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Hans-Jürgen Syberberg', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Giuseppe Gerratana', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?o property:place_of_birth ?s . VALUES ( ?o ) { ( resource:Hans-Jürgen_Syberberg ) ( resource:Giuseppe_Gerratana ) } } }
[]
designation for an administrative territorial entity
Q34102 Q53762
SYSTEM
Modica, Nossendorf
Q34102 Q53762
OR((Q64358,P19,c(Q15617994)), (Q16639206,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q64358
relation P19
action find
entity Q16639206
relation P19
type Q15617994
[ANSWERS] are the places of birth of Hans-Jürgen Syberberg or Giuseppe Gerratana
{'OR': [['Q64358', 'P19', {'concept': 'Q15617994'}], ['Q16639206', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q15617994 . { ?o property:P19 ?s . VALUES ( ?o ) { ( resource:Q64358 ) ( resource:Q16639206 ) } } }
Modica Nossendorf
Modica and Nossendorf are the places of birth of Hans-Jürgen Syberberg or Giuseppe Gerratana
Modica Nossendorf
action filter_type
action union
action find
entity Hans-Jürgen Syberberg
relation place of birth
action find
entity Giuseppe Gerratana
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Hans-Jürgen Syberberg', 'place of birth', {'concept': 'designation for an administrative territorial entity'}], ['Giuseppe Gerratana', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . { ?o property:place_of_birth ?s . VALUES ( ?o ) { ( resource:Hans-Jürgen_Syberberg ) ( resource:Giuseppe_Gerratana ) } } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q19636385 Q34102
P17
Q15617994
USER
Which administrative territories are Modica or Vleutensevaart situated in ?
OR((Q34102,P17,c(Q15617994)), (Q19636385,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34102
relation P17
action find
entity Q19636385
relation P17
type Q15617994
{'OR': [['Q34102', 'P17', {'concept': 'Q15617994'}], ['Q19636385', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?x ) { ( resource:Q19636385 ) ( resource:Q34102 ) } . ?x property:P17 ?g } . ?g rdf:type ontology:Q15617994 }
Vleutensevaart Modica
action filter_type
action union
action find
entity Modica
relation country
action find
entity Vleutensevaart
relation country
type designation for an administrative territorial entity
{'OR': [['Modica', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vleutensevaart', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?x ) { ( resource:Vleutensevaart ) ( resource:Modica ) } . ?x property:country ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q38 Q55
SYSTEM
Italy, Netherlands
Q38 Q55
OR((Q34102,P17,c(Q15617994)), (Q19636385,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q34102
relation P17
action find
entity Q19636385
relation P17
type Q15617994
Modica or Vleutensevaart are situated in [ANSWERS]
{'OR': [['Q34102', 'P17', {'concept': 'Q15617994'}], ['Q19636385', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?x ) { ( resource:Q19636385 ) ( resource:Q34102 ) } . ?x property:P17 ?g } . ?g rdf:type ontology:Q15617994 }
Italy Netherlands
Modica or Vleutensevaart are situated in Italy and Netherlands
Italy Netherlands
action filter_type
action union
action find
entity Modica
relation country
action find
entity Vleutensevaart
relation country
type designation for an administrative territorial entity
{'OR': [['Modica', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Vleutensevaart', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { VALUES ( ?x ) { ( resource:Vleutensevaart ) ( resource:Modica ) } . ?x property:country ?g } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q15617994
USER
How many administrative territories have tactful political relations with atmost 80 administrative territories ?
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 80
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?m ) WHERE { ?f rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?f property:P530 ?n } GROUP BY ?f } . FILTER ( ?m <= 80 ) }
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?m ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?n } GROUP BY ?f } . FILTER ( ?m <= 80 ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
161
Q702 Q804 Q801 Q800 Q805 Q419 Q668 Q414 Q142 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q159 Q43 Q41 Q155 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q30 Q924 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q230 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q184 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q17 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q114 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q858 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869 Q953
(c(Q15617994),P530,c(Q15617994))
action count
action atmost
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 80
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?m ) WHERE { ?f rdf:type ontology:Q15617994 . ?n rdf:type ontology:Q15617994 . ?f property:P530 ?n } GROUP BY ?f } . FILTER ( ?m <= 80 ) }
Federated States of Micronesia Panama Israel Costa Rica Yemen Peru India Argentina France Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Russia Turkey Greece Brazil El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium United States of America Tanzania Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Georgia Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Belarus Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Kenya Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay Syria United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand Zambia
161
action count
action atmost
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 80
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?f ) AS ?h ) WHERE { { SELECT DISTINCT ?f ( COUNT ( ?n ) AS ?m ) WHERE { ?f rdf:type ontology:designation_for_an_administrative_territorial_entity . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f property:diplomatic_relation ?n } GROUP BY ?f } . FILTER ( ?m <= 80 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1410782 Q55
P47 P530
Q1048835
USER
Which political territories have a diplomatic relationship with Netherlands or share border with Iznalloz ?
OR((Q55,P530,c(Q1048835)), (Q1410782,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q55
relation P530
action find
entity Q1410782
relation P47
type Q1048835
{'OR': [['Q55', 'P530', {'concept': 'Q1048835'}], ['Q1410782', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q55 property:P530 ?s } UNION { resource:Q1410782 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Iznalloz Netherlands
action filter_type
action union
action find
entity Netherlands
relation diplomatic relation
action find
entity Iznalloz
relation shares border with
type political territorial entity
{'OR': [['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Iznalloz', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Netherlands property:diplomatic_relation ?s } UNION { resource:Iznalloz property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q576248 Q593679 Q557966 Q554814 Q408 Q593505 Q983622 Q565415 Q575658 Q1642224
SYSTEM
Some of them are Huétor Santillán, Montillana, Colomera, Benalúa de las Villas, Australia, Montejícar, Diezma, Albolote, Guadahortuna, Noalejo
Q1642224 Q253744 Q559275 Q557958 Q575658 Q611308 Q183 Q557966 Q983622 Q554814 Q565415 Q408 Q593505 Q593679 Q576248 Q559665
OR((Q55,P530,c(Q1048835)), (Q1410782,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q55
relation P530
action find
entity Q1410782
relation P47
type Q1048835
[ANSWERS] have a diplomatic relationship with Netherlands or share border with Iznalloz
{'OR': [['Q55', 'P530', {'concept': 'Q1048835'}], ['Q1410782', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Q55 property:P530 ?s } UNION { resource:Q1410782 property:P47 ?s } } . ?s rdf:type ontology:Q1048835 }
Noalejo Campotéjar Deifontes Cogollos Vega Guadahortuna Píñar Germany Colomera Diezma Benalúa de las Villas Albolote Australia Montejícar Montillana Huétor Santillán Darro
Huétor Santillán, Montillana, Colomera, Benalúa de las Villas, Australia, Montejícar, Diezma, Albolote, Guadahortuna and Noalejo have a diplomatic relationship with Netherlands or share border with Iznalloz
Huétor Santillán Montillana Colomera Benalúa de las Villas Australia Montejícar Diezma Albolote Guadahortuna Noalejo
action filter_type
action union
action find
entity Netherlands
relation diplomatic relation
action find
entity Iznalloz
relation shares border with
type political territorial entity
{'OR': [['Netherlands', 'diplomatic relation', {'concept': 'political territorial entity'}], ['Iznalloz', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?s WHERE { { { resource:Netherlands property:diplomatic_relation ?s } UNION { resource:Iznalloz property:shares_border_with ?s } } . ?s rdf:type ontology:political_territorial_entity }
[]