Simple Question (Direct)
Simple Question
Q82272
P641
Q349
USER
Which sport did Kirill Tulupov participate in ?
(Q82272,P641,c(Q349))
action filter_type
action find
entity Q82272
relation P641
type Q349
['Q82272', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q82272 property:P641 ?a . ?a rdf:type ontology:Q349 }
Kirill Tulupov
action filter_type
action find
entity Kirill Tulupov
relation sport
type sport
['Kirill Tulupov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Kirill_Tulupov property:sport ?a . ?a rdf:type ontology:sport }
[]
sport
Q41466
SYSTEM
ice hockey
Q41466
(Q82272,P641,c(Q349))
action filter_type
action find
entity Q82272
relation P641
type Q349
Kirill Tulupov participated in [ANSWER]
['Q82272', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?a WHERE { resource:Q82272 property:P641 ?a . ?a rdf:type ontology:Q349 }
ice hockey
Kirill Tulupov participated in ice hockey
ice hockey
action filter_type
action find
entity Kirill Tulupov
relation sport
type sport
['Kirill Tulupov', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?a WHERE { resource:Kirill_Tulupov property:sport ?a . ?a rdf:type ontology:sport }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q24033599 Q82272
P19
Q56061
USER
Which administrative territories were Kirill Tulupov or Nicole Gamba born in ?
OR((Q82272,P19,c(Q56061)), (Q24033599,P19,c(Q56061)))
action filter_type
action union
action find
entity Q82272
relation P19
action find
entity Q24033599
relation P19
type Q56061
{'OR': [['Q82272', 'P19', {'concept': 'Q56061'}], ['Q24033599', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q24033599 property:P19 ?i } UNION { resource:Q82272 property:P19 ?i } } }
Nicole Gamba Kirill Tulupov
action filter_type
action union
action find
entity Kirill Tulupov
relation place of birth
action find
entity Nicole Gamba
relation place of birth
type administrative territorial entity
{'OR': [['Kirill Tulupov', 'place of birth', {'concept': 'administrative territorial entity'}], ['Nicole Gamba', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Nicole_Gamba property:place_of_birth ?i } UNION { resource:Kirill_Tulupov property:place_of_birth ?i } } }
[]
administrative territorial entity
Q628 Q649
SYSTEM
Bergamo, Moscow
Q628 Q649
OR((Q82272,P19,c(Q56061)), (Q24033599,P19,c(Q56061)))
action filter_type
action union
action find
entity Q82272
relation P19
action find
entity Q24033599
relation P19
type Q56061
Kirill Tulupov or Nicole Gamba were born in [ANSWERS]
{'OR': [['Q82272', 'P19', {'concept': 'Q56061'}], ['Q24033599', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q24033599 property:P19 ?i } UNION { resource:Q82272 property:P19 ?i } } }
Bergamo Moscow
Kirill Tulupov or Nicole Gamba were born in Bergamo and Moscow
Bergamo Moscow
action filter_type
action union
action find
entity Kirill Tulupov
relation place of birth
action find
entity Nicole Gamba
relation place of birth
type administrative territorial entity
{'OR': [['Kirill Tulupov', 'place of birth', {'concept': 'administrative territorial entity'}], ['Nicole Gamba', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Nicole_Gamba property:place_of_birth ?i } UNION { resource:Kirill_Tulupov property:place_of_birth ?i } } }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q208471
P190
Q515
USER
Are Kaifeng sister town of those administrative territories ?
(Q208471,P190,Q628) (Q208471,P190,Q649)
action is_in
entity prev_answer
action find
entity Q208471
relation P190
['Q208471', 'P190', 'Q628'] ['Q208471', 'P190', 'Q649']
ASK WHERE { VALUES ( ?f ) { ( resource:Q628 ) ( resource:Q649 ) } . resource:Q208471 property:P190 ?f }
Kaifeng
action is_in
entity prev_answer
action find
entity Kaifeng
relation sister city
['Kaifeng', 'sister city', 'Bergamo'] ['Kaifeng', 'sister city', 'Moscow']
ASK WHERE { VALUES ( ?f ) { ( resource:Bergamo ) ( resource:Moscow ) } . resource:Kaifeng property:sister_city ?f }
[]
city
SYSTEM
NO
(Q208471,P190,Q628) (Q208471,P190,Q649)
action is_in
entity prev_answer
action find
entity Q208471
relation P190
[ANSWER]
['Q208471', 'P190', 'Q628'] ['Q208471', 'P190', 'Q649']
ASK WHERE { VALUES ( ?f ) { ( resource:Q628 ) ( resource:Q649 ) } . resource:Q208471 property:P190 ?f }
No
action is_in
entity prev_answer
action find
entity Kaifeng
relation sister city
['Kaifeng', 'sister city', 'Bergamo'] ['Kaifeng', 'sister city', 'Moscow']
ASK WHERE { VALUES ( ?f ) { ( resource:Bergamo ) ( resource:Moscow ) } . resource:Kaifeng property:sister_city ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q628 Q101631 Q101309
P47
Q15617994
USER
Does Stezzano and Orio al Serio share a border with Bergamo ?
(Q628,P47,Q101631) (Q628,P47,Q101309)
action is_in
entity Q628
action intersection
action find_reverse
entity Q101631
relation P47
action find_reverse
entity Q101309
relation P47
['Q628', 'P47', 'Q101631'] ['Q628', 'P47', 'Q101309']
ASK WHERE { resource:Q628 property:P47 resource:Q101309 . resource:Q628 property:P47 resource:Q101631 }
Bergamo Stezzano Orio al Serio
action is_in
entity Bergamo
action intersection
action find_reverse
entity Stezzano
relation shares border with
action find_reverse
entity Orio al Serio
relation shares border with
['Bergamo', 'shares border with', 'Stezzano'] ['Bergamo', 'shares border with', 'Orio al Serio']
ASK WHERE { resource:Bergamo property:shares_border_with resource:Orio_al_Serio . resource:Bergamo property:shares_border_with resource:Stezzano }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q628,P47,Q101631) (Q628,P47,Q101309)
action is_in
entity Q628
action intersection
action find_reverse
entity Q101631
relation P47
action find_reverse
entity Q101309
relation P47
[ANSWER]
['Q628', 'P47', 'Q101631'] ['Q628', 'P47', 'Q101309']
ASK WHERE { resource:Q628 property:P47 resource:Q101309 . resource:Q628 property:P47 resource:Q101631 }
Yes
action is_in
entity Bergamo
action intersection
action find_reverse
entity Stezzano
relation shares border with
action find_reverse
entity Orio al Serio
relation shares border with
['Bergamo', 'shares border with', 'Stezzano'] ['Bergamo', 'shares border with', 'Orio al Serio']
ASK WHERE { resource:Bergamo property:shares_border_with resource:Orio_al_Serio . resource:Bergamo property:shares_border_with resource:Stezzano }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q82272 Q159
P27
Q15617994
USER
Does that person belong to Russia ?
(Q82272,P27,Q159)
action is_in
entity Q159
action find
entity Q82272
relation P27
['Q82272', 'P27', 'Q159']
ASK WHERE { resource:Q82272 property:P27 resource:Q159 }
Kirill Tulupov Russia
action is_in
entity Russia
action find
entity Kirill Tulupov
relation country of citizenship
['Kirill Tulupov', 'country of citizenship', 'Russia']
ASK WHERE { resource:Kirill_Tulupov property:country_of_citizenship resource:Russia }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q82272,P27,Q159)
action is_in
entity Q159
action find
entity Q82272
relation P27
[ANSWER]
['Q82272', 'P27', 'Q159']
ASK WHERE { resource:Q82272 property:P27 resource:Q159 }
Yes
action is_in
entity Russia
action find
entity Kirill Tulupov
relation country of citizenship
['Kirill Tulupov', 'country of citizenship', 'Russia']
ASK WHERE { resource:Kirill_Tulupov property:country_of_citizenship resource:Russia }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P609
Q56061 Q83620 Q12280
USER
Which administrative territories are the terminus locations of max number of thoroughfares or bridges ?
(c(Q83620)|c(Q12280),P609,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?s ) WHERE { { ?t property:P609 ?j . ?j rdf:type ontology:Q56061 . ?t rdf:type ontology:Q12280 } UNION { ?t property:P609 ?j . ?t rdf:type ontology:Q83620 . ?j rdf:type ontology:Q56061 } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P609 ?y . ?z rdf:type ontology:Q83620 . ?y rdf:type ontology:Q56061 } UNION { ?y rdf:type ontology:Q56061 . ?z rdf:type ontology:Q12280 . ?z property:P609 ?y } } GROUP BY ?y } . FILTER ( ?v = ?u ) }
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?s ) WHERE { { ?t property:terminus_location ?j . ?j rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:bridge } UNION { ?t property:terminus_location ?j . ?t rdf:type ontology:thoroughfare . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:terminus_location ?y . ?z rdf:type ontology:thoroughfare . ?y rdf:type ontology:administrative_territorial_entity } UNION { ?y rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:bridge . ?z property:terminus_location ?y } } GROUP BY ?y } . FILTER ( ?v = ?u ) }
[]
administrative territorial entity thoroughfare bridge
Q740149
SYSTEM
Södermalm
Q740149
(c(Q83620)|c(Q12280),P609,c(Q56061))
action argmax
action union
action find_reverse_tuple_counts
relation P609
type Q56061
type Q83620
action find_reverse_tuple_counts
relation P609
type Q56061
type Q12280
[ANSWER] is the terminus locations of max number of thoroughfares or bridges
[[{'concept': 'Q83620'}, {'concept': 'Q12280'}], 'P609', {'concept': 'Q56061'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?s ) WHERE { { ?t property:P609 ?j . ?j rdf:type ontology:Q56061 . ?t rdf:type ontology:Q12280 } UNION { ?t property:P609 ?j . ?t rdf:type ontology:Q83620 . ?j rdf:type ontology:Q56061 } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:P609 ?y . ?z rdf:type ontology:Q83620 . ?y rdf:type ontology:Q56061 } UNION { ?y rdf:type ontology:Q56061 . ?z rdf:type ontology:Q12280 . ?z property:P609 ?y } } GROUP BY ?y } . FILTER ( ?v = ?u ) }
Södermalm
Södermalm is the terminus locations of max number of thoroughfares or bridges
Södermalm
action argmax
action union
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type thoroughfare
action find_reverse_tuple_counts
relation terminus location
type administrative territorial entity
type bridge
[[{'concept': 'thoroughfare'}, {'concept': 'bridge'}], 'terminus location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ( MAX ( ?s ) AS ?u ) { SELECT DISTINCT ?j ( COUNT ( ?t ) AS ?s ) WHERE { { ?t property:terminus_location ?j . ?j rdf:type ontology:administrative_territorial_entity . ?t rdf:type ontology:bridge } UNION { ?t property:terminus_location ?j . ?t rdf:type ontology:thoroughfare . ?j rdf:type ontology:administrative_territorial_entity } } GROUP BY ?j } } . { SELECT DISTINCT ?y ( COUNT ( ?z ) AS ?v ) WHERE { { ?z property:terminus_location ?y . ?z rdf:type ontology:thoroughfare . ?y rdf:type ontology:administrative_territorial_entity } UNION { ?y rdf:type ontology:administrative_territorial_entity . ?z rdf:type ontology:bridge . ?z property:terminus_location ?y } } GROUP BY ?y } . FILTER ( ?v = ?u ) }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q38 Q159
P27
Q502895
USER
Which people are a citizen of Russia and Italy ?
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q38))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q38
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q38']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q159 . ?o property:P27 resource:Q38 . ?o rdf:type ontology:Q502895 }
Italy Russia
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity Italy
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'Italy']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Russia . ?o property:country_of_citizenship resource:Italy . ?o rdf:type ontology:common_name }
[]
common name
Q1338747 Q4129902 Q2754547 Q18758690 Q17496884 Q2640998 Q27121263 Q3870663 Q3615074 Q526780
SYSTEM
Some of them are Michael Mamleev, Elena Igorevna Vichodtseva, Boris Petrushansky, Sofia Schafranov, Ivan Balykin, Berl Lazar, Elena Chepurnova, Natalia Titova, Anastasia Silveri, Olga Zimina
Q27121263 Q526780 Q2754547 Q2640998 Q3881562 Q1338747 Q17496884 Q3870663 Q4129902 Q1424848 Q3615074 Q18758690
AND((c(Q502895),P27,Q159), (c(Q502895),P27,Q38))
action filter_type
action intersection
action find_reverse
entity Q159
relation P27
action find_reverse
entity Q38
relation P27
type Q502895
[ANSWERS] are a citizen of Russia and Italy
{'AND': [[{'concept': 'Q502895'}, 'P27', 'Q159'], [{'concept': 'Q502895'}, 'P27', 'Q38']]}
SELECT DISTINCT ?o WHERE { ?o property:P27 resource:Q159 . ?o property:P27 resource:Q38 . ?o rdf:type ontology:Q502895 }
Elena Chepurnova Olga Zimina Boris Petrushansky Berl Lazar Oleg Antonov Michael Mamleev Ivan Balykin Natalia Titova Elena Igorevna Vichodtseva Vladimir Delman Anastasia Silveri Sofia Schafranov
Michael Mamleev, Elena Igorevna Vichodtseva, Boris Petrushansky, Sofia Schafranov, Ivan Balykin, Berl Lazar, Elena Chepurnova, Natalia Titova, Anastasia Silveri and Olga Zimina are a citizen of Russia and Italy
Michael Mamleev Elena Igorevna Vichodtseva Boris Petrushansky Sofia Schafranov Ivan Balykin Berl Lazar Elena Chepurnova Natalia Titova Anastasia Silveri Olga Zimina
action filter_type
action intersection
action find_reverse
entity Russia
relation country of citizenship
action find_reverse
entity Italy
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'country of citizenship', 'Russia'], [{'concept': 'common name'}, 'country of citizenship', 'Italy']]}
SELECT DISTINCT ?o WHERE { ?o property:country_of_citizenship resource:Russia . ?o property:country_of_citizenship resource:Italy . ?o rdf:type ontology:common_name }
[]