Simple Question (Direct)
Simple Question
Q1678899
P937
Q56061
USER
What is the work location of Jakob Ballensiefen ?
(Q1678899,P937,c(Q56061))
action filter_type
action find
entity Q1678899
relation P937
type Q56061
['Q1678899', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q1678899 property:P937 ?u }
Jakob Ballensiefen
action filter_type
action find
entity Jakob Ballensiefen
relation work location
type administrative territorial entity
['Jakob Ballensiefen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Jakob_Ballensiefen property:work_location ?u }
[]
administrative territorial entity
Q1718
SYSTEM
Düsseldorf
Q1718
(Q1678899,P937,c(Q56061))
action filter_type
action find
entity Q1678899
relation P937
type Q56061
The work location of Jakob Ballensiefen is in [ANSWER]
['Q1678899', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q56061 . resource:Q1678899 property:P937 ?u }
Düsseldorf
The work location of Jakob Ballensiefen is in Düsseldorf
Düsseldorf
action filter_type
action find
entity Jakob Ballensiefen
relation work location
type administrative territorial entity
['Jakob Ballensiefen', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:administrative_territorial_entity . resource:Jakob_Ballensiefen property:work_location ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1678899
P106
Q12737077
USER
What is the profession of that person ?
(Q1718,P106,c(Q12737077))
action filter_type
action find
entity Q1678899
relation P106
type Q12737077
['Q1718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1678899 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
Jakob Ballensiefen
action filter_type
action find
entity Jakob Ballensiefen
relation occupation
type occupation
['Düsseldorf', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Jakob_Ballensiefen property:occupation ?x . ?x rdf:type ontology:occupation }
[]
occupation
Q82955
SYSTEM
politician
Q82955
(Q1718,P106,c(Q12737077))
action filter_type
action find
entity Q1678899
relation P106
type Q12737077
The profession of that person is a [ANSWER]
['Q1718', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?x WHERE { resource:Q1678899 property:P106 ?x . ?x rdf:type ontology:Q12737077 }
politician
The profession of that person is a politician
politician
action filter_type
action find
entity Jakob Ballensiefen
relation occupation
type occupation
['Düsseldorf', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?x WHERE { resource:Jakob_Ballensiefen property:occupation ?x . ?x rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82955
P921
Q223393
USER
Which literary genre was primarily based on that occupation ?
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q82955 . ?n rdf:type ontology:Q223393 }
politician
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:politician . ?n rdf:type ontology:literary_genre }
[]
literary genre
Q21815179
SYSTEM
worldstatesmen
Q21815179
(c(Q223393),P921,Q82955)
action filter_type
action find_reverse
entity Q82955
relation P921
type Q223393
The [ANSWER] was primarily based on that occupation
[{'concept': 'Q223393'}, 'P921', 'Q82955']
SELECT DISTINCT ?n WHERE { ?n property:P921 resource:Q82955 . ?n rdf:type ontology:Q223393 }
worldstatesmen
The worldstatesmen was primarily based on that occupation
worldstatesmen
action filter_type
action find_reverse
entity politician
relation main subject
type literary genre
[{'concept': 'literary genre'}, 'main subject', 'politician']
SELECT DISTINCT ?n WHERE { ?n property:main_subject resource:politician . ?n rdf:type ontology:literary_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q21815179 Q372436
P921
Q12737077
USER
Was statesman the main subject of worldstatesmen 's work ?
(Q21815179,P921,Q372436)
action is_in
entity Q372436
action find
entity Q21815179
relation P921
['Q21815179', 'P921', 'Q372436']
ASK WHERE { resource:Q21815179 property:P921 resource:Q372436 }
worldstatesmen statesman
action is_in
entity statesman
action find
entity worldstatesmen
relation main subject
['worldstatesmen', 'main subject', 'statesman']
ASK WHERE { resource:worldstatesmen property:main_subject resource:statesman }
[]
occupation
SYSTEM
YES
(Q21815179,P921,Q372436)
action is_in
entity Q372436
action find
entity Q21815179
relation P921
[ANSWER]
['Q21815179', 'P921', 'Q372436']
ASK WHERE { resource:Q21815179 property:P921 resource:Q372436 }
Yes
action is_in
entity statesman
action find
entity worldstatesmen
relation main subject
['worldstatesmen', 'main subject', 'statesman']
ASK WHERE { resource:worldstatesmen property:main_subject resource:statesman }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q1678899 Q183
P27
Q1048835
USER
Is Germany the native country of that person ?
(Q1678899,P27,Q183)
action is_in
entity Q183
action find
entity Q1678899
relation P27
['Q1678899', 'P27', 'Q183']
ASK WHERE { resource:Q1678899 property:P27 resource:Q183 }
Jakob Ballensiefen Germany
action is_in
entity Germany
action find
entity Jakob Ballensiefen
relation country of citizenship
['Jakob Ballensiefen', 'country of citizenship', 'Germany']
ASK WHERE { resource:Jakob_Ballensiefen property:country_of_citizenship resource:Germany }
[]
political territorial entity
SYSTEM
YES
(Q1678899,P27,Q183)
action is_in
entity Q183
action find
entity Q1678899
relation P27
[ANSWER]
['Q1678899', 'P27', 'Q183']
ASK WHERE { resource:Q1678899 property:P27 resource:Q183 }
Yes
action is_in
entity Germany
action find
entity Jakob Ballensiefen
relation country of citizenship
['Jakob Ballensiefen', 'country of citizenship', 'Germany']
ASK WHERE { resource:Jakob_Ballensiefen property:country_of_citizenship resource:Germany }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q372286
P248
Q223393 Q151885 Q502895
USER
How many literary genres are approximately the same number of concepts or people acknowledged in as Lexikon des Mittelalters ?
(c(Q151885)|c(Q502895),P248,c(Q223393))
action count
action approx
action union
action find_reverse_tuple_counts
relation P248
type Q223393
type Q151885
action find_reverse_tuple_counts
relation P248
type Q223393
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q372286
relation P248
type Q151885
type Q502895
[[{'concept': 'Q151885'}, {'concept': 'Q502895'}], 'P248', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P248 resource:Q372286 . { { ?h rdf:type ontology:Q151885 } UNION { ?h rdf:type ontology:Q502895 } } } } . FILTER ( ?q = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P248 ?d . ?d rdf:type ontology:Q223393 . ?m rdf:type ontology:Q151885 } UNION { ?m property:P248 ?d . ?m rdf:type ontology:Q502895 . ?d rdf:type ontology:Q223393 } } GROUP BY ?d } }
Lexikon des Mittelalters
action count
action approx
action union
action find_reverse_tuple_counts
relation stated in
type literary genre
type concept
action find_reverse_tuple_counts
relation stated in
type literary genre
type common name
action count
action filter_multi_types
action find_reverse
entity Lexikon des Mittelalters
relation stated in
type concept
type common name
[[{'concept': 'concept'}, {'concept': 'common name'}], 'stated in', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:stated_in resource:Lexikon_des_Mittelalters . { { ?h rdf:type ontology:concept } UNION { ?h rdf:type ontology:common_name } } } } . FILTER ( ?q = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:stated_in ?d . ?d rdf:type ontology:literary_genre . ?m rdf:type ontology:concept } UNION { ?m property:stated_in ?d . ?m rdf:type ontology:common_name . ?d rdf:type ontology:literary_genre } } GROUP BY ?d } }
[]
literary genre concept common name
SYSTEM
15
Q5375713 Q372286 Q4135594 Q2041543 Q5273977 Q774515 Q1976178 Q4532152 Q2664168 Q1645493 Q746368 Q838302 Q2745222 Q16679904 Q12163828
(c(Q151885)|c(Q502895),P248,c(Q223393))
action count
action approx
action union
action find_reverse_tuple_counts
relation P248
type Q223393
type Q151885
action find_reverse_tuple_counts
relation P248
type Q223393
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q372286
relation P248
type Q151885
type Q502895
[ANSWER]
[[{'concept': 'Q151885'}, {'concept': 'Q502895'}], 'P248', {'concept': 'Q223393'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P248 resource:Q372286 . { { ?h rdf:type ontology:Q151885 } UNION { ?h rdf:type ontology:Q502895 } } } } . FILTER ( ?q = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:P248 ?d . ?d rdf:type ontology:Q223393 . ?m rdf:type ontology:Q151885 } UNION { ?m property:P248 ?d . ?m rdf:type ontology:Q502895 . ?d rdf:type ontology:Q223393 } } GROUP BY ?d } }
Encyclopedia of Newfoundland and Labrador Lexikon des Mittelalters Geographical statistical dictionary of the Russian Imperia Otto's encyclopedia Dictionary of Welsh Biography Encyclopedia of Ukraine Small Soviet Encyclopedia Encyclopedia of Modern Ukraine Gran Enciclopèdia Catalana Lives of the Most Excellent Painters, Sculptors, and Architects Store norske leksikon Dictionary of Canadian Biography Te Ara: The Encyclopedia of New Zealand "Kyrgyzstan" national encyclopedia Ukrainian general encyclopedia
15
action count
action approx
action union
action find_reverse_tuple_counts
relation stated in
type literary genre
type concept
action find_reverse_tuple_counts
relation stated in
type literary genre
type common name
action count
action filter_multi_types
action find_reverse
entity Lexikon des Mittelalters
relation stated in
type concept
type common name
[[{'concept': 'concept'}, {'concept': 'common name'}], 'stated in', {'concept': 'literary genre'}]
SELECT DISTINCT ( COUNT ( ?d ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:stated_in resource:Lexikon_des_Mittelalters . { { ?h rdf:type ontology:concept } UNION { ?h rdf:type ontology:common_name } } } } . FILTER ( ?q = ?f ) . { SELECT DISTINCT ?d ( COUNT ( ?m ) AS ?q ) WHERE { { ?m property:stated_in ?d . ?d rdf:type ontology:literary_genre . ?m rdf:type ontology:concept } UNION { ?m property:stated_in ?d . ?m rdf:type ontology:common_name . ?d rdf:type ontology:literary_genre } } GROUP BY ?d } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1718
P190
Q56061
USER
Which administrative territories are twin city of Düsseldorf ?
(c(Q56061),P190,Q1718)
action filter_type
action find
entity Q1718
relation P190
type Q56061
[{'concept': 'Q56061'}, 'P190', 'Q1718']
SELECT DISTINCT ?y WHERE { resource:Q1718 property:P190 ?y . ?y rdf:type ontology:Q56061 }
Düsseldorf
action filter_type
action find
entity Düsseldorf
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Düsseldorf']
SELECT DISTINCT ?y WHERE { resource:Düsseldorf property:sister_city ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q649 Q270 Q7880
SYSTEM
Moscow, Warsaw, Toulouse
Q41621 Q270 Q3805 Q8717 Q649 Q3711 Q8826 Q7880 Q1297
(c(Q56061),P190,Q1718)
action filter_type
action find
entity Q1718
relation P190
type Q56061
[ANSWERS] are twin city of Düsseldorf
[{'concept': 'Q56061'}, 'P190', 'Q1718']
SELECT DISTINCT ?y WHERE { resource:Q1718 property:P190 ?y . ?y rdf:type ontology:Q56061 }
Haifa Warsaw Amman Seville Moscow Belgrade Palma Toulouse Chicago
Moscow, Warsaw and Toulouse are twin city of Düsseldorf
Moscow Warsaw Toulouse
action filter_type
action find
entity Düsseldorf
relation sister city
type administrative territorial entity
[{'concept': 'administrative territorial entity'}, 'sister city', 'Düsseldorf']
SELECT DISTINCT ?y WHERE { resource:Düsseldorf property:sister_city ?y . ?y rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q270
P1427
Q18608583
USER
Which recurring sporting event starts at that administrative territory ?
(c(Q18608583),P1427,Q270)
action filter_type
action find_reverse
entity Q270
relation P1427
type Q18608583
[{'concept': 'Q18608583'}, 'P1427', 'Q270']
SELECT DISTINCT ?y WHERE { ?y property:P1427 resource:Q270 . ?y rdf:type ontology:Q18608583 }
Warsaw
action filter_type
action find_reverse
entity Warsaw
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Warsaw']
SELECT DISTINCT ?y WHERE { ?y property:start_point resource:Warsaw . ?y rdf:type ontology:recurring_sporting_event }
[]
recurring sporting event
Clarification for simple ques.
Q270
SYSTEM
Did you mean Warsaw ?
Q649 Q270 Q7880
(c(Q18608583),P1427,Q649) (c(Q18608583),P1427,Q270) (c(Q18608583),P1427,Q7880)
[ANSWER]
[{'concept': 'Q18608583'}, 'P1427', 'Q649'] [{'concept': 'Q18608583'}, 'P1427', 'Q270'] [{'concept': 'Q18608583'}, 'P1427', 'Q7880']
SELECT DISTINCT ?y WHERE { ?y property:P1427 resource:Q270 . ?y rdf:type ontology:Q18608583 }
Moscow Warsaw Toulouse
Did you mean Warsaw ?
Warsaw
[{'concept': 'recurring sporting event'}, 'start point', 'Moscow'] [{'concept': 'recurring sporting event'}, 'start point', 'Warsaw'] [{'concept': 'recurring sporting event'}, 'start point', 'Toulouse']
SELECT DISTINCT ?y WHERE { ?y property:start_point resource:Warsaw . ?y rdf:type ontology:recurring_sporting_event }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q18608583),P1427,Q270)
[{'concept': 'Q18608583'}, 'P1427', 'Q270']
[{'concept': 'recurring sporting event'}, 'start point', 'Warsaw']
[]
Q19576833
SYSTEM
2015 Tour de Pologne
Q19576833
(c(Q18608583),P1427,Q270)
action filter_type
action find_reverse
entity Q270
relation P1427
type Q18608583
[ANSWER] starts at that administrative territory
[{'concept': 'Q18608583'}, 'P1427', 'Q270']
SELECT DISTINCT ?y WHERE { ?y property:P1427 resource:Q270 . ?y rdf:type ontology:Q18608583 }
2015 Tour de Pologne
2015 Tour de Pologne starts at that administrative territory
2015 Tour de Pologne
action filter_type
action find_reverse
entity Warsaw
relation start point
type recurring sporting event
[{'concept': 'recurring sporting event'}, 'start point', 'Warsaw']
SELECT DISTINCT ?y WHERE { ?y property:start_point resource:Warsaw . ?y rdf:type ontology:recurring_sporting_event }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q19576833 Q2040838
P1346
Q502895
USER
Was Pavel Zelenoy the winner of 2015 Tour de Pologne ?
(Q19576833,P1346,Q2040838)
action is_in
entity Q2040838
action find
entity Q19576833
relation P1346
['Q19576833', 'P1346', 'Q2040838']
ASK WHERE { resource:Q19576833 property:P1346 resource:Q2040838 }
2015 Tour de Pologne Pavel Zelenoy
action is_in
entity Pavel Zelenoy
action find
entity 2015 Tour de Pologne
relation winner
['2015 Tour de Pologne', 'winner', 'Pavel Zelenoy']
ASK WHERE { resource:2015_Tour_de_Pologne property:winner resource:Pavel_Zelenoy }
[]
common name
SYSTEM
NO
(Q19576833,P1346,Q2040838)
action is_in
entity Q2040838
action find
entity Q19576833
relation P1346
[ANSWER]
['Q19576833', 'P1346', 'Q2040838']
ASK WHERE { resource:Q19576833 property:P1346 resource:Q2040838 }
No
action is_in
entity Pavel Zelenoy
action find
entity 2015 Tour de Pologne
relation winner
['2015 Tour de Pologne', 'winner', 'Pavel Zelenoy']
ASK WHERE { resource:2015_Tour_de_Pologne property:winner resource:Pavel_Zelenoy }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q7384074 Q21815179
P106 P921
Q12737077
USER
Which occupations were worldstatesmen mainly about or are the job of Ryan Fry ?
OR((Q21815179,P921,c(Q12737077)), (Q7384074,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21815179
relation P921
action find
entity Q7384074
relation P106
type Q12737077
{'OR': [['Q21815179', 'P921', {'concept': 'Q12737077'}], ['Q7384074', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q21815179 property:P921 ?e } UNION { resource:Q7384074 property:P106 ?e } } . ?e rdf:type ontology:Q12737077 }
Ryan Fry worldstatesmen
action filter_type
action union
action find
entity worldstatesmen
relation main subject
action find
entity Ryan Fry
relation occupation
type occupation
{'OR': [['worldstatesmen', 'main subject', {'concept': 'occupation'}], ['Ryan Fry', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:worldstatesmen property:main_subject ?e } UNION { resource:Ryan_Fry property:occupation ?e } } . ?e rdf:type ontology:occupation }
[]
occupation
Q372436 Q17516936 Q82955
SYSTEM
statesman, curler, politician
Q372436 Q17516936 Q82955
OR((Q21815179,P921,c(Q12737077)), (Q7384074,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21815179
relation P921
action find
entity Q7384074
relation P106
type Q12737077
The [ANSWERS] were worldstatesmen mainly about or are the job of Ryan Fry
{'OR': [['Q21815179', 'P921', {'concept': 'Q12737077'}], ['Q7384074', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?e WHERE { { { resource:Q21815179 property:P921 ?e } UNION { resource:Q7384074 property:P106 ?e } } . ?e rdf:type ontology:Q12737077 }
statesman curler politician
The statesman, curler and politician were worldstatesmen mainly about or are the job of Ryan Fry
statesman curler politician
action filter_type
action union
action find
entity worldstatesmen
relation main subject
action find
entity Ryan Fry
relation occupation
type occupation
{'OR': [['worldstatesmen', 'main subject', {'concept': 'occupation'}], ['Ryan Fry', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?e WHERE { { { resource:worldstatesmen property:main_subject ?e } UNION { resource:Ryan_Fry property:occupation ?e } } . ?e rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7297441 Q1678899
P27
Q1048835
USER
Which political territories are Jakob Ballensiefen or Ray Elgaard a civilian of ?
OR((Q1678899,P27,c(Q1048835)), (Q7297441,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1678899
relation P27
action find
entity Q7297441
relation P27
type Q1048835
{'OR': [['Q1678899', 'P27', {'concept': 'Q1048835'}], ['Q7297441', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q7297441 property:P27 ?w } UNION { resource:Q1678899 property:P27 ?w } } . ?w rdf:type ontology:Q1048835 }
Ray Elgaard Jakob Ballensiefen
action filter_type
action union
action find
entity Jakob Ballensiefen
relation country of citizenship
action find
entity Ray Elgaard
relation country of citizenship
type political territorial entity
{'OR': [['Jakob Ballensiefen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ray Elgaard', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ray_Elgaard property:country_of_citizenship ?w } UNION { resource:Jakob_Ballensiefen property:country_of_citizenship ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16 Q183
SYSTEM
Canada, Germany
Q16 Q183
OR((Q1678899,P27,c(Q1048835)), (Q7297441,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1678899
relation P27
action find
entity Q7297441
relation P27
type Q1048835
[ANSWERS] are Jakob Ballensiefen or Ray Elgaard a civilian of
{'OR': [['Q1678899', 'P27', {'concept': 'Q1048835'}], ['Q7297441', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Q7297441 property:P27 ?w } UNION { resource:Q1678899 property:P27 ?w } } . ?w rdf:type ontology:Q1048835 }
Canada Germany
Canada and Germany are Jakob Ballensiefen or Ray Elgaard a civilian of
Canada Germany
action filter_type
action union
action find
entity Jakob Ballensiefen
relation country of citizenship
action find
entity Ray Elgaard
relation country of citizenship
type political territorial entity
{'OR': [['Jakob Ballensiefen', 'country of citizenship', {'concept': 'political territorial entity'}], ['Ray Elgaard', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?w WHERE { { { resource:Ray_Elgaard property:country_of_citizenship ?w } UNION { resource:Jakob_Ballensiefen property:country_of_citizenship ?w } } . ?w rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q827530
P27
Q502895
USER
Are T. J. Mulock a citizen of those political territories ?
(Q827530,P27,Q16) (Q827530,P27,Q183)
action is_in
entity prev_answer
action find
entity Q827530
relation P27
['Q827530', 'P27', 'Q16'] ['Q827530', 'P27', 'Q183']
ASK WHERE { VALUES ( ?r ) { ( resource:Q16 ) ( resource:Q183 ) } . resource:Q827530 property:P27 ?r }
T. J. Mulock
action is_in
entity prev_answer
action find
entity T. J. Mulock
relation country of citizenship
['T. J. Mulock', 'country of citizenship', 'Canada'] ['T. J. Mulock', 'country of citizenship', 'Germany']
ASK WHERE { VALUES ( ?r ) { ( resource:Canada ) ( resource:Germany ) } . resource:T._J._Mulock property:country_of_citizenship ?r }
[]
common name
SYSTEM
YES
(Q827530,P27,Q16) (Q827530,P27,Q183)
action is_in
entity prev_answer
action find
entity Q827530
relation P27
[ANSWER]
['Q827530', 'P27', 'Q16'] ['Q827530', 'P27', 'Q183']
ASK WHERE { VALUES ( ?r ) { ( resource:Q16 ) ( resource:Q183 ) } . resource:Q827530 property:P27 ?r }
Yes
action is_in
entity prev_answer
action find
entity T. J. Mulock
relation country of citizenship
['T. J. Mulock', 'country of citizenship', 'Canada'] ['T. J. Mulock', 'country of citizenship', 'Germany']
ASK WHERE { VALUES ( ?r ) { ( resource:Canada ) ( resource:Germany ) } . resource:T._J._Mulock property:country_of_citizenship ?r }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q4769798 Q21815179
P106 P921
Q12737077
USER
Which occupations were discussed in worldstatesmen or are the job of Anny Cortés ?
OR((Q21815179,P921,c(Q12737077)), (Q4769798,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21815179
relation P921
action find
entity Q4769798
relation P106
type Q12737077
{'OR': [['Q21815179', 'P921', {'concept': 'Q12737077'}], ['Q4769798', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . { { resource:Q21815179 property:P921 ?h } UNION { resource:Q4769798 property:P106 ?h } } }
Anny Cortés worldstatesmen
action filter_type
action union
action find
entity worldstatesmen
relation main subject
action find
entity Anny Cortés
relation occupation
type occupation
{'OR': [['worldstatesmen', 'main subject', {'concept': 'occupation'}], ['Anny Cortés', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . { { resource:worldstatesmen property:main_subject ?h } UNION { resource:Anny_Cortés property:occupation ?h } } }
[]
occupation
Q372436 Q82955 Q6665249
SYSTEM
statesman, politician, judoka
Q372436 Q82955 Q6665249
OR((Q21815179,P921,c(Q12737077)), (Q4769798,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q21815179
relation P921
action find
entity Q4769798
relation P106
type Q12737077
The [ANSWERS] were discussed in worldstatesmen or are the job of Anny Cortés
{'OR': [['Q21815179', 'P921', {'concept': 'Q12737077'}], ['Q4769798', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q12737077 . { { resource:Q21815179 property:P921 ?h } UNION { resource:Q4769798 property:P106 ?h } } }
statesman politician judoka
The statesman, politician and judoka were discussed in worldstatesmen or are the job of Anny Cortés
statesman politician judoka
action filter_type
action union
action find
entity worldstatesmen
relation main subject
action find
entity Anny Cortés
relation occupation
type occupation
{'OR': [['worldstatesmen', 'main subject', {'concept': 'occupation'}], ['Anny Cortés', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:occupation . { { resource:worldstatesmen property:main_subject ?h } UNION { resource:Anny_Cortés property:occupation ?h } } }
[]