Simple Question (Direct)
Simple Question
Q259434
P106
Q12737077
USER
Which occupations have Sylvia Miles as his/her 's career ?
(Q259434,P106,c(Q12737077))
action filter_type
action find
entity Q259434
relation P106
type Q12737077
['Q259434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q259434 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Sylvia Miles
action filter_type
action find
entity Sylvia Miles
relation occupation
type occupation
['Sylvia Miles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Sylvia_Miles property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q10798782 Q33999 Q2259451
SYSTEM
television actor, actor, stage actor
Q10798782 Q33999 Q2259451
(Q259434,P106,c(Q12737077))
action filter_type
action find
entity Q259434
relation P106
type Q12737077
[ANSWERS] have Sylvia Miles as his/her 's career
['Q259434', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q259434 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
television actor actor stage actor
Television actor, actor and stage actor have Sylvia Miles as his/her 's career
television actor actor stage actor
action filter_type
action find
entity Sylvia Miles
relation occupation
type occupation
['Sylvia Miles', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Sylvia_Miles property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2259451
P425
Q1914636
USER
Who is associated with the field of occupation that one ?
(Q2259451,P425,c(Q1914636))
action filter_type
action find
entity Q2259451
relation P425
type Q1914636
['Q2259451', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1914636 . resource:Q2259451 property:P425 ?h }
stage actor
action filter_type
action find
entity stage actor
relation field of this occupation
type activity
['stage actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:activity . resource:stage_actor property:field_of_this_occupation ?h }
[]
activity
Clarification for simple ques.
Q33999
SYSTEM
Did you mean actor ?
Q10798782 Q33999 Q2259451
(Q10798782,P425,c(Q1914636)) (Q33999,P425,c(Q1914636)) (Q2259451,P425,c(Q1914636))
[ANSWER]
['Q10798782', 'P425', {'concept': 'Q1914636'}] ['Q33999', 'P425', {'concept': 'Q1914636'}] ['Q2259451', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1914636 . resource:Q2259451 property:P425 ?h }
television actor actor stage actor
Did you mean actor ?
actor
['television actor', 'field of this occupation', {'concept': 'activity'}] ['actor', 'field of this occupation', {'concept': 'activity'}] ['stage actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:activity . resource:stage_actor property:field_of_this_occupation ?h }
[]
Simple Question (Coreferenced)
USER
No, I meant stage actor. Could you tell me the answer for that?
(Q2259451,P425,c(Q1914636))
Q2259451
['Q2259451', 'P425', {'concept': 'Q1914636'}]
['stage actor', 'field of this occupation', {'concept': 'activity'}]
[]
Q184485
SYSTEM
performing arts
Q184485
(Q2259451,P425,c(Q1914636))
action filter_type
action find
entity Q2259451
relation P425
type Q1914636
Arts [ANSWER] is associated with the field of occupation that one
['Q2259451', 'P425', {'concept': 'Q1914636'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1914636 . resource:Q2259451 property:P425 ?h }
performing arts
Arts performing arts is associated with the field of occupation that one
performing arts
action filter_type
action find
entity stage actor
relation field of this occupation
type activity
['stage actor', 'field of this occupation', {'concept': 'activity'}]
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:activity . resource:stage_actor property:field_of_this_occupation ?h }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q184485
P101 P21
Q502895
USER
Which people work in the domain of performing arts and have the gender as male ?
AND((c(Q502895),P101,Q184485), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q184485
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q184485'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P101 resource:Q184485 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
male performing arts
action filter_type
action intersection
action find_reverse
entity performing arts
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'performing arts'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:field_of_work resource:performing_arts . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
common name
Q5343276 Q4234593
SYSTEM
Edward Hall, Viktor Korshunov
Q5343276 Q4234593
AND((c(Q502895),P101,Q184485), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q184485
relation P101
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWERS] work in the domain of performing arts and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P101', 'Q184485'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?v WHERE { ?v property:P101 resource:Q184485 . ?v property:P21 resource:Q6581097 . ?v rdf:type ontology:Q502895 }
Edward Hall Viktor Korshunov
Edward Hall and Viktor Korshunov work in the domain of performing arts and have the gender as male
Edward Hall Viktor Korshunov
action filter_type
action intersection
action find_reverse
entity performing arts
relation field of work
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'field of work', 'performing arts'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?v WHERE { ?v property:field_of_work resource:performing_arts . ?v property:gender resource:male . ?v rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q33999
P20
Q502895
USER
Which people expired at actor ?
(c(Q502895),P20,Q33999)
action filter_type
action find_reverse
entity Q33999
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q33999']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P20 resource:Q33999 }
actor
action filter_type
action find_reverse
entity actor
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'actor']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_death resource:actor }
[]
common name
Q6688701 Q4766357 Q7490763
SYSTEM
Louise Currie, Ann Davies, Shaukat Kaifi
Q6688701 Q4766357 Q7490763
(c(Q502895),P20,Q33999)
action filter_type
action find_reverse
entity Q33999
relation P20
type Q502895
As [ANSWERS] expired at actor
[{'concept': 'Q502895'}, 'P20', 'Q33999']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?i property:P20 resource:Q33999 }
Louise Currie Ann Davies Shaukat Kaifi
As Louise Currie, Ann Davies and Shaukat Kaifi expired at actor
Louise Currie Ann Davies Shaukat Kaifi
action filter_type
action find_reverse
entity actor
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'actor']
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?i property:place_of_death resource:actor }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7490763
P26
Q502895
USER
Which person has Shaukat Kaifi as spouse ?
(c(Q502895),P26,Q7490763)
action filter_type
action find
entity Q7490763
relation P26
type Q502895
[{'concept': 'Q502895'}, 'P26', 'Q7490763']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q7490763 property:P26 ?b }
Shaukat Kaifi
action filter_type
action find
entity Shaukat Kaifi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Shaukat Kaifi']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Shaukat_Kaifi property:spouse ?b }
[]
common name
Q82066
SYSTEM
Kaifi Azmi
Q82066
(c(Q502895),P26,Q7490763)
action filter_type
action find
entity Q7490763
relation P26
type Q502895
[ANSWER] has Shaukat Kaifi as spouse
[{'concept': 'Q502895'}, 'P26', 'Q7490763']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q7490763 property:P26 ?b }
Kaifi Azmi
Kaifi Azmi has Shaukat Kaifi as spouse
Kaifi Azmi
action filter_type
action find
entity Shaukat Kaifi
relation spouse
type common name
[{'concept': 'common name'}, 'spouse', 'Shaukat Kaifi']
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Shaukat_Kaifi property:spouse ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q82066
P86
Q838948
USER
Which work of art is composed by that person ?
(c(Q838948),P86,Q82066)
action filter_type
action find_reverse
entity Q82066
relation P86
type Q838948
[{'concept': 'Q838948'}, 'P86', 'Q82066']
SELECT DISTINCT ?w WHERE { ?w property:P86 resource:Q82066 . ?w rdf:type ontology:Q838948 }
Kaifi Azmi
action filter_type
action find_reverse
entity Kaifi Azmi
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Kaifi Azmi']
SELECT DISTINCT ?w WHERE { ?w property:composer resource:Kaifi_Azmi . ?w rdf:type ontology:work_of_art }
[]
work of art
Q10950983
SYSTEM
Haqeeqat
Q10950983
(c(Q838948),P86,Q82066)
action filter_type
action find_reverse
entity Q82066
relation P86
type Q838948
[ANSWER] is composed by that person
[{'concept': 'Q838948'}, 'P86', 'Q82066']
SELECT DISTINCT ?w WHERE { ?w property:P86 resource:Q82066 . ?w rdf:type ontology:Q838948 }
Haqeeqat
Haqeeqat is composed by that person
Haqeeqat
action filter_type
action find_reverse
entity Kaifi Azmi
relation composer
type work of art
[{'concept': 'work of art'}, 'composer', 'Kaifi Azmi']
SELECT DISTINCT ?w WHERE { ?w property:composer resource:Kaifi_Azmi . ?w rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1445
Q838948 Q386724
USER
Which works were described in min number of works of art ?
(c(Q386724),P1445,c(Q838948))
action argmin
action find_tuple_counts
relation P1445
type Q386724
type Q838948
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?i ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?f ) WHERE { ?h property:P1445 ?u . ?h rdf:type ontology:Q386724 . ?u rdf:type ontology:Q838948 } GROUP BY ?h } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?g ) WHERE { ?j property:P1445 ?k . ?k rdf:type ontology:Q838948 . ?j rdf:type ontology:Q386724 } GROUP BY ?j } . FILTER ( ?g = ?i ) }
action argmin
action find_tuple_counts
relation fictional universe described in
type work
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?i ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?f ) WHERE { ?h property:fictional_universe_described_in ?u . ?h rdf:type ontology:work . ?u rdf:type ontology:work_of_art } GROUP BY ?h } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?g ) WHERE { ?j property:fictional_universe_described_in ?k . ?k rdf:type ontology:work_of_art . ?j rdf:type ontology:work } GROUP BY ?j } . FILTER ( ?g = ?i ) }
[]
work of art work
Q1203222 Q15731902 Q11927
SYSTEM
Shrek, Aladdin media franchise, Stargate
Q1203222 Q15731902 Q11927 Q3177580
(c(Q386724),P1445,c(Q838948))
action argmin
action find_tuple_counts
relation P1445
type Q386724
type Q838948
[ANSWERS] were described in min number of works of art
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q838948'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?i ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?f ) WHERE { ?h property:P1445 ?u . ?h rdf:type ontology:Q386724 . ?u rdf:type ontology:Q838948 } GROUP BY ?h } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?g ) WHERE { ?j property:P1445 ?k . ?k rdf:type ontology:Q838948 . ?j rdf:type ontology:Q386724 } GROUP BY ?j } . FILTER ( ?g = ?i ) }
Shrek Aladdin media franchise Stargate The Walking Dead
Shrek, Aladdin media franchise and Stargate were described in min number of works of art
Shrek Aladdin media franchise Stargate
action argmin
action find_tuple_counts
relation fictional universe described in
type work
type work of art
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'work of art'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( MIN ( ?f ) AS ?i ) { SELECT DISTINCT ?h ( COUNT ( ?u ) AS ?f ) WHERE { ?h property:fictional_universe_described_in ?u . ?h rdf:type ontology:work . ?u rdf:type ontology:work_of_art } GROUP BY ?h } } . { SELECT DISTINCT ?j ( COUNT ( ?k ) AS ?g ) WHERE { ?j property:fictional_universe_described_in ?k . ?k rdf:type ontology:work_of_art . ?j rdf:type ontology:work } GROUP BY ?j } . FILTER ( ?g = ?i ) }
[]
Clarification
Comparative|Count over More/Less|Single entity type|Indirect
P1080
Q386724 Q23010327
USER
How many works are featured in more number of groups of fictitious objects than that work ?
(c(Q23010327),P1080,c(Q386724))
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1080 ?y . ?z rdf:type ontology:Q23010327 . ?y rdf:type ontology:Q16532276 }
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:from_fictional_universe ?y . ?z rdf:type ontology:group_of_fictitious_objects . ?y rdf:type ontology:work }
[]
work group of fictitious objects
Comparative|Count over More/Less|Single entity type|Clarification
Q15731902
SYSTEM
Did you mean Aladdin media franchise ?
(c(Q23010327),P1080,c(Q386724))
[ANSWER]
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1080 ?y . ?z rdf:type ontology:Q23010327 . ?y rdf:type ontology:Q16532276 }
Did you mean Aladdin media franchise ?
Aladdin media franchise
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:from_fictional_universe ?y . ?z rdf:type ontology:group_of_fictitious_objects . ?y rdf:type ontology:work }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Shrek. Could you tell me the answer for that?
(c(Q23010327),P1080,c(Q386724))
Q1203222
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
[]
SYSTEM
1
Q3177580
(c(Q23010327),P1080,c(Q386724))
[ANSWER]
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:P1080 ?y . ?z rdf:type ontology:Q23010327 . ?y rdf:type ontology:Q16532276 }
The Walking Dead
1
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?x ) WHERE { ?z property:from_fictional_universe ?y . ?z rdf:type ontology:group_of_fictitious_objects . ?y rdf:type ontology:work }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q82066
P40
Q502895
USER
How many people are an offsprings of Kaifi Azmi ?
(Q82066,P40,c(Q502895))
action count
action filter_type
action find
entity Q82066
relation P40
type Q502895
['Q82066', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q82066 property:P40 ?n . ?n rdf:type ontology:Q502895 }
Kaifi Azmi
action count
action filter_type
action find
entity Kaifi Azmi
relation child
type common name
['Kaifi Azmi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Kaifi_Azmi property:child ?n . ?n rdf:type ontology:common_name }
[]
common name
SYSTEM
2
Q465863 Q4837267
(Q82066,P40,c(Q502895))
action count
action filter_type
action find
entity Q82066
relation P40
type Q502895
[ANSWER]
['Q82066', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Q82066 property:P40 ?n . ?n rdf:type ontology:Q502895 }
Shabana Azmi Baba Azmi
2
action count
action filter_type
action find
entity Kaifi Azmi
relation child
type common name
['Kaifi Azmi', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?k ) WHERE { resource:Kaifi_Azmi property:child ?n . ?n rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q18643449
P40
Q502895
USER
And also tell me about Julius Eduard von Schnitzler?
(Q18643449,P40,c(Q502895))
action count
action filter_type
action find
entity Q18643449
relation P40
type Q502895
['Q18643449', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q18643449 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Julius Eduard von Schnitzler
action count
action filter_type
action find
entity Julius Eduard von Schnitzler
relation child
type common name
['Julius Eduard von Schnitzler', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Julius_Eduard_von_Schnitzler property:child ?k . ?k rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q72217
(Q18643449,P40,c(Q502895))
action count
action filter_type
action find
entity Q18643449
relation P40
type Q502895
[ANSWER]
['Q18643449', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Q18643449 property:P40 ?k . ?k rdf:type ontology:Q502895 }
Karl-Eduard von Schnitzler
1
action count
action filter_type
action find
entity Julius Eduard von Schnitzler
relation child
type common name
['Julius Eduard von Schnitzler', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?k ) AS ?s ) WHERE { resource:Julius_Eduard_von_Schnitzler property:child ?k . ?k rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q20909630
Q502895
USER
And how about Antoine Boyer?
(Q20909630,P40,c(Q502895))
action count
action filter_type
action find
entity Q20909630
relation P40
type Q502895
['Q20909630', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h rdf:type ontology:Q502895 . resource:Q20909630 property:P40 ?h }
Antoine Boyer
action count
action filter_type
action find
entity Antoine Boyer
relation child
type common name
['Antoine Boyer', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h rdf:type ontology:common_name . resource:Antoine_Boyer property:child ?h }
[]
common name
SYSTEM
1
(Q20909630,P40,c(Q502895))
action count
action filter_type
action find
entity Q20909630
relation P40
type Q502895
[ANSWER]
['Q20909630', 'P40', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h rdf:type ontology:Q502895 . resource:Q20909630 property:P40 ?h }
1
action count
action filter_type
action find
entity Antoine Boyer
relation child
type common name
['Antoine Boyer', 'child', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?e ) WHERE { ?h rdf:type ontology:common_name . resource:Antoine_Boyer property:child ?h }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q21013163
P748
Q12737077 Q701632 Q12737077
USER
How many occupations did greater number of occupations and municipal councils appoint than Mayor of The Hague ?
(c(Q12737077),P748,c(Q12737077)|c(Q701632))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q21013163
relation P748
type Q12737077
type Q701632
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?l ) WHERE { { ?j property:P748 ?g . ?j rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q12737077 } UNION { ?j rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q701632 . ?j property:P748 ?g } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Q21013163 property:P748 ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q701632 ) ( ontology:Q12737077 ) } } } } . FILTER ( ?l > ?t ) }
Mayor of The Hague
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Mayor of The Hague
relation appointed by
type occupation
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?l ) WHERE { { ?j property:appointed_by ?g . ?j rdf:type ontology:occupation . ?g rdf:type ontology:occupation } UNION { ?j rdf:type ontology:occupation . ?g rdf:type ontology:municipal_council . ?j property:appointed_by ?g } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Mayor_of_The_Hague property:appointed_by ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:municipal_council ) ( ontology:occupation ) } } } } . FILTER ( ?l > ?t ) }
[]
occupation municipal council occupation
SYSTEM
128
Q15934457 Q748607 Q3253692 Q192711 Q20748656 Q6865816 Q20890913 Q6865958 Q3251824 Q21371106 Q737115 Q6578215 Q1146214 Q21013169 Q23906787 Q6866004 Q4377222 Q15304810 Q1511951 Q191827 Q1476458 Q15407843 Q20736121 Q19190022 Q3251837 Q6865747 Q20872382 Q1749063 Q20872273 Q24636364 Q14565638 Q251724 Q20891385 Q6572133 Q1006398 Q6865770 Q274948 Q21384866 Q1723031 Q20194364 Q369500 Q13527950 Q3315120 Q6866468 Q313465 Q15971570 Q1430943 Q3556884 Q1655971 Q12270252 Q1571023 Q1339242 Q796897 Q1550276 Q208487 Q4294939 Q21383592 Q6866295 Q4377230 Q7240361 Q5195495 Q27088842 Q2560704 Q3251821 Q3251819 Q4294945 Q3564227 Q6866264 Q6865750 Q7240360 Q16933549 Q18694351 Q20859388 Q45369 Q1195049 Q6865853 Q20867550 Q687075 Q3251775 Q1587677 Q20872296 Q839078 Q3251779 Q2911019 Q2430415 Q6866194 Q3251793 Q1192903 Q6865904 Q2741479 Q6123144 Q3401758 Q7240356 Q6865864 Q13527909 Q3315114 Q11895063 Q1469153 Q12270260 Q6865789 Q1195270 Q6865781 Q7013201 Q2505890 Q6865756 Q20872339 Q16009376 Q3251800 Q3259469 Q26209358 Q5097071 Q6865981 Q20992515 Q3251807 Q13526082 Q6866016 Q1790154 Q6866422 Q3251818 Q6866427 Q26721218 Q6865902 Q738695 Q844587 Q20877172 Q2334076 Q541355 Q702650
(c(Q12737077),P748,c(Q12737077)|c(Q701632))
action count
action greater
action union
action find_tuple_counts
relation P748
type Q12737077
type Q12737077
action find_tuple_counts
relation P748
type Q12737077
type Q701632
action count
action filter_multi_types
action find
entity Q21013163
relation P748
type Q12737077
type Q701632
[ANSWER]
[{'concept': 'Q12737077'}, 'P748', [{'concept': 'Q12737077'}, {'concept': 'Q701632'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?l ) WHERE { { ?j property:P748 ?g . ?j rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q12737077 } UNION { ?j rdf:type ontology:Q12737077 . ?g rdf:type ontology:Q701632 . ?j property:P748 ?g } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Q21013163 property:P748 ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:Q701632 ) ( ontology:Q12737077 ) } } } } . FILTER ( ?l > ?t ) }
Minister of Transport Minister of International Trade President of the Treasury Board Prime Minister of India municipal executive of Zoetermeer Minister for Education and Skills municipal executive of Eindhoven Minister for Social Protection Minister of Natural Resources municipal executive of Amersfoort Prime Minister of Estonia Premier of Saskatchewan Tánaiste municipal executive of The Hague Bishop of Nevers Minister for the Environment, Community and Local Government Premier of Nunavut Prime Minister of Romania Prime Minister of South Africa Taoiseach European Commissioner for the Environment Prime Minister of South Korea Bishop of Versailles Prime Minister of Iceland Minister of Canadian Heritage Minister for Arts, Heritage and the Gaeltacht municipal executive of Coevorden Minister for Foreign Affairs of Sweden municipal executive of Boxmeer bishop of Nanjing Prime Minister of Bangladesh Chief Secretary for Ireland municipal executive of Deventer Governor of İstanbul Federal Chancellor of Austria Minister for Communications, Energy and Natural Resources Prime Minister of Japan municipal executive of Rotterdam Prime Minister of Portugal municipal executive of Amsterdam Prime Minister of Latvia Premier of New South Wales Minister of Justice Minister responsible for the Status of Women Minister of External Affairs President of the Generalitat Valenciana Prime Minister of Jamaica Deputy Prime Minister of Canada Minister of State Premier of New Brunswick Governor of Victoria Chief Justice of Canada Prime Minister of Italy Premier of Western Australia Prime Minister of Israel Minister of Agriculture municipal executive of Haarlem Minister of Public Services and Procurement Prime Minister of Greece Premier of Prince Edward Island Minister of Economy and Finance of Peru Director of the Holy See Press Office Premier of Ontario Minister of Transport Minister of Fisheries and Oceans Minister for Finance Auditor General of Canada Minister of National Revenue Minister for Agriculture, Food and the Marine Premier of Nova Scotia President of the Generalitat of Catalonia Minister of Communications municipal executive of Mierlo Prime Minister of Slovakia Minister of Aboriginal Affairs and Northern Development Minister for Foreign Affairs and Trade municipal executive of Gorinchem Prime Minister of Sweden Minister of the Environment Prime Minister of France municipal executive of Almere Prime Minister of Canada Minister of Industry Premier of Quebec Prime Minister of Turkey Minister of Human Resources and Skills Development Minister of Citizenship and Immigration Prime Minister of Yemen Minister for Justice and Equality Chief Executive of Macau Secretary of State of Puerto Rico Premier of Manitoba Premier of Newfoundland and Labrador Minister for Health Premier of Victoria Minister of National Defence Minister of Transport and Communications Prime Minister of Fiji Premier of Yukon Minister for Democratic Reform Prime Minister of Croatia Minister for Defence New York City Fire Commissioner Leader of the Government in the House of Commons Minister for Children and Youth Affairs municipal executive of Woerden Prime Minister of Albania Minister of Health Prime Minister of Poland municipal executive of Warffum Chief of the Secret Intelligence Service Minister for Transport, Tourism and Sport municipal executive of Utrecht Minister of Veterans Affairs Premier of Queensland Minister for the purposes of the Atlantic Canada Opportunities Agency Act Chief Minister of Delhi Minister of Western Economic Diversification Minister of Finance Minister of the Economic Development Agency of Canada for the Regions of Quebec municipal executive of Almere Minister for Jobs, Enterprise and Innovation Prime Minister of Finland Prime Minister of Spain bishop of Amiens Prime Minister of Norway Minister of Foreign Affairs of Canada President of the Executive Yuan
128
action count
action greater
action union
action find_tuple_counts
relation appointed by
type occupation
type occupation
action find_tuple_counts
relation appointed by
type occupation
type municipal council
action count
action filter_multi_types
action find
entity Mayor of The Hague
relation appointed by
type occupation
type municipal council
[{'concept': 'occupation'}, 'appointed by', [{'concept': 'occupation'}, {'concept': 'municipal council'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?r ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?g ) AS ?l ) WHERE { { ?j property:appointed_by ?g . ?j rdf:type ontology:occupation . ?g rdf:type ontology:occupation } UNION { ?j rdf:type ontology:occupation . ?g rdf:type ontology:municipal_council . ?j property:appointed_by ?g } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) WHERE { resource:Mayor_of_The_Hague property:appointed_by ?k . { ?k rdf:type ?h . VALUES ( ?h ) { ( ontology:municipal_council ) ( ontology:occupation ) } } } } . FILTER ( ?l > ?t ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4234593
P119
Q43229
USER
Which organization is the tomb of Viktor Korshunov ?
(Q4234593,P119,c(Q43229))
action filter_type
action find
entity Q4234593
relation P119
type Q43229
['Q4234593', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q4234593 property:P119 ?l . ?l rdf:type ontology:Q43229 }
Viktor Korshunov
action filter_type
action find
entity Viktor Korshunov
relation place of burial
type organization
['Viktor Korshunov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Viktor_Korshunov property:place_of_burial ?l . ?l rdf:type ontology:organization }
[]
organization
Q208175
SYSTEM
Novodevichy Cemetery
Q208175
(Q4234593,P119,c(Q43229))
action filter_type
action find
entity Q4234593
relation P119
type Q43229
Cemetery [ANSWER] is the tomb of Viktor Korshunov
['Q4234593', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?l WHERE { resource:Q4234593 property:P119 ?l . ?l rdf:type ontology:Q43229 }
Novodevichy Cemetery
Cemetery Novodevichy Cemetery is the tomb of Viktor Korshunov
Novodevichy Cemetery
action filter_type
action find
entity Viktor Korshunov
relation place of burial
type organization
['Viktor Korshunov', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?l WHERE { resource:Viktor_Korshunov property:place_of_burial ?l . ?l rdf:type ontology:organization }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4234593
P19
Q56061
USER
Which administrative territory is the place of birth of Viktor Korshunov ?
(Q4234593,P19,c(Q56061))
action filter_type
action find
entity Q4234593
relation P19
type Q56061
['Q4234593', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q4234593 property:P19 ?f }
Viktor Korshunov
action filter_type
action find
entity Viktor Korshunov
relation place of birth
type administrative territorial entity
['Viktor Korshunov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Viktor_Korshunov property:place_of_birth ?f }
[]
administrative territorial entity
Q649
SYSTEM
Moscow
Q649
(Q4234593,P19,c(Q56061))
action filter_type
action find
entity Q4234593
relation P19
type Q56061
In [ANSWER] is the place of birth of Viktor Korshunov
['Q4234593', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q4234593 property:P19 ?f }
Moscow
In Moscow is the place of birth of Viktor Korshunov
Moscow
action filter_type
action find
entity Viktor Korshunov
relation place of birth
type administrative territorial entity
['Viktor Korshunov', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Viktor_Korshunov property:place_of_birth ?f }
[]