Simple Question (Direct)
Simple Question
Q1566827
P937
Q56061
USER
What is the work location of Thomas Krüger ?
(Q1566827,P937,c(Q56061))
action filter_type
action find
entity Q1566827
relation P937
type Q56061
['Q1566827', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q1566827 property:P937 ?r }
Thomas Krüger
action filter_type
action find
entity Thomas Krüger
relation work location
type administrative territorial entity
['Thomas Krüger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Thomas_Krüger property:work_location ?r }
[]
administrative territorial entity
Q586
SYSTEM
Bonn
Q586
(Q1566827,P937,c(Q56061))
action filter_type
action find
entity Q1566827
relation P937
type Q56061
The work location of Thomas Krüger is in [ANSWER]
['Q1566827', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q56061 . resource:Q1566827 property:P937 ?r }
Bonn
The work location of Thomas Krüger is in Bonn
Bonn
action filter_type
action find
entity Thomas Krüger
relation work location
type administrative territorial entity
['Thomas Krüger', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:administrative_territorial_entity . resource:Thomas_Krüger property:work_location ?r }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1566827
P50
Q2342494
USER
Which collectable was written by that person ?
(c(Q2342494),P50,Q586)
action filter_type
action find_reverse
entity Q1566827
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q586']
SELECT DISTINCT ?y WHERE { ?y property:P50 resource:Q1566827 . ?y rdf:type ontology:Q2342494 }
Thomas Krüger
action filter_type
action find_reverse
entity Thomas Krüger
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Bonn']
SELECT DISTINCT ?y WHERE { ?y property:author resource:Thomas_Krüger . ?y rdf:type ontology:collectable }
[]
collectable
Q21685980
SYSTEM
History Sells!
Q21685980
(c(Q2342494),P50,Q586)
action filter_type
action find_reverse
entity Q1566827
relation P50
type Q2342494
[ANSWER] was written by that person
[{'concept': 'Q2342494'}, 'P50', 'Q586']
SELECT DISTINCT ?y WHERE { ?y property:P50 resource:Q1566827 . ?y rdf:type ontology:Q2342494 }
History Sells!
History Sells! was written by that person
History Sells!
action filter_type
action find_reverse
entity Thomas Krüger
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Bonn']
SELECT DISTINCT ?y WHERE { ?y property:author resource:Thomas_Krüger . ?y rdf:type ontology:collectable }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1029
Q502895 Q40218 Q1656682
USER
Which people are the team member of around 1 spacecrafts and events ?
(c(Q40218)|c(Q1656682),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 Q1656682
value 1
[[{'concept': 'Q40218'}, {'concept': 'Q1656682'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?f WHERE { VALUES ( ?e ) { ( ontology:Q1656682 ) ( ontology:Q40218 ) } . ?h rdf:type ?e } GROUP BY ?f } . FILTER ( ?l = 1 ) }
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 event
value 1
[[{'concept': 'spacecraft'}, {'concept': 'event'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?f WHERE { VALUES ( ?e ) { ( ontology:event ) ( ontology:spacecraft ) } . ?h rdf:type ?e } GROUP BY ?f } . FILTER ( ?l = 1 ) }
[]
common name spacecraft event
Q7327 Q152298 Q154269
SYSTEM
Yuri Gagarin, Gherman Titov, Alexey Leonov
Q470059 Q8070347 Q927249 Q310924 Q7327 Q363976 Q147581 Q107667 Q182642 Q349365 Q111240 Q159681 Q557082 Q17519 Q18762 Q4715991 Q110450 Q390344 Q446917 Q44371 Q158486 Q312833 Q19242 Q352137 Q536632 Q213076 Q344892 Q152298 Q104865 Q229674 Q312474 Q320068 Q644837 Q235266 Q197135 Q335503 Q49284 Q316417 Q364476 Q315730 Q25981 Q278656 Q363506 Q154269 Q507046 Q460440 Q110879 Q466075 Q157931 Q317643 Q705626 Q382013 Q118490 Q320047
(c(Q40218)|c(Q1656682),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 Q1656682
value 1
[ANSWERS] are the team member of around 1 spacecrafts and events
[[{'concept': 'Q40218'}, {'concept': 'Q1656682'}], 'P1029', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?f WHERE { VALUES ( ?e ) { ( ontology:Q1656682 ) ( ontology:Q40218 ) } . ?h rdf:type ?e } GROUP BY ?f } . FILTER ( ?l = 1 ) }
Liu Wang Zhang Xiaoguang Oleg Skripochka Alan Bean Yuri Gagarin Jack R. Lousma Yang Liwei John Young John Glenn Ellison Onizuka Jim Lovell Valery Bykovsky Liu Boming Anousheh Ansari Frank Borman Aleksey Ovchinin Wally Schirra Edward Gibson Joseph P. Kerwin Valentina Tereshkova Eugene Cernan Gordon Cooper Bill Anders Boris Yegorov Paul J. Weitz Pete Conrad Fei Junlong Gherman Titov Vladimir Komarov Christa McAuliffe Andriyan Nikolayev Konstantin Feoktistov Gerald P. Carr Liu Yang Zhai Zhigang Scott Carpenter Judith Resnik Thomas P. Stafford James McDivitt Ronald McNair Michael J. Smith David Scott Rusty Schweickart Alexey Leonov Owen K. Garriott William R. Pogue Gus Grissom Pavel Vinogradov Pavel Belyayev Marcos Pontes Wang Yaping Gregory Jarvis Pavel Popovich Dick Scobee
Yuri Gagarin, Gherman Titov and Alexey Leonov are the team member of around 1 spacecrafts and events
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 event
value 1
[[{'concept': 'spacecraft'}, {'concept': 'event'}], 'crew member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?l ) ?f WHERE { VALUES ( ?e ) { ( ontology:event ) ( ontology:spacecraft ) } . ?h rdf:type ?e } GROUP BY ?f } . FILTER ( ?l = 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q154269
P793
Q9332
USER
What event is that person associated with ?
(Q154269,P793,c(Q9332))
action filter_type
action find
entity Q154269
relation P793
type Q9332
['Q154269', 'P793', {'concept': 'Q9332'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q9332 . resource:Q154269 property:P793 ?g }
Alexey Leonov
action filter_type
action find
entity Alexey Leonov
relation significant event
type behavior
['Alexey Leonov', 'significant event', {'concept': 'behavior'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:behavior . resource:Alexey_Leonov property:significant_event ?g }
[]
behavior
Clarification for simple ques.
Q7327
SYSTEM
Did you mean Yuri Gagarin ?
Q7327 Q152298 Q154269
(Q7327,P793,c(Q9332)) (Q152298,P793,c(Q9332)) (Q154269,P793,c(Q9332))
[ANSWER]
['Q7327', 'P793', {'concept': 'Q9332'}] ['Q152298', 'P793', {'concept': 'Q9332'}] ['Q154269', 'P793', {'concept': 'Q9332'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q9332 . resource:Q154269 property:P793 ?g }
Yuri Gagarin Gherman Titov Alexey Leonov
Did you mean Yuri Gagarin ?
Yuri Gagarin
['Yuri Gagarin', 'significant event', {'concept': 'behavior'}] ['Gherman Titov', 'significant event', {'concept': 'behavior'}] ['Alexey Leonov', 'significant event', {'concept': 'behavior'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:behavior . resource:Alexey_Leonov property:significant_event ?g }
[]
Simple Question (Coreferenced)
USER
No, I meant Alexey Leonov. Could you tell me the answer for that?
(Q154269,P793,c(Q9332))
Q154269
['Q154269', 'P793', {'concept': 'Q9332'}]
['Alexey Leonov', 'significant event', {'concept': 'behavior'}]
[]
Q182020
SYSTEM
extra-vehicular activity
Q182020
(Q154269,P793,c(Q9332))
action filter_type
action find
entity Q154269
relation P793
type Q9332
That person is associated with [ANSWER]
['Q154269', 'P793', {'concept': 'Q9332'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q9332 . resource:Q154269 property:P793 ?g }
extra-vehicular activity
That person is associated with extra-vehicular activity
extra-vehicular activity
action filter_type
action find
entity Alexey Leonov
relation significant event
type behavior
['Alexey Leonov', 'significant event', {'concept': 'behavior'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:behavior . resource:Alexey_Leonov property:significant_event ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q182020
P276
Q16686022
USER
Which natural physical object is the place where that behavior is located ?
(Q182020,P276,c(Q16686022))
action filter_type
action find
entity Q182020
relation P276
type Q16686022
['Q182020', 'P276', {'concept': 'Q16686022'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16686022 . resource:Q182020 property:P276 ?h }
extra-vehicular activity
action filter_type
action find
entity extra-vehicular activity
relation location
type natural physical object
['extra-vehicular activity', 'location', {'concept': 'natural physical object'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:natural_physical_object . resource:extra-vehicular_activity property:location ?h }
[]
natural physical object
Q4169
SYSTEM
outer space
Q4169
(Q182020,P276,c(Q16686022))
action filter_type
action find
entity Q182020
relation P276
type Q16686022
[ANSWER] is the place where that behavior is located
['Q182020', 'P276', {'concept': 'Q16686022'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q16686022 . resource:Q182020 property:P276 ?h }
outer space
Outer space is the place where that behavior is located
outer space
action filter_type
action find
entity extra-vehicular activity
relation location
type natural physical object
['extra-vehicular activity', 'location', {'concept': 'natural physical object'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:natural_physical_object . resource:extra-vehicular_activity property:location ?h }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q21685980
P800
Q502895
USER
Whose notable work was History Sells! ?
(c(Q502895),P800,Q21685980)
action filter_type
action find_reverse
entity Q21685980
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q21685980']
SELECT DISTINCT ?g WHERE { ?g property:P800 resource:Q21685980 . ?g rdf:type ontology:Q502895 }
History Sells!
action filter_type
action find_reverse
entity History Sells!
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'History Sells!']
SELECT DISTINCT ?g WHERE { ?g property:notable_work resource:History_Sells! . ?g rdf:type ontology:common_name }
[]
common name
Q15080578
SYSTEM
Marcus Cyron
Q15080578
(c(Q502895),P800,Q21685980)
action filter_type
action find_reverse
entity Q21685980
relation P800
type Q502895
[ANSWER] was History Sells!
[{'concept': 'Q502895'}, 'P800', 'Q21685980']
SELECT DISTINCT ?g WHERE { ?g property:P800 resource:Q21685980 . ?g rdf:type ontology:Q502895 }
Marcus Cyron
Marcus Cyron was History Sells!
Marcus Cyron
action filter_type
action find_reverse
entity History Sells!
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'History Sells!']
SELECT DISTINCT ?g WHERE { ?g property:notable_work resource:History_Sells! . ?g rdf:type ontology:common_name }
[]