Simple Question (Direct)
Simple Question
Q6692693
P26
Q502895
USER
Which person is the life partner of Lovro Toman ?
(Q6692693,P26,c(Q502895))
action filter_type
action find
entity Q6692693
relation P26
type Q502895
['Q6692693', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q6692693 property:P26 ?p }
Lovro Toman
action filter_type
action find
entity Lovro Toman
relation spouse
type common name
['Lovro Toman', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Lovro_Toman property:spouse ?p }
[]
common name
Q3186078
SYSTEM
Josipina Turnograjska
Q3186078
(Q6692693,P26,c(Q502895))
action filter_type
action find
entity Q6692693
relation P26
type Q502895
[ANSWER] is the life partner of Lovro Toman
['Q6692693', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . resource:Q6692693 property:P26 ?p }
Josipina Turnograjska
Josipina Turnograjska is the life partner of Lovro Toman
Josipina Turnograjska
action filter_type
action find
entity Lovro Toman
relation spouse
type common name
['Lovro Toman', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . resource:Lovro_Toman property:spouse ?p }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3186078
P20
Q618779
USER
Where did the demise of that person occur ?
(Q3186078,P20,c(Q618779))
action filter_type
action find
entity Q3186078
relation P20
type Q618779
['Q3186078', 'P20', {'concept': 'Q618779'}]
SELECT DISTINCT ?y WHERE { resource:Q3186078 property:P20 ?y . ?y rdf:type ontology:Q618779 }
Josipina Turnograjska
action filter_type
action find
entity Josipina Turnograjska
relation place of death
type award
['Josipina Turnograjska', 'place of death', {'concept': 'award'}]
SELECT DISTINCT ?y WHERE { resource:Josipina_Turnograjska property:place_of_death ?y . ?y rdf:type ontology:award }
[]
award
Q13298
SYSTEM
Graz
Q13298
(Q3186078,P20,c(Q618779))
action filter_type
action find
entity Q3186078
relation P20
type Q618779
The demise of that person occurred in [ANSWER]
['Q3186078', 'P20', {'concept': 'Q618779'}]
SELECT DISTINCT ?y WHERE { resource:Q3186078 property:P20 ?y . ?y rdf:type ontology:Q618779 }
Graz
The demise of that person occurred in Graz
Graz
action filter_type
action find
entity Josipina Turnograjska
relation place of death
type award
['Josipina Turnograjska', 'place of death', {'concept': 'award'}]
SELECT DISTINCT ?y WHERE { resource:Josipina_Turnograjska property:place_of_death ?y . ?y rdf:type ontology:award }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q13298 Q1010 Q4854183
P190
Q56061
USER
Is that award partner town of Maribor and Band-e Korman ?
(Q13298,P190,Q1010) (Q13298,P190,Q4854183)
action is_in
entity Q13298
action intersection
action find_reverse
entity Q1010
relation P190
action find_reverse
entity Q4854183
relation P190
['Q13298', 'P190', 'Q1010'] ['Q13298', 'P190', 'Q4854183']
ASK WHERE { resource:Q13298 property:P190 resource:Q1010 . resource:Q13298 property:P190 resource:Q4854183 }
Graz Maribor Band-e Korman
action is_in
entity Graz
action intersection
action find_reverse
entity Maribor
relation sister city
action find_reverse
entity Band-e Korman
relation sister city
['Graz', 'sister city', 'Maribor'] ['Graz', 'sister city', 'Band-e Korman']
ASK WHERE { resource:Graz property:sister_city resource:Maribor . resource:Graz property:sister_city resource:Band-e_Korman }
[]
administrative territorial entity
SYSTEM
YES and NO respectively
(Q13298,P190,Q1010) (Q13298,P190,Q4854183)
action is_in
entity Q13298
action intersection
action find_reverse
entity Q1010
relation P190
action find_reverse
entity Q4854183
relation P190
[ANSWER]
['Q13298', 'P190', 'Q1010'] ['Q13298', 'P190', 'Q4854183']
ASK WHERE { resource:Q13298 property:P190 resource:Q1010 . resource:Q13298 property:P190 resource:Q4854183 }
YES and NO respectively
action is_in
entity Graz
action intersection
action find_reverse
entity Maribor
relation sister city
action find_reverse
entity Band-e Korman
relation sister city
['Graz', 'sister city', 'Maribor'] ['Graz', 'sister city', 'Band-e Korman']
ASK WHERE { resource:Graz property:sister_city resource:Maribor . resource:Graz property:sister_city resource:Band-e_Korman }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q261657 Q1010
P27 P190
Q15617994
USER
Which administrative territories are sister towns of Maribor or do Nina Zhivanevskaya belong to ?
OR((Q1010,P190,c(Q15617994)), (Q261657,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1010
relation P190
action find
entity Q261657
relation P27
type Q15617994
{'OR': [['Q1010', 'P190', {'concept': 'Q15617994'}], ['Q261657', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1010 property:P190 ?n } UNION { resource:Q261657 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Nina Zhivanevskaya Maribor
action filter_type
action union
action find
entity Maribor
relation sister city
action find
entity Nina Zhivanevskaya
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maribor', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Nina Zhivanevskaya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Maribor property:sister_city ?n } UNION { resource:Nina_Zhivanevskaya property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q29 Q2790 Q159
SYSTEM
Spain, Udine, Russia
Q29 Q2790 Q159
OR((Q1010,P190,c(Q15617994)), (Q261657,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q1010
relation P190
action find
entity Q261657
relation P27
type Q15617994
[ANSWERS] are sister towns of Maribor or do Nina Zhivanevskaya belong to
{'OR': [['Q1010', 'P190', {'concept': 'Q15617994'}], ['Q261657', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Q1010 property:P190 ?n } UNION { resource:Q261657 property:P27 ?n } } . ?n rdf:type ontology:Q15617994 }
Spain Udine Russia
Spain, Udine and Russia are sister towns of Maribor or do Nina Zhivanevskaya belong to
Spain Udine Russia
action filter_type
action union
action find
entity Maribor
relation sister city
action find
entity Nina Zhivanevskaya
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Maribor', 'sister city', {'concept': 'designation for an administrative territorial entity'}], ['Nina Zhivanevskaya', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?n WHERE { { { resource:Maribor property:sister_city ?n } UNION { resource:Nina_Zhivanevskaya property:country_of_citizenship ?n } } . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Difference|Single_Relation
Q10299190 Q6692693
P106
Q12737077
USER
Which occupations are the professions of Lovro Toman but not Hélio Holanda Melo ?
AND((Q6692693,P106,c(Q12737077)), NOT((Q10299190,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q6692693
relation P106
action find
entity Q10299190
relation P106
type Q12737077
{'AND': [['Q6692693', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q10299190', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Q6692693 property:P106 ?h . FILTER NOT EXISTS { resource:Q10299190 property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
Hélio Holanda Melo Lovro Toman
action filter_type
action difference
action find
entity Lovro Toman
relation occupation
action find
entity Hélio Holanda Melo
relation occupation
type occupation
{'AND': [['Lovro Toman', 'occupation', {'concept': 'occupation'}], {'NOT': [['Hélio Holanda Melo', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Lovro_Toman property:occupation ?h . FILTER NOT EXISTS { resource:Hélio_Holanda_Melo property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
occupation
Q82955 Q49757
SYSTEM
politician, poet
Q82955 Q49757
AND((Q6692693,P106,c(Q12737077)), NOT((Q10299190,P106,c(Q12737077))))
action filter_type
action difference
action find
entity Q6692693
relation P106
action find
entity Q10299190
relation P106
type Q12737077
The [ANSWERS] are the professions of Lovro Toman but not Hélio Holanda Melo
{'AND': [['Q6692693', 'P106', {'concept': 'Q12737077'}], {'NOT': [['Q10299190', 'P106', {'concept': 'Q12737077'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Q6692693 property:P106 ?h . FILTER NOT EXISTS { resource:Q10299190 property:P106 ?h } . ?h rdf:type ontology:Q12737077 }
politician poet
The politician and poet are the professions of Lovro Toman but not Hélio Holanda Melo
politician poet
action filter_type
action difference
action find
entity Lovro Toman
relation occupation
action find
entity Hélio Holanda Melo
relation occupation
type occupation
{'AND': [['Lovro Toman', 'occupation', {'concept': 'occupation'}], {'NOT': [['Hélio Holanda Melo', 'occupation', {'concept': 'occupation'}]]}]}
SELECT DISTINCT ?h WHERE { resource:Lovro_Toman property:occupation ?h . FILTER NOT EXISTS { resource:Hélio_Holanda_Melo property:occupation ?h } . ?h rdf:type ontology:occupation }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q2838175
P106
Q502895
USER
Do Carry-Ann Tjong-Ayong have career as those occupations ?
(Q2838175,P106,Q82955) (Q2838175,P106,Q49757)
action is_in
entity prev_answer
action find
entity Q2838175
relation P106
['Q2838175', 'P106', 'Q82955'] ['Q2838175', 'P106', 'Q49757']
ASK WHERE { VALUES ( ?q ) { ( resource:Q82955 ) ( resource:Q49757 ) } . resource:Q2838175 property:P106 ?q }
Carry-Ann Tjong-Ayong
action is_in
entity prev_answer
action find
entity Carry-Ann Tjong-Ayong
relation occupation
['Carry-Ann Tjong-Ayong', 'occupation', 'politician'] ['Carry-Ann Tjong-Ayong', 'occupation', 'poet']
ASK WHERE { VALUES ( ?q ) { ( resource:politician ) ( resource:poet ) } . resource:Carry-Ann_Tjong-Ayong property:occupation ?q }
[]
common name
SYSTEM
YES
(Q2838175,P106,Q82955) (Q2838175,P106,Q49757)
action is_in
entity prev_answer
action find
entity Q2838175
relation P106
[ANSWER]
['Q2838175', 'P106', 'Q82955'] ['Q2838175', 'P106', 'Q49757']
ASK WHERE { VALUES ( ?q ) { ( resource:Q82955 ) ( resource:Q49757 ) } . resource:Q2838175 property:P106 ?q }
Yes
action is_in
entity prev_answer
action find
entity Carry-Ann Tjong-Ayong
relation occupation
['Carry-Ann Tjong-Ayong', 'occupation', 'politician'] ['Carry-Ann Tjong-Ayong', 'occupation', 'poet']
ASK WHERE { VALUES ( ?q ) { ( resource:politician ) ( resource:poet ) } . resource:Carry-Ann_Tjong-Ayong property:occupation ?q }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2790 Q402238
P17
Q15617994
USER
Is Udine located in Ahneby ?
(Q2790,P17,Q402238)
action is_in
entity Q402238
action find
entity Q2790
relation P17
['Q2790', 'P17', 'Q402238']
ASK WHERE { resource:Q2790 property:P17 resource:Q402238 }
Udine Ahneby
action is_in
entity Ahneby
action find
entity Udine
relation country
['Udine', 'country', 'Ahneby']
ASK WHERE { resource:Udine property:country resource:Ahneby }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q2790,P17,Q402238)
action is_in
entity Q402238
action find
entity Q2790
relation P17
[ANSWER]
['Q2790', 'P17', 'Q402238']
ASK WHERE { resource:Q2790 property:P17 resource:Q402238 }
No
action is_in
entity Ahneby
action find
entity Udine
relation country
['Udine', 'country', 'Ahneby']
ASK WHERE { resource:Udine property:country resource:Ahneby }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3186078
P19
Q56061
USER
Which administrative territory is the place of birth of Josipina Turnograjska ?
(Q3186078,P19,c(Q56061))
action filter_type
action find
entity Q3186078
relation P19
type Q56061
['Q3186078', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3186078 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Josipina Turnograjska
action filter_type
action find
entity Josipina Turnograjska
relation place of birth
type administrative territorial entity
['Josipina Turnograjska', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Josipina_Turnograjska property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1970070
SYSTEM
Preddvor
Q1970070
(Q3186078,P19,c(Q56061))
action filter_type
action find
entity Q3186078
relation P19
type Q56061
[ANSWER] is the place of birth of Josipina Turnograjska
['Q3186078', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { resource:Q3186078 property:P19 ?t . ?t rdf:type ontology:Q56061 }
Preddvor
Preddvor is the place of birth of Josipina Turnograjska
Preddvor
action filter_type
action find
entity Josipina Turnograjska
relation place of birth
type administrative territorial entity
['Josipina Turnograjska', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { resource:Josipina_Turnograjska property:place_of_birth ?t . ?t rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1027
Q1656682 Q15617994 Q618779
USER
How many awards are awarded by around 1 events and administrative territories ?
(c(Q618779),P1027,c(Q1656682)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P1027
type Q618779
type Q1656682
action find_tuple_counts
relation P1027
type Q618779
type Q15617994
value 1
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q1656682'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?i ) WHERE { { ?a property:P1027 ?t . ?t rdf:type ontology:Q1656682 . ?a rdf:type ontology:Q618779 } UNION { ?a rdf:type ontology:Q618779 . ?t rdf:type ontology:Q15617994 . ?a property:P1027 ?t } } GROUP BY ?a } }
action count
action approx
action union
action find_tuple_counts
relation conferred by
type award
type event
action find_tuple_counts
relation conferred by
type award
type designation for an administrative territorial entity
value 1
[{'concept': 'award'}, 'conferred by', [{'concept': 'event'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?i ) WHERE { { ?a property:conferred_by ?t . ?t rdf:type ontology:event . ?a rdf:type ontology:award } UNION { ?a rdf:type ontology:award . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:conferred_by ?t } } GROUP BY ?a } }
[]
event designation for an administrative territorial entity award
SYSTEM
10
Q21850149 Q20505747 Q1342797 Q26706836 Q684073 Q2376515 Q1045784 Q2108417 Q696246 Q3197371
(c(Q618779),P1027,c(Q1656682)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P1027
type Q618779
type Q1656682
action find_tuple_counts
relation P1027
type Q618779
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q618779'}, 'P1027', [{'concept': 'Q1656682'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?i ) WHERE { { ?a property:P1027 ?t . ?t rdf:type ontology:Q1656682 . ?a rdf:type ontology:Q618779 } UNION { ?a rdf:type ontology:Q618779 . ?t rdf:type ontology:Q15617994 . ?a property:P1027 ?t } } GROUP BY ?a } }
FIMA Award Puh Award Walter Bauer Award sport merit order Ingeborg Bachmann Prize Medal "For Life Saving" Order of the Golden Eagle Leipzig Book Fair Prize Order of the Chrysanthemum Finnish State Prize for Literature
10
action count
action approx
action union
action find_tuple_counts
relation conferred by
type award
type event
action find_tuple_counts
relation conferred by
type award
type designation for an administrative territorial entity
value 1
[{'concept': 'award'}, 'conferred by', [{'concept': 'event'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?a ) AS ?n ) WHERE { FILTER ( ?i = 1 ) . { SELECT DISTINCT ?a ( COUNT ( ?t ) AS ?i ) WHERE { { ?a property:conferred_by ?t . ?t rdf:type ontology:event . ?a rdf:type ontology:award } UNION { ?a rdf:type ontology:award . ?t rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:conferred_by ?t } } GROUP BY ?a } }
[]