Simple Question (Direct)
Simple Question
Q7346366
P27
Q15617994
USER
Which administrative territory is Robert King an inhabitant of ?
(Q7346366,P27,c(Q15617994))
action filter_type
action find
entity Q7346366
relation P27
type Q15617994
['Q7346366', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q7346366 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
Robert King
action filter_type
action find
entity Robert King
relation country of citizenship
type designation for an administrative territorial entity
['Robert King', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Robert_King property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q145
SYSTEM
United Kingdom
Q145
(Q7346366,P27,c(Q15617994))
action filter_type
action find
entity Q7346366
relation P27
type Q15617994
[ANSWER] is Robert King an inhabitant of
['Q7346366', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?i WHERE { resource:Q7346366 property:P27 ?i . ?i rdf:type ontology:Q15617994 }
United Kingdom
United Kingdom is Robert King an inhabitant of
United Kingdom
action filter_type
action find
entity Robert King
relation country of citizenship
type designation for an administrative territorial entity
['Robert King', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?i WHERE { resource:Robert_King property:country_of_citizenship ?i . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7346366
P54
Q1194951
USER
Which national sports team is that person a member of ?
(Q145,P54,c(Q1194951))
action filter_type
action find
entity Q7346366
relation P54
type Q1194951
['Q145', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q7346366 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
Robert King
action filter_type
action find
entity Robert King
relation member of sports team
type national sports team
['United Kingdom', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Robert_King property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
national sports team
Q47762
SYSTEM
England national football team
Q47762
(Q145,P54,c(Q1194951))
action filter_type
action find
entity Q7346366
relation P54
type Q1194951
Which [ANSWER] is that person a member of
['Q145', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?u WHERE { resource:Q7346366 property:P54 ?u . ?u rdf:type ontology:Q1194951 }
England national football team
Which England national football team is that person a member of
England national football team
action filter_type
action find
entity Robert King
relation member of sports team
type national sports team
['United Kingdom', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?u WHERE { resource:Robert_King property:member_of_sports_team ?u . ?u rdf:type ontology:national_sports_team }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7346366
P69
Q1244442
USER
Which school building is that person an alumni of ?
(Q47762,P69,c(Q1244442))
action filter_type
action find
entity Q7346366
relation P69
type Q1244442
['Q47762', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?l WHERE { resource:Q7346366 property:P69 ?l . ?l rdf:type ontology:Q1244442 }
Robert King
action filter_type
action find
entity Robert King
relation educated at
type school building
['England national football team', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?l WHERE { resource:Robert_King property:educated_at ?l . ?l rdf:type ontology:school_building }
[]
school building
Q81090
SYSTEM
Hertford College
Q81090
(Q47762,P69,c(Q1244442))
action filter_type
action find
entity Q7346366
relation P69
type Q1244442
[ANSWER] is that person an alumni of
['Q47762', 'P69', {'concept': 'Q1244442'}]
SELECT DISTINCT ?l WHERE { resource:Q7346366 property:P69 ?l . ?l rdf:type ontology:Q1244442 }
Hertford College
Hertford College is that person an alumni of
Hertford College
action filter_type
action find
entity Robert King
relation educated at
type school building
['England national football team', 'educated at', {'concept': 'school building'}]
SELECT DISTINCT ?l WHERE { resource:Robert_King property:educated_at ?l . ?l rdf:type ontology:school_building }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q81090 Q832343
P69
Q502895
USER
Was Charles Atangana a student at that school building ?
(Q832343,P69,Q81090)
action is_in
entity Q832343
action find
entity Q81090
relation P69
['Q832343', 'P69', 'Q81090']
ASK WHERE { resource:Q81090 property:P69 resource:Q832343 }
Hertford College Charles Atangana
action is_in
entity Charles Atangana
action find
entity Hertford College
relation educated at
['Charles Atangana', 'educated at', 'Hertford College']
ASK WHERE { resource:Hertford_College property:educated_at resource:Charles_Atangana }
[]
common name
SYSTEM
NO
(Q832343,P69,Q81090)
action is_in
entity Q832343
action find
entity Q81090
relation P69
[ANSWER]
['Q832343', 'P69', 'Q81090']
ASK WHERE { resource:Q81090 property:P69 resource:Q832343 }
No
action is_in
entity Charles Atangana
action find
entity Hertford College
relation educated at
['Charles Atangana', 'educated at', 'Hertford College']
ASK WHERE { resource:Hertford_College property:educated_at resource:Charles_Atangana }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P3279
Q502895 Q500834 Q1344963
USER
Which people were the statistical leaders of exactly 1 tournaments and world championships ?
(c(Q500834)|c(Q1344963),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
value 1
[[{'concept': 'Q500834'}, {'concept': 'Q1344963'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?m WHERE { ?a rdf:type ?o . VALUES ( ?o ) { ( ontology:Q500834 ) ( ontology:Q1344963 ) } } GROUP BY ?m } }
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
value 1
[[{'concept': 'tournament'}, {'concept': 'world championship'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?m WHERE { ?a rdf:type ?o . VALUES ( ?o ) { ( ontology:tournament ) ( ontology:world_championship ) } } GROUP BY ?m } }
[]
common name tournament world championship
Q58335 Q2419943 Q952921
SYSTEM
Leandro Barbosa, Ike Diogu, Patrick Mills
Q11691650 Q273561 Q4973709 Q3595275 Q3855901 Q952921 Q58335 Q555488 Q18957309 Q18206776 Q721076 Q3325479 Q3317928 Q3882086 Q11561907 Q1797248 Q3123694 Q504835 Q3830637 Q2077350 Q1763902 Q3192666 Q24088775 Q18352226 Q433813 Q4801743 Q371193 Q2021449 Q493027 Q1435883 Q2419943 Q3961216 Q459258 Q2640666
(c(Q500834)|c(Q1344963),P3279,c(Q502895))
action equal
action union
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q500834
action find_reverse_tuple_counts
relation P3279
type Q502895
type Q1344963
value 1
[ANSWERS] were the statistical leaders of exactly 1 tournaments and world championships
[[{'concept': 'Q500834'}, {'concept': 'Q1344963'}], 'P3279', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?m WHERE { ?a rdf:type ?o . VALUES ( ?o ) { ( ontology:Q500834 ) ( ontology:Q1344963 ) } } GROUP BY ?m } }
Crispina Correia Anne-Marie Colchen Shin Dong-pa Geethu Anna Jose Mfon Udoka Patrick Mills Leandro Barbosa Álvaro Salvadores Ángela Salvadores Nirra Fields Alberto Herreros Mouhammad Faye Modibo Niakate Omar Quintero Ramu Tokashiki Oscar Schmidt Géraldine Robert Andrew Gaze Andrea Borrell Radhouane Slimane Jeff Xavier Kani Kouyaté Antonia Edmondson Isabela Ramona Nikos Galis Arturo Guerrero José Juan Barea Yuko Oga Andray Blatche Marcelo Machado Ike Diogu Simone Edwards Sancho Lyttle Janeth Arcain
Leandro Barbosa, Ike Diogu and Patrick Mills were the statistical leaders of exactly 1 tournaments and world championships
Leandro Barbosa Ike Diogu Patrick Mills
action equal
action union
action find_reverse_tuple_counts
relation statistical leader
type common name
type tournament
action find_reverse_tuple_counts
relation statistical leader
type common name
type world championship
value 1
[[{'concept': 'tournament'}, {'concept': 'world championship'}], 'statistical leader', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { FILTER ( ?x = 1 ) . { SELECT DISTINCT ( COUNT ( ?a ) AS ?x ) ?m WHERE { ?a rdf:type ?o . VALUES ( ?o ) { ( ontology:tournament ) ( ontology:world_championship ) } } GROUP BY ?m } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q274209 Q7346366
P19
Q56061
USER
Which administrative territories are the places of birth of Robert King or Sharon Sheeley ?
OR((Q7346366,P19,c(Q56061)), (Q274209,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7346366
relation P19
action find
entity Q274209
relation P19
type Q56061
{'OR': [['Q7346366', 'P19', {'concept': 'Q56061'}], ['Q274209', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7346366 property:P19 ?b } UNION { resource:Q274209 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
Sharon Sheeley Robert King
action filter_type
action union
action find
entity Robert King
relation place of birth
action find
entity Sharon Sheeley
relation place of birth
type administrative territorial entity
{'OR': [['Robert King', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sharon Sheeley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Robert_King property:place_of_birth ?b } UNION { resource:Sharon_Sheeley property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q541590 Q65
SYSTEM
Leigh-on-Sea, Los Angeles
Q541590 Q65
OR((Q7346366,P19,c(Q56061)), (Q274209,P19,c(Q56061)))
action filter_type
action union
action find
entity Q7346366
relation P19
action find
entity Q274209
relation P19
type Q56061
[ANSWERS] are the places of birth of Robert King or Sharon Sheeley
{'OR': [['Q7346366', 'P19', {'concept': 'Q56061'}], ['Q274209', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Q7346366 property:P19 ?b } UNION { resource:Q274209 property:P19 ?b } } . ?b rdf:type ontology:Q56061 }
Leigh-on-Sea Los Angeles
Leigh-on-Sea and Los Angeles are the places of birth of Robert King or Sharon Sheeley
Leigh-on-Sea Los Angeles
action filter_type
action union
action find
entity Robert King
relation place of birth
action find
entity Sharon Sheeley
relation place of birth
type administrative territorial entity
{'OR': [['Robert King', 'place of birth', {'concept': 'administrative territorial entity'}], ['Sharon Sheeley', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?b WHERE { { { resource:Robert_King property:place_of_birth ?b } UNION { resource:Sharon_Sheeley property:place_of_birth ?b } } . ?b rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q541590
P20
Q502895
USER
Which person has that administrative territory as the area of death ?
(c(Q502895),P20,Q541590)
action filter_type
action find_reverse
entity Q541590
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q541590']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q541590 . ?p rdf:type ontology:Q502895 }
Leigh-on-Sea
action filter_type
action find_reverse
entity Leigh-on-Sea
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Leigh-on-Sea']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Leigh-on-Sea . ?p rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q65
SYSTEM
Did you mean Los Angeles ?
Q541590 Q65
(c(Q502895),P20,Q541590) (c(Q502895),P20,Q65)
[ANSWER]
[{'concept': 'Q502895'}, 'P20', 'Q541590'] [{'concept': 'Q502895'}, 'P20', 'Q65']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q541590 . ?p rdf:type ontology:Q502895 }
Leigh-on-Sea Los Angeles
Did you mean Los Angeles ?
Los Angeles
[{'concept': 'common name'}, 'place of death', 'Leigh-on-Sea'] [{'concept': 'common name'}, 'place of death', 'Los Angeles']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Leigh-on-Sea . ?p rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Leigh-on-Sea. Could you tell me the answer for that?
(c(Q502895),P20,Q541590)
Q541590
[{'concept': 'Q502895'}, 'P20', 'Q541590']
[{'concept': 'common name'}, 'place of death', 'Leigh-on-Sea']
[]
Q23562506
SYSTEM
Joan Bates
Q23562506
(c(Q502895),P20,Q541590)
action filter_type
action find_reverse
entity Q541590
relation P20
type Q502895
[ANSWER] has that administrative territory as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q541590']
SELECT DISTINCT ?p WHERE { ?p property:P20 resource:Q541590 . ?p rdf:type ontology:Q502895 }
Joan Bates
Joan Bates has that administrative territory as the area of death
Joan Bates
action filter_type
action find_reverse
entity Leigh-on-Sea
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Leigh-on-Sea']
SELECT DISTINCT ?p WHERE { ?p property:place_of_death resource:Leigh-on-Sea . ?p rdf:type ontology:common_name }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1029
Q502895 Q40218 Q20027951
USER
Which people were crew members of approximately 1 spacecrafts and aircraft power classes ?
(c(Q40218)|c(Q20027951),P1029,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q40218
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
value 1
[[{'concept': 'Q40218'}, {'concept': 'Q20027951'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?c ) WHERE { { ?x property:P1029 ?k . ?k rdf:type ontology:Q502895 . ?x rdf:type ontology:Q40218 } UNION { ?x property:P1029 ?k . ?x rdf:type ontology:Q20027951 . ?k rdf:type ontology:Q502895 } } GROUP BY ?k } }
action approx
action union
action find_reverse_tuple_counts
relation crew member
type common name
type spacecraft
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
value 1
[[{'concept': 'spacecraft'}, {'concept': 'aircraft power class'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?c ) WHERE { { ?x property:crew_member ?k . ?k rdf:type ontology:common_name . ?x rdf:type ontology:spacecraft } UNION { ?x property:crew_member ?k . ?x rdf:type ontology:aircraft_power_class . ?k rdf:type ontology:common_name } } GROUP BY ?k } }
[]
common name spacecraft aircraft power class
Q7327 Q152298 Q154269
SYSTEM
Yuri Gagarin, Gherman Titov, Alexey Leonov
Q470059 Q8070347 Q310924 Q7327 Q363976 Q147581 Q182642 Q159681 Q557082 Q110450 Q390344 Q446917 Q44371 Q4103224 Q312833 Q352137 Q536632 Q213076 Q344892 Q152298 Q104865 Q312474 Q320068 Q644837 Q235266 Q294555 Q197135 Q335503 Q174979 Q154269 Q507046 Q460440 Q110879 Q157931 Q705626 Q118490
(c(Q40218)|c(Q20027951),P1029,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q40218
action find_reverse_tuple_counts
relation P1029
type Q502895
type Q20027951
value 1
[ANSWERS] were crew members of approximately 1 spacecrafts and aircraft power classes
[[{'concept': 'Q40218'}, {'concept': 'Q20027951'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?c ) WHERE { { ?x property:P1029 ?k . ?k rdf:type ontology:Q502895 . ?x rdf:type ontology:Q40218 } UNION { ?x property:P1029 ?k . ?x rdf:type ontology:Q20027951 . ?k rdf:type ontology:Q502895 } } GROUP BY ?k } }
Liu Wang Zhang Xiaoguang Alan Bean Yuri Gagarin Jack R. Lousma Yang Liwei John Glenn Valery Bykovsky Liu Boming Wally Schirra Edward Gibson Joseph P. Kerwin Valentina Tereshkova Theodore Van Kirk Gordon Cooper Boris Yegorov Paul J. Weitz Pete Conrad Fei Junlong Gherman Titov Vladimir Komarov Andriyan Nikolayev Konstantin Feoktistov Gerald P. Carr Liu Yang Paul Tibbets Zhai Zhigang Scott Carpenter Alan Shepard Alexey Leonov Owen K. Garriott William R. Pogue Gus Grissom Pavel Belyayev Wang Yaping Pavel Popovich
Yuri Gagarin, Gherman Titov and Alexey Leonov were crew members of approximately 1 spacecrafts and aircraft power classes
Yuri Gagarin Gherman Titov Alexey Leonov
action approx
action union
action find_reverse_tuple_counts
relation crew member
type common name
type spacecraft
action find_reverse_tuple_counts
relation crew member
type common name
type aircraft power class
value 1
[[{'concept': 'spacecraft'}, {'concept': 'aircraft power class'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { FILTER ( ?c = 1 ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?c ) WHERE { { ?x property:crew_member ?k . ?k rdf:type ontology:common_name . ?x rdf:type ontology:spacecraft } UNION { ?x property:crew_member ?k . ?x rdf:type ontology:aircraft_power_class . ?k rdf:type ontology:common_name } } GROUP BY ?k } }
[]