Simple Question (Direct)
Simple Question
Q6318545
P108
Q43229
USER
Which organization employs Justus Danckerts ?
(Q6318545,P108,c(Q43229))
action filter_type
action find
entity Q6318545
relation P108
type Q43229
['Q6318545', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q6318545 property:P108 ?l . ?l rdf:type ontology:Q43229 }
Justus Danckerts
action filter_type
action find
entity Justus Danckerts
relation employer
type organization
['Justus Danckerts', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Justus_Danckerts property:employer ?l . ?l rdf:type ontology:organization }
[]
organization
Q26690184
SYSTEM
Publisher Danckerts
Q26690184
(Q6318545,P108,c(Q43229))
action filter_type
action find
entity Q6318545
relation P108
type Q43229
[ANSWER] employs Justus Danckerts
['Q6318545', 'P108', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q6318545 property:P108 ?l . ?l rdf:type ontology:Q43229 }
Publisher Danckerts
Publisher Danckerts employs Justus Danckerts
Publisher Danckerts
action filter_type
action find
entity Justus Danckerts
relation employer
type organization
['Justus Danckerts', 'employer', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Justus_Danckerts property:employer ?l . ?l rdf:type ontology:organization }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q26690184 Q55
P495
Q15617994
USER
Is Netherlands the country of origin of Publisher Danckerts ?
(Q26690184,P495,Q55)
action is_in
entity Q55
action find
entity Q26690184
relation P495
['Q26690184', 'P495', 'Q55']
ASK WHERE { resource:Q26690184 property:P495 resource:Q55 }
Publisher Danckerts Netherlands
action is_in
entity Netherlands
action find
entity Publisher Danckerts
relation country of origin
['Publisher Danckerts', 'country of origin', 'Netherlands']
ASK WHERE { resource:Publisher_Danckerts property:country_of_origin resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26690184,P495,Q55)
action is_in
entity Q55
action find
entity Q26690184
relation P495
[ANSWER]
['Q26690184', 'P495', 'Q55']
ASK WHERE { resource:Q26690184 property:P495 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Publisher Danckerts
relation country of origin
['Publisher Danckerts', 'country of origin', 'Netherlands']
ASK WHERE { resource:Publisher_Danckerts property:country_of_origin resource:Netherlands }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6403990 Q26690184
P495
Q15617994
USER
Which administrative territories are the countries of origin of Publisher Danckerts or Kibbutz ?
OR((Q26690184,P495,c(Q15617994)), (Q6403990,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q26690184
relation P495
action find
entity Q6403990
relation P495
type Q15617994
{'OR': [['Q26690184', 'P495', {'concept': 'Q15617994'}], ['Q6403990', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?d ) { ( resource:Q26690184 ) ( resource:Q6403990 ) } . ?d property:P495 ?e } }
Kibbutz Publisher Danckerts
action filter_type
action union
action find
entity Publisher Danckerts
relation country of origin
action find
entity Kibbutz
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Publisher Danckerts', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kibbutz', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?d ) { ( resource:Publisher_Danckerts ) ( resource:Kibbutz ) } . ?d property:country_of_origin ?e } }
[]
designation for an administrative territorial entity
Q55 Q801
SYSTEM
Netherlands, Israel
Q55 Q801
OR((Q26690184,P495,c(Q15617994)), (Q6403990,P495,c(Q15617994)))
action filter_type
action union
action find
entity Q26690184
relation P495
action find
entity Q6403990
relation P495
type Q15617994
[ANSWERS] are the countries of origin of Publisher Danckerts or Kibbutz
{'OR': [['Q26690184', 'P495', {'concept': 'Q15617994'}], ['Q6403990', 'P495', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?d ) { ( resource:Q26690184 ) ( resource:Q6403990 ) } . ?d property:P495 ?e } }
Netherlands Israel
Netherlands and Israel are the countries of origin of Publisher Danckerts or Kibbutz
Netherlands Israel
action filter_type
action union
action find
entity Publisher Danckerts
relation country of origin
action find
entity Kibbutz
relation country of origin
type designation for an administrative territorial entity
{'OR': [['Publisher Danckerts', 'country of origin', {'concept': 'designation for an administrative territorial entity'}], ['Kibbutz', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?d ) { ( resource:Publisher_Danckerts ) ( resource:Kibbutz ) } . ?d property:country_of_origin ?e } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q6403990
P495
Q15617994
USER
How many administrative territories are the countries of origin of Kibbutz ?
(Q6403990,P495,c(Q15617994))
action count
action filter_type
action find
entity Q6403990
relation P495
type Q15617994
['Q6403990', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q6403990 property:P495 ?u }
Kibbutz
action count
action filter_type
action find
entity Kibbutz
relation country of origin
type designation for an administrative territorial entity
['Kibbutz', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kibbutz property:country_of_origin ?u }
[]
designation for an administrative territorial entity
SYSTEM
1
Q801
(Q6403990,P495,c(Q15617994))
action count
action filter_type
action find
entity Q6403990
relation P495
type Q15617994
[ANSWER]
['Q6403990', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ontology:Q15617994 . resource:Q6403990 property:P495 ?u }
Israel
1
action count
action filter_type
action find
entity Kibbutz
relation country of origin
type designation for an administrative territorial entity
['Kibbutz', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?c ) WHERE { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kibbutz property:country_of_origin ?u }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q26180172
P495
Q15617994
USER
And what about Heber Robert McBride?
(Q26180172,P495,c(Q15617994))
action count
action filter_type
action find
entity Q26180172
relation P495
type Q15617994
['Q26180172', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q26180172 property:P495 ?d . ?d rdf:type ontology:Q15617994 }
Heber Robert McBride
action count
action filter_type
action find
entity Heber Robert McBride
relation country of origin
type designation for an administrative territorial entity
['Heber Robert McBride', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Heber_Robert_McBride property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
Q145
(Q26180172,P495,c(Q15617994))
action count
action filter_type
action find
entity Q26180172
relation P495
type Q15617994
[ANSWER]
['Q26180172', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Q26180172 property:P495 ?d . ?d rdf:type ontology:Q15617994 }
United Kingdom
1
action count
action filter_type
action find
entity Heber Robert McBride
relation country of origin
type designation for an administrative territorial entity
['Heber Robert McBride', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?l ) WHERE { resource:Heber_Robert_McBride property:country_of_origin ?d . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20196646
Q15617994
USER
And what about Sound?
(Q20196646,P495,c(Q15617994))
action count
action filter_type
action find
entity Q20196646
relation P495
type Q15617994
['Q20196646', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q20196646 property:P495 ?l . ?l rdf:type ontology:Q15617994 }
Sound
action count
action filter_type
action find
entity Sound
relation country of origin
type designation for an administrative territorial entity
['Sound', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Sound property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
1
(Q20196646,P495,c(Q15617994))
action count
action filter_type
action find
entity Q20196646
relation P495
type Q15617994
[ANSWER]
['Q20196646', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Q20196646 property:P495 ?l . ?l rdf:type ontology:Q15617994 }
1
action count
action filter_type
action find
entity Sound
relation country of origin
type designation for an administrative territorial entity
['Sound', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?l ) AS ?c ) WHERE { resource:Sound property:country_of_origin ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q189
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relations with greater number of administrative territories than Iceland ?
(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 Q189
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:P530 ?d . ?l rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q189 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?j ) }
Iceland
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 Iceland
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:diplomatic_relation ?d . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Iceland property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?j ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q419 Q668 Q414 Q142 Q145 Q148 Q37 Q711 Q717 Q252 Q399 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q889 Q884 Q881 Q822 Q241 Q32 Q31 Q30 Q36 Q34 Q928 Q929 Q39 Q38 Q739 Q423 Q733 Q230 Q27 Q28 Q843 Q184 Q228 Q227 Q225 Q222 Q96 Q347 Q17 Q902 Q298 Q114 Q212 Q213 Q218 Q916 Q79 Q77 Q858 Q948 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 Q189
relation P530
type Q15617994
[ANSWERS] have diplomatic relations with greater number of administrative territories than Iceland
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:P530 ?d . ?l rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q15617994 } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Q189 property:P530 ?p . ?p rdf:type ontology:Q15617994 } } . FILTER ( ?k > ?j ) }
Israel Yemen Peru India Argentina France United Kingdom People's Republic of China Lithuania Mongolia Venezuela Indonesia Armenia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Afghanistan South Korea Vietnam Lebanon Cuba Luxembourg Belgium United States of America Poland Sweden Philippines Central African Republic Switzerland Italy Colombia North Korea Paraguay Georgia Ireland Hungary Pakistan Belarus Andorra Azerbaijan Bosnia and Herzegovina Albania Mexico Liechtenstein Japan Bangladesh Chile Kenya Ukraine Czech Republic Romania Angola Egypt Uruguay Syria Tunisia Libya Cape Verde Spain Zambia
Italy, Brazil and United States of America have diplomatic relations with greater number of administrative territories than Iceland
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 Iceland
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 ?l WHERE { { SELECT DISTINCT ?l ( COUNT ( ?d ) AS ?k ) WHERE { ?l property:diplomatic_relation ?d . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?l } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?j ) WHERE { resource:Iceland property:diplomatic_relation ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity } } . FILTER ( ?k > ?j ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q668
P530
Q15617994 Q15617994
USER
And what about India?
(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 Q668
relation P530
type Q15617994
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q668 property:P530 ?n } } . FILTER ( ?i > ?g ) }
India
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 India
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:India property:diplomatic_relation ?n } } . FILTER ( ?i > ?g ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q805 Q142 Q145 Q148 Q403 Q159 Q155 Q30 Q929 Q38 Q230 Q184 Q225 Q17 Q114 Q858 Q1011 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 Q668
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:Q15617994 . ?t rdf:type ontology:Q15617994 . ?t property:P530 ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n rdf:type ontology:Q15617994 . resource:Q668 property:P530 ?n } } . FILTER ( ?i > ?g ) }
Israel Yemen France United Kingdom People's Republic of China Serbia Russia Brazil United States of America Central African Republic Italy Georgia Belarus Bosnia and Herzegovina Japan Kenya Syria Cape Verde 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 India
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 ?t WHERE { { SELECT DISTINCT ?t ( COUNT ( ?q ) AS ?i ) WHERE { ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?t property:diplomatic_relation ?q } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?g ) WHERE { ?n rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:India property:diplomatic_relation ?n } } . FILTER ( ?i > ?g ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q17
P530
Q15617994
USER
Do Japan have diplomatic associations with those ones ?
(Q17,P530,Q38) (Q17,P530,Q155) (Q17,P530,Q30)
action is_in
entity prev_answer
action find
entity Q17
relation P530
['Q17', 'P530', 'Q38'] ['Q17', 'P530', 'Q155'] ['Q17', 'P530', 'Q30']
ASK WHERE { resource:Q17 property:P530 ?p . VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
Japan
action is_in
entity prev_answer
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Italy'] ['Japan', 'diplomatic relation', 'Brazil'] ['Japan', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Japan property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q17,P530,Q38) (Q17,P530,Q155) (Q17,P530,Q30)
action is_in
entity prev_answer
action find
entity Q17
relation P530
[ANSWER]
['Q17', 'P530', 'Q38'] ['Q17', 'P530', 'Q155'] ['Q17', 'P530', 'Q30']
ASK WHERE { resource:Q17 property:P530 ?p . VALUES ( ?p ) { ( resource:Q801 ) ( resource:Q805 ) ( resource:Q142 ) } }
Yes
action is_in
entity prev_answer
action find
entity Japan
relation diplomatic relation
['Japan', 'diplomatic relation', 'Italy'] ['Japan', 'diplomatic relation', 'Brazil'] ['Japan', 'diplomatic relation', 'United States of America']
ASK WHERE { resource:Japan property:diplomatic_relation ?p . VALUES ( ?p ) { ( resource:Israel ) ( resource:Yemen ) ( resource:France ) } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q26690184 Q55
P495
Q15617994
USER
Is Netherlands the origin of that organization ?
(Q26690184,P495,Q55)
action is_in
entity Q55
action find
entity Q26690184
relation P495
['Q26690184', 'P495', 'Q55']
ASK WHERE { resource:Q26690184 property:P495 resource:Q55 }
Publisher Danckerts Netherlands
action is_in
entity Netherlands
action find
entity Publisher Danckerts
relation country of origin
['Publisher Danckerts', 'country of origin', 'Netherlands']
ASK WHERE { resource:Publisher_Danckerts property:country_of_origin resource:Netherlands }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q26690184,P495,Q55)
action is_in
entity Q55
action find
entity Q26690184
relation P495
[ANSWER]
['Q26690184', 'P495', 'Q55']
ASK WHERE { resource:Q26690184 property:P495 resource:Q55 }
Yes
action is_in
entity Netherlands
action find
entity Publisher Danckerts
relation country of origin
['Publisher Danckerts', 'country of origin', 'Netherlands']
ASK WHERE { resource:Publisher_Danckerts property:country_of_origin resource:Netherlands }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q11815 Q1124
P6
Q502895
USER
Does United States of America have a government lead by James Monroe and Bill Clinton ?
(Q30,P6,Q11815) (Q30,P6,Q1124)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11815
relation P6
action find_reverse
entity Q1124
relation P6
['Q30', 'P6', 'Q11815'] ['Q30', 'P6', 'Q1124']
ASK WHERE { resource:Q30 property:P6 resource:Q1124 . resource:Q30 property:P6 resource:Q11815 }
United States of America James Monroe Bill Clinton
action is_in
entity United States of America
action intersection
action find_reverse
entity James Monroe
relation head of government
action find_reverse
entity Bill Clinton
relation head of government
['United States of America', 'head of government', 'James Monroe'] ['United States of America', 'head of government', 'Bill Clinton']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Bill_Clinton . resource:United_States_of_America property:head_of_government resource:James_Monroe }
[]
common name
SYSTEM
YES
(Q30,P6,Q11815) (Q30,P6,Q1124)
action is_in
entity Q30
action intersection
action find_reverse
entity Q11815
relation P6
action find_reverse
entity Q1124
relation P6
[ANSWER]
['Q30', 'P6', 'Q11815'] ['Q30', 'P6', 'Q1124']
ASK WHERE { resource:Q30 property:P6 resource:Q1124 . resource:Q30 property:P6 resource:Q11815 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity James Monroe
relation head of government
action find_reverse
entity Bill Clinton
relation head of government
['United States of America', 'head of government', 'James Monroe'] ['United States of America', 'head of government', 'Bill Clinton']
ASK WHERE { resource:United_States_of_America property:head_of_government resource:Bill_Clinton . resource:United_States_of_America property:head_of_government resource:James_Monroe }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q5158149 Q6403990
P136
Q1792379
USER
What are the genre of Kibbutz or Conan the Barbarian ?
OR((Q6403990,P136,c(Q1792379)), (Q5158149,P136,c(Q1792379)))
action filter_type
action union
action find
entity Q6403990
relation P136
action find
entity Q5158149
relation P136
type Q1792379
{'OR': [['Q6403990', 'P136', {'concept': 'Q1792379'}], ['Q5158149', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?c ) { ( resource:Q6403990 ) ( resource:Q5158149 ) } . ?c property:P136 ?t } . ?t rdf:type ontology:Q1792379 }
Conan the Barbarian Kibbutz
action filter_type
action union
action find
entity Kibbutz
relation genre
action find
entity Conan the Barbarian
relation genre
type art genre
{'OR': [['Kibbutz', 'genre', {'concept': 'art genre'}], ['Conan the Barbarian', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?c ) { ( resource:Kibbutz ) ( resource:Conan_the_Barbarian ) } . ?c property:genre ?t } . ?t rdf:type ontology:art_genre }
[]
art genre
Q10992055 Q93204 Q2421000 Q8261
SYSTEM
fantasy novel, documentary film, novelization, novel
Q10992055 Q93204 Q2421000 Q8261
OR((Q6403990,P136,c(Q1792379)), (Q5158149,P136,c(Q1792379)))
action filter_type
action union
action find
entity Q6403990
relation P136
action find
entity Q5158149
relation P136
type Q1792379
The genre of Kibbutz or Conan the Barbarian are a [ANSWERS]
{'OR': [['Q6403990', 'P136', {'concept': 'Q1792379'}], ['Q5158149', 'P136', {'concept': 'Q1792379'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?c ) { ( resource:Q6403990 ) ( resource:Q5158149 ) } . ?c property:P136 ?t } . ?t rdf:type ontology:Q1792379 }
fantasy novel documentary film novelization novel
The genre of Kibbutz or Conan the Barbarian are a fantasy novel, documentary film, novelization and novel
fantasy novel documentary film novelization novel
action filter_type
action union
action find
entity Kibbutz
relation genre
action find
entity Conan the Barbarian
relation genre
type art genre
{'OR': [['Kibbutz', 'genre', {'concept': 'art genre'}], ['Conan the Barbarian', 'genre', {'concept': 'art genre'}]]}
SELECT DISTINCT ?t WHERE { { VALUES ( ?c ) { ( resource:Kibbutz ) ( resource:Conan_the_Barbarian ) } . ?c property:genre ?t } . ?t rdf:type ontology:art_genre }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P163
Q14660
USER
Which flag is associated with Brazil ?
(Q155,P163,c(Q14660))
action filter_type
action find
entity Q155
relation P163
type Q14660
['Q155', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P163 ?e . ?e rdf:type ontology:Q14660 }
Brazil
action filter_type
action find
entity Brazil
relation flag
type flag
['Brazil', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:flag ?e . ?e rdf:type ontology:flag }
[]
flag
Q82194
SYSTEM
flag of Brazil
Q82194
(Q155,P163,c(Q14660))
action filter_type
action find
entity Q155
relation P163
type Q14660
The [ANSWER] is associated with Brazil
['Q155', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?e WHERE { resource:Q155 property:P163 ?e . ?e rdf:type ontology:Q14660 }
flag of Brazil
The flag of Brazil is associated with Brazil
flag of Brazil
action filter_type
action find
entity Brazil
relation flag
type flag
['Brazil', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?e WHERE { resource:Brazil property:flag ?e . ?e rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P417
Q1509831
USER
Which titles of Mary is the patron saint of Brazil ?
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?t WHERE { resource:Q155 property:P417 ?t . ?t rdf:type ontology:Q1509831 }
Brazil
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?t WHERE { resource:Brazil property:patron_saint ?t . ?t rdf:type ontology:titles_of_Mary }
[]
titles of Mary
Q2469225
SYSTEM
Our Lady of Aparecida
Q2469225
(Q155,P417,c(Q1509831))
action filter_type
action find
entity Q155
relation P417
type Q1509831
[ANSWER] is the patron saint of Brazil
['Q155', 'P417', {'concept': 'Q1509831'}]
SELECT DISTINCT ?t WHERE { resource:Q155 property:P417 ?t . ?t rdf:type ontology:Q1509831 }
Our Lady of Aparecida
Our Lady of Aparecida is the patron saint of Brazil
Our Lady of Aparecida
action filter_type
action find
entity Brazil
relation patron saint
type titles of Mary
['Brazil', 'patron saint', {'concept': 'titles of Mary'}]
SELECT DISTINCT ?t WHERE { resource:Brazil property:patron_saint ?t . ?t rdf:type ontology:titles_of_Mary }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q155
P47
Q15617994
USER
Which administrative territories have a shared border with Brazil ?
(Q155,P47,c(Q15617994))
action filter_type
action find
entity Q155
relation P47
type Q15617994
['Q155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q155 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Brazil
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Brazil property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142 Q414 Q739
SYSTEM
France, Argentina, Colombia
Q739 Q142 Q717 Q730 Q733 Q734 Q419 Q77 Q414 Q750
(Q155,P47,c(Q15617994))
action filter_type
action find
entity Q155
relation P47
type Q15617994
[ANSWERS] have a shared border with Brazil
['Q155', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?x WHERE { resource:Q155 property:P47 ?x . ?x rdf:type ontology:Q15617994 }
Colombia France Venezuela Suriname Paraguay Guyana Peru Uruguay Argentina Bolivia
France, Argentina and Colombia have a shared border with Brazil
France Argentina Colombia
action filter_type
action find
entity Brazil
relation shares border with
type designation for an administrative territorial entity
['Brazil', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?x WHERE { resource:Brazil property:shares_border_with ?x . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q93289
Q15617994
USER
And how about Rammenau?
(Q93289,P47,c(Q15617994))
action filter_type
action find
entity Q93289
relation P47
type Q15617994
['Q93289', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q93289 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Rammenau
action filter_type
action find
entity Rammenau
relation shares border with
type designation for an administrative territorial entity
['Rammenau', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Rammenau property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q93216 Q81717 Q81735
SYSTEM
Burkau, Bischofswerda, Elstra
Q81735 Q93272 Q93211 Q93231 Q93216 Q81717
(Q93289,P47,c(Q15617994))
action filter_type
action find
entity Q93289
relation P47
type Q15617994
[ANSWERS]
['Q93289', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ?m WHERE { resource:Q93289 property:P47 ?m . ?m rdf:type ontology:Q15617994 }
Elstra Ohorn Bretnig-Hauswalde Frankenthal, Saxony Burkau Bischofswerda
Burkau Bischofswerda Elstra
action filter_type
action find
entity Rammenau
relation shares border with
type designation for an administrative territorial entity
['Rammenau', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { resource:Rammenau property:shares_border_with ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]