Simple Question (Direct)
Simple Question
Q7327
P166
Q618779
USER
Which awards were Yuri Gagarin awarded with ?
(Q7327,P166,c(Q618779))
action filter_type
action find
entity Q7327
relation P166
type Q618779
['Q7327', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q7327 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Yuri Gagarin
action filter_type
action find
entity Yuri Gagarin
relation award received
type award
['Yuri Gagarin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Yuri_Gagarin property:award_received ?j . ?j rdf:type ontology:award }
[]
award
Q694401 Q2660844 Q185493
SYSTEM
Order of Karl Marx, Order of Klement Gottwald, Order of Lenin
Q694401 Q2660844 Q185493 Q633799 Q2646561 Q178473 Q1601710 Q458911 Q4315048 Q26205110
(Q7327,P166,c(Q618779))
action filter_type
action find
entity Q7327
relation P166
type Q618779
Yuri Gagarin were awarded the [ANSWERS]
['Q7327', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q7327 property:P166 ?j . ?j rdf:type ontology:Q618779 }
Order of Karl Marx Order of Klement Gottwald Order of Lenin Hero of Socialist Labor of Czechoslovakia Order of the Star of Africa Hero of the Soviet Union Hero of Socialist Labor Order of the Flag of the Republic of Hungary Order of Playa Girón Medal "For Impeccable Service", 3rd class
Yuri Gagarin were awarded the Order of Karl Marx, Order of Klement Gottwald and Order of Lenin
Order of Karl Marx Order of Klement Gottwald Order of Lenin
action filter_type
action find
entity Yuri Gagarin
relation award received
type award
['Yuri Gagarin', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Yuri_Gagarin property:award_received ?j . ?j rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7327
P161
Q838948
USER
Which works of art have Yuri Gagarin in their star cast ?
(c(Q838948),P161,Q7327)
action filter_type
action find_reverse
entity Q7327
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q7327']
SELECT DISTINCT ?j WHERE { ?j property:P161 resource:Q7327 . ?j rdf:type ontology:Q838948 }
Yuri Gagarin
action filter_type
action find_reverse
entity Yuri Gagarin
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Yuri Gagarin']
SELECT DISTINCT ?j WHERE { ?j property:cast_member resource:Yuri_Gagarin . ?j rdf:type ontology:work_of_art }
[]
work of art
Q1197185 Q2587051
SYSTEM
The Right Stuff, First Orbit
Q1197185 Q2587051
(c(Q838948),P161,Q7327)
action filter_type
action find_reverse
entity Q7327
relation P161
type Q838948
[ANSWERS] have Yuri Gagarin in their star cast
[{'concept': 'Q838948'}, 'P161', 'Q7327']
SELECT DISTINCT ?j WHERE { ?j property:P161 resource:Q7327 . ?j rdf:type ontology:Q838948 }
The Right Stuff First Orbit
The Right Stuff and First Orbit have Yuri Gagarin in their star cast
The Right Stuff First Orbit
action filter_type
action find_reverse
entity Yuri Gagarin
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Yuri Gagarin']
SELECT DISTINCT ?j WHERE { ?j property:cast_member resource:Yuri_Gagarin . ?j rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q1197185 Q2587051
P161
Q502895
USER
Which people were casted in those works of art ?
(Q1197185,P161,c(Q502895)) (Q2587051,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
['Q1197185', 'P161', {'concept': 'Q502895'}] ['Q2587051', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?b ) { ( resource:Q1197185 ) ( resource:Q2587051 ) } . ?n rdf:type ontology:Q502895 . ?b property:P161 ?n }
The Right Stuff First Orbit
action filter_type
action find
entity prev_answer
relation cast member
type common name
['The Right Stuff', 'cast member', {'concept': 'common name'}] ['First Orbit', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?b ) { ( resource:The_Right_Stuff ) ( resource:First_Orbit ) } . ?n rdf:type ontology:common_name . ?b property:cast_member ?n }
[]
common name
Q35314 Q9696 Q104791
SYSTEM
Nikita Khrushchev, John F. Kennedy, Ed Harris
Q106706 Q924039 Q200768 Q180588 Q1344213 Q312077 Q294583 Q7327 Q6152148 Q48093 Q186185 Q35314 Q350714 Q229042 Q9696 Q1701301 Q259474 Q83807 Q104791 Q271763 Q718135 Q152738 Q356986 Q345325 Q9640 Q283872 Q862038 Q1290421 Q2017853 Q236250 Q114179 Q118763 Q1974435 Q1240192 Q170842 Q7327
(Q1197185,P161,c(Q502895)) (Q2587051,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
[ANSWERS] were casted in those works of art
['Q1197185', 'P161', {'concept': 'Q502895'}] ['Q2587051', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?b ) { ( resource:Q1197185 ) ( resource:Q2587051 ) } . ?n rdf:type ontology:Q502895 . ?b property:P161 ?n }
Jeff Goldblum William Russ Dennis Quaid Georgy Malenkov Royal Dano Lance Henriksen Sam Shepard Yuri Gagarin Jane Dornacker Nikolai Bulganin Kliment Voroshilov Nikita Khrushchev Fred Ward Barbara Hershey John F. Kennedy John P. Ryan Kim Stanley Ed Sullivan Ed Harris Pamela Reed Scott Wilson Anastas Mikoyan Levon Helm Harry Shearer Lyndon B. Johnson Veronica Cartwright Bill Dana Mary Jo Deschanel John Dehner Kathy Baker Scott Glenn David Clennon Scott Paulin Donald Moffat Sergei Koroliov Yuri Gagarin
Nikita Khrushchev, John F. Kennedy and Ed Harris were casted in those works of art
Nikita Khrushchev John F. Kennedy Ed Harris
action filter_type
action find
entity prev_answer
relation cast member
type common name
['The Right Stuff', 'cast member', {'concept': 'common name'}] ['First Orbit', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?b ) { ( resource:The_Right_Stuff ) ( resource:First_Orbit ) } . ?n rdf:type ontology:common_name . ?b property:cast_member ?n }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q35314 Q9696 Q104791
P26
Q502895
USER
Which people are the spouses of Nikita Khrushchev, John F. Kennedy and Ed Harris ?
(Q35314,P26,c(Q502895)) (Q9696,P26,c(Q502895)) (Q104791,P26,c(Q502895))
action union
action filter_type
action find
entity Q35314
relation P26
type Q502895
action filter_type
action find
entity Q9696
relation P26
type Q502895
action filter_type
action find
entity Q104791
relation P26
type Q502895
['Q35314', 'P26', {'concept': 'Q502895'}] ['Q9696', 'P26', {'concept': 'Q502895'}] ['Q104791', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { resource:Q35314 property:P26 ?y . ?y rdf:type ontology:Q502895 } UNION { ?y rdf:type ontology:Q502895 . resource:Q9696 property:P26 ?y } }
Nikita Khrushchev John F. Kennedy Ed Harris
action union
action filter_type
action find
entity Nikita Khrushchev
relation spouse
type common name
action filter_type
action find
entity John F. Kennedy
relation spouse
type common name
action filter_type
action find
entity Ed Harris
relation spouse
type common name
['Nikita Khrushchev', 'spouse', {'concept': 'common name'}] ['John F. Kennedy', 'spouse', {'concept': 'common name'}] ['Ed Harris', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { resource:Nikita_Khrushchev property:spouse ?y . ?y rdf:type ontology:common_name } UNION { ?y rdf:type ontology:common_name . resource:John_F._Kennedy property:spouse ?y } }
[]
common name
Q4501927 Q165421 Q235219
SYSTEM
Nina Khrushchev, Jacqueline Kennedy Onassis, Amy Madigan
Q4501927 Q165421 Q235219
(Q35314,P26,c(Q502895)) (Q9696,P26,c(Q502895)) (Q104791,P26,c(Q502895))
action union
action filter_type
action find
entity Q35314
relation P26
type Q502895
action filter_type
action find
entity Q9696
relation P26
type Q502895
action filter_type
action find
entity Q104791
relation P26
type Q502895
[ANSWERS] are the spouses of Nikita Khrushchev, John F. Kennedy and Ed Harris
['Q35314', 'P26', {'concept': 'Q502895'}] ['Q9696', 'P26', {'concept': 'Q502895'}] ['Q104791', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { { resource:Q35314 property:P26 ?y . ?y rdf:type ontology:Q502895 } UNION { ?y rdf:type ontology:Q502895 . resource:Q9696 property:P26 ?y } }
Nina Khrushchev Jacqueline Kennedy Onassis Amy Madigan
Nina Khrushchev, Jacqueline Kennedy Onassis and Amy Madigan are the spouses of Nikita Khrushchev, John F. Kennedy and Ed Harris
Nina Khrushchev Jacqueline Kennedy Onassis Amy Madigan
action union
action filter_type
action find
entity Nikita Khrushchev
relation spouse
type common name
action filter_type
action find
entity John F. Kennedy
relation spouse
type common name
action filter_type
action find
entity Ed Harris
relation spouse
type common name
['Nikita Khrushchev', 'spouse', {'concept': 'common name'}] ['John F. Kennedy', 'spouse', {'concept': 'common name'}] ['Ed Harris', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { { resource:Nikita_Khrushchev property:spouse ?y . ?y rdf:type ontology:common_name } UNION { ?y rdf:type ontology:common_name . resource:John_F._Kennedy property:spouse ?y } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q4501927 Q165421 Q235219
P26
Q502895
USER
Which people are married to Nina Khrushchev, Jacqueline Kennedy Onassis and Amy Madigan ?
(Q4501927,P26,c(Q502895)) (Q165421,P26,c(Q502895)) (Q235219,P26,c(Q502895))
action union
action filter_type
action find
entity Q4501927
relation P26
type Q502895
action filter_type
action find
entity Q165421
relation P26
type Q502895
action filter_type
action find
entity Q235219
relation P26
type Q502895
['Q4501927', 'P26', {'concept': 'Q502895'}] ['Q165421', 'P26', {'concept': 'Q502895'}] ['Q235219', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Q4501927 ) ( resource:Q165421 ) } . ?a property:P26 ?n }
Nina Khrushchev Jacqueline Kennedy Onassis Amy Madigan
action union
action filter_type
action find
entity Nina Khrushchev
relation spouse
type common name
action filter_type
action find
entity Jacqueline Kennedy Onassis
relation spouse
type common name
action filter_type
action find
entity Amy Madigan
relation spouse
type common name
['Nina Khrushchev', 'spouse', {'concept': 'common name'}] ['Jacqueline Kennedy Onassis', 'spouse', {'concept': 'common name'}] ['Amy Madigan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Nina_Khrushchev ) ( resource:Jacqueline_Kennedy_Onassis ) } . ?a property:spouse ?n }
[]
common name
Q35314 Q9696 Q104791
SYSTEM
Nikita Khrushchev, John F. Kennedy, Ed Harris
Q35314 Q9696 Q180455 Q104791
(Q4501927,P26,c(Q502895)) (Q165421,P26,c(Q502895)) (Q235219,P26,c(Q502895))
action union
action filter_type
action find
entity Q4501927
relation P26
type Q502895
action filter_type
action find
entity Q165421
relation P26
type Q502895
action filter_type
action find
entity Q235219
relation P26
type Q502895
[ANSWERS] are married to Nina Khrushchev, Jacqueline Kennedy Onassis and Amy Madigan
['Q4501927', 'P26', {'concept': 'Q502895'}] ['Q165421', 'P26', {'concept': 'Q502895'}] ['Q235219', 'P26', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Q4501927 ) ( resource:Q165421 ) } . ?a property:P26 ?n }
Nikita Khrushchev John F. Kennedy Aristotle Onassis Ed Harris
Nikita Khrushchev, John F. Kennedy and Ed Harris are married to Nina Khrushchev, Jacqueline Kennedy Onassis and Amy Madigan
Nikita Khrushchev John F. Kennedy Ed Harris
action union
action filter_type
action find
entity Nina Khrushchev
relation spouse
type common name
action filter_type
action find
entity Jacqueline Kennedy Onassis
relation spouse
type common name
action filter_type
action find
entity Amy Madigan
relation spouse
type common name
['Nina Khrushchev', 'spouse', {'concept': 'common name'}] ['Jacqueline Kennedy Onassis', 'spouse', {'concept': 'common name'}] ['Amy Madigan', 'spouse', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { VALUES ( ?a ) { ( resource:Nina_Khrushchev ) ( resource:Jacqueline_Kennedy_Onassis ) } . ?a property:spouse ?n }
[]
Clarification
Simple Question|Single Entity|Indirect
Q35314
P1196
Q1931388
USER
What manner did that person die ?
(Q35314,P1196,c(Q1931388))
action filter_type
action find
entity Q35314
relation P1196
type Q1931388
['Q35314', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1931388 . resource:Q35314 property:P1196 ?f }
Nikita Khrushchev
action filter_type
action find
entity Nikita Khrushchev
relation manner of death
type cause of death
['Nikita Khrushchev', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:cause_of_death . resource:Nikita_Khrushchev property:manner_of_death ?f }
[]
cause of death
Clarification for simple ques.
Q9696
SYSTEM
Did you mean John F. Kennedy ?
Q35314 Q9696 Q104791
(Q35314,P1196,c(Q1931388)) (Q9696,P1196,c(Q1931388)) (Q104791,P1196,c(Q1931388))
[ANSWER]
['Q35314', 'P1196', {'concept': 'Q1931388'}] ['Q9696', 'P1196', {'concept': 'Q1931388'}] ['Q104791', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1931388 . resource:Q35314 property:P1196 ?f }
Nikita Khrushchev John F. Kennedy Ed Harris
Did you mean John F. Kennedy ?
John F. Kennedy
['Nikita Khrushchev', 'manner of death', {'concept': 'cause of death'}] ['John F. Kennedy', 'manner of death', {'concept': 'cause of death'}] ['Ed Harris', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:cause_of_death . resource:Nikita_Khrushchev property:manner_of_death ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant Nikita Khrushchev. Could you tell me the answer for that?
(Q35314,P1196,c(Q1931388))
Q35314
['Q35314', 'P1196', {'concept': 'Q1931388'}]
['Nikita Khrushchev', 'manner of death', {'concept': 'cause of death'}]
[]
Q3739104
SYSTEM
natural causes
Q3739104
(Q35314,P1196,c(Q1931388))
action filter_type
action find
entity Q35314
relation P1196
type Q1931388
That person died in [ANSWER]
['Q35314', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q1931388 . resource:Q35314 property:P1196 ?f }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity Nikita Khrushchev
relation manner of death
type cause of death
['Nikita Khrushchev', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:cause_of_death . resource:Nikita_Khrushchev property:manner_of_death ?f }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P941
Q502895 Q2342494 Q95074
USER
Which people inspired max number of collectables and fictional characters ?
(c(Q2342494)|c(Q95074),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q502895
type Q95074
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P941 ?a . ?a rdf:type ontology:Q502895 . ?f rdf:type ontology:Q2342494 } UNION { ?f property:P941 ?a . ?a rdf:type ontology:Q502895 . ?f rdf:type ontology:Q95074 } } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?d } . FILTER ( ?x = ?s ) }
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type collectable
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:inspired_by ?a . ?a rdf:type ontology:common_name . ?f rdf:type ontology:collectable } UNION { ?f property:inspired_by ?a . ?a rdf:type ontology:common_name . ?f rdf:type ontology:fictional_character } } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?d } . FILTER ( ?x = ?s ) }
[]
common name collectable fictional character
Q2402882
SYSTEM
Helene Stanley
Q2402882
(c(Q2342494)|c(Q95074),P941,c(Q502895))
action argmax
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2342494
action find_reverse_tuple_counts
relation P941
type Q502895
type Q95074
The [ANSWER] inspired max number of collectables and fictional characters
[[{'concept': 'Q2342494'}, {'concept': 'Q95074'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:P941 ?a . ?a rdf:type ontology:Q502895 . ?f rdf:type ontology:Q2342494 } UNION { ?f property:P941 ?a . ?a rdf:type ontology:Q502895 . ?f rdf:type ontology:Q95074 } } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:Q2342494 ) ( ontology:Q95074 ) } } GROUP BY ?d } . FILTER ( ?x = ?s ) }
Helene Stanley
The Helene Stanley inspired max number of collectables and fictional characters
Helene Stanley
action argmax
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type collectable
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional character
[[{'concept': 'collectable'}, {'concept': 'fictional character'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?s ) { SELECT DISTINCT ?a ( COUNT ( ?f ) AS ?k ) WHERE { { ?f property:inspired_by ?a . ?a rdf:type ontology:common_name . ?f rdf:type ontology:collectable } UNION { ?f property:inspired_by ?a . ?a rdf:type ontology:common_name . ?f rdf:type ontology:fictional_character } } GROUP BY ?a } } . { SELECT DISTINCT ?d ( COUNT ( ?o ) AS ?x ) WHERE { ?o rdf:type ?c . VALUES ( ?c ) { ( ontology:collectable ) ( ontology:fictional_character ) } } GROUP BY ?d } . FILTER ( ?x = ?s ) }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do approximately 2236 people know to play ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2236
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?f = 2236 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2236
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?f = 2236 ) }
[]
musical instrument common name
Q46185 Q8338 Q8371
SYSTEM
bass guitar, trumpet, cello
Q46185 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 2236
Approximately 2236 people know about [ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:P1303 ?o . ?o rdf:type ontology:Q34379 . ?c rdf:type ontology:Q502895 } GROUP BY ?o } . FILTER ( ?f = 2236 ) }
bass guitar trumpet cello organ drum kit
Approximately 2236 people know about bass guitar, trumpet and cello
bass guitar trumpet cello
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 2236
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?o WHERE { { SELECT DISTINCT ?o ( COUNT ( ?c ) AS ?f ) WHERE { ?c property:instrument ?o . ?o rdf:type ontology:musical_instrument . ?c rdf:type ontology:common_name } GROUP BY ?o } . FILTER ( ?f = 2236 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581072 Q165421
P21 P40
Q502895
USER
Which people have Jacqueline Kennedy Onassis as a child and have female as the sex ?
AND((c(Q502895),P40,Q165421), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q165421
relation P40
action find_reverse
entity Q6581072
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q165421'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q165421 . ?k property:P21 resource:Q6581072 . ?k rdf:type ontology:Q502895 }
female Jacqueline Kennedy Onassis
action filter_type
action intersection
action find_reverse
entity Jacqueline Kennedy Onassis
relation child
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Jacqueline Kennedy Onassis'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?k WHERE { ?k property:child resource:Jacqueline_Kennedy_Onassis . ?k property:gender resource:female . ?k rdf:type ontology:common_name }
[]
common name
Q3097958
SYSTEM
Janet Lee Bouvier
Q3097958
AND((c(Q502895),P40,Q165421), (c(Q502895),P21,Q6581072))
action filter_type
action intersection
action find_reverse
entity Q165421
relation P40
action find_reverse
entity Q6581072
relation P21
type Q502895
[ANSWER] have Jacqueline Kennedy Onassis as a child and have female as the sex
{'AND': [[{'concept': 'Q502895'}, 'P40', 'Q165421'], [{'concept': 'Q502895'}, 'P21', 'Q6581072']]}
SELECT DISTINCT ?k WHERE { ?k property:P40 resource:Q165421 . ?k property:P21 resource:Q6581072 . ?k rdf:type ontology:Q502895 }
Janet Lee Bouvier
Janet Lee Bouvier have Jacqueline Kennedy Onassis as a child and have female as the sex
Janet Lee Bouvier
action filter_type
action intersection
action find_reverse
entity Jacqueline Kennedy Onassis
relation child
action find_reverse
entity female
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'child', 'Jacqueline Kennedy Onassis'], [{'concept': 'common name'}, 'gender', 'female']]}
SELECT DISTINCT ?k WHERE { ?k property:child resource:Jacqueline_Kennedy_Onassis . ?k property:gender resource:female . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3097958
P25
Q502895
USER
Who are the offspring of that one ?
(c(Q502895),P25,Q3097958)
action filter_type
action find_reverse
entity Q3097958
relation P25
type Q502895
[{'concept': 'Q502895'}, 'P25', 'Q3097958']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P25 resource:Q3097958 }
Janet Lee Bouvier
action filter_type
action find_reverse
entity Janet Lee Bouvier
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Janet Lee Bouvier']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:mother resource:Janet_Lee_Bouvier }
[]
common name
Q10305226 Q1081523 Q165421
SYSTEM
Janet Auchincloss Rutherfurd, Lee Radziwill, Jacqueline Kennedy Onassis
Q10305226 Q1081523 Q165421
(c(Q502895),P25,Q3097958)
action filter_type
action find_reverse
entity Q3097958
relation P25
type Q502895
The offspring of that one are the [ANSWERS]
[{'concept': 'Q502895'}, 'P25', 'Q3097958']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P25 resource:Q3097958 }
Janet Auchincloss Rutherfurd Lee Radziwill Jacqueline Kennedy Onassis
The offspring of that one are the Janet Auchincloss Rutherfurd, Lee Radziwill and Jacqueline Kennedy Onassis
Janet Auchincloss Rutherfurd Lee Radziwill Jacqueline Kennedy Onassis
action filter_type
action find_reverse
entity Janet Lee Bouvier
relation mother
type common name
[{'concept': 'common name'}, 'mother', 'Janet Lee Bouvier']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:mother resource:Janet_Lee_Bouvier }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
How many musical instruments are played by around 1978 people ?
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1978
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?f ) WHERE { ?u rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 . ?x property:P1303 ?u } GROUP BY ?u } . FILTER ( ?f = 1978 ) }
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1978
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?f ) WHERE { ?u rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name . ?x property:instrument ?u } GROUP BY ?u } . FILTER ( ?f = 1978 ) }
[]
musical instrument common name
SYSTEM
6
Q46185 Q80019 Q8338 Q8371 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action count
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 1978
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?f ) WHERE { ?u rdf:type ontology:Q34379 . ?x rdf:type ontology:Q502895 . ?x property:P1303 ?u } GROUP BY ?u } . FILTER ( ?f = 1978 ) }
bass guitar double bass trumpet cello organ drum kit
6
action count
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 1978
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?m ) WHERE { { SELECT DISTINCT ?u ( COUNT ( ?x ) AS ?f ) WHERE { ?u rdf:type ontology:musical_instrument . ?x rdf:type ontology:common_name . ?x property:instrument ?u } GROUP BY ?u } . FILTER ( ?f = 1978 ) }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3842259 Q2587051
P161 P86
Q502895
USER
Which people composed First Orbit or starred in Du Barry, Woman of Passion ?
OR((Q2587051,P86,c(Q502895)), (Q3842259,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2587051
relation P86
action find
entity Q3842259
relation P161
type Q502895
{'OR': [['Q2587051', 'P86', {'concept': 'Q502895'}], ['Q3842259', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q2587051 property:P86 ?i } UNION { resource:Q3842259 property:P161 ?i } } }
Du Barry, Woman of Passion First Orbit
action filter_type
action union
action find
entity First Orbit
relation composer
action find
entity Du Barry, Woman of Passion
relation cast member
type common name
{'OR': [['First Orbit', 'composer', {'concept': 'common name'}], ['Du Barry, Woman of Passion', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:First_Orbit property:composer ?i } UNION { resource:Du_Barry,_Woman_of_Passion property:cast_member ?i } } }
[]
common name
Q1126956 Q1158727 Q71243 Q7184373 Q7879205 Q3356950 Q261133 Q2251599 Q451745 Q1621558
SYSTEM
Conrad Nagel, Henry Kolker, Clark Gable, Philip Sheppard, Ullrich Haupt, Sr., Oscar Apfel, Norma Talmadge, William Farnum, Lucille La Verne, Hobart Bosworth
Q1126956 Q1158727 Q71243 Q7184373 Q7879205 Q3356950 Q261133 Q2251599 Q451745 Q1621558
OR((Q2587051,P86,c(Q502895)), (Q3842259,P161,c(Q502895)))
action filter_type
action union
action find
entity Q2587051
relation P86
action find
entity Q3842259
relation P161
type Q502895
[ANSWERS] composed First Orbit or starred in Du Barry, Woman of Passion
{'OR': [['Q2587051', 'P86', {'concept': 'Q502895'}], ['Q3842259', 'P161', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . { { resource:Q2587051 property:P86 ?i } UNION { resource:Q3842259 property:P161 ?i } } }
Conrad Nagel Henry Kolker Clark Gable Philip Sheppard Ullrich Haupt, Sr. Oscar Apfel Norma Talmadge William Farnum Lucille La Verne Hobart Bosworth
Conrad Nagel, Henry Kolker, Clark Gable, Philip Sheppard, Ullrich Haupt, Sr., Oscar Apfel, Norma Talmadge, William Farnum, Lucille La Verne and Hobart Bosworth composed First Orbit or starred in Du Barry, Woman of Passion
Conrad Nagel Henry Kolker Clark Gable Philip Sheppard Ullrich Haupt, Sr. Oscar Apfel Norma Talmadge William Farnum Lucille La Verne Hobart Bosworth
action filter_type
action union
action find
entity First Orbit
relation composer
action find
entity Du Barry, Woman of Passion
relation cast member
type common name
{'OR': [['First Orbit', 'composer', {'concept': 'common name'}], ['Du Barry, Woman of Passion', 'cast member', {'concept': 'common name'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . { { resource:First_Orbit property:composer ?i } UNION { resource:Du_Barry,_Woman_of_Passion property:cast_member ?i } } }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q3097958
P27 P26
Q502895
USER
Which people are married to Janet Lee Bouvier and are civilians of United States of America ?
AND((c(Q502895),P26,Q3097958), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q3097958
relation P26
action find_reverse
entity Q30
relation P27
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q3097958'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q30 . ?a property:P26 resource:Q3097958 . ?a rdf:type ontology:Q502895 }
United States of America Janet Lee Bouvier
action filter_type
action intersection
action find_reverse
entity Janet Lee Bouvier
relation spouse
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Janet Lee Bouvier'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:United_States_of_America . ?a property:spouse resource:Janet_Lee_Bouvier . ?a rdf:type ontology:common_name }
[]
common name
Q1776544 Q3142236
SYSTEM
John Vernou Bouvier III, Hugh D. Auchincloss
Q1776544 Q3142236
AND((c(Q502895),P26,Q3097958), (c(Q502895),P27,Q30))
action filter_type
action intersection
action find_reverse
entity Q3097958
relation P26
action find_reverse
entity Q30
relation P27
type Q502895
[ANSWERS] are married to Janet Lee Bouvier and are civilians of United States of America
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q3097958'], [{'concept': 'Q502895'}, 'P27', 'Q30']]}
SELECT DISTINCT ?a WHERE { ?a property:P27 resource:Q30 . ?a property:P26 resource:Q3097958 . ?a rdf:type ontology:Q502895 }
John Vernou Bouvier III Hugh D. Auchincloss
John Vernou Bouvier III and Hugh D. Auchincloss are married to Janet Lee Bouvier and are civilians of United States of America
John Vernou Bouvier III Hugh D. Auchincloss
action filter_type
action intersection
action find_reverse
entity Janet Lee Bouvier
relation spouse
action find_reverse
entity United States of America
relation country of citizenship
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Janet Lee Bouvier'], [{'concept': 'common name'}, 'country of citizenship', 'United States of America']]}
SELECT DISTINCT ?a WHERE { ?a property:country_of_citizenship resource:United_States_of_America . ?a property:spouse resource:Janet_Lee_Bouvier . ?a rdf:type ontology:common_name }
[]