Simple Question (Direct)
Simple Question
Q12786952
P410
Q4189293
USER
Which title has Charles Paquet achieved ?
(Q12786952,P410,c(Q4189293))
action filter_type
action find
entity Q12786952
relation P410
type Q4189293
['Q12786952', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?o WHERE { resource:Q12786952 property:P410 ?o . ?o rdf:type ontology:Q4189293 }
Charles Paquet
action filter_type
action find
entity Charles Paquet
relation military rank
type title
['Charles Paquet', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?o WHERE { resource:Charles_Paquet property:military_rank ?o . ?o rdf:type ontology:title }
[]
title
Q12786490
SYSTEM
brigadier general
Q12786490
(Q12786952,P410,c(Q4189293))
action filter_type
action find
entity Q12786952
relation P410
type Q4189293
Charles Paquet has achieved the [ANSWER]
['Q12786952', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?o WHERE { resource:Q12786952 property:P410 ?o . ?o rdf:type ontology:Q4189293 }
brigadier general
Charles Paquet has achieved the brigadier general
brigadier general
action filter_type
action find
entity Charles Paquet
relation military rank
type title
['Charles Paquet', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?o WHERE { resource:Charles_Paquet property:military_rank ?o . ?o rdf:type ontology:title }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q12786490
P1001
Q15617994
USER
Which administrative territory comes under the supervision of that title ?
(Q12786490,P1001,c(Q15617994))
action filter_type
action find
entity Q12786490
relation P1001
type Q15617994
['Q12786490', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q12786490 property:P1001 ?o . ?o rdf:type ontology:Q15617994 }
brigadier general
action filter_type
action find
entity brigadier general
relation applies to jurisdiction
type designation for an administrative territorial entity
['brigadier general', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:brigadier_general property:applies_to_jurisdiction ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q142
SYSTEM
France
Q142
(Q12786490,P1001,c(Q15617994))
action filter_type
action find
entity Q12786490
relation P1001
type Q15617994
The [ANSWER] comes under the supervision of that title
['Q12786490', 'P1001', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q12786490 property:P1001 ?o . ?o rdf:type ontology:Q15617994 }
France
The France comes under the supervision of that title
France
action filter_type
action find
entity brigadier general
relation applies to jurisdiction
type designation for an administrative territorial entity
['brigadier general', 'applies to jurisdiction', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:brigadier_general property:applies_to_jurisdiction ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q142 Q7564489
P495
Q838948
USER
Does Souli have that administrative territory as its place of origin ?
(Q7564489,P495,Q142)
action is_in
entity Q142
action find
entity Q7564489
relation P495
['Q7564489', 'P495', 'Q142']
ASK WHERE { resource:Q7564489 property:P495 resource:Q142 }
France Souli
action is_in
entity France
action find
entity Souli
relation country of origin
['Souli', 'country of origin', 'France']
ASK WHERE { resource:Souli property:country_of_origin resource:France }
[]
work of art
SYSTEM
YES
(Q7564489,P495,Q142)
action is_in
entity Q142
action find
entity Q7564489
relation P495
[ANSWER]
['Q7564489', 'P495', 'Q142']
ASK WHERE { resource:Q7564489 property:P495 resource:Q142 }
Yes
action is_in
entity France
action find
entity Souli
relation country of origin
['Souli', 'country of origin', 'France']
ASK WHERE { resource:Souli property:country_of_origin resource:France }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q12786952 Q142
P27
Q15617994
USER
Is Charles Paquet an inhabitant of France ?
(Q12786952,P27,Q142)
action is_in
entity Q142
action find
entity Q12786952
relation P27
['Q12786952', 'P27', 'Q142']
ASK WHERE { resource:Q12786952 property:P27 resource:Q142 }
Charles Paquet France
action is_in
entity France
action find
entity Charles Paquet
relation country of citizenship
['Charles Paquet', 'country of citizenship', 'France']
ASK WHERE { resource:Charles_Paquet property:country_of_citizenship resource:France }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q12786952,P27,Q142)
action is_in
entity Q142
action find
entity Q12786952
relation P27
[ANSWER]
['Q12786952', 'P27', 'Q142']
ASK WHERE { resource:Q12786952 property:P27 resource:Q142 }
Yes
action is_in
entity France
action find
entity Charles Paquet
relation country of citizenship
['Charles Paquet', 'country of citizenship', 'France']
ASK WHERE { resource:Charles_Paquet property:country_of_citizenship resource:France }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q12786490 Q6902400 Q652246
P17
Q15617994
USER
Is brigadier general located in Monroe Township School District and Offenheim ?
(Q12786490,P17,Q6902400) (Q12786490,P17,Q652246)
action is_in
entity Q12786490
action intersection
action find_reverse
entity Q6902400
relation P17
action find_reverse
entity Q652246
relation P17
['Q12786490', 'P17', 'Q6902400'] ['Q12786490', 'P17', 'Q652246']
ASK WHERE { resource:Q12786490 property:P17 resource:Q6902400 . resource:Q12786490 property:P17 resource:Q652246 }
brigadier general Monroe Township School District Offenheim
action is_in
entity brigadier general
action intersection
action find_reverse
entity Monroe Township School District
relation country
action find_reverse
entity Offenheim
relation country
['brigadier general', 'country', 'Monroe Township School District'] ['brigadier general', 'country', 'Offenheim']
ASK WHERE { resource:brigadier_general property:country resource:Monroe_Township_School_District . resource:brigadier_general property:country resource:Offenheim }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q12786490,P17,Q6902400) (Q12786490,P17,Q652246)
action is_in
entity Q12786490
action intersection
action find_reverse
entity Q6902400
relation P17
action find_reverse
entity Q652246
relation P17
[ANSWER]
['Q12786490', 'P17', 'Q6902400'] ['Q12786490', 'P17', 'Q652246']
ASK WHERE { resource:Q12786490 property:P17 resource:Q6902400 . resource:Q12786490 property:P17 resource:Q652246 }
No
action is_in
entity brigadier general
action intersection
action find_reverse
entity Monroe Township School District
relation country
action find_reverse
entity Offenheim
relation country
['brigadier general', 'country', 'Monroe Township School District'] ['brigadier general', 'country', 'Offenheim']
ASK WHERE { resource:brigadier_general property:country resource:Monroe_Township_School_District . resource:brigadier_general property:country resource:Offenheim }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q12786952
P106
Q12737077
USER
Which occupations have Charles Paquet as his/her 's career ?
(Q12786952,P106,c(Q12737077))
action filter_type
action find
entity Q12786952
relation P106
type Q12737077
['Q12786952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q12786952 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
Charles Paquet
action filter_type
action find
entity Charles Paquet
relation occupation
type occupation
['Charles Paquet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Charles_Paquet property:occupation ?l . ?l rdf:type ontology:occupation }
[]
occupation
Q4991371 Q47064
SYSTEM
soldier, military personnel
Q4991371 Q47064
(Q12786952,P106,c(Q12737077))
action filter_type
action find
entity Q12786952
relation P106
type Q12737077
The [ANSWERS] have Charles Paquet as his/her 's career
['Q12786952', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?l WHERE { resource:Q12786952 property:P106 ?l . ?l rdf:type ontology:Q12737077 }
soldier military personnel
The soldier and military personnel have Charles Paquet as his/her 's career
soldier military personnel
action filter_type
action find
entity Charles Paquet
relation occupation
type occupation
['Charles Paquet', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?l WHERE { resource:Charles_Paquet property:occupation ?l . ?l rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4991371 Q47064
P180
Q838948
USER
Which works of art demonstrate soldier and military personnel ?
(c(Q838948),P180,Q4991371) (c(Q838948),P180,Q47064)
action union
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q838948
action filter_type
action find_reverse
entity Q47064
relation P180
type Q838948
[{'concept': 'Q838948'}, 'P180', 'Q4991371'] [{'concept': 'Q838948'}, 'P180', 'Q47064']
SELECT DISTINCT ?g WHERE { VALUES ( ?z ) { ( resource:Q4991371 ) ( resource:Q47064 ) } . ?g property:P180 ?z }
soldier military personnel
action union
action filter_type
action find_reverse
entity soldier
relation depicts
type work of art
action filter_type
action find_reverse
entity military personnel
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'soldier'] [{'concept': 'work of art'}, 'depicts', 'military personnel']
SELECT DISTINCT ?g WHERE { VALUES ( ?z ) { ( resource:soldier ) ( resource:military_personnel ) } . ?g property:depicts ?z }
[]
work of art
Q19015792 Q27616824 Q16303545
SYSTEM
Altarpiece of the Resurrection of Christ, Rinaldo and Armida, Chasseur à pied
Q26721302 Q20671159 Q19015792 Q18917908 Q27616824 Q1212530 Q16303545 Q1136305 Q6544400 Q7971889 Q16864946 Q3752885
(c(Q838948),P180,Q4991371) (c(Q838948),P180,Q47064)
action union
action filter_type
action find_reverse
entity Q4991371
relation P180
type Q838948
action filter_type
action find_reverse
entity Q47064
relation P180
type Q838948
The [ANSWERS] demonstrate soldier and military personnel
[{'concept': 'Q838948'}, 'P180', 'Q4991371'] [{'concept': 'Q838948'}, 'P180', 'Q47064']
SELECT DISTINCT ?g WHERE { VALUES ( ?z ) { ( resource:Q4991371 ) ( resource:Q47064 ) } . ?g property:P180 ?z }
Peace Memorial American Expeditionary Forces Memorial Altarpiece of the Resurrection of Christ The Testament of Eudamidas Rinaldo and Armida World War II Memorial, Makó Chasseur à pied Doryphoros Lieutenant General George Washington Washington Grays Monument Doryphoros from Pompeii Mars of Todi
The Altarpiece of the Resurrection of Christ, Rinaldo and Armida and Chasseur à pied demonstrate soldier and military personnel
Altarpiece of the Resurrection of Christ Rinaldo and Armida Chasseur à pied
action union
action filter_type
action find_reverse
entity soldier
relation depicts
type work of art
action filter_type
action find_reverse
entity military personnel
relation depicts
type work of art
[{'concept': 'work of art'}, 'depicts', 'soldier'] [{'concept': 'work of art'}, 'depicts', 'military personnel']
SELECT DISTINCT ?g WHERE { VALUES ( ?z ) { ( resource:soldier ) ( resource:military_personnel ) } . ?g property:depicts ?z }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q19015792
P144
Q8171
USER
Where is Altarpiece of the Resurrection of Christ adapted from ?
(Q19015792,P144,c(Q8171))
action filter_type
action find
entity Q19015792
relation P144
type Q8171
['Q19015792', 'P144', {'concept': 'Q8171'}]
SELECT DISTINCT ?y WHERE { resource:Q19015792 property:P144 ?y . ?y rdf:type ontology:Q8171 }
Altarpiece of the Resurrection of Christ
action filter_type
action find
entity Altarpiece of the Resurrection of Christ
relation based on
type word
['Altarpiece of the Resurrection of Christ', 'based on', {'concept': 'word'}]
SELECT DISTINCT ?y WHERE { resource:Altarpiece_of_the_Resurrection_of_Christ property:based_on ?y . ?y rdf:type ontology:word }
[]
word
Q51624
SYSTEM
resurrection of Jesus
Q51624
(Q19015792,P144,c(Q8171))
action filter_type
action find
entity Q19015792
relation P144
type Q8171
Altarpiece of the Resurrection of Christ is adapted from the [ANSWER]
['Q19015792', 'P144', {'concept': 'Q8171'}]
SELECT DISTINCT ?y WHERE { resource:Q19015792 property:P144 ?y . ?y rdf:type ontology:Q8171 }
resurrection of Jesus
Altarpiece of the Resurrection of Christ is adapted from the resurrection of Jesus
resurrection of Jesus
action filter_type
action find
entity Altarpiece of the Resurrection of Christ
relation based on
type word
['Altarpiece of the Resurrection of Christ', 'based on', {'concept': 'word'}]
SELECT DISTINCT ?y WHERE { resource:Altarpiece_of_the_Resurrection_of_Christ property:based_on ?y . ?y rdf:type ontology:word }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q51624
P138
Q16970
USER
Which church is named after that word ?
(c(Q16970),P138,Q51624)
action filter_type
action find_reverse
entity Q51624
relation P138
type Q16970
[{'concept': 'Q16970'}, 'P138', 'Q51624']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16970 . ?m property:P138 resource:Q51624 }
resurrection of Jesus
action filter_type
action find_reverse
entity resurrection of Jesus
relation named after
type church
[{'concept': 'church'}, 'named after', 'resurrection of Jesus']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:church . ?m property:named_after resource:resurrection_of_Jesus }
[]
church
Q4238163
SYSTEM
Red Church in Vichuga
Q4238163
(c(Q16970),P138,Q51624)
action filter_type
action find_reverse
entity Q51624
relation P138
type Q16970
[ANSWER] is named after that word
[{'concept': 'Q16970'}, 'P138', 'Q51624']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q16970 . ?m property:P138 resource:Q51624 }
Red Church in Vichuga
Red Church in Vichuga is named after that word
Red Church in Vichuga
action filter_type
action find_reverse
entity resurrection of Jesus
relation named after
type church
[{'concept': 'church'}, 'named after', 'resurrection of Jesus']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:church . ?m property:named_after resource:resurrection_of_Jesus }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Indirect
P84
Q502895 Q4830453 Q16970
USER
Which churches were designed by lesser number of people and business enterprises than that church ?
(c(Q16970),P84,c(Q502895)|c(Q4830453))
action less
action union
action find_tuple_counts
relation P84
type Q16970
type Q502895
action find_tuple_counts
relation P84
type Q16970
type Q4830453
action count
action filter_multi_types
action find
entity Q4238163
relation P84
type Q502895
type Q4830453
[{'concept': 'Q16970'}, 'P84', [{'concept': 'Q502895'}, {'concept': 'Q4830453'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) ?l WHERE { { ?l property:P84 ?o . ?l rdf:type ontology:Q16970 . ?o rdf:type ontology:Q502895 } UNION { ?l rdf:type ontology:Q16970 . ?o rdf:type ontology:Q4830453 . ?l property:P84 ?o } } GROUP BY ?l } . FILTER ( ?z < ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q4238163 property:P84 ?v . { { ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q4830453 } } } } }
action less
action union
action find_tuple_counts
relation architect
type church
type common name
action find_tuple_counts
relation architect
type church
type business enterprise
action count
action filter_multi_types
action find
entity Red Church in Vichuga
relation architect
type common name
type business enterprise
[{'concept': 'church'}, 'architect', [{'concept': 'common name'}, {'concept': 'business enterprise'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) ?l WHERE { { ?l property:architect ?o . ?l rdf:type ontology:church . ?o rdf:type ontology:common_name } UNION { ?l rdf:type ontology:church . ?o rdf:type ontology:business_enterprise . ?l property:architect ?o } } GROUP BY ?l } . FILTER ( ?z < ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Red_Church_in_Vichuga property:architect ?v . { { ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:business_enterprise } } } } }
[]
common name business enterprise church
SYSTEM
20
Q5052403 Q24038764 Q603535 Q1254795 Q7590647 Q73260 Q1982263 Q93896 Q2089787 Q5108775 Q152973 Q1236708 Q1637149 Q1986943 Q2342322 Q7588439 Q1661800 Q2569500 Q2419297 Q770458
(c(Q16970),P84,c(Q502895)|c(Q4830453))
action less
action union
action find_tuple_counts
relation P84
type Q16970
type Q502895
action find_tuple_counts
relation P84
type Q16970
type Q4830453
action count
action filter_multi_types
action find
entity Q4238163
relation P84
type Q502895
type Q4830453
[ANSWER]
[{'concept': 'Q16970'}, 'P84', [{'concept': 'Q502895'}, {'concept': 'Q4830453'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) ?l WHERE { { ?l property:P84 ?o . ?l rdf:type ontology:Q16970 . ?o rdf:type ontology:Q502895 } UNION { ?l rdf:type ontology:Q16970 . ?o rdf:type ontology:Q4830453 . ?l property:P84 ?o } } GROUP BY ?l } . FILTER ( ?z < ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Q4238163 property:P84 ?v . { { ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q4830453 } } } } }
Cathedral of St. Joseph Saint Alexander Nevsky Church Cathedral of St. Matthew the Apostle St. Mark's Church St. Michael's Cathedral St Patrick's Cathedral Church of Transfiguration Cathedral of the Holy Trinity Our Lady of the Sign Church Christ Church Cathedral, Indianapolis Asamkirche Västerås Cathedral Cathedral of Saint Virgin Mary Trinity Cathedral, Kiev Patriarchal Cathedral of the Resurrection of Christ St. James Cathedral Transfiguration Church in Polack St. Panteleimon's Cathedral Church of Boris and Gleb Alexander Nevsky Cathedral
20
action less
action union
action find_tuple_counts
relation architect
type church
type common name
action find_tuple_counts
relation architect
type church
type business enterprise
action count
action filter_multi_types
action find
entity Red Church in Vichuga
relation architect
type common name
type business enterprise
[{'concept': 'church'}, 'architect', [{'concept': 'common name'}, {'concept': 'business enterprise'}]]
SELECT DISTINCT ?l WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) ?l WHERE { { ?l property:architect ?o . ?l rdf:type ontology:church . ?o rdf:type ontology:common_name } UNION { ?l rdf:type ontology:church . ?o rdf:type ontology:business_enterprise . ?l property:architect ?o } } GROUP BY ?l } . FILTER ( ?z < ?p ) . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { resource:Red_Church_in_Vichuga property:architect ?v . { { ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:business_enterprise } } } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q732577 Q838948
USER
Which occupations were the main subjects of exactly 2 publications and works of art 's work ?
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 2
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?u = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?o WHERE { { ?t property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q732577 } } GROUP BY ?o } }
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 2
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?u = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?o WHERE { { ?t property:main_subject ?o . ?o rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } UNION { ?t property:main_subject ?o . ?o rdf:type ontology:occupation . ?t rdf:type ontology:publication } } GROUP BY ?o } }
[]
occupation publication work of art
Q1930187 Q16003532 Q16003605
SYSTEM
journalist, middle school student, elementary school student
Q1930187 Q101539 Q16003605 Q16003532
(c(Q732577)|c(Q838948),P921,c(Q12737077))
action equal
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q732577
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 2
[ANSWERS] were the main subjects of exactly 2 publications and works of art 's work
[[{'concept': 'Q732577'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?u = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?o WHERE { { ?t property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q838948 } UNION { ?t property:P921 ?o . ?o rdf:type ontology:Q12737077 . ?t rdf:type ontology:Q732577 } } GROUP BY ?o } }
journalist flight attendant elementary school student middle school student
Journalist, middle school student and elementary school student were the main subjects of exactly 2 publications and works of art 's work
journalist middle school student elementary school student
action equal
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type publication
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 2
[[{'concept': 'publication'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?o WHERE { FILTER ( ?u = 2 ) . { SELECT DISTINCT ( COUNT ( ?t ) AS ?u ) ?o WHERE { { ?t property:main_subject ?o . ?o rdf:type ontology:occupation . ?t rdf:type ontology:work_of_art } UNION { ?t property:main_subject ?o . ?o rdf:type ontology:occupation . ?t rdf:type ontology:publication } } GROUP BY ?o } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1476289 Q652246
P17
Q1048835
USER
Which political territories are Offenheim or Saint John Parish a part of ?
OR((Q652246,P17,c(Q1048835)), (Q1476289,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q652246
relation P17
action find
entity Q1476289
relation P17
type Q1048835
{'OR': [['Q652246', 'P17', {'concept': 'Q1048835'}], ['Q1476289', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?e property:P17 ?l . VALUES ( ?e ) { ( resource:Q652246 ) ( resource:Q1476289 ) } } . ?l rdf:type ontology:Q1048835 }
Saint John Parish Offenheim
action filter_type
action union
action find
entity Offenheim
relation country
action find
entity Saint John Parish
relation country
type political territorial entity
{'OR': [['Offenheim', 'country', {'concept': 'political territorial entity'}], ['Saint John Parish', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?e property:country ?l . VALUES ( ?e ) { ( resource:Offenheim ) ( resource:Saint_John_Parish ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q769 Q183
SYSTEM
Grenada, Germany
Q769 Q183
OR((Q652246,P17,c(Q1048835)), (Q1476289,P17,c(Q1048835)))
action filter_type
action union
action find
entity Q652246
relation P17
action find
entity Q1476289
relation P17
type Q1048835
[ANSWERS]
{'OR': [['Q652246', 'P17', {'concept': 'Q1048835'}], ['Q1476289', 'P17', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?l WHERE { { ?e property:P17 ?l . VALUES ( ?e ) { ( resource:Q652246 ) ( resource:Q1476289 ) } } . ?l rdf:type ontology:Q1048835 }
Grenada Germany
Which political territories are Offenheim or Saint John Parish a part of
Grenada Germany
action filter_type
action union
action find
entity Offenheim
relation country
action find
entity Saint John Parish
relation country
type political territorial entity
{'OR': [['Offenheim', 'country', {'concept': 'political territorial entity'}], ['Saint John Parish', 'country', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?l WHERE { { ?e property:country ?l . VALUES ( ?e ) { ( resource:Offenheim ) ( resource:Saint_John_Parish ) } } . ?l rdf:type ontology:political_territorial_entity }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P463
Q43229 Q56061
USER
How many organizations or administrative territories were that political territory a member of ?
(Q183,P463,c(Q43229)) (Q183,P463,c(Q56061)) (Q769,P463,c(Q43229)) (Q769,P463,c(Q56061)) (Q183,P463,c(Q43229)) (Q183,P463,c(Q56061))
['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}] ['Q769', 'P463', {'concept': 'Q43229'}] ['Q769', 'P463', {'concept': 'Q56061'}] ['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } UNION { resource:Q2897304 property:P463 ?z } UNION { resource:Q2897304 property:P463 ?y } UNION { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q56061 }
['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}] ['Grenada', 'member of', {'concept': 'organization'}] ['Grenada', 'member of', {'concept': 'administrative territorial entity'}] ['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } UNION { resource:Grenada property:member_of ?z } UNION { resource:Grenada property:member_of ?y } UNION { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:administrative_territorial_entity }
[]
organization administrative territorial entity
Quantitative|Count|Mult. entity type|Clarification
Q769
SYSTEM
Did you mean Grenada ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } UNION { resource:Q2897304 property:P463 ?z } UNION { resource:Q2897304 property:P463 ?y } UNION { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q56061 }
Did you mean Grenada ?
Grenada
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } UNION { resource:Grenada property:member_of ?z } UNION { resource:Grenada property:member_of ?y } UNION { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Germany. Could you tell me the answer for that?
(Q183,P463,c(Q43229)) (Q183,P463,c(Q56061)) (Q769,P463,c(Q43229)) (Q769,P463,c(Q56061)) (Q183,P463,c(Q43229)) (Q183,P463,c(Q56061))
Q183
['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}] ['Q769', 'P463', {'concept': 'Q43229'}] ['Q769', 'P463', {'concept': 'Q56061'}] ['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}]
['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}] ['Grenada', 'member of', {'concept': 'organization'}] ['Grenada', 'member of', {'concept': 'administrative territorial entity'}] ['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}]
[]
SYSTEM
20
Q125761 Q340195 Q191384 Q177773 Q41550 Q3772571 Q7825 Q656801 Q151991 Q61923 Q161549 Q189946 Q899770 Q458 Q689859 Q386120 Q82151 Q7809 Q699466 Q827525
(Q183,P463,c(Q43229)) (Q183,P463,c(Q56061)) (Q769,P463,c(Q43229)) (Q769,P463,c(Q56061)) (Q183,P463,c(Q43229)) (Q183,P463,c(Q56061))
[ANSWER]
['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}] ['Q769', 'P463', {'concept': 'Q43229'}] ['Q769', 'P463', {'concept': 'Q56061'}] ['Q183', 'P463', {'concept': 'Q43229'}] ['Q183', 'P463', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } UNION { resource:Q2897304 property:P463 ?z } UNION { resource:Q2897304 property:P463 ?y } UNION { resource:Q423030 property:P463 ?z } UNION { resource:Q423030 property:P463 ?y } } . ?z rdf:type ontology:Q43229 . ?y rdf:type ontology:Q56061 }
International Civil Aviation Organization African Development Bank International Bank for Reconstruction and Development World Intellectual Property Organization Organisation for Economic Co-operation and Development Caribbean Development Bank World Trade Organization International Finance Corporation European Southern Observatory World Tourism Organization European Coal and Steel Community Western European Union International Centre for Settlement of Investment Disputes European Union International Fund for Agricultural Development United Nations Industrial Development Organization Food and Agriculture Organization of the United Nations United Nations Educational, Scientific and Cultural Organization International Commission for the Protection of the Danube River International Development Association
20
['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}] ['Grenada', 'member of', {'concept': 'organization'}] ['Grenada', 'member of', {'concept': 'administrative territorial entity'}] ['Germany', 'member of', {'concept': 'organization'}] ['Germany', 'member of', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } UNION { resource:Grenada property:member_of ?z } UNION { resource:Grenada property:member_of ?y } UNION { resource:Germany property:member_of ?z } UNION { resource:Germany property:member_of ?y } } . ?z rdf:type ontology:organization . ?y rdf:type ontology:administrative_territorial_entity }
[]