Simple Question (Direct)
Simple Question
Q239626
P9
Q502895
USER
Who is the sister of Ahmose-Nefertari ?
(Q239626,P9,c(Q502895))
action filter_type
action find
entity Q239626
relation P9
type Q502895
['Q239626', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q239626 property:P9 ?t . ?t rdf:type ontology:Q502895 }
Ahmose-Nefertari
action filter_type
action find
entity Ahmose-Nefertari
relation sister
type common name
['Ahmose-Nefertari', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Ahmose-Nefertari property:sister ?t . ?t rdf:type ontology:common_name }
[]
common name
Q268019
SYSTEM
Ahmose-Henuttamehu
Q268019
(Q239626,P9,c(Q502895))
action filter_type
action find
entity Q239626
relation P9
type Q502895
The sister of Ahmose-Nefertari is called [ANSWER]
['Q239626', 'P9', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { resource:Q239626 property:P9 ?t . ?t rdf:type ontology:Q502895 }
Ahmose-Henuttamehu
The sister of Ahmose-Nefertari is called Ahmose-Henuttamehu
Ahmose-Henuttamehu
action filter_type
action find
entity Ahmose-Nefertari
relation sister
type common name
['Ahmose-Nefertari', 'sister', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { resource:Ahmose-Nefertari property:sister ?t . ?t rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q239626
P25
Q502895
USER
Who was the mom of Ahmose-Nefertari ?
(Q239626,P25,c(Q502895))
action filter_type
action find
entity Q239626
relation P25
type Q502895
['Q239626', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q239626 property:P25 ?c }
Ahmose-Nefertari
action filter_type
action find
entity Ahmose-Nefertari
relation mother
type common name
['Ahmose-Nefertari', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Ahmose-Nefertari property:mother ?c }
[]
common name
Q239678
SYSTEM
Ahhotep I
Q239678
(Q239626,P25,c(Q502895))
action filter_type
action find
entity Q239626
relation P25
type Q502895
The mom of Ahmose-Nefertari was named [ANSWER]
['Q239626', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q502895 . resource:Q239626 property:P25 ?c }
Ahhotep I
The mom of Ahmose-Nefertari was named Ahhotep I
Ahhotep I
action filter_type
action find
entity Ahmose-Nefertari
relation mother
type common name
['Ahmose-Nefertari', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:common_name . resource:Ahmose-Nefertari property:mother ?c }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q239678
P40
Q502895
USER
Who have that one as a child ?
(c(Q502895),P40,Q239678)
action filter_type
action find_reverse
entity Q239678
relation P40
type Q502895
[{'concept': 'Q502895'}, 'P40', 'Q239678']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P40 resource:Q239678 }
Ahhotep I
action filter_type
action find_reverse
entity Ahhotep I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ahhotep I']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:child resource:Ahhotep_I }
[]
common name
Q31730 Q940814
SYSTEM
Senakhtenre Ahmose, Tetisheri
Q31730 Q940814
(c(Q502895),P40,Q239678)
action filter_type
action find_reverse
entity Q239678
relation P40
type Q502895
[ANSWERS] have that one as a child
[{'concept': 'Q502895'}, 'P40', 'Q239678']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P40 resource:Q239678 }
Senakhtenre Ahmose Tetisheri
Senakhtenre Ahmose and Tetisheri have that one as a child
Senakhtenre Ahmose Tetisheri
action filter_type
action find_reverse
entity Ahhotep I
relation child
type common name
[{'concept': 'common name'}, 'child', 'Ahhotep I']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:child resource:Ahhotep_I }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q31730 Q940814
P26
Q502895
USER
Which people have those ones as spouse ?
(c(Q502895),P26,Q31730) (c(Q502895),P26,Q940814)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q31730'] [{'concept': 'Q502895'}, 'P26', 'Q940814']
SELECT DISTINCT ?w WHERE { ?x property:P26 ?w . ?w rdf:type ontology:Q502895 . VALUES ( ?x ) { ( resource:Q31730 ) ( resource:Q940814 ) } }
Senakhtenre Ahmose Tetisheri
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Senakhtenre Ahmose'] [{'concept': 'common name'}, 'spouse', 'Tetisheri']
SELECT DISTINCT ?w WHERE { ?x property:spouse ?w . ?w rdf:type ontology:common_name . VALUES ( ?x ) { ( resource:Senakhtenre_Ahmose ) ( resource:Tetisheri ) } }
[]
common name
Q940814 Q31730
SYSTEM
Tetisheri, Senakhtenre Ahmose
Q940814 Q31730
(c(Q502895),P26,Q31730) (c(Q502895),P26,Q940814)
action filter_type
action find
entity prev_answer
relation P26
type Q502895
[ANSWERS] have those ones as spouse
[{'concept': 'Q502895'}, 'P26', 'Q31730'] [{'concept': 'Q502895'}, 'P26', 'Q940814']
SELECT DISTINCT ?w WHERE { ?x property:P26 ?w . ?w rdf:type ontology:Q502895 . VALUES ( ?x ) { ( resource:Q31730 ) ( resource:Q940814 ) } }
Tetisheri Senakhtenre Ahmose
Tetisheri and Senakhtenre Ahmose have those ones as spouse
Tetisheri Senakhtenre Ahmose
action filter_type
action find
entity prev_answer
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Senakhtenre Ahmose'] [{'concept': 'common name'}, 'spouse', 'Tetisheri']
SELECT DISTINCT ?w WHERE { ?x property:spouse ?w . ?w rdf:type ontology:common_name . VALUES ( ?x ) { ( resource:Senakhtenre_Ahmose ) ( resource:Tetisheri ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q940814
P21
Q290
USER
Which sex does that person have ?
(Q940814,P21,c(Q290))
action filter_type
action find
entity Q940814
relation P21
type Q290
['Q940814', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q940814 property:P21 ?v . ?v rdf:type ontology:Q290 }
Tetisheri
action filter_type
action find
entity Tetisheri
relation gender
type sex
['Tetisheri', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Tetisheri property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Clarification for simple ques.
Q940814
SYSTEM
Did you mean Tetisheri ?
Q940814 Q31730
(Q940814,P21,c(Q290)) (Q31730,P21,c(Q290))
[ANSWER]
['Q940814', 'P21', {'concept': 'Q290'}] ['Q31730', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q940814 property:P21 ?v . ?v rdf:type ontology:Q290 }
Tetisheri Senakhtenre Ahmose
Did you mean Tetisheri ?
Tetisheri
['Tetisheri', 'gender', {'concept': 'sex'}] ['Senakhtenre Ahmose', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Tetisheri property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
USER
Yes
(Q940814,P21,c(Q290))
['Q940814', 'P21', {'concept': 'Q290'}]
['Tetisheri', 'gender', {'concept': 'sex'}]
[]
Q6581072
SYSTEM
female
Q6581072
(Q940814,P21,c(Q290))
action filter_type
action find
entity Q940814
relation P21
type Q290
That person has a [ANSWER]
['Q940814', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q940814 property:P21 ?v . ?v rdf:type ontology:Q290 }
female
That person has a female
female
action filter_type
action find
entity Tetisheri
relation gender
type sex
['Tetisheri', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Tetisheri property:gender ?v . ?v rdf:type ontology:sex }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q268019
P9 P21
Q502895
USER
Which people had Ahmose-Henuttamehu as sister and have the gender as male ?
AND((c(Q502895),P9,Q268019), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q268019
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q268019'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P9 resource:Q268019 . ?p property:P21 resource:Q6581097 }
male Ahmose-Henuttamehu
action filter_type
action intersection
action find_reverse
entity Ahmose-Henuttamehu
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Ahmose-Henuttamehu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:sister resource:Ahmose-Henuttamehu . ?p property:gender resource:male }
[]
common name
Q7222
SYSTEM
Ahmose I
Q7222
AND((c(Q502895),P9,Q268019), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q268019
relation P9
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] had Ahmose-Henuttamehu as sister and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P9', 'Q268019'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q502895 . ?p property:P9 resource:Q268019 . ?p property:P21 resource:Q6581097 }
Ahmose I
Ahmose I had Ahmose-Henuttamehu as sister and have the gender as male
Ahmose I
action filter_type
action intersection
action find_reverse
entity Ahmose-Henuttamehu
relation sister
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'sister', 'Ahmose-Henuttamehu'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:common_name . ?p property:sister resource:Ahmose-Henuttamehu . ?p property:gender resource:male }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q7222 Q16043450
P40
Q502895
USER
Is Andrew Boylan an offspring of Ahmose I ?
(Q7222,P40,Q16043450)
action is_in
entity Q16043450
action find
entity Q7222
relation P40
['Q7222', 'P40', 'Q16043450']
ASK WHERE { resource:Q7222 property:P40 resource:Q16043450 }
Ahmose I Andrew Boylan
action is_in
entity Andrew Boylan
action find
entity Ahmose I
relation child
['Ahmose I', 'child', 'Andrew Boylan']
ASK WHERE { resource:Ahmose_I property:child resource:Andrew_Boylan }
[]
common name
SYSTEM
NO
(Q7222,P40,Q16043450)
action is_in
entity Q16043450
action find
entity Q7222
relation P40
[ANSWER]
['Q7222', 'P40', 'Q16043450']
ASK WHERE { resource:Q7222 property:P40 resource:Q16043450 }
No
action is_in
entity Andrew Boylan
action find
entity Ahmose I
relation child
['Ahmose I', 'child', 'Andrew Boylan']
ASK WHERE { resource:Ahmose_I property:child resource:Andrew_Boylan }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q239626 Q3132068 Q2934135
P7
Q502895
USER
Is Ahmose-Nefertari a sibling of Octavian Bellu and Callias I ?
(Q239626,P7,Q3132068) (Q239626,P7,Q2934135)
action is_in
entity Q239626
action intersection
action find_reverse
entity Q3132068
relation P7
action find_reverse
entity Q2934135
relation P7
['Q239626', 'P7', 'Q3132068'] ['Q239626', 'P7', 'Q2934135']
ASK WHERE { resource:Q239626 property:P7 resource:Q3132068 . resource:Q239626 property:P7 resource:Q2934135 }
Ahmose-Nefertari Octavian Bellu Callias I
action is_in
entity Ahmose-Nefertari
action intersection
action find_reverse
entity Octavian Bellu
relation brother
action find_reverse
entity Callias I
relation brother
['Ahmose-Nefertari', 'brother', 'Octavian Bellu'] ['Ahmose-Nefertari', 'brother', 'Callias I']
ASK WHERE { resource:Ahmose-Nefertari property:brother resource:Octavian_Bellu . resource:Ahmose-Nefertari property:brother resource:Callias_I }
[]
common name
SYSTEM
NO
(Q239626,P7,Q3132068) (Q239626,P7,Q2934135)
action is_in
entity Q239626
action intersection
action find_reverse
entity Q3132068
relation P7
action find_reverse
entity Q2934135
relation P7
[ANSWER]
['Q239626', 'P7', 'Q3132068'] ['Q239626', 'P7', 'Q2934135']
ASK WHERE { resource:Q239626 property:P7 resource:Q3132068 . resource:Q239626 property:P7 resource:Q2934135 }
No
action is_in
entity Ahmose-Nefertari
action intersection
action find_reverse
entity Octavian Bellu
relation brother
action find_reverse
entity Callias I
relation brother
['Ahmose-Nefertari', 'brother', 'Octavian Bellu'] ['Ahmose-Nefertari', 'brother', 'Callias I']
ASK WHERE { resource:Ahmose-Nefertari property:brother resource:Octavian_Bellu . resource:Ahmose-Nefertari property:brother resource:Callias_I }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q207447
P941
Q502895 Q15416 Q6619679
USER
Which people were more number of television programs or fictional humanoids inspired by than Jean-Baptiste-Siméon Chardin ?
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q207447
relation P941
type Q15416
type Q6619679
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P941 ?n . ?r rdf:type ontology:Q15416 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?r rdf:type ontology:Q6619679 . ?r property:P941 ?n } } GROUP BY ?n } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { { ?d rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q6619679 } } . ?d property:P941 resource:Q207447 } } }
Jean-Baptiste-Siméon Chardin
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Jean-Baptiste-Siméon Chardin
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:inspired_by ?n . ?r rdf:type ontology:television_program . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?r rdf:type ontology:fictional_humanoid . ?r property:inspired_by ?n } } GROUP BY ?n } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { { ?d rdf:type ontology:television_program } UNION { ?d rdf:type ontology:fictional_humanoid } } . ?d property:inspired_by resource:Jean-Baptiste-Siméon_Chardin } } }
[]
common name television program fictional humanoid
Q22686 Q2907490 Q2409128
SYSTEM
Donald Trump, Bo Gritz, Dušan Popov
Q2907490 Q5675905 Q22686 Q2409128
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q207447
relation P941
type Q15416
type Q6619679
[ANSWERS] were more number of television programs or fictional humanoids inspired by than Jean-Baptiste-Siméon Chardin
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:P941 ?n . ?r rdf:type ontology:Q15416 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?r rdf:type ontology:Q6619679 . ?r property:P941 ?n } } GROUP BY ?n } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { { ?d rdf:type ontology:Q15416 } UNION { ?d rdf:type ontology:Q6619679 } } . ?d property:P941 resource:Q207447 } } }
Bo Gritz Andrés López Muñoz Donald Trump Dušan Popov
Donald Trump, Bo Gritz and Dušan Popov were more number of television programs or fictional humanoids inspired by than Jean-Baptiste-Siméon Chardin
Donald Trump Bo Gritz Dušan Popov
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Jean-Baptiste-Siméon Chardin
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?r ) AS ?j ) WHERE { { ?r property:inspired_by ?n . ?r rdf:type ontology:television_program . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?r rdf:type ontology:fictional_humanoid . ?r property:inspired_by ?n } } GROUP BY ?n } . FILTER ( ?j > ?u ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { { { ?d rdf:type ontology:television_program } UNION { ?d rdf:type ontology:fictional_humanoid } } . ?d property:inspired_by resource:Jean-Baptiste-Siméon_Chardin } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q5577
P941
Q502895 Q15416 Q6619679
USER
And what about Salvador Dalí?
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q5577
relation P941
type Q15416
type Q6619679
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?p WHERE { { ?i property:P941 ?p . ?p rdf:type ontology:Q502895 . ?i rdf:type ontology:Q15416 } UNION { ?i property:P941 ?p . ?p rdf:type ontology:Q502895 . ?i rdf:type ontology:Q6619679 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:P941 resource:Q5577 . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?k > ?d ) }
Salvador Dalí
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Salvador Dalí
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?p WHERE { { ?i property:inspired_by ?p . ?p rdf:type ontology:common_name . ?i rdf:type ontology:television_program } UNION { ?i property:inspired_by ?p . ?p rdf:type ontology:common_name . ?i rdf:type ontology:fictional_humanoid } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:inspired_by resource:Salvador_Dalí . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?k > ?d ) }
[]
common name television program fictional humanoid
Q22686 Q2907490 Q2409128
SYSTEM
Donald Trump, Bo Gritz, Dušan Popov
Q2907490 Q5675905 Q22686 Q2409128
(c(Q15416)|c(Q6619679),P941,c(Q502895))
action greater
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q15416
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
action count
action filter_multi_types
action find_reverse
entity Q5577
relation P941
type Q15416
type Q6619679
[ANSWERS]
[[{'concept': 'Q15416'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?p WHERE { { ?i property:P941 ?p . ?p rdf:type ontology:Q502895 . ?i rdf:type ontology:Q15416 } UNION { ?i property:P941 ?p . ?p rdf:type ontology:Q502895 . ?i rdf:type ontology:Q6619679 } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:P941 resource:Q5577 . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q15416 ) ( ontology:Q6619679 ) } } } } . FILTER ( ?k > ?d ) }
Bo Gritz Andrés López Muñoz Donald Trump Dušan Popov
Donald Trump Bo Gritz Dušan Popov
action greater
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type television program
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
action count
action filter_multi_types
action find_reverse
entity Salvador Dalí
relation inspired by
type television program
type fictional humanoid
[[{'concept': 'television program'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?k ) ?p WHERE { { ?i property:inspired_by ?p . ?p rdf:type ontology:common_name . ?i rdf:type ontology:television_program } UNION { ?i property:inspired_by ?p . ?p rdf:type ontology:common_name . ?i rdf:type ontology:fictional_humanoid } } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?w ) AS ?d ) WHERE { ?w property:inspired_by resource:Salvador_Dalí . { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:television_program ) ( ontology:fictional_humanoid ) } } } } . FILTER ( ?k > ?d ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P161
Q838948
USER
How many works of art stars that person as actor ?
(c(Q838948),P161,Q22686)
[{'concept': 'Q838948'}, 'P161', 'Q22686']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q22686 . ?z rdf:type ontology:Q838948 }
[{'concept': 'work of art'}, 'cast member', 'Donald Trump']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Donald_Trump . ?z rdf:type ontology:work_of_art }
[]
work of art
Quantitative|Count|Single entity type|Clarification
Q2409128
SYSTEM
Did you mean Dušan Popov ?
(c(Q838948),P161,Q22686) (c(Q838948),P161,Q2907490) (c(Q838948),P161,Q2409128)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q22686'] [{'concept': 'Q838948'}, 'P161', 'Q2907490'] [{'concept': 'Q838948'}, 'P161', 'Q2409128']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q22686 . ?z rdf:type ontology:Q838948 }
Did you mean Dušan Popov ?
Dušan Popov
[{'concept': 'work of art'}, 'cast member', 'Donald Trump'] [{'concept': 'work of art'}, 'cast member', 'Bo Gritz'] [{'concept': 'work of art'}, 'cast member', 'Dušan Popov']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Donald_Trump . ?z rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Donald Trump. Could you tell me the answer for that?
(c(Q838948),P161,Q22686)
Q22686
[{'concept': 'Q838948'}, 'P161', 'Q22686']
[{'concept': 'work of art'}, 'cast member', 'Donald Trump']
[]
SYSTEM
10
Q220192 Q4106870 Q27461479 Q6506749 Q1974702 Q1516984 Q1052826 Q8056695 Q644634 Q3978030
(c(Q838948),P161,Q22686)
[ANSWER]
[{'concept': 'Q838948'}, 'P161', 'Q22686']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:Q3297652 resource:Q22686 . ?z rdf:type ontology:Q838948 }
Zoolander POM Wonderful Presents: The Greatest Movie Ever Sold Michael Moore in TrumpLand Le Cirque: A Table in Heaven The Associate Ghosts Can't Do It Celebrity You've Been Trumped The Little Rascals Superstar: The Life and Times of Andy Warhol
10
[{'concept': 'work of art'}, 'cast member', 'Donald Trump']
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { ?z property:cast_member resource:Donald_Trump . ?z rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22686
P161
Q838948
USER
Which works of art have Donald Trump in their star cast ?
(c(Q838948),P161,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q22686']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q22686 . ?d rdf:type ontology:Q838948 }
Donald Trump
action filter_type
action find_reverse
entity Donald Trump
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Donald Trump']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Donald_Trump . ?d rdf:type ontology:work_of_art }
[]
work of art
Q220192 Q1052826 Q3978030
SYSTEM
Zoolander, Celebrity, Superstar: The Life and Times of Andy Warhol
Q644634 Q4106870 Q220192 Q1052826 Q3978030 Q6506749 Q27461479 Q8056695 Q1974702 Q1516984
(c(Q838948),P161,Q22686)
action filter_type
action find_reverse
entity Q22686
relation P161
type Q838948
[ANSWERS] have Donald Trump in their star cast
[{'concept': 'Q838948'}, 'P161', 'Q22686']
SELECT DISTINCT ?d WHERE { ?d property:P161 resource:Q22686 . ?d rdf:type ontology:Q838948 }
The Little Rascals POM Wonderful Presents: The Greatest Movie Ever Sold Zoolander Celebrity Superstar: The Life and Times of Andy Warhol Le Cirque: A Table in Heaven Michael Moore in TrumpLand You've Been Trumped The Associate Ghosts Can't Do It
Zoolander, Celebrity and Superstar: The Life and Times of Andy Warhol have Donald Trump in their star cast
Zoolander Celebrity Superstar: The Life and Times of Andy Warhol
action filter_type
action find_reverse
entity Donald Trump
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Donald Trump']
SELECT DISTINCT ?d WHERE { ?d property:cast_member resource:Donald_Trump . ?d rdf:type ontology:work_of_art }
[]